/* Agent funding player-layout parity v23. */
@media (max-width:760px){
  .agent-wallet-page{padding:14px 14px calc(116px + env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,#fbf8f1 0,#fffdf9 58%,#f7f2e8 100%)!important}
  .agent-wallet-balance{position:relative!important;overflow:hidden!important;margin:0!important;padding:20px 18px!important;border:1px solid #dfc780!important;border-radius:22px!important;background:linear-gradient(145deg,#1b3152,#243f69)!important;color:#fff!important;box-shadow:0 14px 34px rgba(25,48,82,.16)!important}
  .agent-wallet-balance:after{content:"";position:absolute;right:-48px;top:-62px;width:190px;height:190px;border:38px solid rgba(230,199,118,.13);border-radius:50%}
  .agent-wallet-balance>*{position:relative;z-index:1}
  .agent-wallet-balance>svg{display:none!important}
  .agent-wallet-balance>span,.agent-wallet-balance>p:first-of-type{color:#f1dfad!important;font-size:12px!important;font-weight:700!important;letter-spacing:.04em!important}
  .agent-wallet-balance h2{margin:8px 0 6px!important;color:#fff!important;font-size:30px!important;line-height:1.05!important}
  .agent-wallet-balance p:last-child{margin:0!important;max-width:290px!important;color:rgba(255,255,255,.76)!important;font-size:10px!important;line-height:1.55!important}
  .agent-wallet-live-error{margin:10px 0 0!important;padding:10px 12px!important;border:1px solid #e6c9a5!important;border-radius:12px!important;background:#fff7eb!important;color:#9b5c18!important;font-size:10px!important;line-height:1.45!important}
  .agent-wallet-currency-grid,.agent-wallet-currency-reserve{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:12px 0 16px!important}
  .agent-wallet-currency-grid article,.agent-wallet-currency-reserve article{min-width:0!important;min-height:82px!important;padding:12px 10px!important;border:1px solid #e5d6b3!important;border-radius:16px!important;background:#fff!important;box-shadow:0 6px 18px rgba(53,43,25,.05)!important}
  .agent-wallet-currency-grid small,.agent-wallet-currency-reserve small{display:block!important;color:#887f70!important;font-size:9px!important;line-height:1.35!important;white-space:normal!important}
  .agent-wallet-currency-grid strong,.agent-wallet-currency-reserve strong{display:block!important;margin-top:8px!important;color:#193052!important;font-size:13px!important;line-height:1.2!important;overflow-wrap:anywhere!important}
  .agent-wallet-actions{position:relative!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin:0!important;padding:52px 12px 12px!important;border:1px solid #e1d1aa!important;border-radius:20px!important;background:rgba(255,255,255,.78)!important;box-shadow:0 10px 28px rgba(52,41,21,.06)!important}
  .agent-wallet-actions:before{content:attr(data-wallet-section-title);position:absolute;left:14px;top:13px;color:#193052;font-size:16px;font-weight:800}
  .agent-wallet-actions:after{content:attr(data-wallet-section-help);position:absolute;left:14px;top:33px;color:#8a8171;font-size:9px}
  .agent-wallet-actions button{box-sizing:border-box!important;display:grid!important;grid-template-columns:44px 1fr 18px!important;align-items:center!important;gap:11px!important;width:100%!important;min-height:72px!important;margin:0!important;padding:11px 12px!important;border:1px solid #e7dcc4!important;border-radius:15px!important;background:#fff!important;color:#193052!important;text-align:left!important;box-shadow:none!important}
  .agent-wallet-actions button:first-child{border-color:#d9b95f!important;background:linear-gradient(135deg,#fffaf0,#f8e9bc)!important}
  .agent-wallet-actions button>svg,.agent-wallet-actions button>i{width:40px!important;height:40px!important;padding:9px!important;border-radius:12px!important;background:#f6efd9!important;color:#ae852c!important}
  .agent-wallet-actions button strong{font-size:13px!important;line-height:1.3!important}
  .agent-wallet-actions button small,.agent-wallet-actions button>span:not(:has(strong)){font-size:9px!important;line-height:1.35!important;color:#817969!important}
  .agent-wallet-actions button:after{content:"›";justify-self:end;color:#b18a34;font-size:22px;font-weight:400}
}

html.agent-action-page-mode,html.agent-action-page-mode body{overflow:auto!important;background:#fbf8f1!important}
html.agent-action-page-mode .agent-console,html.agent-action-page-mode .agent-wallet-float{visibility:hidden!important}
html.agent-action-page-mode .modal-backdrop{position:fixed!important;inset:0!important;z-index:10000!important;display:block!important;overflow:auto!important;padding:0!important;background:linear-gradient(180deg,#fbf8f1,#fffdf9)!important}
html.agent-action-page-mode .modal-backdrop>.modal{box-sizing:border-box!important;width:min(680px,100%)!important;min-height:100dvh!important;max-height:none!important;margin:0 auto!important;padding:calc(18px + env(safe-area-inset-top)) 18px calc(38px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#193052!important}
html.agent-action-page-mode .modal-close{position:static!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:auto!important;height:40px!important;margin:0 0 18px!important;padding:0 14px!important;border:1px solid #dfd1af!important;border-radius:13px!important;background:#fff!important;color:#193052!important;font-size:13px!important;box-shadow:0 5px 16px rgba(52,41,21,.05)!important}
html.agent-action-page-mode .modal-close svg{display:none!important}
html.agent-action-page-mode .modal-icon{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;margin:0 0 12px!important;border-radius:17px!important;background:linear-gradient(145deg,#f8edcb,#efd694)!important;color:#a67818!important}
html.agent-action-page-mode .modal>p{margin:0 0 5px!important;color:#887f70!important;font-size:11px!important;line-height:1.45!important}
html.agent-action-page-mode .modal>h2{margin:0 0 20px!important;color:#193052!important;font-size:25px!important;line-height:1.2!important}
html.agent-action-page-mode .modal>label{display:grid!important;gap:7px!important;margin:0 0 14px!important;color:#4a5361!important;font-size:12px!important;font-weight:700!important}
html.agent-action-page-mode .modal input,html.agent-action-page-mode .modal select{box-sizing:border-box!important;width:100%!important;height:52px!important;padding:0 14px!important;border:1px solid #dfd1af!important;border-radius:14px!important;background:#fff!important;color:#193052!important;font-size:15px!important;outline:none!important}
html.agent-action-page-mode .modal input:focus,html.agent-action-page-mode .modal select:focus{border-color:#c99d3f!important;box-shadow:0 0 0 3px rgba(201,157,63,.14)!important}
html.agent-action-page-mode .modal .input-with-suffix{position:relative!important}
html.agent-action-page-mode .modal .input-with-suffix span{position:absolute!important;right:13px!important;top:50%!important;transform:translateY(-50%)!important;padding:5px 8px!important;border-radius:8px!important;background:#f5ecd5!important;color:#9e751e!important;font-size:11px!important}
html.agent-action-page-mode .modal .notice{margin:6px 0 16px!important;padding:12px!important;border:1px solid #d7e7df!important;border-radius:13px!important;background:#f0faf6!important;color:#39705e!important;font-size:10px!important;line-height:1.55!important}
html.agent-action-page-mode .modal button.primary.full{width:100%!important;min-height:52px!important;border:0!important;border-radius:14px!important;background:linear-gradient(135deg,#d2ad58,#aa7d20)!important;color:#fff!important;font-size:15px!important;font-weight:800!important;box-shadow:0 10px 24px rgba(170,125,32,.2)!important}
html.agent-action-page-mode .agent-withdraw-google-field{display:none!important}
html.agent-action-page-mode .agent-send-withdraw-otp{width:100%!important;min-height:42px!important;margin-top:2px!important;border:1px solid #d7b75e!important;border-radius:12px!important;background:#fff8e7!important;color:#8d681b!important;font-weight:800!important}
html.agent-action-page-mode .agent-live-funds-result{margin:0 0 12px!important;padding:11px 12px!important;border:1px solid #e7d4a3!important;border-radius:12px!important;background:#fff9eb!important;color:#8f671a!important;font-size:11px!important;line-height:1.45!important}
html.agent-action-page-mode .agent-live-funds-result.success{border-color:#b9ddce!important;background:#eef9f4!important;color:#18775d!important}
.agent-player-funding-page{display:grid!important;align-content:start!important;gap:13px!important}
.agent-player-funding-page>.modal-close,.agent-player-funding-page>.modal-icon,.agent-player-funding-page>p,.agent-player-funding-page>h2,.agent-player-funding-page>label,.agent-player-funding-page>.notice,.agent-player-funding-page>.primary{margin:0!important}
.agent-funding-wallet-card{position:relative;min-height:104px;padding:20px 18px;display:flex;align-items:center;gap:14px;overflow:hidden;border:1px solid rgba(185,158,95,.48);border-radius:19px;background:linear-gradient(135deg,#eef0e6,#f8f2e4);box-shadow:0 10px 25px rgba(50,42,26,.07)}
.agent-funding-wallet-card:after{content:"";position:absolute;right:-30px;top:-44px;width:150px;height:150px;border:30px solid rgba(185,158,95,.14);border-radius:50%}
.agent-funding-wallet-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#193052;color:#f2d88d;font-size:25px}
.agent-funding-wallet-card div{position:relative;z-index:1;display:grid;gap:6px}.agent-funding-wallet-card small{color:#77766e;font-size:11px}.agent-funding-wallet-card strong{color:#193052;font-size:23px}
.agent-funding-methods{padding:14px;border:1px solid rgba(185,158,95,.42);border-radius:18px;background:#fffdf9;box-shadow:0 8px 22px rgba(50,42,26,.05)}
.agent-funding-methods h3{margin:0 0 12px;color:#193052;font-size:16px}
.agent-funding-methods button{box-sizing:border-box;width:100%;min-height:68px;margin:0 0 9px;padding:11px 12px;display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;border:1px solid #e4d7ba;border-radius:14px;background:linear-gradient(135deg,#fffdf9,#f8f1dd);color:#193052;text-align:left}
.agent-funding-methods button:last-child{margin-bottom:0}.agent-funding-methods button>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#f3e7c8;color:#a27b26;font-size:20px}.agent-funding-methods button>div{display:grid;gap:3px}.agent-funding-methods button strong{font-size:13px}.agent-funding-methods button small{color:#817969;font-size:9px;line-height:1.4}.agent-funding-methods button>b{font-size:22px;color:#aa812d}
.agent-funding-quick-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:-5px}
.agent-funding-quick-amounts button{min-width:0;min-height:38px;border:1px solid #dfd1af;border-radius:11px;background:#fffaf0;color:#8d681b;font-size:11px;font-weight:800}
.agent-player-funding-page>.notice{line-height:1.6!important}
.agent-player-funding-page>p:first-of-type,
.agent-player-funding-page>.notice{display:none!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-quick-amounts,
.agent-player-funding-page[data-funding-step="methods"]>.agent-send-withdraw-otp,
.agent-player-funding-page[data-funding-step="methods"]>.agent-live-funds-result,
.agent-player-funding-page[data-funding-step="methods"]>button.primary.full,
.agent-player-funding-page[data-funding-step="methods"]>label:not(:has(select)),
.agent-player-funding-page[data-funding-step="methods"]>.notice{display:none!important}
.agent-player-funding-page[data-funding-step="form"]>.agent-funding-methods{display:none!important}
.agent-player-funding-page[data-funding-step="form"]>.agent-funding-quick-amounts{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-top:-5px!important}
.agent-player-funding-page[data-funding-step="form"]>.agent-funding-wallet-card{min-height:82px!important;padding:14px 16px!important;border-radius:16px!important}
.agent-player-funding-page[data-funding-step="form"]>.agent-funding-wallet-card .agent-funding-wallet-icon{width:42px!important;height:42px!important;border-radius:13px!important}
.agent-player-funding-page[data-funding-step="form"]>.agent-funding-wallet-card strong{font-size:20px!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods{position:relative!important;padding-top:54px!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods:before,
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods:after{content:"";position:absolute;top:31px;width:calc(50% - 102px);height:1px;background:#d8c696}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods:before{left:14px}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods:after{right:14px}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods h3{position:absolute;top:20px;left:50%;margin:0!important;transform:translateX(-50%);white-space:nowrap;font-size:15px!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods button{min-height:82px!important;padding:13px 14px!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods button>span{width:48px!important;height:48px!important;border-radius:15px!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods button strong{font-size:15px!important}
.agent-player-funding-page[data-funding-step="methods"]>.agent-funding-methods button small{font-size:10px!important;line-height:1.45!important}
.agent-player-funding-page .agent-funding-methods button[hidden]{display:none!important}
@media(max-width:390px){html.agent-action-page-mode .modal-backdrop>.modal{padding-left:14px!important;padding-right:14px!important}}
