.shx{display:grid;gap:18px}
.shx-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:clamp(22px,4vw,36px);border:1px solid rgba(94,234,212,.22);border-radius:26px;background:radial-gradient(500px 220px at 100% 0,rgba(56,189,248,.22),transparent 60%),radial-gradient(400px 200px at 0 100%,rgba(94,234,212,.14),transparent 60%),linear-gradient(160deg,#12213a,#0b1220)}
.shx-hero>div:first-child{flex:1 1 320px;min-width:0}
.shx-kicker{display:inline-block;padding:4px 12px;border-radius:999px;background:rgba(94,234,212,.12);color:#5eead4;font-size:12px;font-weight:700;letter-spacing:.06em}
.shx-hero h1{margin:10px 0 6px;font-size:clamp(26px,5vw,40px);line-height:1.15;letter-spacing:-.02em}
.shx-hero p{margin:0;color:#8fa0b6;max-width:560px}
.shx-balance{display:grid;gap:4px;min-width:200px;padding:18px 22px;border:1px solid rgba(148,163,184,.18);border-radius:20px;background:rgba(9,17,30,.6)}
.shx-balance small{color:#8fa0b6}
.shx-balance strong{font-size:clamp(26px,5vw,34px);background:linear-gradient(90deg,#5eead4,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent}
.shx-balance a,.shx-low a{color:#5eead4;font-weight:700}
.shx-low{margin:0;padding:8px 12px;border-radius:12px;background:rgba(245,158,11,.1);color:#fcd34d;font-size:13px}
.shx-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.shx-mini article{padding:16px 18px;border:1px solid rgba(148,163,184,.14);border-radius:18px;background:linear-gradient(160deg,#12213a,#0c1524);display:grid;gap:4px;min-width:0}
.shx-mini small{color:#8fa0b6}
.shx-mini strong{font-size:clamp(18px,3vw,24px);overflow-wrap:anywhere}
.shx-headrow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shx-dl{padding:7px 14px;border:1px solid rgba(94,234,212,.35);border-radius:999px;color:#5eead4;font-size:13px;font-weight:700}
.shx-dl:hover{background:rgba(94,234,212,.12)}
.page-plans .rental-progress{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px;text-align:center;border-radius:inherit;background:linear-gradient(180deg,#12203a,#0b1424)}
.page-plans .rental-progress[hidden]{display:none}
.page-plans .rp-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#5eead4,#38bdf8);color:#04201c;animation:rpPulse 1.4s ease-in-out infinite}
.page-plans .rp-icon .ui-icon{width:30px;height:30px}
.page-plans .rental-progress h3{margin:6px 0 0;font-size:20px}
.page-plans .rp-msg{margin:0;color:#8fa0b6;min-height:22px}
.page-plans .rp-bar{width:100%;max-width:380px;height:14px;border-radius:999px;background:rgba(148,163,184,.16);overflow:hidden}
.page-plans .rp-bar span{display:block;height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#5eead4,#38bdf8);box-shadow:0 0 14px rgba(94,234,212,.5)}
.page-plans .rp-pct{font-size:30px;font-weight:800;background:linear-gradient(90deg,#5eead4,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent}
.page-plans .rp-note{margin:0;color:#6f8097;font-size:12px}
.page-plans .rental-progress.error .rp-icon{background:#ef4444;color:#fff;animation:none}
.page-plans .rental-progress.error .rp-bar span{background:#ef4444;box-shadow:none}
.page-plans .rental-progress.error h3{color:#fca5a5}
@keyframes rpPulse{50%{transform:scale(1.07)}}
.page-plans .purchase-dialog{position:relative}
.page-plans .plans-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
@media(max-width:700px){.shx-mini{grid-template-columns:1fr}.shx-balance{width:100%}}

/* Keep top-up sections full-width and prevent forms from inheriting narrow grid tracks. */
.page-topup .shx{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)!important;align-items:stretch}
.page-topup .shx>.shx-hero,
.page-topup .shx>.shx-mini,
.page-topup .shx>.topup-layout,
.page-topup .shx>.table-card,
.page-topup .shx>.flash{grid-column:1/-1;min-width:0}
.page-topup .shx-mini{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.page-topup .topup-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:18px;width:100%;min-width:0}
.page-topup .topup-layout>.topup-form{display:grid;align-content:start;gap:16px;min-width:0;padding:clamp(18px,2.4vw,28px);overflow:visible}
.page-topup .topup-form h2{margin:0;font-size:19px}
.page-topup .topup-form p{margin:0;color:#aab8ca;line-height:1.7}
.page-topup .topup-form form{display:grid;gap:14px;min-width:0}
.page-topup .topup-form label{display:grid;gap:7px;min-width:0}
.page-topup .topup-form input{width:100%;min-width:0;min-height:46px;padding:10px 13px}
.page-topup .topup-form input[type=file]{height:auto}
.page-topup .topup-form .btn{width:100%;min-height:48px}
.page-topup .topup-form .preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.page-topup .topup-form .preset{min-width:0;min-height:42px;padding:8px 6px;border:1px solid rgba(148,163,184,.2);border-radius:11px;background:rgba(148,163,184,.08);color:#e8eef8;cursor:pointer}
.page-topup .topup-form .preset:hover,.page-topup .topup-form .preset.active{border-color:rgba(94,234,212,.55);background:rgba(94,234,212,.12)}
.page-topup .promptpay-payment-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid rgba(94,234,212,.22);border-radius:14px;background:rgba(94,234,212,.07)}
.page-topup .promptpay-payment-summary strong{font-size:21px;color:#5eead4}
.page-topup .promptpay-payment-summary small{color:#8fa0b6}
.page-topup .promptpay-qr-frame{display:grid;place-items:center;padding:18px;border:1px dashed rgba(148,163,184,.22);border-radius:16px;background:#fff}
.page-topup .promptpay-qr{min-width:256px;min-height:256px}
.page-topup .shx>.table-card{padding:0;overflow:hidden}
.page-topup .shx>.table-card .card-head{padding:18px 22px;border-bottom:1px solid rgba(148,163,184,.12)}
.page-topup .history-list{display:grid;gap:0;padding:0 20px}
.page-topup .history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 2px;border-bottom:1px solid rgba(148,163,184,.1)}
.page-topup .history-row:last-child{border-bottom:0}
.page-topup .history-row>div{display:grid;gap:4px;min-width:0}
.page-topup .history-row small{color:#8fa0b6}

@media(max-width:900px){
  .page-topup .topup-layout{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:600px){
  .page-topup .shx-mini{grid-template-columns:minmax(0,1fr);gap:9px}
  .page-topup .shx-mini article{padding:12px 15px}
  .page-topup .topup-form .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .page-topup .history-row{align-items:flex-start}
  .page-topup .page-main-auth .shx-hero{padding:22px}
}

.page-topup .topup-page{gap:20px}
.page-topup .topup-hero{padding:clamp(24px,4vw,40px);border-color:rgba(94,234,212,.28);background:radial-gradient(520px 250px at 100% 0,rgba(56,189,248,.2),transparent 65%),radial-gradient(420px 220px at 0 100%,rgba(94,234,212,.13),transparent 65%),linear-gradient(145deg,#13243b,#0b1220 75%)}
.page-topup .topup-hero h1{font-size:clamp(28px,4vw,38px)}
.page-topup .topup-hero p{max-width:520px;line-height:1.75}
.page-topup .topup-balance{min-width:220px;border-color:rgba(94,234,212,.2);background:rgba(7,17,31,.72)}
.page-topup .topup-balance a{display:flex;align-items:center;gap:7px;width:max-content;text-decoration:none}
.page-topup .topup-balance a:hover{color:#a5f3fc}
.page-topup .topup-stats{gap:12px}
.page-topup .topup-stats article{position:relative;gap:7px;padding:17px 19px;border-radius:16px;background:linear-gradient(145deg,rgba(18,33,58,.92),rgba(10,19,33,.94))}
.page-topup .topup-stats article:before{position:absolute;inset:0 auto 0 0;width:3px;border-radius:16px 0 0 16px;background:linear-gradient(180deg,#5eead4,#38bdf8);content:""}
.page-topup .topup-stats small{font-size:12px}
.page-topup .topup-stats strong{font-size:clamp(19px,2.4vw,24px)}
.page-topup .topup-disabled-notice{display:grid;gap:3px;padding:15px 18px;border:1px solid rgba(251,191,36,.28);border-radius:15px;background:linear-gradient(120deg,rgba(120,74,10,.2),rgba(17,27,42,.72));color:#fcd34d}
.page-topup .topup-disabled-notice p{margin:0;color:#c4b38d;font-size:13px;line-height:1.6}
.page-topup .topup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 19px;border:1px solid rgba(148,163,184,.13);border-radius:16px;background:rgba(12,21,36,.72)}
.page-topup .topup-steps>div{display:flex;align-items:center;gap:11px;min-width:0}
.page-topup .topup-steps>div>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid rgba(94,234,212,.34);border-radius:50%;background:rgba(94,234,212,.1);color:#5eead4;font-size:13px;font-weight:800}
.page-topup .topup-steps p{display:grid;gap:1px;min-width:0;margin:0}
.page-topup .topup-steps strong{font-size:13px}
.page-topup .topup-steps small{color:#8fa0b6;font-size:11px}
.page-topup .topup-layout{grid-template-columns:minmax(0,1.35fr) minmax(280px,.8fr)!important;gap:16px}
.page-topup .topup-card{gap:18px;padding:22px}
.page-topup .topup-card-primary{border-color:rgba(94,234,212,.2);background:linear-gradient(155deg,rgba(17,34,55,.98),rgba(10,17,30,.98))}
.page-topup .topup-card-secondary{background:linear-gradient(155deg,rgba(17,27,45,.96),rgba(10,16,28,.98))}
.page-topup .topup-card-heading{display:flex;align-items:center;gap:12px;min-width:0}
.page-topup .topup-card-heading>div{display:grid;gap:2px;min-width:0}
.page-topup .topup-card-heading h2{font-size:18px}
.page-topup .topup-card-heading p{color:#8fa0b6;font-size:12px}
.page-topup .topup-method-number{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(94,234,212,.22);border-radius:13px;background:rgba(94,234,212,.08);color:#5eead4;font-family:"Space Grotesk",sans-serif;font-size:13px;font-weight:700}
.page-topup .topup-eyebrow{color:#5eead4;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.page-topup .topup-method-badge{margin-left:auto;padding:6px 10px;border:1px solid rgba(94,234,212,.24);border-radius:999px;background:rgba(94,234,212,.08);color:#9ff3e4;font-size:11px;font-weight:700;white-space:nowrap}
.page-topup .topup-unavailable,.page-topup .topup-alternative-note,.page-topup .topup-payment-note{padding:13px 15px;border:1px solid rgba(148,163,184,.14);border-radius:13px;background:rgba(148,163,184,.045)}
.page-topup .topup-unavailable{border-color:rgba(251,191,36,.24);background:rgba(251,191,36,.06)}
.page-topup .topup-unavailable strong{color:#fcd34d}
.page-topup .topup-unavailable p,.page-topup .topup-alternative-note p,.page-topup .topup-payment-note p{margin:4px 0 0;color:#9aaac0;font-size:12px;line-height:1.65}
.page-topup .topup-pending-payment{display:grid;gap:14px;padding:15px;border:1px solid rgba(94,234,212,.2);border-radius:16px;background:rgba(5,14,25,.45)}
.page-topup .promptpay-payment-summary{padding:0 0 12px;border:0;border-bottom:1px solid rgba(148,163,184,.14);border-radius:0;background:transparent}
.page-topup .promptpay-payment-summary>div{display:grid;gap:2px}
.page-topup .promptpay-payment-summary>div small{color:#8fa0b6;font-size:11px}
.page-topup .promptpay-payment-summary strong{font-size:22px}
.page-topup .promptpay-payment-summary>span{padding:5px 9px;border-radius:999px;background:rgba(245,158,11,.1);color:#fcd34d;font-size:11px;white-space:nowrap}
.page-topup .topup-payment-grid{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.1fr);align-items:center;gap:18px}
.page-topup .promptpay-qr-frame{gap:9px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.page-topup .promptpay-qr{display:grid;place-items:center;min-width:0;min-height:0}
.page-topup .promptpay-qr img,.page-topup .promptpay-qr canvas{display:block;max-width:100%;height:auto}
.page-topup .promptpay-qr-frame>small{color:#475569;font-size:11px;text-align:center}
.page-topup .topup-payment-details{display:grid;gap:13px;min-width:0}
.page-topup .topup-payment-note strong{font-size:13px;color:#dce7f5}
.page-topup .topup-slip-form{display:grid;gap:11px}
.page-topup .topup-slip-form label,.page-topup .topup-create-form label,.page-topup .topup-manual-form label{display:grid;gap:7px;color:#dce7f5;font-size:12px;font-weight:600}
.page-topup .topup-slip-form label small{color:#8fa0b6;font-size:11px;font-weight:400}
.page-topup .topup-slip-form input[type=file]{padding:10px;border:1px dashed rgba(148,163,184,.3);border-radius:11px;background:rgba(148,163,184,.045);font-size:11px}
.page-topup .topup-card .btn{width:100%;min-height:46px}
.page-topup .topup-create-block{display:grid;gap:12px;padding-top:17px;border-top:1px solid rgba(148,163,184,.14)}
.page-topup .topup-create-heading{display:grid;gap:2px}
.page-topup .topup-create-heading strong{font-size:14px}
.page-topup .topup-create-heading small{color:#8fa0b6;font-size:11px}
.page-topup .topup-create-form{display:grid;gap:12px}
.page-topup .topup-create-form .preset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.page-topup .topup-create-form .preset{min-height:40px;border-radius:10px;font-size:11px;font-weight:700}
.page-topup .topup-create-form label input,.page-topup .topup-manual-form label input{min-height:45px;border:1px solid rgba(148,163,184,.2);border-radius:11px;background:rgba(5,12,22,.55);color:#f1f5f9}
.page-topup .topup-create-form .btn{margin-top:0}
.page-topup .topup-alternative-note{border-color:rgba(148,163,184,.12)}
.page-topup .topup-alternative-note strong{font-size:13px}
.page-topup .topup-manual-form{display:grid;gap:14px}
.page-topup .topup-history{margin-top:0!important;padding:0;overflow:hidden}
.page-topup .topup-history .card-head{min-height:72px;height:auto;padding:16px 22px}
.page-topup .topup-history .card-head>div{display:grid;gap:2px}
.page-topup .topup-history .card-head h2{font-size:17px}
.page-topup .topup-history .history-list{padding:0 22px}
.page-topup .topup-history .history-row{padding:15px 0;border:0;border-bottom:1px solid rgba(148,163,184,.1);border-radius:0;background:transparent}
.page-topup .topup-history .empty-state{min-height:110px;display:grid;place-items:center}
@media(max-width:900px){
  .page-topup .topup-layout{grid-template-columns:minmax(0,1fr)!important}
  .page-topup .topup-card-secondary{gap:14px}
}
@media(max-width:650px){
  .page-topup .topup-page{gap:14px}
  .page-topup .topup-hero{padding:21px}
  .page-topup .topup-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .page-topup .topup-stats article{padding:12px 9px}
  .page-topup .topup-stats small{font-size:10px}
  .page-topup .topup-stats strong{font-size:16px}
  .page-topup .topup-steps{gap:8px;padding:12px 10px}
  .page-topup .topup-steps>div{align-items:flex-start;gap:6px}
  .page-topup .topup-steps>div>span{flex-basis:24px;width:24px;height:24px;font-size:11px}
  .page-topup .topup-steps strong{font-size:10px}
  .page-topup .topup-steps small{font-size:9px;line-height:1.35}
  .page-topup .topup-card{padding:16px}
  .page-topup .topup-method-number{flex-basis:36px;width:36px;height:36px}
  .page-topup .topup-card-heading h2{font-size:16px}
  .page-topup .topup-card-heading p{font-size:11px}
  .page-topup .topup-method-badge{padding:5px 7px;font-size:9px}
  .page-topup .topup-payment-grid{grid-template-columns:minmax(0,1fr)}
  .page-topup .promptpay-qr-frame{width:min(100%,290px);justify-self:center}
  .page-topup .topup-create-form .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.page-admin .fin-dl{display:flex;gap:8px;flex-wrap:wrap}
.page-admin .fin-dl a{padding:9px 14px;font-size:13px}
.page-admin .fin-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px;align-items:center}
.page-admin .fin-filter>button{padding:8px 14px;border:1px solid rgba(148,163,184,.18);border-radius:999px;background:rgba(148,163,184,.07);color:#dbe7f5;cursor:pointer}
.page-admin .fin-filter>button.on{background:linear-gradient(135deg,#5eead4,#38bdf8);color:#04201c;border-color:transparent;font-weight:700}
.page-admin .fin-dates{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.page-admin .fin-dates input{width:auto;min-width:0;padding:8px 10px}
.page-admin .fin-dates button{padding:9px 14px}
.page-admin .fin-range{margin:0 0 12px;color:#8fa0b6;font-size:13px}
.page-admin .fin-legend{display:flex;gap:10px;align-items:center;color:#8fa0b6;font-size:13px}
.page-admin .fin-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.page-admin .fin-legend .a,.page-admin .fin-col .a{background:#38bdf8}
.page-admin .fin-legend .b,.page-admin .fin-col .b{background:#5eead4}
.page-admin .fin-chart{display:flex;align-items:flex-end;gap:3px;height:150px;margin:14px 0;padding:8px;border-radius:14px;background:rgba(9,17,30,.5);overflow:hidden}
.page-admin .fin-col{flex:1 1 0;min-width:0;height:100%;display:flex;align-items:flex-end;gap:1px}
.page-admin .fin-col span{flex:1;min-height:0;border-radius:3px 3px 0 0}
.page-admin .fin-pos{color:#5eead4}
.page-admin .fin-neg{color:#fca5a5}
