/* Gamador account UI. Uses shared theme tokens; no cascade recovery overrides. */
.gm-account-page .dash-shell { display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 24px; margin: 0 0 32px; padding: 24px; align-items: start; }
.dash-main { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
.dash-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.dash-breadcrumb a { text-decoration: none; }
.dash-breadcrumb span { color: var(--gold-text); }
.dash-breadcrumb i { font-size: 9px; }
.dash-sidebar { position: sticky; top: calc(var(--gm-top) + 20px); display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--gm-radius); background: var(--panel); }
.sidebar-user-card { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.sidebar-avatar { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); color: #172317; font-weight: 750; font-size: 20px; }
.avatar-status-dot { position: absolute; width: 11px; height: 11px; bottom: 1px; right: 1px; border: 2px solid var(--panel); border-radius: 50%; background: #9dafa4; }
.avatar-status-dot.online { background: #6adca2; }
.sidebar-user-info { min-width: 0; }
.sidebar-username { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.sidebar-user-name, .sidebar-user-meta, .sidebar-user-last { display: flex; align-items: flex-start; gap: 7px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.sidebar-user-meta i, .sidebar-user-last i, .sidebar-user-name i { margin-top: 3px; }
.sidebar-balance-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #173727; }
.balance-label { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 10px; font-weight: 650; letter-spacing: .6px; color: var(--muted); }
.balance-refresh-btn { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--gold); }
.balance-refresh-btn:hover { background: #29503a; }
.balance-amount { margin: 7px 0 14px; color: var(--gold-text); font-size: 27px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.balance-actions { display: flex; gap: 7px; }
.bal-action-btn { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 9px 8px; flex: 1; border: 1px solid var(--line); border-radius: 8px; color: var(--gold-text); background: var(--bg-1); text-decoration: none; font-size: 10px; font-weight: 700; }
.bal-deposit { background: var(--gold); border-color: var(--gold); color: #172317; }
.balance-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.balance-note i { margin-right: 4px; }
.sidebar-balance-bonus { background: #0c2116; }
.bonus-amount { margin-bottom: 0; font-size: 22px; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 12px; }
.sidebar-link i { width: 18px; text-align: center; color: var(--gold); }
.sidebar-link:hover, .sidebar-link.active { color: var(--text); background: #23412e; border-color: var(--line-soft); }
.dash-card, .account-hero { min-width: 0; padding: clamp(18px,2vw,28px); border: 1px solid var(--line-soft); border-radius: var(--gm-radius); background: var(--panel); }
.account-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; background: linear-gradient(125deg,#1e442e,var(--panel)); }
.account-hero h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.6px; }
.account-hero p { margin: 0; color: var(--muted); }
.dash-profile-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-width: 0; max-width: 100%; box-sizing: border-box; gap: 20px; padding: 22px; border: 1px solid var(--line-soft); border-radius: 14px; background: #193a28; box-shadow: none; }
.profile-strip-left { display: flex; align-items: center; min-width: 0; max-width: 100%; gap: 14px; }
.profile-strip-avatar { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); color: #182718; box-shadow: none; }
.avatar-letter-lg { color: #182718; font: 700 25px/1 "Inter",system-ui,sans-serif; }
.profile-strip-info { min-width: 0; }
.profile-strip-name { margin: 0 0 8px; color: var(--text); font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.profile-strip-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.badge-online { background: #88dca5; box-shadow: none; }
.badge-text.muted { color: var(--muted); opacity: 1; }
.profile-strip-actions { display: flex; flex-wrap: wrap; min-width: 0; max-width: 100%; box-sizing: border-box; gap: 10px; }
.psa-btn { min-width: 0; max-width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg-1); color: var(--gold-text); font-weight: 650; white-space: normal; overflow-wrap: anywhere; }
.psa-btn-deposit { background: var(--gold); color: #172317; }
.transaction-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dash-card-title { margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.4px; }
.transaction-card-head p { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
.ops-head-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.badge-text, .transaction-security { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-soft); border-radius: 8px; color: var(--muted); font-size: 11px; }
.dw-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 22px; border: 1px solid var(--line-soft); border-radius: 12px; background: #081b12; scroll-margin-top: calc(var(--gm-top) + 20px); }
.dw-tab { flex: 1; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 650; }
.dw-tab.active { background: #2b5039; color: var(--gold-text); }
.dw-panel { display: none; }
.dw-panel.active { display: grid; gap: 20px; }
.payment-methods { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 12px; }
.pm-card { width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #1b3d2a; color: var(--text); text-align: left; }
.pm-card.active { border-color: var(--gold); }
.pm-card-inner { display: flex; align-items: center; gap: 12px; padding: 15px; min-height: 76px; }
.pm-card-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 10px; color: var(--gold-text); background: #2d5038; }
.pm-card-label { min-width: 0; font-size: 16px; font-weight: 700; }
.pm-card-meta { margin-left: auto; padding: 4px 8px; border-radius: 7px; color: var(--gold-text); background: #2d5038; font-size: 10px; font-weight: 650; }
.finance-form { display: grid; gap: 20px; padding: 22px; border: 1px solid var(--line-soft); border-radius: 13px; background: #0a1d13; }
.finance-form-block { min-width: 0; }
.deposit-label { display: block; margin-bottom: 9px; font-weight: 550; font-size: 13px; color: var(--text); }
.deposit-input-wrap { position: relative; }
.deposit-currency { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }
.deposit-input { display: block; width: 100%; min-height: 52px; padding: 12px 14px 12px 42px; border: 1px solid #3c5b47; border-radius: 10px; background: #10271a; color: var(--text); font-size: 16px; }
.deposit-input::placeholder { color: #9aad9f; font-size: 14px; }
.deposit-input:focus { outline: 2px solid rgba(223,189,103,.35); outline-offset: 1px; border-color: var(--gold); }
.quick-amounts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.qa-btn { min-height: 42px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: #1a3827; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.qa-btn:hover, .qa-btn.selected { background: #375238; color: var(--gold-text); border-color: var(--gold); }
.deposit-note { display: block; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.deposit-note i { margin-right: 5px; color: var(--gold); }
.deposit-submit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid var(--gold); border-radius: 10px; color: #172317; background: var(--gold); font-weight: 700; }
.deposit-submit-btn:hover { background: var(--gold-soft); }
.withdraw-submit-btn { background: #26543a; color: var(--text); border-color: #659373; }
.withdraw-submit-btn:hover { background: #326b4a; }
.deposit-submit-btn:disabled { opacity: .55; cursor: wait; }
.h2h-bank-box { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #173c29; }
.h2h-bank-title { margin: 0 0 10px; font-size: 18px; color: var(--gold-text); }
.h2h-bank-hint { margin: 0 0 16px; font-size: 13px; }
.h2h-bank-rows { display: grid; gap: 8px; margin-bottom: 15px; }
.h2h-row { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: #0c2518; }
.h2h-row span { color: var(--muted); font-size: 11px; }
.h2h-row strong { font-size: 13px; overflow-wrap: anywhere; }
.h2h-copy-btn { min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--gold); color: #172317; font-size: 11px; font-weight: 650; }
.transactions-list { display: grid; gap: 9px; }
.transaction-row { display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: #0b2116; }
.transaction-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--gold-text); background: #284a33; }
.transaction-detail { min-width: 0; }
.transaction-detail strong { display: block; font-size: 13px; }
.transaction-detail small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.transaction-amount { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.transaction-amount.is-plus { color: #8ce0b0; }
.transaction-amount.is-minus { color: #f5a2ad; }
.transaction-status { padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.transaction-status.is-approved { color: #a8f0c5; background: #1b4930; }
.transaction-status.is-pending { color: #ffe0a3; background: #504522; }
.transaction-status.is-rejected { color: #ffc0c8; background: #573038; }
.transactions-empty { display: grid; justify-items: center; gap: 14px; padding: 36px 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.transactions-empty > i { font-size: 30px; color: var(--gold); }
.transactions-empty p { max-width: 48ch; margin: 0; }
.transactions-empty .deposit-submit-btn i { font-size: inherit; }
.history-focus { outline: 2px solid var(--gold); outline-offset: 4px; }
.mobile-sidebar-toggle, .sidebar-overlay { display: none; }

/* Legacy security pages keep their existing markup and handlers. The shared
   layout class makes this palette take precedence over their inline skin. */
body.gm-arwen-page.gm-sidebar-layout :is(.hg-crumb, .cp-crumb, .hg-head p, .cp-head p, .hg-row-desc, .cp-hint) { color: var(--muted); }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-crumb a, .cp-crumb a, .hg-user i, .hg-note i, .cp-field i, .cp-hint i) { color: var(--gold-text); }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-crumb i, .cp-crumb i) { color: #86a691; }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-card, .cp-card) { background: var(--panel); border-color: var(--line-soft); box-shadow: var(--shadow); }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-head > i, .cp-head > i) { color: var(--gold-text); background: #2d5038; box-shadow: none; }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-head h1, .cp-head h1, .hg-user strong, .hg-row-title, .cp-label) { color: var(--text); }
body.gm-arwen-page.gm-sidebar-layout .hg-user { color: var(--muted); background: #1b3928; border-color: var(--line-soft); }
body.gm-arwen-page.gm-sidebar-layout .hg-row { border-color: var(--line-soft); }
body.gm-arwen-page.gm-sidebar-layout .hg-row-ic { color: var(--gold-text); background: #1c3b29; border-color: var(--line); }
body.gm-arwen-page.gm-sidebar-layout .hg-switch { min-height: 42px; color: var(--muted); background: #0a1c13; border-color: #49604e; }
body.gm-arwen-page.gm-sidebar-layout .hg-switch .hg-state { color: var(--muted); }
body.gm-arwen-page.gm-sidebar-layout .hg-switch .hg-knob { background: #8a9f90; }
body.gm-arwen-page.gm-sidebar-layout .hg-switch.on { background: #346444; border-color: #7db38b; box-shadow: none; }
body.gm-arwen-page.gm-sidebar-layout .hg-switch.on .hg-state { color: #f0f9ed; }
body.gm-arwen-page.gm-sidebar-layout .hg-switch.on .hg-knob { background: #e8efdd; }
body.gm-arwen-page.gm-sidebar-layout .hg-note { background: #1a3425; border-color: var(--line); color: var(--muted); }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-pw, .cp-btn) { background: var(--gold); color: #192517; box-shadow: none; }
body.gm-arwen-page.gm-sidebar-layout :is(.hg-pw, .cp-btn):hover { background: var(--gold-soft); }
body.gm-arwen-page.gm-sidebar-layout .cp-field { background: #0a1d13; border-color: #385843; }
body.gm-arwen-page.gm-sidebar-layout .cp-field:focus-within { border-color: var(--gold); outline: 2px solid rgba(223,189,103,.3); outline-offset: 1px; }
body.gm-arwen-page.gm-sidebar-layout .cp-field input { min-width: 0; color: var(--text); font-size: 16px; }
body.gm-arwen-page.gm-sidebar-layout .cp-field input::placeholder { color: #a3b5a9; font-size: 13px; }
body.gm-arwen-page.gm-sidebar-layout .cp-msg.ok { color: #b1f0c8; background: #1a422b; border-color: #507e5d; }
body.gm-arwen-page.gm-sidebar-layout .cp-msg.err { color: #ffd0d6; background: #482c32; border-color: #9e6570; }

@media (max-width: 1200px) {
  .gm-account-page .dash-shell { grid-template-columns: 230px minmax(0,1fr); gap: 18px; padding: 20px; }
  .dash-sidebar { padding: 12px; }
  .transaction-row { grid-template-columns: 36px minmax(0,1fr) auto; }
  .transaction-status { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .gm-account-page .dash-shell { margin-left: 0; }
}
@media (max-width: 700px) {
  .gm-sidebar-layout > .dash-shell { grid-template-columns: 1fr; padding: 14px 12px 24px; }
  .dash-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .sidebar-user-card, .sidebar-nav { grid-column: 1 / -1; }
  .sidebar-nav { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .sidebar-link { flex: 0 0 auto; }
  .sidebar-balance-card { padding: 12px; }
  .gm-arwen-page .sidebar-balance-card { grid-column: 1 / -1; }
  .gm-arwen-page .balance-actions { flex-direction: row; }
  .balance-amount { font-size: 21px; }
  .balance-actions { flex-direction: column; }
  .balance-note { line-height: 1.4; }
  .dash-card, .account-hero { padding: 18px 14px; }
  .dash-profile-strip { padding: 18px 14px; }
  .dash-card-title { font-size: 21px; }
  .finance-form { padding: 16px 12px; gap: 18px; }
  .pm-card-inner { padding: 12px; gap: 9px; }
  .pm-card-label { font-size: 14px; }
  .h2h-row { grid-template-columns: 1fr auto; gap: 5px 12px; }
  .h2h-row > span { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .transaction-row { grid-template-columns: 34px minmax(0,1fr); padding: 12px; }
  .transaction-amount, .transaction-status { grid-column: 2; justify-self: start; }
  .transaction-icon { width: 34px; height: 34px; }
  .pm-card-meta { display: none; }
}
