:root {
  --w-blue: #0a84ff;
  --w-blue-bright: #409cff;
  --w-blue-dim: rgba(10, 132, 255, 0.18);
  --w-blue-glow: rgba(10, 132, 255, 0.45);
  --w-red: #ff453a;
  --w-green: #30d158;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 49px;
  --page-x: 16px;
  --group-r: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
}

[data-scheme='wallet'] {
  --bg: #000000;
  --bg-2: #0d0d0f;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-bright: rgba(10, 132, 255, 0.22);
  --text: #ffffff;
  --text-2-a: rgba(235, 235, 245, 0.62);
  --text-3-a: rgba(235, 235, 245, 0.34);
  --separator: rgba(255, 255, 255, 0.07);
  --fill: rgba(120, 120, 128, 0.28);
  --fill-2: rgba(120, 120, 128, 0.2);
  --tabbar-bg: rgba(0, 0, 0, 0.82);
  --cell-press: rgba(10, 132, 255, 0.1);
  --quote-bg: rgba(255, 255, 255, 0.04);
  --accent: var(--w-blue);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.29412;
  letter-spacing: -0.41px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(10, 132, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(10, 132, 255, 0.06), transparent 50%);
}

#app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

.page {
  display: none;
  padding: 0 var(--page-x) 24px;
}

.page.active { display: block; }

.page--tab {
  padding-top: calc(8px + var(--safe-top));
}

.page-toolbar {
  margin-bottom: 12px;
}

/* ── Screen header ── */
.screen-header {
  padding: calc(8px + var(--safe-top)) 0 10px;
}

.screen-header--compact {
  padding-top: calc(10px + var(--safe-top));
  padding-bottom: 2px;
}

.screen-header--compact .screen-header__sub {
  margin-top: 6px;
  line-height: 22px;
}

.screen-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screen-header__title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.37px;
  line-height: 41px;
}

.screen-header__sub {
  margin-top: 4px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2-a);
}

.screen-header__sub--flush {
  margin: 0 0 14px;
}

.home-draw {
  margin-top: 10px;
}

.draw-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-2-a);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
}

.draw-pill--ok {
  color: var(--w-green);
  background: rgba(48, 209, 88, 0.1);
  border-color: rgba(48, 209, 88, 0.28);
}

.home-block {
  margin-bottom: 0 !important;
}

.home-section {
  margin-bottom: 16px;
}

.home-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-2-a);
  letter-spacing: 0.2px;
}

.home-section__head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--separator);
}

/* ── Home summary card ── */
.summary-card {
  margin-bottom: 18px;
  padding: 20px 16px 16px;
  border-radius: var(--group-r);
  border: 1px solid var(--card-border-bright);
  background:
    linear-gradient(145deg, rgba(10, 132, 255, 0.18) 0%, rgba(10, 132, 255, 0.05) 40%, rgba(28, 28, 30, 0.96) 100%),
    var(--card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.summary-card__amount {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: center;
  word-break: break-word;
}

.summary-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2-a);
  font-variant-numeric: tabular-nums;
}

.summary-card__meta-sep {
  color: var(--text-3-a);
  font-weight: 300;
}

.summary-split-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.summary-split-line__side {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2-a);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.summary-split-line__side--self { color: var(--w-blue-bright); }
.summary-split-line__side--walk { color: #bf5af2; text-align: right; }

.summary-split-line__bar {
  display: flex;
  gap: 2px;
  height: 8px;
  min-width: 0;
  padding: 1px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.summary-split-line__self,
.summary-split-line__walk {
  height: 100%;
  border-radius: 4px;
  min-width: 0;
  transition: width 0.35s ease;
}

.summary-split-line__self {
  background: linear-gradient(90deg, #0a84ff, #5ac8fa);
}

.summary-split-line__walk {
  background: linear-gradient(90deg, #5e5ce6, #bf5af2);
}

.summary-split-amts {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.summary-split-amts__self { color: var(--w-blue-bright); }
.summary-split-amts__walk { color: #bf5af2; text-align: right; }

.stats-panel {
  margin-bottom: 12px;
}

/* ── Wallet hero metrics ── */
.wallet-hero {
  display: flex;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 18px 8px 16px;
  border-radius: var(--group-r);
  border: 1px solid var(--card-border-bright);
  background:
    linear-gradient(145deg, rgba(10, 132, 255, 0.22) 0%, rgba(10, 132, 255, 0.06) 42%, rgba(28, 28, 30, 0.95) 100%),
    var(--card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wallet-hero--stacked {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  padding: 22px 16px 18px;
}

.wallet-hero__amount {
  font-size: clamp(22px, 5.2vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  word-break: break-word;
  max-width: 100%;
  padding: 0 4px;
}

.wallet-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2-a);
  font-variant-numeric: tabular-nums;
}

.wallet-hero__meta-sep {
  color: var(--text-3-a);
  font-weight: 300;
}

.stats-panel .home-split {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.wallet-hero__metric {
  flex: 1;
  text-align: center;
}

.wallet-hero__value {
  font-size: 32px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.wallet-hero__value.alert { color: var(--w-red); }

.wallet-hero__value--amount {
  font-size: clamp(17px, 4.2vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.3px;
  padding: 0 4px;
  word-break: break-word;
}

/* ── Self / walkoff split ── */
.home-split {
  margin: -6px 0 12px;
  padding: 16px;
  border-radius: var(--group-r);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.split-track {
  display: flex;
  gap: 3px;
  height: 10px;
  padding: 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 14px;
  overflow: hidden;
}

.split-track__self,
.split-track__walk {
  height: 100%;
  border-radius: 5px;
  min-width: 0;
  transition: width 0.35s ease;
}

.split-track__self {
  background: linear-gradient(90deg, #0a84ff 0%, #5ac8fa 100%);
  box-shadow: 0 0 14px rgba(10, 132, 255, 0.45);
}

.split-track__walk {
  background: linear-gradient(90deg, #5e5ce6 0%, #bf5af2 100%);
  box-shadow: 0 0 14px rgba(94, 92, 230, 0.35);
}

.split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.split-card {
  padding: 12px 12px 11px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  min-width: 0;
}

.split-card--self {
  background: linear-gradient(160deg, rgba(10, 132, 255, 0.14) 0%, rgba(10, 132, 255, 0.04) 100%);
  border-color: rgba(10, 132, 255, 0.22);
}

.split-card--walk {
  background: linear-gradient(160deg, rgba(94, 92, 230, 0.16) 0%, rgba(191, 90, 242, 0.05) 100%);
  border-color: rgba(94, 92, 230, 0.22);
}

.split-card__top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.split-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.split-card--self .split-card__dot {
  background: #0a84ff;
  box-shadow: 0 0 8px rgba(10, 132, 255, 0.8);
}

.split-card--walk .split-card__dot {
  background: #bf5af2;
  box-shadow: 0 0 8px rgba(191, 90, 242, 0.7);
}

.split-card__name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2-a);
  line-height: 18px;
}

.split-card__pct {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}

.split-card--self .split-card__pct { color: #5ac8fa; }
.split-card--walk .split-card__pct { color: #bf5af2; }

.split-card__amt {
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  word-break: break-word;
}

.progress--cap {
  height: 5px;
  border-radius: 3px;
}

.progress__cap {
  background: var(--w-blue);
  border-radius: 3px;
}

.status-cap {
  padding: 12px 16px 14px;
  border-bottom: 0.5px solid var(--separator);
}

.status-cap--warn .progress__cap {
  background: var(--w-red);
}

.status-cap--warn .status-cap__val {
  color: var(--w-red);
}

.status-cap__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.status-cap__title {
  font-size: 17px;
  line-height: 22px;
}

.status-cap__val {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2-a);
  font-variant-numeric: tabular-nums;
}

.cell__meta.bad { color: var(--w-red); }

.wallet-hero__label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--text-2-a);
  letter-spacing: 0.2px;
}

.wallet-hero__sep {
  width: 1px;
  background: var(--separator);
  margin: 4px 0;
}

/* ── Nav bar ── */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
  padding: calc(4px + var(--safe-top)) 0 6px;
  margin: 0 calc(-1 * var(--page-x));
  padding-left: 4px;
  padding-right: 4px;
}

.navbar__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: none;
  background: none;
  color: var(--w-blue);
  font: inherit;
  font-size: 17px;
  line-height: 22px;
  padding: 8px;
  cursor: pointer;
}

.navbar__back:active { opacity: 0.5; }

.navbar__chev {
  width: 13px;
  height: 21px;
  background: var(--w-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 21'%3E%3Cpath d='M11.5 1.5 3 10.5l8.5 9' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 21'%3E%3Cpath d='M11.5 1.5 3 10.5l8.5 9' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.navbar__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

.navbar__spacer { justify-self: end; width: 72px; }

/* ── Lang switch ── */
.lang-switch {
  display: inline-flex;
  margin-top: 10px;
  padding: 2px;
  border-radius: 8px;
  background: var(--fill-2);
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-2-a);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--w-blue-dim);
  color: var(--w-blue-bright);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.35);
}

/* ── Section headers / footers ── */
.section-header {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-2-a);
  margin: 0 0 8px 4px;
}

.section-footer {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-3-a);
  margin: -12px 4px 16px;
}

.page-notice {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-2-a);
  margin: 14px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.07);
  border: 1px solid rgba(10, 132, 255, 0.14);
  white-space: pre-line;
  word-break: break-word;
  letter-spacing: 0.01em;
}

/* ── Cards / groups ── */
.inset-group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--group-r);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.cell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.cell::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 0;
  bottom: 0;
  height: 0.5px;
  background: var(--separator);
  pointer-events: none;
}

.cell:last-child::after,
.cell--last::after,
.cell--action::after { display: none; }

.cell:active:not(.static) { background: var(--cell-press); }
.cell.static { cursor: default; }

.cell--action {
  justify-content: center;
  color: var(--w-blue);
  font-size: 17px;
  font-weight: 500;
  min-height: 50px;
}

.cell--action:active { opacity: 0.55; }

.cell--stat { min-height: 48px; cursor: default; }

.cell__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cell__icon svg { width: 18px; height: 18px; }

.cell__icon--wallet {
  background: linear-gradient(145deg, #0a84ff, #0066d6);
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35);
}

.cell__icon--wallet-dim {
  background: linear-gradient(145deg, rgba(10, 132, 255, 0.55), rgba(10, 132, 255, 0.25));
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.15);
}

.cell__icon--wallet-soft {
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  border: 1px solid var(--card-border-bright);
}

.cell__body { flex: 1; min-width: 0; }

.cell__title {
  font-size: 17px;
  line-height: 22px;
}

.cell__sub {
  margin-top: 2px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2-a);
}

.cell__accessory {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--text-2-a);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.cell__accessory.destructive { color: var(--w-red); }

.cell__chevron {
  display: flex;
  opacity: 0.45;
}

.cell__muted {
  font-size: 15px;
  color: var(--text-3-a);
}

.cell__quote {
  font-size: 15px;
  line-height: 20px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px 12px;
  background: var(--quote-bg);
  border-radius: 10px;
  border: 1px solid var(--separator);
}

.cell__meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2-a);
}

.cell--multiline {
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 10px;
}

.cell--quote {
  padding-top: 4px;
  padding-bottom: 12px;
}

.cell--quote::after { display: none; }

.cell--footer {
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 12px;
}

.cell__meta.ok { color: var(--w-green); }

.badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--w-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Overview ── */
.overview-row {
  padding: 14px 16px 6px;
}

.overview-row__labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2-a);
  margin-bottom: 10px;
}

.progress {
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  background: var(--fill-2);
}

.progress__self { background: var(--w-blue); }
.progress__walk { background: var(--w-blue-bright); opacity: 0.55; }

/* ── Segmented ── */
.segmented {
  display: flex;
  padding: 3px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  margin-bottom: 16px;
}

.segmented button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-2-a);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
}

.segmented button.active {
  background: var(--w-blue-dim);
  color: var(--w-blue-bright);
  box-shadow: inset 0 0 0 1px rgba(10, 132, 255, 0.3);
}

.segmented--scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 2px;
}

.segmented--scroll::-webkit-scrollbar { display: none; }

.segmented--scroll button {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 7px 10px;
  white-space: nowrap;
}

/* ── Report / numanalysis ── */
.page-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 18px;
}

.page-banner--warn {
  color: #ff9f0a;
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.28);
}

.doc-section {
  margin-bottom: 16px;
}

.doc-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-2-a);
}

.doc-section__head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--separator);
}

.doc-card {
  margin-bottom: 0 !important;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-top: 1px solid var(--separator);
  font-size: 15px;
  line-height: 20px;
}

.doc-row__label { color: var(--text-2-a); }
.doc-row__fen { color: var(--text-3-a); font-size: 13px; }
.doc-row__val {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.doc-expr,
.doc-note,
.doc-foot {
  margin-top: 8px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2-a);
}

.doc-note--warn { color: #ff9f0a; }

.num-stats {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--group-r);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.num-stats__counts {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.num-stats__source {
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2-a);
}

.num-play .doc-note {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--separator);
}

.num-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--separator);
}

.num-row:first-child { border-top: none; }

.num-row__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.num-row__number {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

.num-row__markers {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2-a);
}

.num-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 14px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.num-row__bets {
  font-size: 12px;
  color: var(--text-3-a);
}

.num-row__bets::after {
  content: ' 注';
}

/* ── List stack ── */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.list-section .inset-group {
  margin-bottom: 0;
}

/* ── Empty ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 24px 0 32px;
  padding: 36px 24px 40px;
  border-radius: var(--group-r);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(10, 132, 255, 0.1), transparent 65%),
    var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.empty-state__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: var(--text);
}

.empty-state__sub {
  margin-top: 6px;
  max-width: 260px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-2-a);
}

.empty {
  text-align: center;
  padding: 56px 24px;
  font-size: 17px;
  line-height: 22px;
  color: var(--text-3-a);
}

/* ── Loading / error ── */
.loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 2px;
  overflow: hidden;
}

.loading-bar[hidden] { display: none; }

.loading-bar__track {
  height: 100%;
  width: 28%;
  background: var(--w-blue);
  box-shadow: 0 0 12px var(--w-blue-glow);
  animation: wallet-load 1.1s ease-in-out infinite;
}

@keyframes wallet-load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(450%); }
}

.error-banner {
  position: fixed;
  top: calc(10px + var(--safe-top));
  left: var(--page-x);
  right: var(--page-x);
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--group-r);
  font-size: 15px;
  line-height: 20px;
  color: var(--w-red);
  background: rgba(28, 28, 30, 0.96);
  border: 1px solid rgba(255, 69, 58, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.error-banner[hidden] { display: none; }

/* ── Tab bar ── */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--tabbar-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 0.5px solid var(--card-border);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding-top: 5px;
  border: none;
  background: transparent;
  color: var(--text-3-a);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  cursor: pointer;
}

.tab svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
  transition: stroke-width 0.15s ease;
}

.tab.active svg { stroke-width: 2.25; }
.tab.active { color: var(--w-blue); }

.tab .pill {
  position: absolute;
  top: 2px;
  left: calc(50% + 7px);
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--w-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.tab .pill.show { display: flex; }
