/* Font stylesheet external import removed to avoid blocking first paint on slow networks. */
:root{--blue:#246bfd;--blue-dark:#1552d5;--ink:#172033;--muted:#6b7280;--line:#e5eaf2;--bg:#f5f8fc;--green:#16a36a}
*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit;text-decoration:none}.auth-page{min-height:100vh;background:radial-gradient(circle at 10% 10%,#e6efff 0,transparent 34%),radial-gradient(circle at 90% 80%,#e5f8f0 0,transparent 30%),#f7f9fd;display:flex;align-items:center;justify-content:center;padding:28px 16px}.auth-shell{width:100%;max-width:440px}.brand{display:flex;align-items:center;gap:11px;font-family:Manrope,sans-serif;font-weight:800;font-size:19px;letter-spacing:-.5px;margin:0 auto 25px;width:max-content}.brand b{color:var(--blue)}.brand-mark{display:grid;place-items:center;width:39px;height:39px;background:linear-gradient(135deg,#347dff,#1552d5);color:#fff;border-radius:12px;font-size:22px;box-shadow:0 8px 18px #246bfd38}.auth-card{background:#fff;border:1px solid #e8edf5;border-radius:22px;padding:34px 32px;box-shadow:0 20px 55px #1720330c}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:800;color:var(--blue);margin-bottom:10px}.auth-card h1,.welcome h1{font-family:Manrope,sans-serif;font-size:27px;letter-spacing:-1px;margin:0 0 9px;font-weight:800}.muted{color:var(--muted);font-size:13px;line-height:1.7;margin:0 0 24px}.auth-card form{display:flex;flex-direction:column}.auth-card label{font-size:12px;font-weight:700;margin:0 0 8px}.auth-card input{width:100%;height:47px;border:1px solid #dfe5ef;border-radius:10px;padding:0 13px;font:inherit;font-size:13px;outline:none;background:#fff;margin-bottom:17px;transition:border .2s,box-shadow .2s}.auth-card input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #246bfd17}.password-wrap{position:relative}.password-wrap input{padding-right:86px}.toggle-pass{position:absolute;right:9px;top:8px;border:0;background:#f1f5fb;color:#526078;padding:7px 9px;border-radius:7px;font-size:11px;font-weight:700;cursor:pointer}.primary-btn{height:48px;background:var(--blue);color:#fff;border:0;border-radius:10px;padding:0 16px;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:background .2s,transform .2s}.primary-btn:hover{background:var(--blue-dark);transform:translateY(-1px)}.full{width:100%;margin-top:4px}.primary-btn span{font-size:19px}.switch-auth{text-align:center;font-size:12px;color:var(--muted);margin:23px 0 19px}.switch-auth a{color:var(--blue);font-weight:700}.secure-note{text-align:center;border-top:1px solid #eef1f6;padding-top:17px;color:#8791a2;font-size:10px}.secure-note span{color:var(--green);font-size:9px;margin-right:5px}.footer-note{text-align:center;color:#8b95a5;font-size:10px;margin:20px 0 0}.alert{padding:11px 12px;border-radius:9px;font-size:12px;margin:0 0 17px;line-height:1.5}.alert.error{background:#fff0f0;color:#b42318;border:1px solid #ffd8d5}.alert.success{background:#edfbf3;color:#16794b;border:1px solid #c9f0d9}
.dashboard-page{min-height:100vh;background:#f6f8fc}.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100% - 1050px)/2))}.topbar .brand{margin:0}.logout{font-size:12px;font-weight:700;color:#566176;background:#f2f5fa;padding:10px 14px;border-radius:9px}.dash-main{max-width:1050px;margin:42px auto;padding:0 22px}.welcome h1{font-size:30px}.welcome .muted{margin-bottom:24px}.balance-card{background:linear-gradient(120deg,#1556dc,#347cff);color:#fff;border-radius:19px;padding:28px 30px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 13px 30px #246bfd27;margin-bottom:32px}.balance-label{font-size:12px;color:#dce8ff}.balance-amount{font-family:Manrope,sans-serif;font-size:32px;font-weight:800;margin:7px 0}.balance-card small{font-size:10px;color:#dce8ff}.balance-icon{width:48px;height:48px;border:1px solid #ffffff65;border-radius:15px;display:grid;place-items:center;font-size:25px}.dash-main h2{font-family:Manrope,sans-serif;font-size:18px;margin:0 0 15px}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.feature-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px;min-height:150px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.feature-card[aria-disabled=true]{cursor:default}.feature-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-size:21px;font-style:normal}.feature-icon.blue{background:#eaf1ff;color:#246bfd}.feature-icon.green{background:#e5f8ef;color:#15965e}.feature-icon.violet{background:#f0eaff;color:#7953d5}.feature-icon.orange{background:#fff0e3;color:#d97721}.feature-card b{font-size:12px}.feature-card small{font-size:10px;color:var(--muted)}.feature-card em{font-size:9px;color:#7b8799;font-style:normal;margin-top:auto}.info-panel{margin-top:24px;background:#fff;border:1px solid var(--line);padding:20px;border-radius:14px;font-size:12px}.info-panel p{color:var(--muted);line-height:1.7;margin:8px 0 0}
@media(max-width:650px){.auth-card{padding:28px 22px;border-radius:18px}.auth-card h1{font-size:24px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dash-main{margin:28px auto;padding:0 16px}.topbar{height:65px;padding:0 16px}.topbar .brand{font-size:16px}.brand-mark{width:35px;height:35px}.balance-card{padding:22px 20px}.balance-amount{font-size:28px}.welcome h1{font-size:25px}}

/* Drawer navigation inspired by the provided mobile reference */
.menu-trigger{width:40px;height:40px;border:0;background:#f0f4fb;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}.menu-trigger span{width:17px;height:2px;border-radius:2px;background:#34415a}.avatar-trigger{width:39px;height:39px;border-radius:50%;border:2px solid #dce7ff;background:#eaf1ff;color:#205bd9;font-weight:800;cursor:pointer}.topbar{gap:14px}.topbar .brand{margin-right:auto}.drawer-backdrop{position:fixed;inset:0;background:#10182870;z-index:20;opacity:0;visibility:hidden;transition:.22s}.drawer-backdrop.open{opacity:1;visibility:visible}.side-drawer{position:fixed;z-index:21;left:0;top:0;bottom:0;width:min(340px,84vw);background:#fff;box-shadow:15px 0 45px #10182820;transform:translateX(-105%);transition:transform .25s ease;display:flex;flex-direction:column;overflow-y:auto}.side-drawer.open{transform:translateX(0)}.drawer-head{height:72px;padding:0 21px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef1f6;flex-shrink:0}.drawer-head .brand{font-size:17px;margin:0}.drawer-head .brand-mark{width:34px;height:34px;font-size:19px}.close-drawer{border:0;background:#f2f5fa;width:33px;height:33px;border-radius:9px;font-size:23px;color:#5a6475;cursor:pointer}.account-card{margin:18px 18px 13px;padding:20px 15px 16px;border-radius:17px;background:linear-gradient(135deg,#315f7d,#51447d);color:#fff;text-align:center;display:flex;align-items:center;flex-direction:column;box-shadow:0 10px 24px #293c6028}.profile-avatar{display:grid;place-items:center;width:62px;height:62px;border:3px solid #ffffff6b;border-radius:50%;background:#ffffff24;font-size:25px;font-weight:800;margin-bottom:10px}.account-card strong{font-size:17px}.account-email{font-size:11px;color:#e1e8f7;margin-top:4px;max-width:100%;overflow-wrap:anywhere}.account-balance-label{font-size:11px;color:#e1e8f7;margin-top:16px}.account-balance{font-family:Manrope,sans-serif;font-size:27px;font-weight:800;margin:2px 0 13px}.account-actions{display:flex;gap:9px;width:100%}.account-actions a{flex:1;background:#ffffff28;border:1px solid #ffffff35;padding:10px 7px;border-radius:10px;font-size:12px;font-weight:700}.side-nav{padding:0 13px 15px;display:flex;flex-direction:column;gap:4px}.side-nav>a,.nav-expand,.drawer-bottom>a{min-height:48px;padding:0 14px;display:flex;align-items:center;gap:12px;border:0;border-radius:10px;background:transparent;text-align:left;color:#303947;font:600 14px 'DM Sans',sans-serif;cursor:pointer}.side-nav>a:hover,.nav-expand:hover,.drawer-bottom>a:hover{background:#f2f6ff}.side-nav>a.active{background:linear-gradient(100deg,#7488f4,#9a5be8);color:#fff;box-shadow:0 4px 10px #7d6ce52c}.nav-icon{width:23px;display:inline-grid;place-items:center;font-size:21px;font-weight:700;flex-shrink:0}.nav-expand{width:100%;background:linear-gradient(100deg,#078bc5,#08a9e8);color:#fff;margin-top:5px;box-shadow:0 5px 14px #079bd52a}.nav-expand .chevron{margin-left:auto;font-size:19px;transition:transform .2s}.nav-expand[aria-expanded=true] .chevron{transform:rotate(180deg)}.nav-submenu{padding:5px 0 4px 35px;display:flex;flex-direction:column;gap:2px}.nav-submenu[hidden]{display:none}.nav-submenu a{padding:10px 12px;border-radius:8px;font-size:12px;color:#566176}.nav-submenu a:hover,.nav-submenu a.sub-active{background:#eef4ff;color:#205bd9;font-weight:700}.drawer-bottom{margin-top:auto;padding:12px 13px 18px;border-top:1px solid #eef1f6}.drawer-bottom>a{color:#bd3333}.content-panel{background:#fff;border:1px solid var(--line);border-radius:17px;padding:26px;max-width:720px;box-shadow:0 8px 24px #17203308}.content-panel h2{margin:10px 0;font-size:19px}.content-panel>p{color:var(--muted);font-size:13px;line-height:1.7}.profile-large,.placeholder-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#eaf1ff;color:#246bfd;font-size:27px;font-weight:800}.detail-row{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #edf0f5;font-size:12px}.detail-row span{color:var(--muted)}.detail-row strong{text-align:right;overflow-wrap:anywhere}.notice{margin-top:18px;padding:13px 14px;border-radius:10px;background:#f1f6ff;color:#45618f;font-size:12px;line-height:1.7}.status-pill{display:inline-block;margin-top:20px;padding:7px 10px;border-radius:30px;background:#fff4df;color:#9a6816;font-size:10px;font-weight:700}.form-row{display:flex;flex-direction:column;gap:9px;margin-top:20px;max-width:400px}.form-row label{font-size:12px;font-weight:700}.form-row input{height:44px;border:1px solid var(--line);border-radius:9px;padding:0 12px;font:inherit;margin-bottom:8px}.form-row .primary-btn{justify-content:center}.code-sample{background:#172033;color:#d8e5ff;padding:17px;border-radius:10px;font:12px/1.8 monospace;margin-top:18px;overflow-wrap:anywhere}
@media(min-width:900px){.side-drawer{width:320px}.dash-main{padding-left:24px;padding-right:24px}}@media(max-width:650px){.menu-trigger{width:36px;height:36px}.content-panel{padding:20px}.drawer-head{height:64px}.account-card{margin:14px 15px 10px}.side-nav>a,.nav-expand{min-height:46px}.dash-main{margin:27px auto}}

.table-wrap{width:100%;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:13px;margin-top:12px}.table-wrap table{width:100%;border-collapse:collapse;min-width:620px;font-size:12px}.table-wrap th,.table-wrap td{text-align:left;padding:13px 14px;border-bottom:1px solid #edf0f5;white-space:nowrap}.table-wrap th{background:#f8faff;color:#5b6577;font-size:11px}.table-wrap tr:last-child td{border-bottom:0}.key-box,.code-sample{overflow-wrap:anywhere}.inline-actions{display:flex;gap:5px}.mini-btn{border:0;border-radius:7px;padding:7px 9px;background:#e7f8ef;color:#16794b;font-weight:700;font-size:10px;cursor:pointer}.mini-btn.danger{background:#fff0ef;color:#b42318}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.stat-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:13px;display:flex;flex-direction:column;gap:8px}.stat-card span{font-size:11px;color:var(--muted)}.stat-card b{font:800 23px Manrope,sans-serif}

/* VISUAL FIX v3: make drawer a true overlay and show a clear three-dot menu */
.topbar{position:sticky;top:0;z-index:15;display:flex!important;align-items:center!important;gap:13px!important;background:#fff!important;padding:0 16px!important;height:72px!important;border-bottom:1px solid #e6eaf1!important}
.menu-trigger{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;padding:0!important;border:1px solid #e4e9f2!important;border-radius:12px!important;background:#f6f8fc!important;color:#27364d!important;cursor:pointer!important}
.menu-trigger span{display:block!important;font-family:Arial,sans-serif!important;font-size:34px!important;line-height:20px!important;font-weight:700!important;width:auto!important;height:auto!important;background:transparent!important}
.topbar .brand{display:flex!important;align-items:center!important;gap:10px!important;margin:0 auto 0 0!important;font-size:17px!important;white-space:nowrap!important}
.logout{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important}
.side-drawer{position:fixed!important;inset:0 auto 0 0!important;width:min(390px,88vw)!important;height:100dvh!important;z-index:1001!important;background:#fff!important;box-shadow:15px 0 45px #10182830!important;transform:translateX(-110%)!important;transition:transform .25s ease!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;visibility:visible!important}
.side-drawer.open{transform:translateX(0)!important}
.drawer-backdrop{position:fixed!important;inset:0!important;background:rgba(15,23,42,.48)!important;z-index:1000!important;opacity:0!important;visibility:hidden!important;transition:opacity .2s ease!important}
.drawer-backdrop.open{opacity:1!important;visibility:visible!important}
.drawer-head{display:flex!important;flex-shrink:0!important;align-items:center!important;justify-content:space-between!important;padding:0 18px!important;height:68px!important;border-bottom:1px solid #edf0f5!important}
.account-card{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;margin:17px 16px 12px!important;padding:20px 15px 16px!important;border-radius:18px!important;background:linear-gradient(135deg,#315f7d,#51447d)!important;color:white!important}
.side-nav{display:flex!important;flex-direction:column!important;gap:4px!important;padding:0 13px 16px!important}
.side-nav>a,.nav-expand,.drawer-bottom>a{display:flex!important;align-items:center!important;gap:12px!important;min-height:48px!important;padding:0 14px!important;border-radius:10px!important;font-size:14px!important;line-height:1.3!important;text-decoration:none!important}
.nav-expand{width:100%!important;border:0!important;background:linear-gradient(100deg,#078bc5,#08a9e8)!important;color:#fff!important;text-align:left!important}
.nav-submenu{display:flex!important;flex-direction:column!important;padding:5px 0 5px 34px!important;gap:3px!important}
.nav-submenu[hidden]{display:none!important}
.drawer-bottom{margin-top:auto!important;padding:12px 13px 18px!important;border-top:1px solid #edf0f5!important}
.dash-main{max-width:1050px!important;margin:30px auto!important;padding:0 18px 35px!important;min-width:0!important}
.content-panel{max-width:100%!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:16px!important;padding:22px!important}
.form-row{display:flex!important;flex-direction:column!important;gap:9px!important;max-width:460px!important;margin-top:18px!important}
.form-row label{font-size:13px!important;font-weight:700!important}
.form-row input{width:100%!important;height:46px!important;border:1px solid #dce3ef!important;border-radius:10px!important;padding:0 13px!important;font:inherit!important;font-size:14px!important;margin:0 0 8px!important;background:#fff!important}
.form-row .primary-btn{width:100%!important;min-height:47px!important;justify-content:center!important}
.table-wrap{display:block!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
.table-wrap table{min-width:600px!important;border-collapse:collapse!important}
@media(max-width:650px){.topbar{height:66px!important;padding:0 12px!important;gap:9px!important}.topbar .brand{font-size:15px!important}.brand-mark{width:35px!important;height:35px!important}.logout{padding:9px 11px!important;font-size:11px!important}.dash-main{margin:24px auto!important;padding:0 14px 28px!important}.content-panel{padding:18px!important}.side-drawer{width:min(370px,88vw)!important}}

/* Drawer refinement v4 */
.side-drawer{width:min(350px,86vw)!important;max-height:100dvh!important}
.drawer-head{height:62px!important;padding:0 16px!important}
.drawer-head .brand{font-size:16px!important;gap:8px!important}
.drawer-head .brand-mark{width:32px!important;height:32px!important;border-radius:10px!important;font-size:18px!important}
.close-drawer{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border-radius:10px!important;background:#f2f5fa!important;font-size:22px!important}
.account-card{margin:13px 14px 10px!important;padding:16px 13px 13px!important;border-radius:16px!important;box-shadow:0 7px 18px #293c601c!important}
.profile-avatar{width:52px!important;height:52px!important;font-size:21px!important;margin-bottom:8px!important}
.account-card strong{font-size:15px!important;line-height:1.3!important}
.account-email{font-size:10px!important;margin-top:3px!important}
.account-balance-label{font-size:10px!important;margin-top:11px!important}
.account-balance{font-size:25px!important;margin:0 0 10px!important}
.account-actions{gap:8px!important}
.account-actions a{padding:9px 6px!important;font-size:11px!important;border-radius:9px!important}
.side-nav{padding:0 11px 12px!important;gap:3px!important}
.side-nav>a,.nav-expand,.drawer-bottom>a{min-height:43px!important;padding:0 12px!important;gap:10px!important;border-radius:9px!important;font-size:13px!important;font-weight:600!important}
.nav-icon{width:22px!important;font-size:18px!important}
.nav-expand{margin-top:3px!important}
.nav-submenu{padding:3px 0 4px 30px!important;gap:1px!important}
.nav-submenu a{padding:9px 10px!important;font-size:11px!important}
.drawer-bottom{padding:10px 11px 12px!important}
.drawer-backdrop{background:rgba(18,27,43,.42)!important}
@media(max-height:760px){
 .drawer-head{height:55px!important;flex-shrink:0!important}
 .account-card{margin:9px 12px 7px!important;padding:11px!important}
 .profile-avatar{width:42px!important;height:42px!important;margin-bottom:5px!important}
 .account-balance-label{margin-top:7px!important}
 .account-balance{font-size:22px!important;margin-bottom:7px!important}
 .account-actions a{padding:7px 5px!important}
 .side-nav>a,.nav-expand,.drawer-bottom>a{min-height:39px!important}
}
@media(max-width:390px){
 .side-drawer{width:88vw!important}
 .topbar .brand{font-size:14px!important}
 .drawer-head{padding:0 13px!important}
 .account-card{margin-left:11px!important;margin-right:11px!important}
}

/* Hide logout controls per requested UI */
.logout,.drawer-bottom{display:none!important}

.form-row select{width:100%;height:46px;border:1px solid #dce3ef;border-radius:10px;padding:0 13px;font:inherit;font-size:14px;background:#fff;margin:0 0 8px}
.checkbox-label{display:flex!important;align-items:center;gap:10px;line-height:1.5}
.checkbox-label input{width:18px!important;height:18px!important;margin:0!important;flex-shrink:0}
.payment-qr{display:block;width:min(260px,100%);height:auto;aspect-ratio:1;object-fit:contain;margin:18px auto;border:1px solid #e5eaf2;border-radius:12px;background:white}
.payment-link{display:flex!important;align-items:center;justify-content:center!important;max-width:360px;text-align:center;margin:15px 0}
.payment-box{margin:18px 0}

/* Dashboard summary inspired by the user's reference screenshot */
.dash-welcome{display:flex;align-items:center;justify-content:space-between;margin:0 0 24px;padding:0 2px}.dash-welcome h1{font-family:Manrope,sans-serif;font-size:24px;letter-spacing:-.7px;margin:4px 0 3px}.dash-welcome p{font-size:12px;color:var(--muted);margin:0}.dash-kicker{font-size:9px;font-weight:800;letter-spacing:1.6px;color:#3477ed}.dash-avatar{width:43px;height:43px;display:grid;place-items:center;border:3px solid #dce8ff;outline:1px solid #8aaeff;background:linear-gradient(135deg,#3b82f6,#5847ce);border-radius:50%;color:white;font-weight:800;font-size:17px;flex-shrink:0}
.balance-summary{display:grid;grid-template-columns:1fr;gap:20px;margin-bottom:28px}.summary-card{position:relative;isolation:isolate;overflow:hidden;min-height:146px;border-radius:25px;padding:25px 27px;display:flex;align-items:center;color:#fff;box-shadow:0 12px 28px rgba(25,43,76,.12)}.summary-total{background:linear-gradient(115deg,#3990f4 0%,#1554c9 100%)}.summary-pending{background:linear-gradient(115deg,#ff9900 0%,#e35a00 100%)}.summary-available{background:linear-gradient(115deg,#1ec69a 0%,#0b9e7c 100%)}.summary-copy{position:relative;z-index:2;display:flex;flex-direction:column;gap:12px}.summary-copy strong{font:800 clamp(27px,5vw,42px)/1.1 Manrope,sans-serif;letter-spacing:-1.1px}.summary-copy span{font-size:clamp(11px,2.5vw,15px);font-weight:800;letter-spacing:1.5px}.summary-watermark{position:absolute;z-index:0;right:12px;top:-25px;width:160px;height:160px;border-radius:50%;display:grid;place-items:center;font-size:78px;color:#fff;opacity:.16;background:radial-gradient(circle at 30% 70%,#fff 0 24%,transparent 25%),radial-gradient(circle at 72% 28%,#fff 0 42%,transparent 43%);transform:rotate(-12deg)}
.activity-panel{background:#fff;border:1px solid #edf0f5;border-radius:25px;overflow:hidden;box-shadow:0 10px 25px rgba(24,39,75,.035)}.activity-heading{display:flex;align-items:center;gap:12px;padding:24px 25px;border-bottom:1px solid #edf0f5}.activity-heading h2{margin:0;font:800 clamp(15px,3vw,22px)/1.3 Manrope,sans-serif;letter-spacing:-.4px;color:#334155}.activity-icon{color:#1682ed;font-size:24px;font-weight:800}.chart-wrap{padding:25px 25px 30px;min-height:350px}.chart-legend{display:flex;align-items:center;justify-content:center;gap:18px;margin:0 0 16px;font-size:12px;font-weight:700;color:#687386}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{display:inline-block;width:35px;height:12px}.legend-blue{background:#62a0f2}.legend-green{background:#4acba9}.chart-y-labels{position:absolute;left:0;top:0;bottom:27px;width:58px;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding-right:8px;color:#7b8492;font-size:10px}.chart-wrap{position:relative}.chart-plot{position:relative;margin-left:61px;height:245px;border-bottom:1px solid #cfd6df}.chart-gridline{position:absolute;left:0;right:0;border-top:1px solid #e4e8ee}.chart-bars{position:absolute;inset:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:stretch}.chart-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:stretch;min-width:0}.bar-pair{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px;padding:0 3px}.chart-bar{display:block;width:min(20px,35%);min-height:0;border-radius:7px 7px 0 0;position:relative;z-index:1}.bar-topup{background:#62a0f2}.bar-withdraw{background:#4acba9}.chart-day small{position:absolute;top:calc(100% + 12px);left:50%;transform:translateX(-50%) rotate(-32deg);transform-origin:top center;white-space:nowrap;color:#707b8d;font-size:10px}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.dashboard-shortcuts a{background:#fff;border:1px solid #e9eef5;border-radius:12px;padding:14px 12px;text-align:center;color:#245bd6;font-size:12px;font-weight:800}.dashboard-footer{text-align:center;color:#778195;font-size:12px;font-weight:700;margin:36px 0 8px;line-height:1.7}.dashboard-footer b{color:#3d75e8}.dashboard-footer span{font-weight:400}
@media(min-width:700px){.balance-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.summary-card{min-height:190px;padding:22px}.summary-copy strong{font-size:clamp(24px,2.8vw,34px)}.summary-copy span{font-size:10px;letter-spacing:1px}.summary-watermark{right:-18px;top:4px;width:100px;height:100px;font-size:48px}.chart-plot{height:280px}.chart-wrap{padding:28px 32px 36px}}
@media(max-width:430px){.dash-main{margin:20px auto!important;padding:0 14px 26px!important}.dash-welcome{margin-bottom:20px}.dash-welcome h1{font-size:21px}.balance-summary{gap:17px;margin-bottom:22px}.summary-card{min-height:145px;padding:23px 22px;border-radius:23px}.summary-copy strong{font-size:31px}.summary-copy span{font-size:12px;letter-spacing:1.2px}.summary-watermark{right:-8px;width:130px;height:130px;font-size:60px}.activity-panel{border-radius:22px}.activity-heading{padding:20px 18px;gap:9px}.activity-heading h2{font-size:15px}.chart-wrap{padding:23px 14px 35px;min-height:330px}.chart-legend{font-size:10px;gap:12px}.chart-legend i{width:28px;height:10px}.chart-y-labels{width:48px;font-size:9px;padding-right:6px}.chart-plot{margin-left:51px;height:225px}.chart-bar{width: min(16px,36%);}.chart-day small{font-size:9px}.dashboard-shortcuts{grid-template-columns:1fr;gap:8px}.dashboard-shortcuts a{padding:12px}}
.page-dashboard>.dash-main>.welcome{display:none!important}.page-dashboard .topbar{justify-content:space-between!important}.page-dashboard .topbar .brand{display:none!important}.page-dashboard .menu-trigger{margin-right:auto!important}.topbar-avatar{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;border-radius:50%;border:3px solid #e5edff;outline:1px solid #91b2ff;background:linear-gradient(135deg,#3d82f6,#5a4bce);color:#fff;font-weight:800;font-size:15px}.page-dashboard .menu-trigger span{font-size:22px!important;line-height:1!important}.balance-explainer{font-size:11px;line-height:1.65;color:#778195;margin:-10px 2px 17px}.chart-area{position:relative;padding-left:0}.chart-area .chart-y-labels{left:0;top:0;bottom:27px}.chart-area .chart-plot{margin-left:61px}.chart-wrap{min-height:0!important}
@media(max-width:430px){.page-dashboard .topbar{height:66px!important;padding:0 18px!important}.page-dashboard .menu-trigger{border:0!important;background:transparent!important;flex-basis:30px!important;width:30px!important;height:36px!important}.page-dashboard .menu-trigger span{font-size:22px!important}.topbar-avatar{width:37px;height:37px;flex-basis:37px}.chart-area .chart-plot{margin-left:51px}.chart-area .chart-y-labels{width:48px}}


/* Top up page styling based on the supplied mobile reference */
.topup-page{max-width:900px;margin:0 auto;padding-bottom:26px}.topup-form-panel,.topup-history-panel{background:#fff;border:1px solid #edf0f5;border-radius:26px;padding:30px 28px;margin:0 0 22px;box-shadow:0 10px 30px rgba(24,39,75,.035)}.topup-title{display:flex;align-items:center;justify-content:center;gap:12px;font:800 clamp(22px,3vw,30px)/1.25 Manrope,sans-serif;letter-spacing:-.6px;text-align:center;margin:7px 0 40px;color:#202633}.topup-title span{color:#1682ed;font-size:32px}.topup-form{display:flex;flex-direction:column}.topup-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 20px;margin:0 14px 43px}.topup-preset{min-height:91px;border:2px solid #e1e5eb;border-radius:25px;background:#f8f9fb;color:#52565d;font:800 23px Manrope,sans-serif;cursor:pointer;transition:all .18s}.topup-preset:hover,.topup-preset.selected{border-color:#8193ff;background:#f0f2ff;color:#315de0;box-shadow:0 4px 14px #526bdf18}.topup-manual-label{font:800 18px Manrope,sans-serif;color:#747c87;margin:0 14px 16px}.topup-amount-input{width:calc(100% - 28px);margin:0 14px 40px;min-height:80px;border:2px solid #e1e5eb;border-radius:24px;background:#f8f9fb;padding:0 20px;text-align:center;font:700 23px Manrope,sans-serif;color:#303847;outline:none}.topup-amount-input:focus{border-color:#8193ff;box-shadow:0 0 0 4px #8193ff20}.topup-amount-input::placeholder{color:#9aa0a8}.topup-submit{width:calc(100% - 28px);min-height:76px;margin:0 14px;border:0;border-radius:24px;background:linear-gradient(110deg,#7288f8,#9b62e8);box-shadow:0 10px 22px #8b75ed25;display:flex;align-items:center;justify-content:center;gap:12px;font:800 20px Manrope,sans-serif}.topup-submit:hover{background:linear-gradient(110deg,#627af0,#8d55dc)}.topup-submit span{font-size:25px}.topup-min-note{text-align:center;color:#9098a5;font-size:11px;margin:14px 0 0}.topup-history-panel{padding:30px 28px 24px}.topup-history-title{display:flex;align-items:center;gap:12px;font:800 clamp(22px,3vw,29px)/1.3 Manrope,sans-serif;letter-spacing:-.5px;margin:4px 0 54px;color:#202633}.topup-history-title span{font-size:31px;color:#7b8490}.topup-history-wrap{overflow-x:auto;border-radius:12px}.topup-history-table{width:100%;min-width:600px;border-collapse:separate;border-spacing:0 12px}.topup-history-table th{padding:10px 13px;text-align:left;color:#747b85;font:800 13px Manrope,sans-serif}.topup-history-table td{padding:18px 13px;background:#f8f9fb;font-size:14px;vertical-align:top}.topup-history-table td:first-child{border-radius:13px 0 0 13px}.topup-history-table td:last-child{border-radius:0 13px 13px 0}.topup-invoice{color:#1682ed;font-weight:800;overflow-wrap:anywhere;max-width:160px}.topup-status{display:inline-block;border-radius:20px;padding:6px 9px;font-size:11px;font-weight:800;white-space:nowrap}.topup-status.is-success{background:#e4f8ee;color:#138652}.topup-status.is-pending{background:#fff3d8;color:#a66a00}.topup-pay-link{color:#2167d9;font-weight:800;white-space:nowrap}.topup-pay-again{border:0;border-radius:10px;padding:9px 14px;background:linear-gradient(110deg,#2869ef,#7659e8);color:#fff;font:800 12px Manrope,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:0 4px 10px rgba(49,94,220,.16)}.topup-pay-again:active{transform:scale(.98)}.topup-empty{padding:30px 10px;text-align:center;color:#818998;font-size:13px}.topup-total{color:#7b8490;font-size:14px}.topup-payment-result{margin-bottom:22px}.topup-payment-result .muted{margin-bottom:14px}
@media(max-width:600px){.topup-page{padding-bottom:18px}.topup-form-panel,.topup-history-panel{padding:25px 16px 24px;border-radius:25px;margin-bottom:18px}.topup-title{font-size:23px;margin:5px 0 39px;gap:10px}.topup-title span{font-size:29px}.topup-presets{gap:19px 14px;margin:0 10px 42px}.topup-preset{min-height:84px;border-radius:23px;font-size:20px;padding:5px}.topup-manual-label{font-size:16px;margin:0 10px 15px}.topup-amount-input{width:calc(100% - 20px);margin:0 10px 40px;min-height:78px;border-radius:23px;font-size:21px}.topup-submit{width:calc(100% - 20px);margin:0 10px;min-height:76px;border-radius:23px;font-size:18px}.topup-history-panel{padding-top:27px}.topup-history-title{font-size:23px;margin:4px 0 48px;gap:10px}.topup-history-table th{font-size:12px}.topup-history-table td{padding:15px 12px;font-size:13px}}

/* Sidebar width tuned to the supplied three-dot drawer reference */
.side-drawer{width:clamp(235px,62vw,350px)!important;max-width:calc(100vw - 36px)!important}
@media(min-width:900px){.side-drawer{width:320px!important}}
@media(max-width:390px){.side-drawer{width:clamp(225px,62vw,320px)!important;max-width:calc(100vw - 28px)!important}}

/* QRIS invoice modal: tampil di tengah viewport, bukan inline di alur halaman */
.qris-modal-backdrop{position:fixed!important;inset:0!important;z-index:10000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(15,23,42,.62)!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);overflow-y:auto;opacity:1;visibility:visible;box-sizing:border-box}
.qris-modal-card{position:relative!important;width:min(100%,520px)!important;max-width:520px!important;max-height:calc(100dvh - 36px)!important;margin:auto!important;padding:28px 24px 24px!important;overflow-y:auto!important;overscroll-behavior:contain;box-sizing:border-box;border-radius:24px!important;background:#fff!important;box-shadow:0 24px 80px rgba(0,0,0,.28)!important;animation:qrisModalIn .18s ease-out}
.qris-modal-close{position:sticky;float:right;top:0;display:flex;align-items:center;justify-content:center;width:38px;height:38px;margin:-10px -8px 8px 8px;border:0;border-radius:12px;background:#f1f4f9;color:#263244;font-size:28px;line-height:1;cursor:pointer;z-index:2}
.qris-modal-card h2{clear:both;margin:14px 0 12px;font-size:clamp(21px,5vw,27px);line-height:1.3;color:#1d2738}
.qris-modal-card .status-pill{display:inline-flex;max-width:calc(100% - 48px);padding:10px 14px;border-radius:24px;background:#fff3d8;color:#9a6a10;font-size:12px;font-weight:800}
.qris-modal-card .payment-qr{display:block;width:min(100%,360px)!important;height:auto!important;max-height:42dvh;object-fit:contain;margin:20px auto;border:1px solid #e5e9f0;border-radius:16px;padding:8px;background:#fff;box-sizing:border-box}
.qris-modal-card .muted{color:#747d8b;line-height:1.7;overflow-wrap:anywhere}
.qris-modal-card .topup-total{font-size:15px;margin:18px 0;color:#747d8b}
body.qris-modal-open{overflow:hidden!important;touch-action:pan-y}
.qris-modal-backdrop.is-closing{opacity:0;visibility:hidden;transition:opacity .12s ease,visibility .12s ease}
@keyframes qrisModalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.qris-modal-backdrop{padding:12px!important;align-items:center!important}.qris-modal-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 24px)!important;padding:22px 18px 20px!important;border-radius:22px!important}.qris-modal-card .payment-qr{width:min(100%,320px)!important;max-height:38dvh;margin:16px auto}.qris-modal-card h2{font-size:22px}.qris-modal-card .muted{font-size:14px}}

/* Profile photo upload */
.profile-photo-editor{display:flex;flex-direction:column;align-items:center;gap:10px;padding:6px 0 14px;margin-bottom:4px}.profile-photo-preview{width:104px;height:104px;object-fit:cover;border-radius:50%;border:3px solid #e2eaff;box-shadow:0 5px 18px #263d6b20}.profile-photo-initial{display:grid;place-items:center;background:linear-gradient(135deg,#3d82f6,#5a4bce);color:#fff;font-size:38px;font-weight:800}.photo-upload-label{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 18px;border-radius:10px;background:#eef4ff;color:#245fd4;font-size:13px;font-weight:800;cursor:pointer}.photo-upload-label:hover{background:#e1ebff}.photo-file-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;opacity:0!important}.photo-file-input:focus-visible+.profile-photo-editor .photo-upload-label{outline:3px solid #b7caff;outline-offset:3px}.profile-photo-editor p{margin:0;color:var(--muted);font-size:11px;text-align:center}.topbar-avatar{overflow:hidden}.topbar-avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.profile-avatar{overflow:hidden}.profile-edit-panel .form-row{max-width:none;margin-top:0}.profile-edit-panel .form-row input{box-sizing:border-box;width:100%}
[hidden]{display:none!important}

/* Nexapay Top Up refresh: compact, polished, mobile-first */
.topup-page{max-width:760px;margin:0 auto;padding:4px 0 28px}
.topup-form-panel,.topup-history-panel{border:1px solid #e9edf5;border-radius:24px;padding:28px 26px 25px;background:linear-gradient(180deg,#fff 0%,#fdfdff 100%);box-shadow:0 12px 34px rgba(28,43,75,.055)}
.topup-title{justify-content:flex-start;text-align:left;font-size:clamp(22px,3vw,28px);margin:0 0 28px;gap:11px;letter-spacing:-.7px}
.topup-title span{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:#edf5ff;color:#2374e8;font-size:24px}
.topup-presets{gap:14px;margin:0 0 28px}
.topup-preset{min-height:68px;border:1.5px solid #e2e7ef;border-radius:18px;background:#f8faff;color:#3f4858;font-size:clamp(15px,2.6vw,20px);box-shadow:0 2px 5px rgba(31,45,71,.025)}
.topup-preset:hover,.topup-preset.selected{border-color:#6385f4;background:linear-gradient(180deg,#f2f5ff,#eaf0ff);color:#245bd6;box-shadow:0 5px 14px rgba(67,100,220,.12)}
.topup-manual-label{font-size:15px;margin:0 0 10px;color:#596579}
.topup-amount-input{width:100%;margin:0 0 22px;min-height:58px;border:1.5px solid #e1e7f0;border-radius:16px;background:#fbfcff;padding:0 16px;text-align:left;font-size:18px;box-sizing:border-box}
.topup-amount-input:focus{border-color:#6c86f5;box-shadow:0 0 0 4px rgba(108,134,245,.12);background:#fff}
.topup-submit{width:100%;min-height:60px;margin:0;border-radius:17px;background:linear-gradient(110deg,#477cf4 0%,#7558e8 100%);box-shadow:0 8px 18px rgba(92,103,228,.2);font-size:17px;letter-spacing:.05px}
.topup-submit:hover{background:linear-gradient(110deg,#376be5 0%,#6849db 100%);transform:translateY(-1px)}
.topup-submit:active{transform:scale(.99)}
.topup-submit span{font-size:21px}
.topup-min-note{font-size:12px;margin:11px 0 0;color:#8993a4}
.topup-history-panel{padding:25px 24px 22px}
.topup-history-title{font-size:22px;margin:0 0 22px;gap:10px}
.topup-history-title span{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:12px;background:#f1f4f9;color:#6e7b90;font-size:22px}
.topup-history-table{min-width:520px;border-spacing:0 8px}
.topup-history-table th{font-size:11px;letter-spacing:.25px;padding:10px 11px}
.topup-history-table td{padding:13px 11px;font-size:13px}
.topup-empty{padding:24px 12px;border:1px dashed #e0e6ef;border-radius:14px;background:#fafbfe}
@media(max-width:600px){
 .topup-page{padding:0 0 18px}
 .topup-form-panel,.topup-history-panel{padding:22px 17px 20px;border-radius:21px;margin-bottom:16px}
 .topup-title{font-size:22px;margin:0 0 23px;gap:10px}
 .topup-title span{width:38px;height:38px;border-radius:12px;font-size:22px}
 .topup-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:0 0 24px}
 .topup-preset{min-height:60px;border-radius:15px;font-size:clamp(14px,4vw,18px);padding:4px 2px}
 .topup-manual-label{font-size:14px;margin-bottom:9px}
 .topup-amount-input{min-height:54px;margin-bottom:18px;border-radius:14px;font-size:17px}
 .topup-submit{min-height:56px;border-radius:15px;font-size:16px}
 .topup-min-note{font-size:11px;margin-top:9px}
 .topup-history-panel{padding-top:21px}
 .topup-history-title{font-size:20px;margin-bottom:16px}
 .topup-history-table th{font-size:10px;padding:9px 8px}
 .topup-history-table td{font-size:12px;padding:12px 8px}
}
@media(prefers-reduced-motion:no-preference){.topup-preset,.topup-submit{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}}

/* Tombol untuk membuka kembali QRIS dari riwayat top up */
.topup-history-table{min-width:650px!important}
.topup-history-table th:last-child,.topup-history-table td:last-child{white-space:nowrap;text-align:center}
.topup-history-table td:last-child{border-radius:0 13px 13px 0}
.topup-pay-again{display:inline-flex;align-items:center;justify-content:center;min-width:76px;min-height:38px;padding:9px 16px;border:0;border-radius:11px;background:linear-gradient(110deg,#2869ef,#7659e8);color:#fff;font-weight:800;font-size:13px;cursor:pointer;box-shadow:0 4px 12px rgba(49,94,220,.18)}
.topup-pay-again:focus-visible{outline:3px solid #9ab5ff;outline-offset:2px}

/* Nexapay drawer polish v5: refined three-dot trigger, avatar and navigation icons */
.menu-trigger{position:relative!important;flex:0 0 46px!important;width:46px!important;height:46px!important;border:1px solid #e4eaf4!important;border-radius:15px!important;background:linear-gradient(145deg,#ffffff 0%,#eef3fb 100%)!important;box-shadow:0 5px 14px rgba(31,55,95,.08),inset 0 1px 0 #fff!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important}
.menu-trigger:active{transform:scale(.96)!important;box-shadow:0 2px 7px rgba(31,55,95,.1)!important}
.menu-trigger span{font-family:Arial,sans-serif!important;font-size:32px!important;font-weight:800!important;line-height:17px!important;letter-spacing:-2px!important;color:#26364f!important;transform:translateY(-2px)!important}
.topbar-avatar{display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;border-radius:50%!important;border:2px solid #dbe7ff!important;background:linear-gradient(135deg,#367dff,#7357e8)!important;color:#fff!important;font-size:15px!important;font-weight:800!important;box-shadow:0 4px 12px rgba(42,99,224,.2)!important;overflow:hidden!important}
.topbar-avatar img,.profile-avatar img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important}
.profile-avatar{width:60px!important;height:60px!important;display:grid!important;place-items:center!important;overflow:hidden!important;border:3px solid rgba(255,255,255,.78)!important;background:linear-gradient(135deg,#eaf2ff,#cddcff)!important;color:#245bd7!important;box-shadow:0 5px 15px rgba(11,24,50,.18),0 0 0 4px rgba(255,255,255,.12)!important}
.account-card{background:radial-gradient(circle at 12% 0%,rgba(66,160,202,.28),transparent 42%),linear-gradient(135deg,#315c7b 0%,#464a80 58%,#59417d 100%)!important;position:relative!important;overflow:hidden!important}
.account-card:after{content:"";position:absolute;width:145px;height:145px;right:-70px;top:-78px;border-radius:50%;background:rgba(255,255,255,.055);pointer-events:none}
.account-card>*{position:relative;z-index:1}
.account-actions a{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:39px!important;background:rgba(255,255,255,.17)!important;border:1px solid rgba(255,255,255,.28)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;transition:background .18s ease,transform .18s ease!important}
.account-actions a:hover{background:rgba(255,255,255,.25)!important;transform:translateY(-1px)!important}
.side-nav>a{transition:background .18s ease,color .18s ease,transform .18s ease!important}
.side-nav>a:not(.active):hover{transform:translateX(2px)!important}
.nav-icon{width:29px!important;height:29px!important;border-radius:9px!important;background:#f0f4fa!important;color:#3d5b86!important;font-size:17px!important;box-shadow:inset 0 0 0 1px rgba(220,228,240,.55)!important}
.side-nav>a.active .nav-icon{background:rgba(255,255,255,.2)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)!important}
.close-drawer{box-shadow:0 2px 7px rgba(24,39,75,.06)!important}
@media(max-width:650px){.menu-trigger{flex-basis:44px!important;width:44px!important;height:44px!important;border-radius:14px!important}.topbar-avatar{flex-basis:40px!important;width:40px!important;height:40px!important}.profile-avatar{width:56px!important;height:56px!important}}

/* Invoice lookup and QRIS 10-minute expiry */
.topup-status.is-expired{background:#eef0f4;color:#697386}
.invoice-search-form label{display:block;margin:0 0 10px;color:#596579;font-weight:700;font-size:14px}
.invoice-search-row{display:flex;gap:10px;align-items:stretch}
.invoice-search-row input{flex:1;min-width:0;min-height:44px;border:1px solid #e0e5ef;border-radius:12px;background:#f9faff;padding:0 13px;font:600 14px Manrope,sans-serif;color:#273244;outline:none}
.invoice-search-row input:focus{border-color:#8193ff;box-shadow:0 0 0 3px #8193ff20}
.invoice-search-message{margin:16px 0 0;padding:12px 14px;border-radius:12px;background:#fff4e7;color:#94620b;font-size:13px}
.invoice-search-result{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:16px;padding:15px;border:1px solid #e6eaf2;border-radius:15px;background:#f9faff}
.invoice-search-result>div{display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}
.invoice-search-result .topup-pay-again{justify-self:start;align-self:center}
.qris-countdown{display:block;margin:10px 0;color:#a36500;font-size:13px;font-weight:800}
@media(max-width:600px){.invoice-search-row{gap:8px}.invoice-search-row input{font-size:13px}.invoice-search-result{gap:12px;padding:12px}.invoice-search-result .topup-pay-again{grid-column:1/-1;width:100%}}

/* Nexapay User Area Refresh — consistent premium finish across customer pages */
:root{--blue:#2867ed;--blue-dark:#1c50cf;--ink:#17233a;--muted:#68758b;--line:#e4eaf4;--bg:#f3f6fc;--green:#159a63}
html{scroll-behavior:smooth}body{color:var(--ink);background:radial-gradient(ellipse at 6% 0%,rgba(219,231,255,.52),transparent 32%),radial-gradient(ellipse at 100% 16%,rgba(226,240,255,.42),transparent 27%),#f5f7fc;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent }
.topbar{position:sticky;top:0;z-index:15;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(16px);border-bottom:1px solid rgba(222,230,243,.9)!important;box-shadow:0 4px 18px rgba(30,54,98,.035)!important}
.dash-main{padding-bottom:48px!important}.welcome{margin-bottom:22px}.welcome .eyebrow{letter-spacing:1.8px;font-size:10px}.welcome h1{color:#17233a;line-height:1.2;font-size:clamp(24px,4vw,31px)!important;letter-spacing:-1.1px!important}.welcome:after{content:"";display:block;width:42px;height:4px;border-radius:10px;background:linear-gradient(90deg,#2867ed,#8b65f3);margin-top:14px}
.content-panel,.activity-panel,.table-wrap,.info-panel{border:1px solid rgba(223,230,241,.95)!important;border-radius:21px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 12px 32px rgba(25,45,83,.045)!important}
.content-panel{max-width:820px;padding:clamp(20px,3vw,30px)!important}.content-panel h2{font-size:20px;letter-spacing:-.4px;color:#1a2740}.content-panel>p,.content-panel p{line-height:1.75}.muted{color:#758198!important}
.form-row{max-width:520px!important;gap:10px!important}.form-row label,.content-panel>label{color:#35425a;font-size:12px!important;font-weight:800!important;letter-spacing:.1px}.form-row input,.form-row select,.form-row textarea,.content-panel input:not([type=hidden]):not([type=file]),.content-panel select,.content-panel textarea{min-height:48px!important;height:auto!important;padding:13px 14px!important;border:1px solid #dce4f0!important;border-radius:12px!important;background:#fbfcff!important;color:#1b2940!important;font-size:14px!important;outline:none;box-shadow:inset 0 1px 1px rgba(28,48,82,.02);transition:border-color .18s,box-shadow .18s,background .18s}
.form-row input:focus,.form-row select:focus,.form-row textarea:focus,.content-panel input:focus,.content-panel select:focus,.content-panel textarea:focus{border-color:#7194fa!important;background:#fff!important;box-shadow:0 0 0 4px rgba(40,103,237,.10)!important}
.form-row input[readonly],.form-row input:disabled,.content-panel input[readonly],.content-panel input:disabled{background:#f0f3f8!important;color:#68758b!important;cursor:not-allowed}
.primary-btn{min-height:49px!important;border-radius:13px!important;padding:0 17px!important;background:linear-gradient(110deg,#2867ed,#5b62ec)!important;box-shadow:0 7px 17px rgba(43,93,222,.19)!important;font-size:13px!important;font-weight:800!important;letter-spacing:.1px!important;transition:transform .18s,box-shadow .18s,filter .18s!important}.primary-btn:hover{filter:brightness(1.035);box-shadow:0 10px 21px rgba(43,93,222,.24)!important}.primary-btn:active{transform:translateY(1px) scale(.99)!important}.primary-btn:focus-visible,.topup-pay-again:focus-visible,.photo-upload-label:focus-visible{outline:3px solid #b7caff;outline-offset:3px}
.alert{border-radius:13px!important;padding:13px 15px!important;box-shadow:0 3px 12px rgba(20,40,70,.025)}.alert.error{background:#fff2f1!important;border-color:#ffd9d5!important;color:#a92e25!important}.alert.success{background:#edfbf4!important;border-color:#c8f0da!important;color:#14774b!important}
.table-wrap{margin-top:16px!important;overflow:auto!important}.table-wrap table{min-width:650px!important;font-size:12px!important}.table-wrap th{background:#f4f7fd!important;color:#586780!important;font-size:10px!important;letter-spacing:.55px;text-transform:uppercase;padding:15px 16px!important;border-bottom:1px solid #e5ebf5!important}.table-wrap td{padding:15px 16px!important;color:#39465c!important;border-bottom:1px solid #edf1f7!important}.table-wrap tr:hover td{background:#fafcff}.table-wrap tr:last-child td{border-bottom:0!important}.table-wrap td:first-child{font-weight:700;color:#24334c}
.key-box{padding:16px!important;border:1px dashed #bdccef!important;border-radius:13px!important;background:linear-gradient(135deg,#f5f8ff,#eef4ff)!important;color:#234eaa!important;font:600 12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace!important;word-break:break-all;margin:10px 0 18px}
.notice{border:1px solid #dce8ff!important;border-radius:13px!important;background:linear-gradient(135deg,#f2f7ff,#f8faff)!important;color:#506589!important;padding:15px 16px!important}.code-sample{border:1px solid #2c3a56!important;border-radius:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);font-size:12px!important}
.balance-summary{gap:15px!important;margin-bottom:24px!important}.summary-card{position:relative;overflow:hidden;border-radius:22px!important;box-shadow:0 12px 25px rgba(25,45,83,.07)!important;transition:transform .2s,box-shadow .2s}.summary-card:hover{transform:translateY(-2px);box-shadow:0 16px 29px rgba(25,45,83,.10)!important}.summary-card:after{content:"";position:absolute;width:130px;height:130px;right:-62px;top:-67px;border:1px solid rgba(255,255,255,.17);border-radius:50%;pointer-events:none}.activity-panel{overflow:hidden}.activity-heading{border-bottom:1px solid #edf1f7!important}.activity-icon{box-shadow:0 4px 10px rgba(36,91,205,.09)}.chart-wrap{background:linear-gradient(180deg,#fff,#fbfcff)!important}
.profile-edit-panel .form-row{gap:12px!important}.profile-photo-editor{padding:8px 0 18px!important}.profile-photo-preview{width:112px!important;height:112px!important;border:4px solid #fff!important;outline:2px solid #dbe6ff;box-shadow:0 9px 25px rgba(34,62,115,.15)!important}.photo-upload-label{min-height:42px!important;border:1px solid #dbe6ff!important;border-radius:12px!important;background:#eef4ff!important;transition:background .18s,transform .18s}.photo-upload-label:hover{background:#e2ecff!important;transform:translateY(-1px)}
.page-history .table-wrap,.page-invoice .table-wrap{max-width:100%}.page-history>.dash-main>.muted,.page-invoice>.dash-main>.muted,.page-transfer>.dash-main>.muted,.page-withdraw>.dash-main>.muted,.page-apikey>.dash-main>.muted{font-size:13px!important;line-height:1.7;margin:0 0 18px!important}
.dashboard-footer{text-align:center;color:#8490a4;font-size:11px;padding:24px 10px 0;line-height:1.8}.dashboard-footer b{color:#52617b}
.side-drawer{box-shadow:20px 0 60px rgba(16,32,62,.20)!important}.drawer-head{background:linear-gradient(180deg,#fff,#fbfcff)}.side-nav>a.active{background:linear-gradient(110deg,#3476f5,#8061ed)!important}.nav-expand{border-radius:12px!important}.account-card{box-shadow:0 12px 28px rgba(28,47,88,.2)!important}
.auth-page{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 10% 12%,rgba(211,227,255,.88),transparent 35%),radial-gradient(ellipse at 93% 82%,rgba(207,246,230,.68),transparent 31%),linear-gradient(135deg,#f7f9ff,#f1f5fc)!important}.auth-page:before,.auth-page:after{content:"";position:fixed;z-index:-1;border-radius:50%;pointer-events:none}.auth-page:before{width:320px;height:320px;right:-155px;top:-145px;border:1px solid rgba(72,119,226,.12);box-shadow:0 0 0 28px rgba(72,119,226,.025),0 0 0 60px rgba(72,119,226,.02)}.auth-page:after{width:270px;height:270px;left:-145px;bottom:-145px;border:1px solid rgba(30,162,108,.12);box-shadow:0 0 0 28px rgba(30,162,108,.025),0 0 0 60px rgba(30,162,108,.02)}.auth-shell{max-width:450px!important;position:relative}.brand{font-size:21px!important;letter-spacing:-.7px!important}.brand-mark{border-radius:14px!important;background:linear-gradient(145deg,#3982ff,#2852d8)!important;box-shadow:0 9px 22px rgba(36,107,253,.25)!important}.auth-card{position:relative;border-radius:25px!important;border:1px solid rgba(255,255,255,.95)!important;padding:clamp(25px,6vw,37px)!important;box-shadow:0 24px 70px rgba(32,57,103,.12),0 3px 10px rgba(32,57,103,.035)!important;backdrop-filter:blur(10px)}.auth-card:before{content:"";position:absolute;left:28px;right:28px;top:0;height:3px;border-radius:0 0 8px 8px;background:linear-gradient(90deg,#2867ed,#8061ed,#35b98a)}.auth-card h1{font-size:clamp(24px,5vw,29px)!important;line-height:1.2!important;letter-spacing:-1.1px!important}.auth-card .muted{font-size:13px!important;margin-bottom:25px!important}.auth-card input{height:49px!important;border-radius:12px!important;background:#fbfcff!important;border-color:#dfe6f2!important;font-size:14px!important}.auth-card input:focus{background:#fff!important}.auth-card label{font-size:12px!important;color:#34425a!important}.auth-card .primary-btn{height:50px!important;margin-top:5px!important}.switch-auth{font-size:12px!important}.secure-note{font-size:10px!important}.footer-note{font-size:10px!important}
/* Touch-friendly spacing on narrow phones */
@media(max-width:650px){.dash-main{padding:0 14px 32px!important;margin:22px auto!important}.welcome{margin-bottom:19px}.welcome h1{font-size:25px!important}.content-panel{padding:20px 17px!important;border-radius:18px!important}.form-row{max-width:none!important}.table-wrap{border-radius:15px!important}.balance-summary{grid-template-columns:1fr!important;gap:11px!important}.summary-card{min-height:126px!important;padding:22px!important}.activity-heading{padding:18px 16px!important}.chart-wrap{padding-left:12px!important;padding-right:12px!important}.auth-page{padding:24px 14px!important}.auth-shell{max-width:430px!important}.auth-card{padding:29px 22px!important;border-radius:21px!important}.brand{margin-bottom:22px!important}.auth-page:before{width:220px;height:220px;right:-135px;top:-105px}.auth-page:after{width:190px;height:190px;left:-125px;bottom:-115px}.topbar{padding:0 13px!important}}
@media(max-width:390px){.auth-card{padding:25px 18px!important}.auth-card h1{font-size:23px!important}.content-panel{padding:17px 14px!important}.summary-copy strong{font-size:27px!important}.table-wrap table{min-width:620px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Admin overview analytics */
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0 28px}
.metric-card{min-width:0;padding:17px 16px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 5px 18px rgba(22,34,60,.035);display:flex;flex-direction:column;gap:8px}
.metric-card span{font-size:12px;line-height:1.45;color:var(--muted)}
.metric-card strong{font:800 clamp(19px,2.3vw,26px) Manrope,sans-serif;line-height:1.25;color:var(--ink);overflow-wrap:anywhere}
.metric-card small{font-size:10px;line-height:1.5;color:var(--muted)}
@media(max-width:700px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric-card{padding:14px 12px;border-radius:13px}.metric-card span{font-size:11px}.metric-card strong{font-size:19px}.metric-card small{font-size:9px}}
@media(max-width:360px){.dashboard-metrics{grid-template-columns:1fr}}

/* Dashboard admin cards: cache-busted layout fix */
.dashboard-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;margin:20px 0 28px!important;width:100%}
.dashboard-metrics>.metric-card{box-sizing:border-box!important;min-width:0!important;padding:17px 16px!important;background:#fff!important;border:1px solid #e1e7f0!important;border-radius:16px!important;box-shadow:0 5px 18px rgba(22,34,60,.035)!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;white-space:normal!important}
.dashboard-metrics>.metric-card>span{display:block!important;font-size:12px!important;line-height:1.45!important;color:#758198!important;white-space:normal!important}
.dashboard-metrics>.metric-card>strong{display:block!important;font-size:clamp(19px,2.3vw,26px)!important;font-weight:800!important;line-height:1.25!important;color:#17233a!important;overflow-wrap:anywhere!important;white-space:normal!important}
.dashboard-metrics>.metric-card>small{display:block!important;font-size:10px!important;line-height:1.5!important;color:#758198!important;white-space:normal!important}
@media(max-width:700px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.dashboard-metrics>.metric-card{padding:14px 12px!important;border-radius:13px!important}.dashboard-metrics>.metric-card>span{font-size:11px!important}.dashboard-metrics>.metric-card>strong{font-size:19px!important}.dashboard-metrics>.metric-card>small{font-size:10px!important}}
@media(max-width:360px){.dashboard-metrics{grid-template-columns:1fr!important}}

/* FIX v19: keep logout available in account drawer and ensure clickable menu controls */
.drawer-bottom{display:block!important;flex-shrink:0!important;visibility:visible!important;position:relative!important;z-index:2!important}
.drawer-bottom .logout-link{display:flex!important;align-items:center!important;gap:12px!important;min-height:46px!important;padding:0 14px!important;border-radius:10px!important;color:#bd3333!important;text-decoration:none!important;font-weight:700!important;background:#fff7f7!important}
.drawer-bottom .logout-link:hover{background:#ffeded!important}
.menu-trigger,.close-drawer,.drawer-backdrop{touch-action:manipulation!important}

/* Admin user management: searchable, boxed table and responsive account actions */
.user-search-panel{margin:18px 0!important;padding:16px!important;border:1px solid #e1e7f0!important;border-radius:16px!important;background:#fff!important}
.user-search-form label,.user-edit-form label{display:block;font-size:13px;font-weight:700;color:#344054;margin-bottom:8px}
.user-search-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.user-search-row input{flex:1;min-width:170px}
.user-management-wrap{border:1px solid #dfe6f0!important;border-radius:16px!important;overflow:auto!important;background:#fff!important;max-width:100%}
.user-management-wrap table{min-width:900px!important;width:100%!important}
.user-admin-actions{min-width:220px;display:table-cell}
.user-action-form{margin:0 0 8px}
.user-edit-details{border:1px solid #e3e9f2;border-radius:10px;padding:9px 10px;margin:7px 0;background:#f9fbff}
.user-edit-details summary{cursor:pointer;font-size:13px;font-weight:700;color:#285fd6;touch-action:manipulation}
.user-edit-form{display:grid;gap:8px;padding-top:12px;min-width:210px}
.user-edit-form input{width:100%;min-width:0}
.status-pill{display:inline-block;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap}
.status-pill.active{background:#e7f8ef;color:#18794e}.status-pill.blocked{background:#ffeded;color:#b42318}
@media(max-width:600px){.user-search-panel{padding:12px!important}.user-search-row input{width:100%;flex-basis:100%}.user-management-wrap table{min-width:900px!important}}

/* Admin balance management */
.balance-adjust-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}.balance-adjust-form{max-width:none!important;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fbfcff}.balance-adjust-form h3{margin:0 0 8px;color:#1b2940;font-size:16px}.balance-adjust-form .primary-btn,.balance-adjust-form .mini-btn{min-height:42px;justify-content:center}.balance-admin-panel{margin-top:18px}@media(max-width:650px){.balance-adjust-grid{grid-template-columns:1fr}.balance-adjust-form{padding:15px}}
.user-management-wrap td code{font-size:11px;white-space:nowrap;color:#46556d}.user-management-wrap td small{display:inline-block;margin-top:4px;color:#778398;font-size:10px}.user-management-wrap td .mini-btn{white-space:nowrap}

/* Auth pages: scroll safely on small screens and provide a clear Home link */
.auth-page{min-height:100vh;min-height:100dvh;overflow-x:hidden!important;overflow-y:auto!important;align-items:center;padding-top:max(28px,env(safe-area-inset-top));padding-bottom:max(28px,env(safe-area-inset-bottom));}
.auth-shell{margin:auto;}
.auth-home-link{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin:-7px auto 18px;padding:10px 15px;border:1px solid #dfe7f5;border-radius:999px;background:rgba(255,255,255,.82);color:#365da9;font-size:12px;font-weight:800;box-shadow:0 8px 22px rgba(37,74,137,.07);transition:transform .2s,box-shadow .2s,border-color .2s;}
.auth-home-link:hover{transform:translateY(-1px);border-color:#b8caf0;box-shadow:0 10px 24px rgba(37,74,137,.12)}
.auth-home-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:linear-gradient(135deg,#347dff,#7057e8);color:#fff;font-size:20px;line-height:1}
.auth-home-arrow{margin-left:5px;font-size:15px;color:#6d63e8}
.auth-card{animation:authCardIn .45s ease-out both}
@keyframes authCardIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.auth-page{align-items:flex-start!important;padding:30px 14px max(34px,env(safe-area-inset-bottom))!important}.auth-shell{margin:auto!important;width:100%}.auth-home-link{margin:0 auto 17px;padding:9px 13px}.auth-card{width:100%}}
@media(prefers-reduced-motion:reduce){.auth-card{animation:none!important}.auth-home-link{transition:none!important}}

/* Avatar repair v24: keep the user's real profile photo circular and prevent logo/fallback distortion. */
.profile-avatar{position:relative!important;box-sizing:border-box!important;flex:0 0 60px!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;aspect-ratio:1/1!important;border-radius:50%!important;overflow:hidden!important;align-self:center!important}
.profile-avatar img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;margin:0!important;padding:0!important}
.topbar-avatar{position:relative!important;box-sizing:border-box!important;aspect-ratio:1/1!important;overflow:hidden!important}
.topbar-avatar img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;margin:0!important}

/* Avatar repair v25: final override + cache refresh for the sidebar account photo. */
.account-card .profile-avatar{position:relative!important;display:block!important;flex:0 0 60px!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;aspect-ratio:1/1!important;box-sizing:border-box!important;overflow:hidden!important;border-radius:50%!important;line-height:0!important;}
.account-card .profile-avatar img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;}
.topbar-avatar{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;aspect-ratio:1/1!important;box-sizing:border-box!important;overflow:hidden!important;border-radius:50%!important;}
.topbar-avatar img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;}


/* Nexapay repair: mobile overflow and avatar containment */
html{min-height:100%;-webkit-text-size-adjust:100%}
body{min-width:0;max-width:100%;overflow-x:hidden}
img,video,canvas,svg{max-width:100%}
.account-card .profile-avatar{position:relative!important;display:block!important;flex:0 0 60px!important;width:60px!important;height:60px!important;min-width:60px!important;min-height:60px!important;overflow:hidden!important;border-radius:50%!important;line-height:0!important}
.account-card .profile-avatar img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important}
.topbar-avatar{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;overflow:hidden!important;border-radius:50%!important}
.topbar-avatar img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
@media(max-width:700px){.dash-main{min-width:0;max-width:100%;overflow-x:hidden}.chart-wrap{max-width:100%;overflow-x:auto}table{max-width:100%}input,select,textarea,button{max-width:100%}}
/* Nexapay: tombol Top Up/Penarikan di bawah nominal saldo disembunyikan; navigasi sidebar tetap tersedia. */
.account-card .account-actions{display:none!important}

/* Nexapay: drawer mobile scroll fix — account card never gets clipped. */
.side-drawer{
  height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;
  display:flex;flex-direction:column;overflow:hidden;
  padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box;
}
.side-drawer .drawer-head,.side-drawer .account-card,.side-drawer .drawer-bottom{flex:0 0 auto;min-height:max-content}
.side-drawer .account-card{flex-shrink:0}
.side-drawer .side-nav{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding-bottom:20px;scrollbar-width:thin;
}
.side-drawer .drawer-bottom{margin-top:0}


/* Nexapay FIX: sidebar scrolls as one complete panel; account balance card must never be clipped. */
.side-drawer{
  height:100vh!important;
  height:100dvh!important;
  max-height:100vh!important;
  max-height:100dvh!important;
  display:flex!important;
  flex-direction:column!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  box-sizing:border-box!important;
  padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px))!important;
}
.side-drawer .drawer-head{
  flex:0 0 auto!important;
}
.side-drawer .account-card{
  flex:0 0 auto!important;
  height:auto!important;
  min-height:max-content!important;
  max-height:none!important;
  overflow:visible!important;
  contain:none!important;
  margin-bottom:12px!important;
}
.side-drawer .account-card *{
  max-height:none;
}
.side-drawer .side-nav{
  flex:0 0 auto!important;
  height:auto!important;
  min-height:max-content!important;
  max-height:none!important;
  overflow:visible!important;
  padding-bottom:18px!important;
}
.side-drawer .drawer-bottom{
  position:static!important;
  flex:0 0 auto!important;
  margin-top:12px!important;
}


/* Nexapay: hanya daftar fitur yang dapat di-scroll.
   Header, kartu saldo, dan tombol keluar tetap di tempatnya. */
.side-drawer {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.side-drawer .drawer-head {
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.side-drawer .account-card {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: max-content !important;
  max-height: none !important;
  overflow: visible !important;
}

.side-drawer .side-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin;
  padding-bottom: 12px !important;
}

.side-drawer .drawer-bottom {
  flex: 0 0 auto !important;
  position: static !important;
  margin-top: 0 !important;
  overflow: visible !important;
}


/* Nexapay — rapikan pilihan notifikasi Telegram */
.content-panel form.form-row:has(input[name^="notify_"]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.content-panel form.form-row:has(input[name^="notify_"]) > label {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--border, #e3e8f2);
  border-radius: 12px;
  background: #f8faff;
  color: var(--text, #344054);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}
.content-panel form.form-row:has(input[name^="notify_"]) > label input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #3563eb;
  cursor: pointer;
}
.content-panel form.form-row:has(input[name^="notify_"]) > label:not(:has(input[type="checkbox"])) {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.content-panel form.form-row:has(input[name^="notify_"]) h3 {
  margin: 18px 0 4px !important;
  font-size: 19px;
  line-height: 1.3;
}
.content-panel form.form-row:has(input[name^="notify_"]) button[type="submit"] {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border-radius: 13px;
}
@media (max-width: 480px) {
  .content-panel form.form-row:has(input[name^="notify_"]) > label {
    padding: 11px 12px;
    font-size: 14px;
  }
}

/* Nexapay performance patch: keep existing visuals and animations unchanged. */
@supports (content-visibility: auto) {
  .home-section, .home-trust, .home-cta, .home-foot { content-visibility: auto; contain-intrinsic-size: 1px 680px; }
}
.home-page, .home-section { -webkit-tap-highlight-color: transparent; }
@media (max-width: 780px) { .home-page { overflow-anchor: auto; } }

/* Optimasi rendering halaman Home di perangkat seluler; tampilan tetap sama. */
@media (max-width: 780px) {
  .home-section, .home-trust, .home-cta, .home-foot {
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
  }
  .home-section, .home-trust, .home-cta {
    contain: layout paint style;
  }
}
/* Kurangi komposisi berulang saat elemen berada jauh di luar layar.
   Animasi asli tetap dipakai dan berjalan kembali saat bagian terlihat. */
.home-page .home-section:not(.is-visible),
.home-page .home-trust:not(.is-visible),
.home-page .home-cta:not(.is-visible) {
  animation-play-state: paused;
}

/* HOTFIX: keep the three-dot menu trigger clickable above page overlays */
.topbar{position:sticky!important;z-index:1002!important;isolation:isolate!important}
.menu-trigger{position:relative!important;z-index:1003!important;pointer-events:auto!important;touch-action:manipulation!important}
.menu-trigger span{pointer-events:none!important}
.drawer-backdrop{z-index:1000!important}
.side-drawer{z-index:1001!important}

/* Three-dot click repair: prevent decorative children/overlays from intercepting taps. */
#menuTrigger{position:relative!important;z-index:2147483000!important;pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important}
#menuTrigger *{pointer-events:none!important}

/* Nexapay responsive/performance refinement: additive rules, preserving existing layout system. */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,svg,video,canvas{max-width:100%;height:auto}
button,a,input,select,textarea{touch-action:manipulation}
button,a{ -webkit-tap-highlight-color:transparent }
@media(max-width:600px){
 .auth-page{padding:18px 12px;align-items:flex-start}
 .auth-shell{max-width:100%;margin:auto}
 .auth-card{padding:25px 20px;border-radius:20px}
 .auth-card h1,.welcome h1{font-size:clamp(23px,6vw,28px);line-height:1.2}
 .dash-main{margin:24px auto;padding:0 14px}
 .topbar{height:62px;padding:0 14px}
 .balance-card{padding:22px 18px;gap:12px}
 .balance-amount{font-size:clamp(24px,7vw,32px);overflow-wrap:anywhere}
 .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .feature-card{min-width:0;padding:14px}
 .content-panel,.topup-panel,.topup-history-panel{min-width:0;max-width:100%}
 input,select,textarea{max-width:100%;min-width:0}
 table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Admin email broadcast layout */
.email-broadcast-form{display:grid;gap:14px}.email-broadcast-form textarea{min-height:170px;resize:vertical;line-height:1.65}.email-broadcast-help{font-size:13px;color:#788399;line-height:1.6}@media(max-width:600px){.email-broadcast-form .primary-btn{width:100%}}


/* Admin tables: keep long content inside bounded, scrollable panels */
.admin-content .table-wrap,
.content-panel .table-wrap,
.table-wrap {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  border:1px solid #dfe6f1;
  border-radius:16px;
  box-sizing:border-box;
  scrollbar-width:thin;
}
.table-wrap table {
  width:max-content;
  min-width:100%;
  max-width:none;
  border-collapse:separate;
  border-spacing:0;
}
.table-wrap th,
.table-wrap td {
  white-space:nowrap;
}
.table-wrap thead th,
.table-wrap tr:first-child th {
  position:sticky;
  top:0;
  z-index:2;
  background:#f3f6fc;
}
@media (max-width:700px) {
  .content-panel .table-wrap,
  .table-wrap {
    max-height: min(62vh, 520px);
    border-radius:14px;
  }
  .table-wrap th,
  .table-wrap td {
    padding:12px 14px;
  }
}


/* Responsiveness and scroll performance safeguards (visual design preserved). */
html { -webkit-overflow-scrolling: touch; }
body { overscroll-behavior-y: contain; }
button, a, input, select, textarea { touch-action: manipulation; }
.side-drawer, .table-wrap, .qris-invoice-table-box .table-wrap {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.side-drawer { will-change: transform; }
.drawer-backdrop { will-change: opacity; }
img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
  .content-panel, .topup-form-panel, .topup-history-panel { min-width: 0; }
  .table-wrap { max-width: 100%; overflow-x: auto; }
  input, select, textarea, button { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .side-drawer, .drawer-backdrop { transition: none !important; }
}

/* Responsiveness improvements: reduce browser repaint work and keep touch scrolling smooth. */
html{scroll-behavior:auto;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain}
img,video,canvas,svg{max-width:100%}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Kelola Pengguna: tampilkan seluruh data sebagai kartu di layar kecil tanpa geser horizontal. */
@media (max-width: 700px) {
  .user-management-wrap { overflow: visible !important; }
  .user-management-wrap table { min-width: 0 !important; width: 100% !important; display: block !important; }
  .user-management-wrap table tr:first-child { display: none !important; }
  .user-management-wrap table tbody { display: block !important; width: 100% !important; }
  .user-management-wrap .user-management-row { display: block !important; width: 100% !important; margin: 0 0 14px !important; padding: 8px 14px !important; border: 1px solid #e5ebf5 !important; border-radius: 15px !important; background: #fff !important; box-sizing: border-box !important; }
  .user-management-wrap .user-management-row td { display: grid !important; grid-template-columns: minmax(105px, 38%) minmax(0, 1fr) !important; gap: 10px !important; align-items: start !important; width: 100% !important; min-width: 0 !important; padding: 10px 0 !important; border-bottom: 1px solid #edf1f7 !important; white-space: normal !important; overflow-wrap: anywhere !important; box-sizing: border-box !important; }
  .user-management-wrap .user-management-row td::before { content: attr(data-label); color: #667085; font-size: 11px; font-weight: 700; line-height: 1.5; }
  .user-management-wrap .user-management-row td:last-child { border-bottom: 0 !important; }
  .user-management-wrap .user-management-row td.user-admin-actions { display: block !important; }
  .user-management-wrap .user-management-row td.user-admin-actions::before { display: block; margin-bottom: 9px; }
  .user-management-wrap .user-admin-actions .user-edit-form { min-width: 0 !important; }
  .user-management-wrap .user-admin-actions details { max-width: 100%; }
}


/* NexaPay drawer scroll fix V3: allow page scroll immediately after navigating from the drawer. */
html, body { overscroll-behavior-y: auto; }
.side-drawer { display:flex!important; flex-direction:column!important; height:100vh!important; height:100dvh!important; max-height:100vh!important; max-height:100dvh!important; overflow:hidden!important; }
.side-drawer .side-nav { display:block!important; flex:1 1 auto!important; min-height:0!important; max-height:none!important; overflow-x:hidden!important; overflow-y:auto!important; -webkit-overflow-scrolling:touch!important; overscroll-behavior:contain!important; touch-action:pan-y!important; }
.side-drawer .side-nav a { touch-action:manipulation!important; }


/* NexaPay performance tuning: preserve layout while reducing mobile paint/compositing work. */
img, video { max-width: 100%; }
button, a, input, select, textarea { touch-action: manipulation; }
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body, .home-page { overscroll-behavior-y: contain; }
  /* Fixed animated glows and strong blur can cause scroll jank on lower-powered phones. */
  .home-page::before, .home-page::after {
    animation: none !important;
    filter: none !important;
  }
  .home-nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .side-drawer, .drawer-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .home-copy, .home-logo { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
