.account-page [hidden] { display: none !important; }
.account-page .nav-actions { margin-left: auto; }
.account-page .account-header-link { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: .85rem; }
.account-page .account-header-link:hover { border-color: var(--line-strong); }
.account-main { min-height: calc(100svh - var(--header-h) - 116px); padding: 64px 0 88px; }
.account-shell { width: min(960px, calc(100% - 48px)); margin: 0 auto; }
.account-message { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted-strong); background: var(--panel); line-height: 1.7; }
.account-message:empty { display: none; }
.account-message.is-error { border-color: rgba(255, 75, 114, .38); color: #ffc3d0; }
.account-login-card { width: min(440px, 100%); margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-solid); }
.account-page h1 { max-width: none; margin: 0 0 12px; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.account-page h2 { margin: 0; font-size: 1.3rem; line-height: 1.35; letter-spacing: -.015em; }
.account-page h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.account-muted { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; overflow-wrap: anywhere; }
.account-login-card form { margin-top: 28px; }
.account-page label { display: block; margin: 18px 0 8px; color: var(--muted-strong); font-size: .88rem; }
.account-page input { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #0b0c12; color: var(--text); font: inherit; }
.account-page input:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.account-page button:focus-visible, .account-page a:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
.account-page button:disabled, .account-page input:disabled { opacity: .55; cursor: default; }
.account-submit { width: 100%; margin-top: 26px; }
.account-profile { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.account-profile > div { min-width: 0; }
.account-card { margin-top: 24px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-solid); }
.account-section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.account-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(255, 255, 255, .035); color: var(--muted-strong); font: inherit; font-size: .85rem; cursor: pointer; }
.account-secondary:hover { border-color: rgba(255, 255, 255, .3); color: var(--text); }
.account-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.account-wallet dt { color: var(--muted); font-size: .85rem; }
.account-wallet dd { margin: 10px 0 0; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 650; overflow-wrap: anywhere; }
.account-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.65; overflow-wrap: anywhere; }
.account-section-heading .account-note { margin: 0; }
.account-amount-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.account-amount-fields legend { margin-bottom: 14px; color: var(--muted-strong); font-size: .9rem; }
.account-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.account-preset { min-height: 56px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #0b0c12; color: var(--text); font: inherit; font-weight: 650; cursor: pointer; overflow-wrap: anywhere; }
.account-preset[aria-pressed="true"] { border-color: var(--brand-soft); background: rgba(255, 0, 63, .09); }
.account-preset span, .account-preset small { display: block; }
.account-preset small { margin-top: 7px; color: var(--muted); font-size: .73rem; font-weight: 400; line-height: 1.5; }
.account-custom-field { max-width: 340px; margin-top: 22px; }
.account-custom-field .account-note { margin-top: 8px; }
.account-topup-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.account-topup-actions > span { color: var(--muted); font-size: .9rem; }
.account-topup-actions strong { margin-left: 12px; color: var(--text); font-size: 1.3rem; }
.account-current-topup { margin-top: 24px; padding: 24px; border: 1px solid var(--line-strong); border-radius: 12px; background: #0b0c12; }
.account-current-topup .account-section-heading { margin-bottom: 12px; }
.account-current-topup > p:not(.account-note) { margin: 0; color: var(--muted-strong); line-height: 1.7; }
.account-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.account-history-scroll { overflow-x: auto; }
.account-history { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
.account-history th, .account-history td { padding: 16px 12px; border-bottom: 1px solid var(--line); line-height: 1.65; }
.account-history th { color: var(--muted); font-weight: 500; }
.account-history td { color: var(--muted-strong); }
.account-history th:first-child, .account-history td:first-child { padding-left: 0; }
.account-history th:nth-child(2), .account-history td:nth-child(2) { white-space: nowrap; }
@media (max-width: 680px) {
  .account-shell { width: calc(100% - 32px); }
  .account-main { padding: 36px 0 56px; }
  .account-login-card { padding: 26px 22px; }
  .account-profile { align-items: flex-start; }
  .account-card { padding: 22px; }
  .account-wallet { grid-template-columns: 1fr; gap: 20px; }
  .account-wallet > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
  .account-wallet dd { margin: 0; font-size: 1.4rem; }
  .account-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-custom-field { max-width: none; }
  .account-current-topup { padding: 18px; }
  .account-order-actions { align-items: stretch; flex-direction: column; }
  .account-topup-actions > .button { width: 100%; }
  .account-page .nav-actions { gap: 8px; }
  .account-page .account-header-link { padding: 9px; font-size: .78rem; }
  .account-history th, .account-history td { padding: 12px 8px; font-size: .78rem; }
}
