/* ═══════════════════════════════════════════════════════════════════
   VAULT Sportsbook — app shell
   Self-contained: this page is an application, not a marketing page,
   so it no longer inherits the Odds AI site stylesheet.
═══════════════════════════════════════════════════════════════════ */

:root {
  /* Midnight Vault — identical tokens to the Odds AI site, so VAULT
     reads as the same company rather than a bolted-on third party. */
  --bg:          #070A12;
  --panel:       #0E1424;
  --panel-2:     #141B30;
  --panel-3:     #1D263F;
  --line:        rgba(255,255,255,.07);
  --line-2:      rgba(255,255,255,.12);

  --gold:        #E5BC4A;
  --gold-deep:   #B8902E;
  --gold-bright: #F7DD8A;

  /* Blue stays the interactive accent — selected odds, focus rings —
     because gold is reserved for the primary action on every screen. */
  --primary:     #4F8DF9;
  --primary-hi:  #7FB0FF;
  --green:       #34C759;
  --red:         #FF3B5C;
  --amber:       #E5BC4A;

  --text:        #EEF1F8;
  --text-dim:    #9AA3B8;
  --text-faint:  #5C6478;

  --f-display: 'Space Grotesk', -apple-system, sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'Space Mono', ui-monospace, monospace;

  --rail-w: 74px;
  --slip-w: 340px;
  --top-h:  62px;
  --r:  10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* The UA stylesheet's `[hidden] { display: none }` is a bare attribute
   selector, so ANY class rule that sets display outranks it. That is
   why the loading skeleton kept shimmering and Log in / Register stayed
   on screen while signed in — .top-actions sets display:flex, so
   toggling the hidden attribute did nothing. Every JS-toggled element
   here depends on this holding. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Same layered glow the Odds AI site uses, so the two feel continuous. */
body::before {
  content:''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(79,141,249,.10), transparent 60%),
    radial-gradient(80% 60% at 85% 8%, rgba(229,188,74,.06), transparent 55%);
}

img, svg { display: block; max-width: 100%; }

/* Scrolling quality ------------------------------------------------
   Sticky top bar + sticky sport bar means anchor jumps land under the
   chrome without a scroll offset. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 56px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Background must not scroll while the slip panel is being scrolled. */
body.slip-open { overflow: hidden; }

/* Visible, unobtrusive scrollbars — the default dark-on-dark ones are
   nearly invisible, which is why the panel felt like it had no scroll
   affordance at all. */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18); border-radius: 999px;
  border: 3px solid transparent; background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.34); background-clip: content-box; }
button { font-family: inherit; cursor: pointer; }
a { color: var(--primary-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(26,117,232,.35); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .9rem; font-weight: 600; padding: 11px 20px;
  border-radius: var(--r); border: 1px solid transparent;
  transition: background .18s, border-color .18s, transform .12s var(--ease), opacity .18s;
  white-space: nowrap; color: var(--text);
}
.btn:active { transform: scale(.98); }
/* Gold is the primary action, matching the Odds AI site's CTA. */
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1A1305;
  box-shadow: 0 8px 26px -10px rgba(229,188,74,.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #FFE9A6, var(--gold-bright)); color: #1A1305; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--panel-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-3); }
.btn-sm { padding: 8px 14px; font-size: .83rem; }
.btn-block { width: 100%; }
.btn-google { width: 100%; background: #fff; color: #1F2937; font-weight: 600; }
.btn-google:hover { background: #F1F3F5; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r); background: transparent; border: 0; color: var(--text-dim);
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; color: var(--text-dim); font-size: .85rem;
  text-decoration: underline; padding: 6px; width: 100%; margin-top: 10px; }
.link-btn:hover { color: var(--text); }

/* ── App frame ─────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--rail-w) minmax(0,1fr) var(--slip-w); min-height: 100vh; }

/* Rail */
.rail {
  grid-column: 1; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px; padding: 12px 8px;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 11px 4px; border-radius: var(--r); border: 0;
  background: transparent; color: var(--text-faint); transition: .18s;
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn span { font-size: .62rem; font-weight: 600; letter-spacing: .02em; }
.rail-btn:hover { background: var(--panel-2); color: var(--text-dim); }
.rail-btn.is-on { background: var(--primary); color: #fff; }

/* Main */
.main { grid-column: 2; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: var(--panel); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep));
  font-family: var(--f-display); font-weight: 700; color: #14110A; font-size: 1.05rem;
  box-shadow: 0 4px 14px -4px rgba(229,188,74,.6);
}
.logo-word { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); }
.bal-amt { font-family: var(--f-mono); font-size: .92rem; font-weight: 700; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--panel-3); color: var(--text); font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}
.avatar:hover { background: var(--panel-2); }

/* Sport bar */
.sportbar {
  position: sticky; top: var(--top-h); z-index: 25;
  display: flex; gap: 6px; padding: 12px 18px; overflow-x: auto;
  background: var(--bg); border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.sportbar::-webkit-scrollbar { display: none; }
.sp-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text-dim);
  font-size: .86rem; font-weight: 600; transition: .18s;
}
.sp-btn:hover { background: var(--panel-2); color: var(--text); }
.sp-btn.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.sp-btn .n { font-size: .74rem; opacity: .7; font-family: var(--f-mono); }

/* Content */
.content { flex: 1; padding: 18px; display: flex; flex-direction: column; }

.board-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.board-head h1 { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.feed-state { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-faint); }
.fs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: 0 0 auto; }
.feed-state.is-live .fs-dot { background: var(--green); box-shadow: 0 0 7px var(--green); }
.feed-state.is-bad .fs-dot { background: var(--red); }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); }
.seg-full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.seg-btn { padding: 7px 13px; border: 0; border-radius: 7px; background: transparent;
  color: var(--text-faint); font-size: .82rem; font-weight: 600; transition: .18s; }
.seg-btn:hover { color: var(--text-dim); }
.seg-btn.is-on { background: var(--panel-3); color: var(--text); }

/* ── Event rows ────────────────────────────────────────────────── */
.events { display: flex; flex-direction: column; gap: 9px; }

.lg-head { display: flex; align-items: center; gap: 9px; margin: 14px 0 2px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.lg-head::after { content:''; flex: 1; height: 1px; background: var(--line); }

.ev {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 13px 16px; display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 14px; align-items: center; transition: border-color .18s;
}
.ev:hover { border-color: var(--line-2); }

.ev-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; flex-wrap: wrap; }
.ev-time { font-size: .76rem; color: var(--text-faint); font-weight: 600; }
.ev-live { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 5px; }
.ev-live::before { content:''; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ev-lg { font-size: .74rem; color: var(--text-faint); }

.ev-teams { display: grid; gap: 6px; min-width: 0; }
.ev-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ev-logo { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.ev-name { font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-score { margin-left: auto; font-family: var(--f-mono); font-weight: 700; font-size: .95rem; color: var(--text); }

.ev-odds { display: grid; grid-auto-flow: column; gap: 7px; }
.odd {
  min-width: 86px; padding: 11px 12px; border-radius: var(--r);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: background .16s, border-color .16s, transform .1s var(--ease);
}
.odd:hover { background: var(--panel-3); border-color: var(--line-2); }
.odd:active { transform: scale(.97); }
.odd-lbl { font-size: .68rem; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.odd-val { font-family: var(--f-mono); font-size: .95rem; font-weight: 700; }
.odd.is-on { background: var(--primary); border-color: var(--primary); }
.odd.is-on .odd-lbl { color: rgba(255,255,255,.8); }
.odd.is-on .odd-val { color: #fff; }
.odd:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 2px; }

.ev-soon { font-size: .8rem; color: var(--text-faint); padding: 11px 14px;
  border: 1px dashed var(--line-2); border-radius: var(--r); white-space: nowrap; }

.ev-tag { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; cursor: help;
  background: rgba(245,166,35,.14); color: var(--amber); border: 1px solid rgba(245,166,35,.3); }
.ev-tag-dim { background: rgba(255,255,255,.05); color: var(--text-faint); border-color: var(--line-2); }

.slip-note { font-size: .78rem; line-height: 1.5; color: var(--amber); margin-bottom: 10px;
  padding: 9px 12px; border-radius: 8px;
  background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.26); }

/* Onboarding payment step */
.wallet-box { text-align: left; margin-bottom: 6px; }
.wb-row { display: flex; align-items: center; gap: 9px; padding: 11px 13px; margin-bottom: 12px;
  border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2);
  font-size: .85rem; color: var(--text-dim); }
.wb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: 0 0 auto; }
.wb-row.is-on { border-color: rgba(46,204,113,.45); color: var(--text); }
.wb-row.is-on .wb-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.wb-help { font-size: .76rem; color: var(--text-faint); line-height: 1.55; margin-top: 10px; }

.sk { height: 84px; border-radius: var(--r-lg); background: var(--panel);
  border: 1px solid var(--line); position: relative; overflow: hidden; }
.sk::after { content:''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: sweep 1.4s infinite; }
@keyframes sweep { to { transform: translateX(100%); } }

.empty { padding: 60px 20px; text-align: center; color: var(--text-faint);
  border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty strong { display: block; color: var(--text-dim); margin-bottom: 6px; font-size: 1rem; }

/* ── Bet slip ──────────────────────────────────────────────────── */
/* One scroll container, not three.
   The slip previously nested a scrolling .slip-list inside a fixed
   .slip, which clipped the selections at the top and pushed the
   confirm button off the bottom — the panel had no way to scroll to
   its own footer. Now the panel is a fixed-height flex column and
   .slip-main is the single scrollable region, footer included.
   100dvh (not 100vh) so mobile browser chrome doesn't eat the end. */
.slip {
  grid-column: 3; background: var(--panel); border-left: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; z-index: 35;
  overflow: hidden;
}
.slip-head { display: flex; align-items: center; gap: 10px; padding: 0 16px;
  height: var(--top-h); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.slip-head h2 { font-family: var(--f-display); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.slip-n { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: .74rem; font-family: var(--f-mono); }
.slip-close { display: none; margin-left: auto; background: none; border: 0; color: var(--text-dim); font-size: 1.6rem; line-height: 1; }

.slip-empty { padding: 50px 26px; text-align: center; color: var(--text-faint); }
.slip-empty svg { width: 40px; height: 40px; margin: 0 auto 14px; opacity: .5; }
.slip-empty p { font-size: .88rem; }
.slip-empty .dim { color: var(--text-faint); margin-top: 5px; font-size: .82rem; }

.slip-main {
  flex: 1; min-height: 0; padding: 14px 14px 20px;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* No longer its own scroll box — it grows and the panel scrolls. */
.slip-list { margin-top: 12px; }
.slip-empty { overflow-y: auto; }

.pick { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 12px; margin-bottom: 8px; position: relative; animation: pin .22s var(--ease); }
@keyframes pin { from { opacity: 0; transform: translateY(-5px); } }
.pick-top { display: flex; align-items: baseline; gap: 8px; }
.pick-sel { font-size: .88rem; font-weight: 650; }
.pick-odds { margin-left: auto; font-family: var(--f-mono); font-weight: 700; color: var(--primary-hi); font-size: .9rem; }
.pick-mkt { font-size: .73rem; color: var(--text-faint); margin-top: 3px; }
.pick-ev { font-size: .76rem; color: var(--text-dim); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-x { position: absolute; top: 7px; right: 8px; background: none; border: 0;
  color: var(--text-faint); font-size: 1.05rem; line-height: 1; padding: 2px 4px; }
.pick-x:hover { color: var(--red); }
.pick.is-stale { border-color: var(--amber); }
.pick-warn { font-size: .72rem; color: var(--amber); margin-top: 5px; }

.slip-foot { flex: 0 0 auto; padding: 12px 0 14px; border-top: 1px solid var(--line); margin-top: 10px; }
.stake { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.stake > span { font-size: .82rem; color: var(--text-dim); font-weight: 600; }
.stake-in { margin-left: auto; display: flex; align-items: center; gap: 4px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 12px; width: 140px; }
.stake-in:focus-within { border-color: var(--primary); }
.stake-in i { font-style: normal; color: var(--text-faint); font-family: var(--f-mono); }
.stake-in input { flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--text); font-family: var(--f-mono); font-size: 1rem; font-weight: 700; text-align: right; }

.chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.chips button { padding: 7px 0; border-radius: 8px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--text-dim); font-size: .78rem; font-weight: 600; font-family: var(--f-mono); }
.chips button:hover { background: var(--panel-3); color: var(--text); }

.totals { border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); overflow: hidden; margin-bottom: 10px; }
.totals > div { display: flex; justify-content: space-between; padding: 9px 13px; font-size: .84rem; color: var(--text-dim); }
.totals > div + div { border-top: 1px solid var(--line); }
.totals span:last-child { font-family: var(--f-mono); font-weight: 700; color: var(--text); }
.t-return { background: rgba(46,204,113,.07); }
.t-return span:last-child { color: var(--green) !important; font-size: 1rem; }

.details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.details summary { padding: 9px 13px; font-size: .8rem; color: var(--text-dim); cursor: pointer; list-style: none; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '⌄'; float: right; }
.details[open] summary { border-bottom: 1px solid var(--line); }
.det-row { display: flex; justify-content: space-between; padding: 7px 13px; font-size: .8rem; color: var(--text-faint); }
.det-row span:last-child { font-family: var(--f-mono); color: var(--text-dim); }
.det-row em { font-style: normal; opacity: .7; }
.det-note { padding: 8px 13px 11px; font-size: .72rem; color: var(--text-faint); line-height: 1.5; }

.slip-clear { width: 100%; margin-top: 9px; background: none; border: 0; color: var(--text-faint); font-size: .8rem; }
.slip-clear:hover { color: var(--red); }

/* Mobile slip bar */
.slipbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  align-items: center; gap: 11px; padding: 14px 18px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1A1305; font-size: .92rem; font-weight: 650;
  box-shadow: 0 12px 34px -8px rgba(229,188,74,.6);
}
.sb-n { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%;
  background: rgba(0,0,0,.25); font-family: var(--f-mono); font-size: .76rem; }
.sb-ret { margin-left: auto; font-family: var(--f-mono); font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────────── */
.foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.foot-links button, .foot-links a { background: none; border: 0; color: var(--text-dim);
  font-size: .83rem; text-decoration: none; padding: 0; }
.foot-links button:hover, .foot-links a:hover { color: var(--text); text-decoration: underline; }
.foot-warn { font-size: .78rem; color: var(--text-faint); line-height: 1.6; max-width: 72ch; }
.foot-warn strong { color: var(--text-dim); }
.foot-base { margin-top: 14px; font-size: .76rem; color: var(--text-faint); }

/* ── Modals ────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: 20px; background: rgba(4,8,12,.74); backdrop-filter: blur(5px);
  animation: fade .2s;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 400px; max-height: 92vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 26px 24px; position: relative; animation: rise .26s var(--ease);
}
.sheet-wide { max-width: 560px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.sheet-x { position: absolute; top: 12px; right: 14px; background: none; border: 0;
  color: var(--text-faint); font-size: 1.5rem; line-height: 1; }
.sheet-x:hover { color: var(--text); }
.sheet-title { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.sheet-sub { font-size: .9rem; color: var(--text-dim); margin-bottom: 20px; line-height: 1.6; }
.sheet-fine { font-size: .74rem; color: var(--text-faint); margin-top: 14px; line-height: 1.55; text-align: center; }
.auth-seg { margin-bottom: 20px; }

.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-faint); font-size: .78rem; }
.or::before, .or::after { content:''; flex: 1; height: 1px; background: var(--line); }

.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: .78rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: .93rem; outline: none; transition: border-color .18s;
}
.field input:focus { border-color: var(--primary); }
.field input::placeholder { color: var(--text-faint); }

.form-err { font-size: .82rem; color: #FF8A95; background: rgba(255,71,87,.1);
  border: 1px solid rgba(255,71,87,.3); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }

.check { display: flex; gap: 11px; align-items: flex-start; padding: 11px 0; font-size: .87rem; color: var(--text-dim); line-height: 1.5; }
.check input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--primary); }

/* Auth restore skeleton */
.auth-skel { display: block; width: 86px; height: 34px; border-radius: var(--r);
  background: var(--panel-2); position: relative; overflow: hidden; }
.auth-skel-sm { width: 38px; border-radius: 50%; }
.auth-skel::after { content:''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: sweep 1.3s infinite; }

/* Account panel */
.ac-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ac-avatar { width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, var(--primary-hi), #0F5AC0); }
.ac-id { min-width: 0; }
.ac-name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-email { font-size: .84rem; color: var(--text-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-badge { display: inline-block; margin-top: 5px; font-size: .68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; background: rgba(245,166,35,.14);
  color: var(--amber); border: 1px solid rgba(245,166,35,.3); }

.ac-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px;
  background: var(--bg); border: 1px solid var(--line-2); }
.ac-lbl { display: block; font-size: .74rem; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.ac-balance strong { font-family: var(--f-mono); font-size: 1.3rem; }

.ac-rows { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.ac-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px;
  font-size: .85rem; color: var(--text-dim); }
.ac-row + .ac-row { border-top: 1px solid var(--line); }
.ac-val { font-family: var(--f-mono); color: var(--text); font-size: .82rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }

.ob-steps { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; }
.ob-steps i { width: 26px; height: 3px; border-radius: 2px; background: var(--line-2); transition: .25s; }
.ob-steps i.is-on { background: var(--primary); }
/* Line icons rather than emoji — emoji render differently per OS and
   read as consumer-app filler on a screen asking for money. */
.ob-ic {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 14px;
  background: rgba(229,188,74,.1); border: 1px solid rgba(229,188,74,.28);
  color: var(--gold);
}
.ob-ic svg { width: 26px; height: 26px; }
.ob-panel { text-align: center; }
.ob-panel .check { text-align: left; }

.info-body { font-size: .9rem; color: var(--text-dim); line-height: 1.7; }
.info-body h3 { color: var(--text); font-size: 1rem; margin: 18px 0 7px; font-family: var(--f-display); }
.info-body p { margin-bottom: 10px; }
.info-body ul { margin: 0 0 12px 20px; }
.info-body li { margin-bottom: 6px; }
.info-body strong { color: var(--text); }

/* ── Toast ─────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px); z-index: 200;
  padding: 12px 22px; border-radius: 999px; font-size: .87rem; font-weight: 600;
  background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: 0 14px 36px -12px rgba(0,0,0,.8);
  opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s var(--ease);
  max-width: min(92vw, 440px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-bad { border-color: rgba(255,71,87,.5); }
.toast.is-good { border-color: rgba(46,204,113,.5); }

.only-mobile { display: none; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .app { grid-template-columns: var(--rail-w) minmax(0,1fr); }
  .slip {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 100vw);
    height: 100vh; height: 100dvh;
    transform: translateX(100%); transition: transform .3s var(--ease);
    box-shadow: -16px 0 44px -18px rgba(0,0,0,.9);
  }
  .slip.is-open { transform: none; }
  .slip-close { display: block; }
  .slipbar { display: flex; }
  .slipbar[hidden] { display: none; }
  /* The floating bar sits exactly where the confirm button lands, so
     it must get out of the way once the panel it opens is open. */
  .slip.is-open ~ .slipbar, body.slip-open .slipbar { display: none; }
  /* Clear the floating bar and the iOS home indicator. */
  .slip-main { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .content { padding-bottom: 96px; }
}

@media (max-width: 760px) {
  /* The rail leaves the flow here, so main must claim column 1 —
     otherwise `grid-column: 2` spawns an implicit second track. */
  .app { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: 210px; height: 100vh;
    transform: translateX(-100%); transition: transform .28s var(--ease);
  }
  .rail.is-open { transform: none; }
  .rail-btn { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 13px 14px; }
  .rail-btn span { font-size: .9rem; }
  .only-mobile { display: grid; }
  .slip-close { display: block; }
  .content { padding: 14px 12px 90px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .logo-word { display: none; }
  .sportbar { padding: 10px 12px; }

  .ev { grid-template-columns: 1fr; gap: 11px; }
  .ev-odds { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .odd { min-width: 0; }
  .balance { padding-left: 11px; }
  .bal-amt { font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ── Signed-in identity in the top bar ─────────────────────────── */
.account-chip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 210px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text);
  font-size: .87rem; font-weight: 600; transition: border-color .18s, background .18s;
}
.account-chip:hover { background: var(--panel-3); border-color: var(--gold); }
.account-chip .avatar { width: 30px; height: 30px; font-size: .82rem; border: 0;
  background: linear-gradient(150deg, var(--gold-bright), var(--gold-deep)); color: #14110A; }
.ac-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-chip-caret { width: 15px; height: 15px; flex: 0 0 auto; color: var(--text-faint); }

@media (max-width: 760px) {
  .ac-chip-name, .ac-chip-caret { display: none; }
  .account-chip { padding: 4px; }
}

/* ── Wallet connect screen ─────────────────────────────────────── */
.wallet-opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 14px 16px; margin-bottom: 9px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .18s, background .18s;
}
.wallet-opt:hover { border-color: var(--gold); background: var(--panel-2); }
.wo-mark { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; background: var(--panel-3); color: var(--gold); }
.wo-mark svg { width: 20px; height: 20px; }
.wo-text { min-width: 0; }
.wo-name { font-size: .93rem; font-weight: 650; }
.wo-sub { font-size: .76rem; color: var(--text-faint); margin-top: 2px; }
.wo-go { margin-left: auto; color: var(--text-faint); flex: 0 0 auto; }
.wo-go svg { width: 17px; height: 17px; }

.wallet-steps { margin: 4px 0 16px; padding: 0; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wallet-steps li { display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px;
  font-size: .83rem; color: var(--text-dim); line-height: 1.5; }
.wallet-steps li + li { border-top: 1px solid var(--line); }
.ws-n { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: .68rem;
  font-weight: 700; background: rgba(229,188,74,.14); color: var(--gold); }

/* Deposit address block */
.dep-addr { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2);
  margin-bottom: 10px; }
.dep-addr code { font-family: var(--f-mono); font-size: .8rem; color: var(--gold);
  overflow-wrap: anywhere; min-width: 0; }
.dep-warn { font-size: .8rem; color: #FFB3BF; padding: 10px 13px; border-radius: 8px;
  background: rgba(255,59,92,.07); border: 1px solid rgba(255,59,92,.24); margin-bottom: 14px; }
.addr-copy { flex: 0 0 auto; background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 5px 10px; font-size: .68rem; font-family: var(--f-mono);
  color: var(--text-dim); }
.addr-copy:hover { border-color: var(--gold); color: var(--gold); }
