/* Wallet & usage / Billing — scoped to .wl-root. Light & Gold on --sh-* tokens. */
.wl-root { display: flex; flex-direction: column; gap: 20px; color: var(--sh-on-surface); font-family: var(--sh-font); padding-top: 16px; min-width: 0; }
.wl-root *, .wl-root *::before, .wl-root *::after { box-sizing: border-box; }
.wl-root .material-symbols-outlined { font-size: 18px; line-height: 1; vertical-align: middle; flex-shrink: 0; }
.wl-root h1 { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; }
.wl-root h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wl-root h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 700; }
.wl-root p { margin: 0; }
.wl-root .wl-muted { color: var(--sh-on-surface-variant); font-size: 13px; margin: 0 0 12px; }

.wl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px 24px; }
.wl-head p { margin-top: 6px; font-size: 14px; color: var(--sh-on-surface-variant); max-width: 620px; }
.wl-kicker { font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; }
.wl-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.wl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sh-surface-container); font-size: 12px; font-weight: 600; white-space: nowrap; }
.wl-chip.wl-ok { background: #e6f6ec; color: #067647; }
.wl-chip.wl-warn { background: #fff4dc; color: #904d00; }
.wl-chip.wl-bad { background: #ffdad6; color: #ba1a1a; }

.wl-btn { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 8px; padding: 8px 14px; font-family: var(--sh-font); font-size: 13px; font-weight: 600; cursor: pointer; background: var(--sh-surface-lowest); color: var(--sh-on-surface); box-shadow: var(--sh-shadow); }
.wl-btn:hover { background: var(--sh-surface-low); }
.wl-btn[disabled] { opacity: .6; cursor: default; }
.wl-btn.wl-gold { background: var(--sh-primary-container); color: var(--sh-on-primary-container); font-weight: 700; box-shadow: 0 1px 3px rgba(133, 83, 0, .2); }
.wl-btn.wl-gold:hover { filter: brightness(.97); }

.wl-note { border-radius: 10px; padding: 12px 16px; font-size: 14px; line-height: 1.45; }
.wl-n-info { background: #fff6e0; color: #904d00; border: 1px solid #fde3b0; }
.wl-n-ok { background: #e6f6ec; color: #067647; }
.wl-n-err { background: #ffdad6; color: #ba1a1a; }

.wl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wl-tile { position: relative; overflow: hidden; background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wl-tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sh-surface-high); }
.wl-tile.wl-main::before { background: var(--sh-primary-container); }
.wl-tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.wl-lbl { font-size: 11px; font-weight: 700; color: var(--sh-on-surface-variant); text-transform: uppercase; letter-spacing: .06em; }
.wl-ico { width: 32px; height: 32px; border-radius: 8px; background: var(--sh-surface-low); color: var(--sh-primary); display: inline-flex; align-items: center; justify-content: center; }
.wl-big { font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.wl-val { font-size: 20px; line-height: 26px; font-weight: 800; letter-spacing: -.01em; }
.wl-val small { font-size: 12px; font-weight: 600; color: var(--sh-on-surface-variant); letter-spacing: 0; }
.wl-sub { font-size: 12px; color: var(--sh-on-surface-variant); line-height: 1.4; }
.wl-bar { height: 6px; border-radius: 99px; background: var(--sh-surface-container); overflow: hidden; }
.wl-bar i { display: block; height: 100%; border-radius: 99px; background: var(--sh-primary-container); }
.wl-bar i.hot { background: var(--sh-error); }

.wl-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.wl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wl-card { background: var(--sh-surface-lowest); box-shadow: var(--sh-shadow); border-radius: 12px; padding: 20px 24px; min-width: 0; }
.wl-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wl-card-head h2 { margin: 0; }

.wl-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.wl-q { border: 1px solid var(--sh-surface-high); background: var(--sh-surface-low); border-radius: 999px; padding: 5px 12px; font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.wl-q:hover { background: var(--sh-surface-container); }
.wl-f { display: block; font-size: 12px; font-weight: 700; margin: 0 0 12px; }
.wl-f input, .wl-f select { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid var(--sh-surface-high); border-radius: 8px; font: inherit; font-size: 14px; font-weight: 400; background: #fff; color: inherit; }
.wl-f input:focus, .wl-f select:focus { outline: 2px solid var(--sh-primary-container); outline-offset: 0; }
.wl-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.wl-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wl-reqs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.wl-reqs li .wl-muted { display: block; margin: 2px 0 0; font-size: 12px; }

.wl-tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--sh-surface-low); border-radius: 10px; flex-wrap: wrap; }
.wl-tabs button { border: none; background: transparent; font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; color: var(--sh-on-surface-variant); cursor: pointer; }
.wl-tabs button:hover { background: var(--sh-surface-container); color: var(--sh-on-surface); }
.wl-tabs button.active { background: var(--sh-surface-lowest); color: var(--sh-on-surface); font-weight: 700; box-shadow: var(--sh-shadow); }

.wl-scroll { overflow-x: auto; margin-bottom: 12px; }
.wl-root table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wl-root th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sh-on-surface-variant); padding: 8px 10px; white-space: nowrap; }
.wl-root td { padding: 10px; border-top: 1px solid var(--sh-surface-container); vertical-align: top; }
.wl-root .wl-r { text-align: right; white-space: nowrap; }
.wl-root .wl-wide { min-width: 200px; }
.wl-in { color: #067647; font-weight: 700; }
.wl-out { color: #ba1a1a; font-weight: 700; }
.wl-rec { color: var(--sh-on-surface-variant); }
.wl-zero { color: var(--sh-on-surface-variant); }
.wl-kind { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--sh-surface-container); font-size: 11px; font-weight: 700; }
.wl-k-topup { background: #e6f6ec; color: #067647; }
.wl-k-refund, .wl-k-adjustment { background: #fff4dc; color: #904d00; }
.wl-empty { padding: 28px 12px; text-align: center; color: var(--sh-on-surface-variant); font-size: 14px; }

.wl-rates summary { cursor: pointer; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.wl-rates ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--sh-on-surface-variant); display: flex; flex-direction: column; gap: 8px; }
.wl-rates b { color: var(--sh-on-surface); }

@media (max-width: 900px) {
  .wl-tiles, .wl-grid2, .wl-two { grid-template-columns: 1fr; }
  .wl-head { padding: 16px; } .wl-card { padding: 16px; }
}
