/* =====================================================================
   TaskEarn — design system v2
   Palette:  obsidian #12141C / #1B1F2B   fog #6B7486   mist #EEF1F5
             emerald  #10A876 (earnings)  ember #D8483B (money out)
             gold     #CC8A22 (premium)   indigo #5B5FEE (admin / links)
   Type:     Space Grotesk (headings, figures) + Inter (body)
   ===================================================================== */

:root {
  --ink:      #12141C;
  --ink-2:    #1B1F2B;
  --ink-3:    #262C3B;
  --ink-warm:   #1A1611;
  --ink-warm-2: #241F17;
  --fog:      #6B7486;
  --fog-2:    #9AA2B1;
  --line:     #E3E6EC;
  --line-2:   #EDEFF3;
  --mist:     #F4F3EF;
  --card:     #FFFFFF;
  --card-rgb: 255, 255, 255;
  --paper-a:  #EFEDE6;
  --paper-b:  #EAF1EC;

  /* Constant "brand navy" — used for decorative dark surfaces (sidebar,
     primary buttons, active tabs, login backdrop) that should stay dark
     regardless of theme. Deliberately NOT redefined in dark mode below —
     unlike --ink, this never flips. */
  --navy:     #12141C;
  --navy-2:   #1B1F2B;

  --emerald:  #10A876;
  --emerald-d:#0B7F58;
  --ember:    #D8483B;
  --gold:     #CC8A22;
  --indigo:   #5B5FEE;

  --accent:      var(--emerald);
  --accent-d:    var(--emerald-d);
  --accent-tint: rgba(16,168,118,.10);

  --r-sm:   8px;
  --r:      14px;
  --r-lg:   20px;
  --rail-w: 244px;

  --shadow-sm: 0 1px 2px rgba(18,20,28,.05), 0 1px 1px rgba(18,20,28,.04);
  --shadow-md: 0 10px 26px -12px rgba(18,20,28,.18);
  --shadow-lg: 0 22px 48px -20px rgba(18,20,28,.32);
  --shadow-dark: 0 18px 44px -18px rgba(9,10,15,.55);

  --ease: cubic-bezier(.2,.7,.2,1);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fig:  "Space Grotesk", var(--sans);
}

/* ---------------------------------------------------------------------
   Dark mode — same variable names, dark values. Toggled by setting
   data-theme="dark" on <html> (see foot.php). Persisted in localStorage.
   --------------------------------------------------------------------- */
html[data-theme="dark"] {
  --ink:      #ECEEF3;
  --ink-2:    #C9CDD8;
  --ink-3:    #9AA2B1;
  --fog:      #9AA2B1;
  --fog-2:    #6B7486;
  --line:     #2A2F3D;
  --line-2:   #232733;
  --mist:     #14171F;
  --card:     #1B1F2B;
  --card-rgb: 27, 31, 43;
  --paper-a:  #14171F;
  --paper-b:  #171B23;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 1px 1px rgba(0,0,0,.3);
  --shadow-md: 0 10px 26px -12px rgba(0,0,0,.55);
  --shadow-lg: 0 22px 48px -20px rgba(0,0,0,.65);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1000px 560px at 92% -8%, rgba(16,168,118,.09), transparent 60%),
    radial-gradient(800px 500px at -5% 12%, rgba(204,138,34,.06), transparent 55%),
    linear-gradient(180deg, var(--paper-a), var(--mist) 340px);
}

/* Theme toggle switch, shown in the top bar of both panels */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover { border-color: var(--fog-2); }
.theme-toggle svg { width: 15px; height: 15px; flex: none; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 560px at 92% -8%, rgba(16,168,118,.07), transparent 60%),
    radial-gradient(800px 500px at -5% 12%, rgba(204,138,34,.05), transparent 55%),
    linear-gradient(180deg, var(--paper-a), var(--mist) 340px);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); }

h1, h2, h3 { font-family: var(--fig); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

.muted { color: var(--fog); }
.small { font-size: 13px; }
.strong { font-weight: 600; }

::selection { background: rgba(16,168,118,.22); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------- sidebar */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(91,95,238,.10), transparent 55%),
    linear-gradient(190deg, var(--navy-2), var(--navy) 70%);
  color: #A9B1C2;
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  overflow-y: auto;
  z-index: 40;
  border-right: 1px solid rgba(255,255,255,.05);
}

.rail__brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--fig); font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  padding: 0 8px 22px;
}

.rail__mark {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--emerald), var(--emerald-d));
  box-shadow: 0 4px 12px -2px rgba(16,168,118,.55), inset 0 0 0 1px rgba(255,255,255,.15);
}
.rail__mark--logo { object-fit: cover; background: none; box-shadow: none; border-radius: 7px; }

.rail__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.rail__group {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
  color: #5B6478; margin: 20px 10px 7px;
}

.rail__link {
  padding: 9px 12px;
  border-radius: 9px;
  color: #A9B1C2;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}

.rail__link:hover { background: rgba(255,255,255,.06); color: #fff; }

.rail__link.is-active {
  background: rgba(16,168,118,.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.rail__out {
  margin-top: 20px; padding: 10px 12px;
  color: #808A9C; text-decoration: none; font-size: 13.5px; font-weight: 500;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  transition: color .15s var(--ease);
}

.rail__out:hover { color: #fff; }

/* --------------------------------------------------------------- shell */

.shell { margin-left: var(--rail-w); min-height: 100vh; display: flex; flex-direction: column; }

.top {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 26px;
  background: rgba(var(--card-rgb), .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}

.top__menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.top__menu span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

.top__wallets { display: flex; gap: 10px; flex: 1; }

.wallet {
  display: flex; flex-direction: column; line-height: 1.2;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 6px 14px;
}
.wallet__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fog); font-weight: 600; }
.wallet__value { font-family: var(--fig); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--accent); }
.wallet--muted { background: transparent; }
.wallet--muted .wallet__value { color: var(--fog); }

.top__bell {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mist); flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--fog);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.top__bell:hover { background: var(--line-2); color: var(--ink); }
.top__bell svg { width: 17px; height: 17px; }
.top__dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--ember); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.page { padding: 28px; flex: 1; max-width: 1200px; width: 100%; }

.foot {
  padding: 22px 26px 34px; color: var(--fog); font-size: 13px;
  border-top: 1px solid var(--line); margin-top: 24px;
}
.foot p { margin: 0 0 6px; }
.foot__note { max-width: 620px; }

/* ---------------------------------------------------------------- head */

.head { margin-bottom: 22px; }
.head__title { font-size: 27px; }
.head__sub { color: var(--fog); margin: 5px 0 0; max-width: 620px; }

/* --------------------------------------------------- quota (signature) */

.quota {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.quota__top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.quota__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
  color: var(--fog); margin: 0;
}

.quota__count {
  font-family: var(--fig); font-size: 42px; font-weight: 700;
  line-height: 1.1; margin: 3px 0 0; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.quota__count span { font-size: 18px; font-weight: 500; color: var(--fog); margin-left: 6px; }

.quota__earn { text-align: right; }
.quota__money {
  font-family: var(--fig); font-size: 25px; font-weight: 600;
  margin: 3px 0 0; color: var(--accent); font-variant-numeric: tabular-nums;
}
.quota__trend { font-size: 12.5px; margin: 3px 0 0; font-weight: 500; }
.quota__trend.is-up { color: var(--accent); }
.quota__trend.is-down { color: var(--ember); }

/* one tick per task — countable, not a percentage bar */
.ticks {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 20px 0 15px;
}
.tick {
  width: 14px; height: 8px; border-radius: 2px;
  background: var(--line);
  transition: background .2s var(--ease);
}
.tick.is-done { background: var(--accent); }
.ticks__empty { color: var(--fog); font-size: 13px; }

.quota__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--fog);
  border-top: 1px solid var(--line); padding-top: 15px;
}
.quota__done { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------- wallet-card (hero) */

.wallet-card {
  position: relative;
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(16,168,118,.34), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(204,138,34,.24), transparent 50%),
    linear-gradient(160deg, var(--ink-warm-2), var(--ink-warm) 68%);
  border-radius: var(--r-lg);
  padding: 26px 26px 24px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}
.wallet-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(230,190,120,.14);
  pointer-events: none;
}

.wallet-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.wallet-card__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--fig); font-weight: 700; font-size: 13px;
  color: rgba(255,255,255,.68);
  text-transform: uppercase; letter-spacing: .08em;
}
.wallet-card__chip { width: 25px; height: 25px; border-radius: 8px; flex: none; background: linear-gradient(140deg, var(--emerald), var(--emerald-d)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.wallet-card__chip--logo { object-fit: cover; background: none; box-shadow: none; }

.wallet-card__tier {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #241A03; background: linear-gradient(140deg, #F3CA6E, var(--gold));
  padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 4px 10px -3px rgba(204,138,34,.6);
}

.wallet-card__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  color: rgba(255,255,255,.5); margin: 24px 0 4px;
}
.wallet-card__balance {
  font-family: var(--fig); font-size: 42px; font-weight: 700;
  font-variant-numeric: tabular-nums; line-height: 1.05; margin: 0;
  letter-spacing: -0.02em;
}

.wallet-card__id {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 22px; gap: 16px; flex-wrap: wrap;
}
.wallet-card__name { font-family: var(--fig); font-size: 14.5px; letter-spacing: .03em; margin: 0; color: rgba(255,255,255,.9); }
.wallet-card__since { margin: 0; text-align: right; }
.wallet-card__since dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin: 0; }
.wallet-card__since dd { font-family: var(--fig); font-size: 13px; margin: 2px 0 0; color: rgba(255,255,255,.9); }

.wallet-card__divider { border: 0; border-top: 1px dashed rgba(255,255,255,.16); margin: 22px 0 17px; }

.wallet-card__stats { display: flex; gap: 32px; flex-wrap: wrap; margin: 0; }
.wallet-card__stats dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin: 0; }
.wallet-card__stats dd { font-family: var(--fig); font-size: 17px; font-weight: 600; margin: 3px 0 0; font-variant-numeric: tabular-nums; }

.wallet-actions { display: flex; gap: 10px; margin-bottom: 22px; }
.wallet-actions .btn { flex: 1; text-align: center; }

.card--premium { border-top: 3px solid var(--gold); }

/* --------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 19px 21px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s var(--ease);
}

.card--wide { grid-column: 1 / -1; }

.card__title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fog); font-weight: 700; margin-bottom: 12px;
}

.card__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.plan__name { font-family: var(--fig); font-size: 27px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.plan__meta { color: var(--fog); font-size: 13.5px; margin: 3px 0 14px; }

.rows { margin: 0; }
.rows > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line-2);
}
.rows > div:last-child { border-bottom: 0; }
.rows dt { color: var(--fog); font-size: 13.5px; margin: 0; }
.rows dd { margin: 0; font-family: var(--fig); font-variant-numeric: tabular-nums; }

.plain { margin: 0; padding-left: 18px; color: var(--fog); }
.plain li { margin-bottom: 6px; }

.empty { color: var(--fog); margin: 6px 0; }

/* --------------------------------------------------------------- table */

.tbl, .table { width: 100%; border-collapse: collapse; }
.tbl th, .table th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--fog); font-weight: 700;
  padding: 0 10px 10px 0; border-bottom: 1px solid var(--line);
}
.tbl td, .table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td, .table tr:last-child td { border-bottom: 0; }
.tbl tr, .table tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: var(--mist); }
.tbl__type { display: block; }
.tbl__note { display: block; font-size: 12.5px; color: var(--fog); }
.tbl__when { color: var(--fog); font-size: 13px; white-space: nowrap; }
.tbl__amt {
  text-align: right; font-family: var(--fig); font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.is-up { color: var(--accent); }
.is-down { color: var(--ember); }

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: var(--mist); color: var(--fog); font-size: 12px; font-weight: 600;
}
.pill--ok { background: rgba(16,168,118,.12); color: var(--emerald-d); }
.pill--bad { background: rgba(216,72,59,.12); color: var(--ember); }
.pill--warn { background: rgba(204,138,34,.14); color: #9A6416; }

/* ------------------------------------------------------------ PTC ads */
/* List cards, no photos — title, reward + time pills, one big CTA. */

.ad-stats { display: flex; gap: 10px; margin: 16px 0 4px; flex-wrap: wrap; }
.ad-stat {
  flex: 1; min-width: 140px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}
.ad-stat dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--fog); font-weight: 600; margin: 0; }
.ad-stat dd {
  font-family: var(--fig); font-size: 21px; font-weight: 700; margin: 4px 0 0;
  font-variant-numeric: tabular-nums;
}
.ad-stat--earn dd { color: var(--accent); }

/* ------------------------------------------------------- task history */

.hist-day__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--fog); margin: 24px 0 9px;
}
.hist-day:first-of-type .hist-day__label { margin-top: 18px; }

.hist-list { display: flex; flex-direction: column; gap: 8px; }

.hist-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}
.hist-row__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.hist-row__icon svg { width: 15px; height: 15px; }

.hist-row__body { flex: 1; min-width: 0; }
.hist-row__title {
  font-weight: 600; margin: 0; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-row__meta { color: var(--fog); font-size: 12px; margin: 2px 0 0; }

.hist-row__amt {
  flex: none; font-family: var(--fig); font-weight: 700; font-size: 15px;
  color: var(--accent); font-variant-numeric: tabular-nums; margin: 0;
}

.hist-row__time { flex: none; font-size: 11.5px; color: var(--fog); white-space: nowrap; }
.hist-row--unread { border-left: 3px solid var(--accent); }

.ad-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

.ad-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 17px 19px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.ad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.ad-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ad-card__title { font-family: var(--fig); font-size: 16px; font-weight: 600; margin: 0; line-height: 1.3; }

.ad-card__exclusive {
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #241A03; background: linear-gradient(140deg, #F3CA6E, var(--gold));
  padding: 5px 10px; border-radius: 999px;
}

.ad-card__type {
  flex: none;
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
  background: var(--mist); color: var(--fog);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line);
}

.ad-card__pills { display: flex; gap: 8px; margin: 13px 0 15px; flex-wrap: wrap; }
.ad-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.ad-pill svg { width: 12px; height: 12px; flex: none; }
.ad-pill--reward { background: var(--accent-tint); color: var(--emerald-d); }
.ad-pill--time   { background: var(--mist); color: var(--fog); }

.ad-card__cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--navy); color: #fff;
  padding: 13px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  transition: background .15s var(--ease);
}
.ad-card__cta svg { width: 14px; height: 14px; }
.ad-card:hover .ad-card__cta { background: var(--navy-2); }

/* ---- ad detail: info card + embedded ad + timer ---- */

.ad-info { margin-bottom: 16px; }
.ad-info .ad-card__title { font-size: 19px; }

.ad-frame-wrap {
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin-bottom: 16px;
  background: var(--mist);
}
.ad-frame { display: block; width: 100%; height: 60vh; min-height: 340px; max-height: 560px; border: 0; }
.ad-frame-note {
  padding: 9px 14px; font-size: 12px; color: var(--fog);
  border-top: 1px solid var(--line); text-align: center;
}
.ad-frame-note a { color: var(--ink); }

.ad-flow { text-align: center; }

.ad-timer { display: flex; justify-content: center; margin: 6px 0 16px; }
.ad-timer__ring { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; }
.ad-timer__svg { position: absolute; inset: 0; }
.ad-timer__figure { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ad-timer__count { font-family: var(--fig); font-size: 38px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-timer__unit { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--fog); }

.ad-flow__msg { margin: 0 0 16px; color: var(--fog); font-size: 13px; }

/* ------------------------------------------------------------- games */

/* ---- coin flip: a real 3D-flip coin, not just buttons ---- */

.coin-wrap { perspective: 700px; display: flex; justify-content: center; margin: 4px 0 22px; }
.coin {
  width: 130px; height: 130px; position: relative;
  transform-style: preserve-3d;
  transition: transform 1.4s cubic-bezier(.34, 1.56, .64, 1);
}
.coin__face {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fig); font-size: 52px; font-weight: 800; color: #fff;
  backface-visibility: hidden;
  box-shadow: var(--shadow-dark), inset 0 0 0 4px rgba(255,255,255,.25);
}
.coin__face--btc { background: linear-gradient(150deg, #F7A83E, #E8830E); }
.coin__face--eth { background: linear-gradient(150deg, #8A94F5, var(--indigo)); transform: rotateY(180deg); }
.coin.is-spinning { transform: rotateY(1800deg); }
.coin.land-btc { transform: rotateY(1800deg); }
.coin.land-eth { transform: rotateY(1980deg); }

/* ---- scratch ticket: 6-cell click-to-reveal grid, 3 matching = win ---- */

.ticket {
  max-width: 300px; margin: 8px auto 20px; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-dark);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(16,168,118,.34), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(204,138,34,.24), transparent 50%),
    linear-gradient(160deg, var(--ink-warm-2), var(--ink-warm) 68%);
  padding: 19px;
}
.ticket__title {
  font-family: var(--fig); font-weight: 700; color: #fff; font-size: 15px;
  text-align: center; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em;
}
.ticket__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ticket__cell {
  aspect-ratio: 1; border-radius: 11px; border: 0; cursor: pointer;
  background: linear-gradient(155deg, #C3CAD6, #97A1B0);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fig); font-weight: 700; font-size: 17px; color: var(--navy);
  transition: transform .15s ease;
}
.ticket__cell:active { transform: scale(.94); }
.ticket__cell:disabled { cursor: default; }
.ticket__cell.is-revealed {
  background: #fff; color: var(--navy); font-size: 14px;
  box-shadow: inset 0 0 0 2px var(--line);
}
.ticket__cell.is-match { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); color: var(--emerald-d); }

.ticket--sealed { padding: 32px 20px 28px; position: relative; overflow: hidden; }
.ticket--sealed::before {
  content: '';
  position: absolute; inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,.09) 0%, transparent 60%);
  animation: ticket-shimmer 3.5s ease-in-out infinite;
}
@keyframes ticket-shimmer {
  0%, 100% { transform: translate(-10%, -10%) scale(1); }
  50%      { transform: translate(10%, 10%) scale(1.15); }
}
.ticket__seal-icon {
  width: 58px; height: 58px; margin: 0 auto 15px; position: relative;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--emerald), var(--emerald-d));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(16,168,118,.6);
}
.ticket__seal-icon svg { width: 28px; height: 28px; color: #fff; }
.ticket__seal-title {
  position: relative; font-family: var(--fig); font-size: 19px; font-weight: 700;
  color: #fff; text-align: center; margin: 0 0 6px;
}
.ticket__seal-sub {
  position: relative; font-size: 13px; color: rgba(255,255,255,.65);
  text-align: center; margin: 0;
}
.ticket__seal-sub strong { color: #fff; }

/* --------------------------------------------------------------- tiers */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.tier {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 21px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.tier:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.tier--flag { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(204,138,34,.10); }

.tier__badge {
  position: absolute; top: -11px; left: 21px;
  background: linear-gradient(140deg, #E3A73F, var(--gold)); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px;
  box-shadow: 0 4px 10px -3px rgba(204,138,34,.6);
}

.tier--free { background: transparent; border-style: dashed; }

.tier__name { font-size: 19px; }
.tier__price {
  font-family: var(--fig); font-size: 29px; font-weight: 700;
  margin: 7px 0 15px; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.tier__price span {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--fog); letter-spacing: 0;
}

.tier__list { list-style: none; margin: 0 0 15px; padding: 0; flex: 1; }
.tier__list li { padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.tier__list li:last-child { border-bottom: 0; }
.tier__list strong { font-family: var(--fig); }

.tier__desc { color: var(--fog); font-size: 13.5px; margin: 0 0 14px; }
.tier__state { color: var(--fog); font-size: 13px; margin: 0; }

.tier__estimate {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; margin: 0 0 15px;
}
.tier__estimate-label { font-size: 11.5px; color: var(--fog); margin: 0 0 4px; }
.tier__estimate-value { font-family: var(--fig); font-weight: 600; font-size: 14.5px; margin: 0; }
.tier__estimate-net { font-size: 12.5px; font-weight: 600; margin: 4px 0 0; }
.tier__estimate-net.is-up { color: var(--emerald-d); }
.tier__estimate-net.is-down { color: var(--ember); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 11px 19px;
  border: 1px solid var(--navy);
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font: inherit; font-weight: 600; font-size: 14.5px;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn--ghost:hover { background: var(--mist); border-color: var(--fog-2); }

.btn--secondary { background: var(--mist); color: var(--ink); border-color: var(--line); font-weight: 500; }
.btn--secondary:hover { background: var(--line-2); }

.btn--go { background: var(--accent); border-color: var(--accent); }
.btn--go:hover { background: var(--accent-d); }

.btn--sm { padding: 7px 13px; font-size: 13px; border-radius: 7px; }

.btn--block { display: block; width: 100%; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* --------------------------------------------------------------- notes */

.note {
  padding: 13px 17px;
  border-radius: var(--r);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid;
}
.note--ok   { background: rgba(16,168,118,.08);  border-color: rgba(16,168,118,.3);  color: #0A6B4A; }
.note--bad  { background: rgba(216,72,59,.08);   border-color: rgba(216,72,59,.3);   color: #8E3527; }
.note--info { background: rgba(204,138,34,.08);  border-color: rgba(204,138,34,.3);  color: #8A5A0C; }

/* --------------------------------------------------------------- forms */

.form { display: flex; flex-direction: column; gap: 14px; }

.field { display: block; }
.field__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field__opt { color: var(--fog); font-weight: 400; }
.field__hint { display: block; font-size: 12.5px; color: var(--fog); margin-top: 5px; }

.field input, .field select, .field textarea, .copy input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--card);
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus, .copy input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--mist); color: var(--fog); cursor: not-allowed;
}

.field-error { color: var(--ember); font-size: 13px; margin: 6px 0 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--fog); }
.check input { margin-top: 3px; flex: none; }

.copy { display: flex; gap: 8px; margin: 12px 0 10px; }
.copy input { font-size: 13px; }

/* -------------------------------------------------------- filters (admin lists) */

.filters {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.filters .field { min-width: 160px; flex: 1; margin: 0; }
.filters .field__label { margin-bottom: 4px; }
.filters .btn { flex: none; }

/* Search box with a leading icon, used across admin list pages */
.search-box { position: relative; flex: 2; min-width: 220px; }
.search-box svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--fog); pointer-events: none;
}
.search-box input {
  width: 100%; padding: 10px 13px 10px 38px;
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; background: var(--card); color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search-box input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.search-box .search-clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--fog); text-decoration: none; line-height: 1;
}
.search-box .search-clear:hover { background: var(--mist); color: var(--ink); }

.filters select {
  padding: 10px 30px 10px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; background: var(--card); color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236B7486' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M5 7.5l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 10px center;
}
.filters select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint);
}
.filters .btn { border-radius: 999px; }

/* --------------------------------------------------- referrals module */

.referral-link-box {
  display: flex; gap: 8px; align-items: center;
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; margin: 8px 0 14px;
}
.referral-link-box input, .referral-link-box span {
  flex: 1; border: 0; background: none; font: inherit; font-size: 13.5px;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin: 14px 0 20px;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 16px; box-shadow: var(--shadow-sm);
}
.stat-value { font-family: var(--fig); font-size: 23px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--fog); margin: 4px 0 0; font-weight: 500; }

/* ------------------------------------------------- payment methods (deposit/withdraw) */

.pm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 14px 0 4px; }

.pm-card {
  border: 2px solid var(--line); border-radius: var(--r); position: relative;
  padding: 15px 10px; text-align: center; cursor: pointer;
  background: var(--card); font: inherit;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pm-card:hover { border-color: var(--accent); }
.pm-card.is-selected { border-color: var(--accent); background: var(--accent-tint); }

.pm-card img { height: 26px; max-width: 84px; object-fit: contain; margin-bottom: 8px; }
.pm-card__icon {
  width: 29px; height: 29px; border-radius: 8px; margin: 0 auto 8px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: var(--fig);
}
.pm-card__name { font-size: 12.5px; font-weight: 600; margin: 0 0 2px; }
.pm-card__min { font-size: 11px; color: var(--fog); margin: 0; }

.pm-receive {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; margin: 16px 0 4px;
}
.pm-receive__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--fog); font-weight: 600; margin: 0; }
.pm-receive__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pm-receive__num { font-family: var(--fig); font-weight: 700; font-size: 17px; }
.pm-receive__note { font-size: 12px; color: var(--fog); margin: 8px 0 0; }

.pm-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.pm-amounts button {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.pm-amounts button:hover { border-color: var(--navy); }
.pm-amounts button.is-picked { border-color: var(--navy); background: var(--navy); color: #fff; }

.field input[type="file"] {
  padding: 10px 11px; border: 1px dashed var(--fog-2); border-radius: var(--r-sm);
  font-size: 13px; background: var(--mist); width: 100%;
}
.copy__btn {
  flex: none; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--mist); font: inherit; cursor: pointer;
  transition: background .15s var(--ease);
}
.copy__btn:hover { background: var(--line-2); }

/* ---------------------------------------------------------- auth pages */

.gate {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background:
    radial-gradient(1100px 520px at 50% -10%, #232B3D 0%, var(--navy) 62%);
}

.gate__box {
  width: 100%; max-width: 420px;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 32px 30px 28px;
  box-shadow: var(--shadow-lg);
}

.gate__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--fig); font-weight: 700; font-size: 16px;
  text-decoration: none; margin-bottom: 20px;
}

.gate__title { font-size: 24px; }
.gate__sub { color: var(--fog); margin: 5px 0 18px; font-size: 14px; }
.gate__box .form { margin-top: 18px; }
.gate__alt { text-align: center; color: var(--fog); font-size: 14px; margin: 18px 0 0; }

/* -------------------------------------------------------------- scrim */

.scrim { position: fixed; inset: 0; background: rgba(18,20,28,.5); backdrop-filter: blur(2px); z-index: 35; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 860px) {
  .rail { transform: translateX(-100%); transition: transform .22s ease; }
  .rail.is-open { transform: none; }
  .shell { margin-left: 0; }
  .top__menu { display: block; }
  .page { padding: 16px; }
  .top { padding: 12px 16px; gap: 12px; }
  .top__wallets { gap: 8px; }
  .quota__count { font-size: 34px; }
  .wallet-card__balance { font-size: 32px; }
  .wallet-card { padding: 20px 18px; }
  .quota__earn { text-align: left; }
  .head__title { font-size: 22px; }
  .tbl--full { display: block; overflow-x: auto; white-space: nowrap; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters .field { min-width: 0; }
  .filters .search-box { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ tabs */

.tabs {
  display: flex; gap: 8px; margin: 18px 0 0; padding-bottom: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  padding: 9px 16px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); background: var(--card);
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--fog); white-space: nowrap;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.tabs button:hover { border-color: var(--fog-2); }
.tabs button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* -------------------------------------------------------- big countdown timer */

.countdown {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin: 10px 0 22px;
}
.countdown__box {
  min-width: 74px;
  background: var(--navy); color: #fff;
  border-radius: var(--r-sm);
  padding: 14px 10px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.countdown__num {
  display: block;
  font-family: var(--fig); font-weight: 700; font-size: 34px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block; margin-top: 6px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}
@media (max-width: 480px) {
  .countdown__box { min-width: 64px; padding: 11px 6px 8px; }
  .countdown__num { font-size: 26px; }
}

.pager {
  display: flex; align-items: center; gap: 12px;
}
.pager__label { color: var(--fog); font-size: 13.5px; }

/* ================================================================= public home page */

.home-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  background: rgba(var(--card-rgb), .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  flex-wrap: wrap;
}
.home-nav__brand { display: flex; align-items: center; gap: 8px; font-family: var(--fig); font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; min-width: 0; }
.home-nav__brand img, .home-nav__brand .brand-mark { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.home-nav__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.home-nav__actions .btn { padding: 9px 14px; font-size: 13.5px; white-space: nowrap; }

.home-hero {
  padding: 44px 18px 36px; text-align: center;
  background:
    radial-gradient(900px 460px at 50% -12%, rgba(16,168,118,.10), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(204,138,34,.08), transparent 55%);
}
.home-hero__title {
  font-family: var(--fig); font-weight: 700; font-size: 30px; line-height: 1.15;
  letter-spacing: -0.02em; margin: 0 auto 12px; max-width: 620px;
}
.home-hero__desc { color: var(--fog); font-size: 14.5px; max-width: 520px; margin: 0 auto 22px; line-height: 1.6; }
.home-hero__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.home-hero__cta .btn { min-width: 0; flex: 1 1 160px; max-width: 220px; }

.home-section { max-width: 960px; margin: 0 auto; padding: 8px 22px 48px; }
.home-section__title { font-family: var(--fig); font-weight: 700; font-size: 24px; text-align: center; margin: 0 0 26px; }

.home-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.home-feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.home-feature__icon {
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.home-feature__icon svg { width: 20px; height: 20px; }
.home-feature__title { font-weight: 700; font-size: 15.5px; margin: 0 0 6px; }
.home-feature__desc { color: var(--fog); font-size: 13.5px; margin: 0; line-height: 1.5; }

.home-why {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; max-width: 620px; margin: 0 auto;
}
.home-why li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.home-why__check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.home-why__check svg { width: 12px; height: 12px; }

.home-footer {
  text-align: center; padding: 24px 22px 32px; color: var(--fog); font-size: 13px;
  border-top: 1px solid var(--line);
}
.home-footer a { color: var(--fog); }

@media (max-width: 480px) {
  .home-nav { padding: 12px 14px; }
  .home-hero { padding: 32px 14px 28px; }
  .home-hero__title { font-size: 24px; }
  .home-hero__desc { font-size: 13.5px; }
  .home-section { padding: 4px 14px 34px; }
  .home-section__title { font-size: 20px; margin-bottom: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 12px 13px; }
  .stat-value { font-size: 18px; }
  .home-feature { padding: 16px; }
}

/* ================================================================= Aviator */

.av-stage { padding: 16px; }

.av-history {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px;
  scrollbar-width: thin;
}
.av-chip {
  flex: none; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  font-family: var(--fig);
}
.av-chip--low  { background: rgba(56,132,255,.14);  color: #2E68D6; }
.av-chip--mid  { background: rgba(153,69,255,.14);   color: #7A2FD1; }
.av-chip--high { background: rgba(255,69,150,.14);   color: #D12E76; }

.av-display {
  position: relative; overflow: hidden;
  border-radius: var(--r); padding: 46px 20px 56px; text-align: center;
  background: radial-gradient(120% 140% at 50% 100%, #1B2333 0%, var(--navy) 65%);
  transition: background .4s ease;
}
.av-display.is-betting { background: radial-gradient(120% 140% at 50% 100%, #1B2333 0%, var(--navy) 65%); }
.av-display.is-flying  { background: radial-gradient(120% 140% at 50% 100%, #0F3D2C 0%, #0A2419 65%); }
.av-display.is-crashed { background: radial-gradient(120% 140% at 50% 100%, #4A231C 0%, #2E1611 65%); }

.av-display::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    repeating-conic-gradient(from 200deg at 50% 105%,
      rgba(255,255,255,.05) 0deg 6deg, transparent 6deg 14deg);
}

.av-multiplier {
  position: relative; z-index: 2;
  font-family: var(--fig); font-weight: 700; font-size: 52px; color: #fff; margin: 0;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.av-status { position: relative; z-index: 2; color: rgba(255,255,255,.75); font-size: 14px; margin: 8px 0 0; }

.av-players {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: -6px;
  background: rgba(0,0,0,.35); border-radius: 999px; padding: 5px 12px 5px 6px;
}
.av-players__dot {
  width: 20px; height: 20px; border-radius: 50%; margin-left: -6px;
  background: linear-gradient(135deg, #5B5FEE, #10A876);
  border: 2px solid rgba(0,0,0,.35);
}
.av-players__dot:first-child { margin-left: 0; }
.av-players__count { margin-left: 8px; color: #fff; font-size: 12.5px; font-weight: 700; font-family: var(--fig); }

.av-fair { text-align: center; font-size: 11.5px; color: var(--fog); margin: 10px 0 0; font-family: var(--fig); }

/* mode/list tabs */
.av-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.av-tab {
  flex: 1; padding: 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist);
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--fog); cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.av-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* stepper + amount */
.av-amount-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.av-amount-row input {
  flex: 1; text-align: center; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-weight: 700; background: var(--card); color: var(--ink);
}
.av-step {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1;
}
.av-step:hover { border-color: var(--fog-2); }

.av-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.av-presets button {
  padding: 9px 4px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--mist);
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.av-presets button:hover { border-color: var(--fog-2); }

.av-bet-btn { font-size: 16px; font-weight: 700; }

.av-panels {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px;
}
@media (max-width: 640px) {
  .av-panels { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .av-multiplier { font-size: 38px; }
  .av-display { padding: 34px 14px 46px; }
}
