[hidden] { display: none !important; }
main { padding-top: 38px; }
main>h1 { font-size: 28px; margin: 0; letter-spacing: -.035em; line-height: 1.4; }
.panel { margin-top: 24px; }
body[data-account-state="signed-in"] main>.panel { overflow: visible; border: 0; background: none; box-shadow: none; }
#state-account { padding: 0; }
.account-head { align-items: center; padding: 0 0 24px; }
.identity>div:last-child { min-width: 0; }
.identity h2 { font-size: 16px; }
.identity p { font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; font-size: 18px; }
.logout { padding: 12px 0 12px 16px; font-size: 13px; white-space: nowrap; }
.wallet-grid { margin-top: 24px; }
.metric { min-height: 112px; padding: 20px 24px; background: #0c1422; }
.metric strong { margin-top: 12px; font-size: 28px; }
.metric .status { font-size: 17px; }
.wallet-note { margin-top: 12px; font-size: 12px; color: var(--subtle); }
.wallet-note summary { cursor: pointer; width: fit-content; padding: 4px 0; }
.wallet-note p { margin-top: 6px; line-height: 1.8; }
.account-block { margin-top: 28px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(140deg,#0c1423,#070d18); }
.account-block>h2, .account-block>.section-head h2 { font-size: 19px; font-weight: 600; }
.account-block>.section-head { margin-top: 0; align-items: center; }
.funding-tabs { display: flex; gap: 24px; margin: 18px 0 24px; border-bottom: 1px solid var(--line); }
.funding-tabs button { position: relative; padding: 12px 0; border: 0; background: none; font-size: 14px; color: var(--subtle); cursor: pointer; }
.funding-tabs button[aria-selected="true"] { color: #fff; }
.funding-tabs button[aria-selected="true"]::after { content: ''; position: absolute; height: 2px; background: var(--orange); bottom: -1px; left: 0; right: 0; }
.funding-panels { display: grid; }
.funding-panel { grid-area: 1 / 1; min-width: 0; align-self: start; }
.funding-panel-inactive { visibility: hidden; pointer-events: none; }
.funding .funding-intro, .funding #voucher-panel .funding-intro { margin: 0; color: var(--subtle); font-size: 13px; line-height: 1.8; }
.funding .payment-rules { min-height: 104px; }
.funding #voucher-panel .payment-rules p { font-size: 13px; line-height: 1.8; }
.recharge { border: 0; margin: 0; padding: 0; }
.recharge-tiers { max-width: 660px; }
.recharge-tier { height: 88px; padding: 16px; border-radius: 12px; background: #ffffff02; }
.recharge-tier:has(input:checked) { border-color: #ff9a55; background: #ff852e0a; }
.recharge-tier input { accent-color: var(--orange); }
.recharge-tier strong { font-size: 24px; }
.recharge-tier span { font-size: 12px; }
.payment-rules { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: #ffffff03; max-width: 780px; }
.payment-rules p { color: #c3ccd9; font-size: 13px; line-height: 1.8; }
.payment-rules a, .payment-rules summary { color: #ffb780; text-decoration: underline; text-underline-offset: 3px; }
.payment-rules summary { margin-top: 8px; cursor: pointer; width: fit-content; font-size: 12px; }
.payment-rules details p { margin-top: 8px; }
button[data-payment-submit], #voucher-submit { min-height: 46px; padding: 0 22px; background: #ff852e; color: #211006; border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; }
[data-payment-submit]:disabled { opacity: .5; cursor: default; }
[data-payment-message], #voucher-message, #voucher-admission { margin-top: 12px; font-size: 13px; line-height: 1.8; }
[data-payment-message]:empty, #voucher-message:empty, #voucher-admission:empty { display: none; }
.history-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.history-heading h3 { margin: 0; font-size: 14px; font-weight: 500; }
.refresh { min-height: 40px; padding: 8px; font-size: 12px; }
#voucher-panel p { margin: 0; }
#voucher-panel .voucher-copy { color: var(--muted); margin-top: 26px; }
.voucher-buy-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 660px; margin: 18px 0; }
.voucher-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; height: 88px; padding: 16px; border: 1px solid var(--line-bright); border-radius: 12px; background: #ffffff03; }
.voucher-option strong { display: block; margin: 0; font-size: 24px; line-height: 1.25; font-weight: 600; }
#voucher-panel .voucher-option p { font-size: 12px; }
#voucher-panel .voucher-option a { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-height: 36px; padding: 6px 16px; margin: 0; border: 1px solid #ffad714d; border-radius: 999px; background: #ff852e12; color: #ffb780; font-size: 13px; line-height: 1.4; }
#voucher-panel .voucher-option a[hidden],.voucher-unavailable[hidden] { display: none; }
.voucher-unavailable { display: block; color: var(--subtle); font-size: 12px; }
#voucher-form { display: flex; align-items: center; gap: 12px; margin: 0; max-width: 780px; }
.voucher-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#voucher-form label { flex: 1; min-width: 0; color: var(--muted); font-size: 12px; }
#voucher-code { display: block; width: 100%; min-height: 46px; margin-top: 0; padding: 10px 14px; color: var(--text); background: #030917; border: 1px solid #ffffff35; border-radius: 10px; font: inherit; font-size: 14px; }
#voucher-panel #voucher-submit { flex-shrink: 0; background: #ff852e; color: #211006; border: 0; border-radius: 999px; }
.voucher-buy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
#voucher-panel .voucher-buy-links a { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 8px 16px; border: 1px solid #ffffff30; border-radius: 999px; font-size: 12px; }
#voucher-panel #voucher-purchase-status { margin-top: 12px; font-size: 13px; line-height: 1.8; }
.records-viewport { max-height: 400px; overflow: auto; scrollbar-width: thin; scrollbar-color: #52627b transparent; padding-right: 10px; }
.activity { margin-top: 12px; }
.activity .records-viewport { height: 400px; }
.activity-row { padding: 13px 2px; }
.activity-row strong { font-weight: 500; }
.activity-detail { display: inline-block; margin-top: 5px; font-size: 12px; color: var(--subtle); }
.activity-detail summary { cursor: pointer; width: fit-content; }
.activity-detail p { overflow-wrap: anywhere; }
.recharge-order { padding: 14px 0; }
.recharge-order p { font-size: 12px; line-height: 1.8; }
#voucher-history p { font-size: 13px; line-height: 1.8; padding: 14px 0; margin: 0; }
.records-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding-top: 16px; color: var(--subtle); font-size: 12px; }
.records-pagination button, #voucher-panel .records-pagination button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #ffffff04; cursor: pointer; font-size: 12px; }
.records-pagination button:disabled { opacity: .35; cursor: default; }
.account-settings>h2 { margin-bottom: 8px; }
.security-row { margin: 0; padding: 18px 0; }
.security-row h2 { font-size: 14px; }
.security-row p { margin-top: 5px; font-size: 12px; }
.security-row a { font-size: 12px; }
#legal-settings { padding-top: 18px; }
#legal-settings>summary { cursor: pointer; font-size: 14px; }
#legal-settings p { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 12px; }
.legal-links { display: flex; gap: 24px; margin-top: 14px; font-size: 13px; color: #ffb780; }
.legal-pending { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding: 12px 16px; background: #ff852e09; border: 1px solid #ff852e30; border-radius: 12px; font-size: 13px; }
.legal-pending button { border: 0; background: none; color: #ffb780; cursor: pointer; min-height: 36px; }
.legal-consent label { display: flex; align-items: start; gap: 10px; margin: 16px 0; font-size: 13px; line-height: 1.8; }
.legal-consent input { margin-top: 5px; accent-color: var(--orange); }
.legal-consent a { text-decoration: underline; text-underline-offset: 3px; }
.legal-consent .button { min-height: 40px; font-size: 13px; }
@media(max-width:720px) {
 main { padding: 28px 0 44px; }
 main>h1 { font-size: 25px; }
 .account-head { flex-direction: row; gap: 12px; padding-bottom: 20px; }
 .identity { gap: 12px; }
 .identity h2 { font-size: 14px; max-width: 180px; }
 .identity p { font-size: 12px; max-width: 180px; }
 .logout { font-size: 12px; }
 .wallet-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
 .metric { padding: 17px; min-height: 100px; }
 .metric strong { font-size: 25px; }
 .metric:last-child { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; min-height: 54px; }
 .metric:last-child strong { margin: 0; }
 .account-block { padding: 22px 18px; margin-top: 22px; border-radius: 16px; }
 .recharge-tiers { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
 .recharge-tier { padding: 13px 9px; gap: 5px; }
 .recharge-tier strong { font-size: 20px; }
 .recharge-tier span { font-size: 10px; line-height: 1.7; }
 .recharge-tier input { margin: 0; }
 .voucher-buy-options { gap: 10px; }
 .voucher-option { padding: 13px 12px; gap: 8px; }
 .voucher-option strong { font-size: 20px; }
 #voucher-panel .voucher-option a { padding: 6px 12px; font-size: 12px; }
 .payment-rules { padding: 13px; }
 .payment-rules p { font-size: 12px; }
 .activity .records-viewport { height: 300px; }
 .records-viewport { max-height: 300px; padding-right: 6px; }
 .records-pagination { gap: 10px; justify-content: space-between; }
 #voucher-form { flex-direction: column; align-items: stretch; }
 .security-row { gap: 12px; }
 .security-row p { max-width: 220px; }
}
@media(max-width:420px) { .voucher-buy-options { grid-template-columns: 1fr; } }

[data-payment-history] .records-viewport, #voucher-history .records-viewport { max-height: 240px; }
.activity .records-viewport:has(.empty) { height: auto; min-height: 120px; }
[data-funding-tab] { scroll-margin-top: 110px; }

.funding-launch-notice{color:#d5deec;background:rgba(255,135,38,.07);border:1px solid rgba(255,135,38,.25);border-radius:12px;padding:14px 16px;line-height:1.7;margin:18px 0}
.funding-on-hold .payment-rules,.funding-on-hold #voucher-form{display:none}
.funding-on-hold [data-payment-submit]{opacity:.65;cursor:not-allowed}
