:root {
  /* Surfaces — deep navy, the new brand body */
  --bg:        #061632;
  --bg-2:      #0A2147;
  --bg-3:      #11305C;
  --card:      #0E2A57;
  --card-2:    #133869;
  --card-3:    #1B3F75;
  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(255,255,255,0.14);
  --border-3:  rgba(255,255,255,0.22);

  /* Text — all values verified against the navy background for WCAG AA.
     --muted-2 was #5C6E8F (≈3.2:1, fails AA for body text). Lifted to
     #8499BC (≈4.8:1) so 12-14px UI labels, the "VS" separator, and
     bookmaker meta hit the contrast threshold. */
  --text:      #F5F0E6;
  --text-2:    #D6E0F0;
  --muted:     #A4B4D2;
  --muted-2:   #8499BC;

  /* Brand — gold replaces the old purple as primary; amber tones stay as highlights.
     We keep the --purple* variable names so existing rules keep working without churn. */
  --purple:    #FFC93C;
  --purple-2:  #F2A900;
  --purple-3:  #FFE08A;
  --purple-4:  #3F2A00;
  --amber:     #FFC93C;
  --amber-2:   #FFE08A;
  --amber-3:   #3F2A00;
  --green:     #00D281;
  --green-2:   #2BF0A1;
  --green-3:   #00432A;
  --red:       #FF4D6A;
  --red-2:     #FF7A8C;
  --pink:      #FF8FB1;

  /* Effects — recoloured for the new gold accent */
  --shadow-sm:    0 4px 16px rgba(0,0,0,0.30);
  --shadow:       0 14px 44px rgba(255,201,60,0.18);
  --shadow-amber: 0 14px 44px rgba(255,201,60,0.20);
  --glow-purple:  0 0 0 1px rgba(255,201,60,0.5),  0 0 24px rgba(255,201,60,0.30);
  --glow-amber:   0 0 0 1px rgba(255,201,60,0.55), 0 0 24px rgba(255,201,60,0.28);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1200px;

  /* Type */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:      'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(255,201,60,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255,201,60,0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: var(--purple-3); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

/* Keyboard / screen-magnifier focus ring — was invisible before. Gold +
   a thin outer offset for legibility on every surface (cards, inputs, links). */
*:focus { outline: none; }
*:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--purple-3);
  outline-offset: 3px;
}

/* ============================================================
   AGE GATE
   ============================================================ */
.age-gate {
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  color: #061632;
  padding: 10px 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.age-gate a { color: #0A2147; text-decoration: underline; font-weight: 900; }
.age-gate a:hover { color: #0A2147; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6,22,50,0.80);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 19px; letter-spacing: -0.5px;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
/* The new shield SVG is its own enclosed mark — no background tile needed */
.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-tag { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: var(--purple-3); text-transform: uppercase; opacity: 0.8; }

.nav-links {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14.5px; font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 0.1px;
}
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--card-2); }
.nav-cta {
  padding: 9px 16px !important;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #0A2147 !important;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(255,201,60,0.35);
}
.nav-cta:hover {
  background: linear-gradient(135deg, var(--purple-3), var(--purple));
  color: #061632 !important;
  transform: translateY(-1px);
}

/* Auth pill — when logged in we morph the "Sign in" CTA into a friendly
   account link with an optional "PRO" badge if the user is on a paid plan. */
.nav-cta.nav-pro {
  background: linear-gradient(135deg, #FFE08A, #F2A900);
  box-shadow: 0 4px 14px rgba(242,169,0,0.45);
}
.nav-pro-badge {
  display: inline-block;
  font-size: 10px; font-weight: 900; letter-spacing: 1px;
  background: #0A2147; color: #FFC93C;
  padding: 2px 6px; border-radius: 4px;
  margin-right: 6px;
  vertical-align: 1px;
}

/* Mobile nav: hide secondary links, keep CTA */
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links a.show-mobile { display: inline-flex; }
}

/* ============================================================
   ACTIVITY STRIP — live social proof
   ============================================================ */
.activity-strip {
  background: linear-gradient(90deg, rgba(255,201,60,0.10), rgba(0,210,129,0.06), rgba(255,201,60,0.10));
  border-bottom: 1px solid var(--border);
  padding: 9px 20px;
  font-size: 13.5px;
  color: var(--text);
  display: flex; align-items: center; gap: 14px; justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
}
.activity-strip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,210,129,0.6);
  animation: pulse 1.8s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0   rgba(0,210,129,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(0,210,129,0);    }
  100% { box-shadow: 0 0 0 0   rgba(0,210,129,0);    }
}
.activity-strip strong { color: var(--text); font-weight: 800; }
.activity-strip .sep { color: var(--muted-2); }

/* ============================================================
   HONEST COUNTER STRIP
   Real numbers from /api/activity + /api/tracker. No fake metrics.
   ============================================================ */
.honest-strip {
  padding: 28px 20px 36px;
  background:
    linear-gradient(180deg, rgba(255,201,60,0.04), transparent 40%),
    var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.honest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}
.honest-tile {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,201,60,0.18);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.honest-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,201,60,0.45);
  background: rgba(255,255,255,0.04);
}
.honest-num {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  color: var(--amber-2, #FFE08A);
  letter-spacing: -0.5px;
}
.honest-lbl {
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
}
.honest-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}
@media (max-width: 720px) {
  .honest-grid { grid-template-columns: repeat(2, 1fr); }
  .honest-num  { font-size: 24px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 20px 40px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -100px, rgba(255,201,60,0.30), transparent 70%),
    radial-gradient(600px 500px at 100% 20%, rgba(0,210,129,0.10), transparent 70%),
    radial-gradient(500px 400px at 0% 40%, rgba(255,201,60,0.08), transparent 70%);
}
.hero-grid {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,201,60,0.16);
  border: 1px solid rgba(255,201,60,0.40);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px; font-weight: 800; color: var(--purple-3);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s ease-in-out infinite; }

h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -1.6px;
  margin-bottom: 20px;
}
h1 .grad {
  background: linear-gradient(135deg, #FFE08A 0%, #FFC93C 50%, #F2A900 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 .grad-amber {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  color: var(--text-2); font-size: 13.5px; font-weight: 600;
}
.hero-trust .dot { color: var(--muted-2); }

/* Hero side card — mini live builder preview */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,201,60,0.50), rgba(255,201,60,0.30) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.hero-card-head .tag {
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--purple-3);
}
.hero-card-head .stake {
  font-family: var(--mono); font-size: 13px; color: var(--text-2); font-weight: 700;
}
.hero-match {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 14px;
}
.team-cell { display: flex; align-items: center; gap: 10px; }
.team-badge {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 900; font-size: 14px; color: #fff;
  letter-spacing: -0.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 4px 10px rgba(0,0,0,0.30);
}
.team-name { font-weight: 800; font-size: 15px; }
.team-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.vs { color: var(--text-2); font-weight: 900; font-size: 13px; letter-spacing: 1.8px; padding: 0 10px; }

.hero-leg {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}
.hero-leg.tick { border-color: rgba(255,201,60,0.45); background: rgba(255,201,60,0.10); }
.hero-leg-name { font-weight: 700; font-size: 14.5px; }
.hero-leg-meta { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.hero-leg .price {
  font-family: var(--mono); font-weight: 800; font-size: 15px;
  color: var(--amber-2); letter-spacing: -0.3px;
}
.hero-card-foot {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--border-2);
  display: flex; justify-content: space-between; align-items: center;
}
.hero-card-foot .label { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 800; }
.hero-card-foot .total {
  font-family: var(--mono); font-weight: 900; font-size: 30px;
  color: var(--green-2); letter-spacing: -1px;
}
.hero-card-foot .total small {
  font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 700;
  margin-right: 6px; letter-spacing: 0;
}
.hero-card-cta { margin-top: 14px; }

/* Hero "preview" state — shown when bookies haven't priced markets yet.
   Real fixture in the header, real upcoming games listed below; never any
   invented teams, players, or prices. */
.hero-card-skeleton .sk {
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: heroSkeleton 1.4s ease-in-out infinite;
  border-radius: 8px; height: 18px;
}
.hero-card-skeleton .sk.lg { height: 56px; border-radius: 12px; }
.hero-card-skeleton .sk.md { height: 38px; }
@keyframes heroSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero-preview-note {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(255,201,60,0.08);
  border: 1px solid rgba(255,201,60,0.25);
  border-radius: 11px;
  font-size: 13.5px; line-height: 1.5; color: var(--text);
}
.hero-preview-note strong { color: var(--amber-2); }
.hero-preview-list {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-2);
  border-radius: 11px;
}
.hero-preview-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
  color: var(--text-2); font-weight: 800; margin-bottom: 8px;
}
.hero-fixture-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 13.5px;
}
.hero-fixture-row:first-of-type { border-top: 0; }
.hero-fixture-teams { font-weight: 600; color: var(--text); }
.hero-fixture-teams .muted { color: var(--text-2); font-weight: 500; margin: 0 4px; }
.hero-fixture-time { color: var(--text-2); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Futures / outrights table rows on /futures */
.future-headings {
  display: grid;
  grid-template-columns: 1fr 80px 90px;
  gap: 16px;
  padding: 0 14px 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 800;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 6px;
}
.future-list { display: flex; flex-direction: column; gap: 1px; border-radius: 10px; overflow: hidden; }
.future-row {
  display: grid;
  grid-template-columns: 1fr 80px 90px;
  gap: 16px;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255,255,255,0.02);
  border-left: 3px solid transparent;
  transition: background 120ms ease;
}
.future-row:hover { background: rgba(255,201,60,0.06); border-left-color: rgba(255,201,60,0.5); }
.future-runner { font-weight: 600; font-size: 14.5px; color: var(--text); }
.future-bookie { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.future-prob {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  color: var(--text-2); font-variant-numeric: tabular-nums;
}
.future-price {
  font-family: var(--mono); font-weight: 800; font-size: 16px;
  color: var(--green-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.1px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
/* Primary CTA: navy text on gold (≈9.2:1) — was white-on-gold (≈1.5:1, unreadable). */
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #0A2147;
  box-shadow: 0 6px 18px rgba(255,201,60,0.35);
}
.btn-primary:hover { color: #061632; box-shadow: 0 10px 28px rgba(255,201,60,0.55); }
.btn-amber {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #0A2147;
  box-shadow: 0 6px 18px rgba(255,201,60,0.35);
}
.btn-amber:hover { color: #0A2147; box-shadow: 0 10px 28px rgba(255,201,60,0.45); }
.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover { border-color: var(--purple-3); color: #fff; background: rgba(255,201,60,0.08); }
.btn-success { background: var(--green); color: #001a0c; }
.btn-success:hover { background: var(--green-2); }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 12px; }

/* ============================================================
   SECTIONS / CARDS
   ============================================================ */
section { padding: 60px 20px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.8px;
  text-align: center;
}
.section-sub {
  color: var(--text-2);
  font-size: 16px;
  text-align: center;
  margin-bottom: 32px;
  max-width: 600px; margin-left: auto; margin-right: auto;
  line-height: 1.55;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.card-feature {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.card-feature .feat-icon {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255,201,60,0.14);
  border: 1px solid rgba(255,201,60,0.30);
  color: var(--purple-3);
  margin-bottom: 14px;
  font-size: 22px;
}
.card-feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.3px; }
.card-feature p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

/* Sport picker */
.sport-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto 28px; }
.sport-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 26px;
  text-align: left;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
  display: block;
  color: var(--text);
  position: relative; overflow: hidden;
}
.sport-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
}
.sport-card.afl::before { background: radial-gradient(400px 200px at 100% 0%, rgba(255,201,60,0.10), transparent 60%); }
.sport-card.epl::before { background: radial-gradient(400px 200px at 100% 0%, rgba(255,201,60,0.10), transparent 60%); }
.sport-card:hover { border-color: var(--purple-3); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow); }
.sport-card .sc-tag {
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--purple-3);
  margin-bottom: 10px;
}
.sport-card.afl .sc-tag { color: var(--amber-2); }
.sport-card h3 {
  font-size: 26px; margin-bottom: 8px; letter-spacing: -0.6px; font-weight: 900;
  display: flex; align-items: center; gap: 10px;
}
.sport-card h3 .emoji { font-size: 32px; }
.sport-card p  { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.sport-card .arrow { display: inline-block; margin-top: 16px; font-weight: 800; font-size: 14.5px; color: var(--purple-3); }
.sport-card.afl .arrow { color: var(--amber-2); }

/* ============================================================
   NOTICE / DISCLAIMER
   ============================================================ */
.notice {
  background: rgba(255,201,60,0.10);
  border: 1px solid rgba(255,201,60,0.34);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.notice strong { color: var(--amber-2); }
.notice.compact { padding: 10px 12px; font-size: 12.5px; }
.notice.success { background: rgba(0,210,129,0.06); border-color: rgba(0,210,129,0.26); }
.notice.success strong { color: var(--green-2); }

/* ============================================================
   FORMS
   ============================================================ */
input[type="email"], input[type="password"], input[type="text"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  background: rgba(255,201,60,0.06);
}
label { font-size: 14px; font-weight: 700; color: var(--text); display: block; margin-bottom: 6px; }
.checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2);
  margin: 10px 0;
  line-height: 1.5;
}
.checkbox input { width: 18px; height: 18px; }
.checkbox input { accent-color: var(--purple); margin-top: 3px; }
.checkbox a { color: var(--purple-3); }

.form-stack > * + * { margin-top: 12px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.tiny  { font-size: 13px; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.alert-error   { background: rgba(255,77,106,0.10); border: 1px solid rgba(255,77,106,0.30); color: var(--red-2); }
.alert-success { background: rgba(0,210,129,0.10); border: 1px solid rgba(0,210,129,0.30); color: var(--green-2); }

/* ============================================================
   SGM BUILDER
   ============================================================ */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.builder-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.fixture-tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  margin: 0 -20px 16px; padding: 0 20px 6px;
  scrollbar-width: thin;
}
.fixture-tabs::-webkit-scrollbar { height: 4px; }
.fixture-tabs::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.fixture-tab {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 11px 15px;
  font-size: 14px; font-weight: 700;
  color: var(--text); cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.fixture-tab:hover { border-color: var(--border-2); transform: translateY(-1px); }
.fixture-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  color: #0A2147; border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(255,201,60,0.30);
}
.fixture-tab.active .tab-time { color: #0A2147; opacity: 0.75; }
.fixture-tab .tab-teams { display: flex; align-items: center; gap: 4px; }
.fixture-tab .mini-badge {
  width: 18px; height: 18px; border-radius: 5px;
  display: inline-grid; place-items: center;
  font-weight: 900; font-size: 9px; color: #fff;
}
.fixture-tab .tab-time {
  font-family: var(--mono); font-size: 12px; opacity: 0.85;
  font-weight: 700;
}

.fixture-header {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, var(--bg-2), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.fixture-header .teams { display: flex; align-items: center; gap: 12px; }
.fixture-header .meta { font-size: 12px; color: var(--muted); font-weight: 600; text-align: right; }
.fixture-header .meta .venue { color: var(--text-2); font-weight: 700; }

.player-group { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.player-group:last-child { border-bottom: none; }
.player-group:first-child { padding-top: 0; }
.player-name {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 14.5px; margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.player-name .player-team {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font-size: 9px; font-weight: 900; letter-spacing: -0.3px;
}
.player-name .player-team.text-only { color: var(--muted); font-weight: 700; font-size: 12px; background: transparent; width: auto; height: auto; }

.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.prop {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer; user-select: none;
  font-size: 14px;
  min-height: 48px;
  transition: border-color .12s ease, background .12s ease, transform .06s ease;
  position: relative;
}
.prop:hover { border-color: var(--border-3); transform: translateY(-1px); }
.prop.selected {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(255,201,60,0.18), rgba(255,201,60,0.08));
  box-shadow: 0 0 0 1px rgba(255,201,60,0.30), inset 0 1px 0 rgba(255,255,255,0.05);
}
.prop.selected::before {
  content: '✓';
  position: absolute; top: -7px; left: -7px;
  width: 18px; height: 18px;
  background: var(--purple); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900;
  box-shadow: 0 4px 10px rgba(255,201,60,0.5);
}
.prop input { display: none; }
.prop-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prop-label .lbl-main { font-weight: 700; }
.prop-bm { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; }

/* Hot Legs pill — Sportsbet-style strike-rate insight per player prop.
   `paintHotLegs` in js/sgm-builder.js attaches one of these next to every
   prop tile when /api/research/dossier returns model probability + edge. */
.hot-pill {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
  padding: 2px 7px; border-radius: 999px;
  vertical-align: 1px;
  white-space: nowrap;
}
.hot-pill .hot-edge {
  font-size: 10px; font-weight: 700;
  padding: 1px 4px; border-radius: 4px;
  background: rgba(0,0,0,0.20);
}
.hot-green  { background: linear-gradient(135deg,#1FB071,#13935A); color:#fff; }
.hot-amber  { background: linear-gradient(135deg,#FFC93C,#F2A900); color:#0A2147; }
.hot-orange { background: linear-gradient(135deg,#FF9447,#F25C00); color:#fff; }
.hot-red    { background: linear-gradient(135deg,#E5484D,#A91C1C); color:#fff; }
.hot-grey   { background: rgba(255,255,255,0.10); color: var(--text-2); }
.hot-locked {
  background: rgba(242,169,0,0.12);
  color: #F2A900;
  border: 1px dashed rgba(242,169,0,0.5);
}
.hot-locked a { color: #F2A900; text-decoration: none; font-weight: 800; }
.hot-locked a:hover { text-decoration: underline; }

/* Deep Analysis trace — Pro-only multi-stage reasoning panel.
   Renders scenarios → edges → SGM → critic in one scrollable surface
   below the AI Brief. The .ai-deep-trigger button lives next to .ai-brief-trigger. */
.ai-deep-trigger {
  background: linear-gradient(135deg, rgba(167,139,250,0.18), rgba(124,58,237,0.18));
  border: 1px solid rgba(167,139,250,0.35);
  color: #c4b5fd;
}
.ai-deep-trigger:hover {
  background: linear-gradient(135deg, rgba(167,139,250,0.28), rgba(124,58,237,0.28));
  border-color: rgba(167,139,250,0.55);
}
.deep-scenarios, .deep-edges, .deep-legs {
  list-style: none; padding: 0; margin: 6px 0 14px 0;
}
.deep-scenarios li, .deep-edges li, .deep-legs li {
  padding: 9px 12px; margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  display: flex; flex-direction: column; gap: 3px;
}
.deep-scenarios li strong, .deep-legs li strong { color: var(--text-1); }
.deep-prob {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 800; font-size: 12px;
  background: rgba(167,139,250,0.18);
  color: #c4b5fd;
  padding: 1px 7px; border-radius: 999px;
  margin-left: 6px;
}
.deep-edge-pp {
  font-family: var(--mono);
  font-weight: 800; font-size: 12.5px;
  color: #1FB071;
  margin-left: 6px;
}
.deep-meta { color: var(--text-2); font-size: 12px; font-family: var(--mono); }
.deep-anchor { color: var(--text-2); font-size: 12.5px; font-style: italic; margin-top: 2px; }
.deep-drivers { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.deep-sel { font-weight: 700; }
.prop .odds {
  font-family: var(--mono);
  color: var(--amber-2);
  font-weight: 800;
  font-size: 15px;
  margin-left: 8px;
  letter-spacing: -0.4px;
}
.prop.selected .odds { color: var(--green-2); }

/* ============================================================
   SLIP — desktop
   ============================================================ */
.slip { position: sticky; top: 80px; }
.slip h3 {
  font-size: 16px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.slip h3 .leg-count {
  font-family: var(--mono); font-size: 12px;
  background: var(--purple); color: #0A2147;
  padding: 3px 10px; border-radius: 100px;
  font-weight: 900;
}
.slip-empty {
  color: var(--muted); font-size: 13px;
  padding: 30px 16px; text-align: center;
  border: 1px dashed var(--border-2);
  border-radius: 10px;
}
.slip-empty .icon { font-size: 28px; margin-bottom: 6px; }
.slip-leg {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.slip-leg-meta { color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
.slip-leg .price-cell { font-family: var(--mono); color: var(--amber-2); font-weight: 800; font-size: 14px; }
.slip-remove {
  background: transparent; border: none; color: var(--muted-2); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0 4px;
  transition: color .12s ease;
}
.slip-remove:hover { color: var(--red); }
.slip-summary {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border-2);
  display: grid; gap: 8px; font-size: 13px;
}
.slip-summary .row { display: flex; justify-content: space-between; align-items: center; }
.slip-summary .total {
  font-family: var(--mono);
  font-size: 24px; font-weight: 900;
  color: var(--green-2);
  letter-spacing: -0.8px;
}

/* Bookmaker grid in slip */
.bookmaker-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px; margin-top: 12px;
}
.bookmaker-link {
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px 10px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 13px; font-weight: 800;
  color: var(--text);
  min-height: 48px;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.bookmaker-link:hover { transform: translateY(-1px); text-decoration: none; }
.bookmaker-link svg { display: block; max-height: 22px; width: auto; }

/* Brand-coloured hover states for bookmakers */
.bm-sportsbet:hover  { border-color: #00B341; background: rgba(0,179,65,0.08); }
.bm-tab:hover        { border-color: #FFB100; background: rgba(255,177,0,0.08); }
.bm-ladbrokes:hover  { border-color: #E6262E; background: rgba(230,38,46,0.08); }
.bm-neds:hover       { border-color: #00C2A8; background: rgba(0,194,168,0.08); }
.bm-pointsbet:hover  { border-color: #ED1C24; background: rgba(237,28,36,0.08); }
.bm-bet365:hover     { border-color: #007B5B; background: rgba(0,123,91,0.08); }
.bm-bluebet:hover    { border-color: #0066FF; background: rgba(0,102,255,0.10); }

/* ----- Trust strip (above every bookie grid) ------------------ */
.bookie-block { display: block; }
.bookie-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.bookie-actions { margin-top: 4px; }
.bookmaker-cell { display: flex; flex-direction: column; gap: 6px; }
.bookmaker-cell .btn-ghost { font-size: 11px; padding: 4px 6px; border-radius: 8px; }
.btn-ghost { background: transparent; border: 1px solid var(--border-2); color: var(--muted); cursor: pointer; transition: border-color .12s, color .12s; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-xs  { padding: 6px 10px; font-size: 12px; border-radius: 8px; font-weight: 700; }
.btn-xxs { padding: 4px 6px; font-size: 11px; border-radius: 6px; font-weight: 700; }

.bookie-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 8px 0 4px; padding: 8px 10px;
  background: rgba(255,201,60,0.04);
  border: 1px dashed rgba(255,201,60,0.18);
  border-radius: 10px;
  font-size: 11px;
}
.bookie-trust .bt-pill {
  background: rgba(255,255,255,0.06); padding: 3px 7px; border-radius: 999px;
  font-weight: 700; letter-spacing: .02em;
}
.bookie-trust .bt-pill.bt-aff { color: #FFE08A; }
.bookie-trust .bt-pill.bt-no  { color: #B7E4C7; background: rgba(46,204,113,0.10); }
.bookie-trust .bt-help { margin-left: auto; color: var(--muted); }
.bookie-trust a { color: var(--text-2); text-decoration: underline; }
.bookie-trust a:hover { color: var(--gold); }
@media (max-width: 520px) {
  .bookie-trust { font-size: 10.5px; padding: 6px 8px; }
  .bookie-trust .bt-help { margin-left: 0; flex-basis: 100%; }
}

/* ----- Two-price display + correlation pill ------------------- */
.two-price {
  margin: 10px 0 6px; padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.two-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 4px;
}
.two-price-row strong { font-size: 17px; color: var(--gold); letter-spacing: -0.4px; }
.two-price[data-corr="high"]   { border-color: rgba(231,76,60,0.35); }
.two-price[data-corr="medium"] { border-color: rgba(241,196,15,0.30); }
.two-price[data-corr="low"]    { border-color: rgba(46,204,113,0.30); }
.corr-pill {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.corr-pill.corr-low    { background: rgba(46,204,113,0.14);  color: #7DDB9F; }
.corr-pill.corr-medium { background: rgba(241,196,15,0.14);  color: #F6D265; }
.corr-pill.corr-high   { background: rgba(231,76,60,0.14);   color: #F18B7E; }

/* ----- Empty state ------------------------------------------- */
.empty-state {
  text-align: center; padding: 56px 24px; max-width: 520px; margin: 24px auto;
  background: var(--card); border: 1px dashed var(--border-2); border-radius: 16px;
}
.empty-state .empty-icon { font-size: 38px; margin-bottom: 8px; }
.empty-state h3 { margin: 6px 0 8px; font-size: 18px; }
.empty-state .empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ----- Source badge: last-updated stamp ---------------------- */
.src-sep { opacity: .4; margin: 0 4px; }
.src-stamp { color: var(--muted); font-weight: 500; }

/* ----- Builder tabs (Manual / AI / Bookies) ------------------ */
.builder-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 16px 0 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; width: fit-content;
}
.builder-tab {
  background: transparent; color: var(--muted); border: 0;
  padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: background .12s, color .12s;
}
.builder-tab:hover { color: var(--text); }
.builder-tab.active {
  background: var(--gold); color: #0a1428;
}
@media (max-width: 520px) {
  .builder-tabs { width: 100%; justify-content: stretch; }
  .builder-tab { flex: 1; padding: 8px 6px; font-size: 12px; }
}
.builder-pane { margin-bottom: 18px; }

/* ----- AI Generator panel ----------------------------------- */
.ai-gen-card {
  padding: 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,201,60,0.06), rgba(0,178,170,0.04));
  border: 1px solid rgba(255,201,60,0.14);
}
.ai-gen-title { margin: 6px 0 6px; font-size: 18px; }
.ai-gen-controls {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin: 14px 0;
}
.ag-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ag-field-wide { grid-column: 1 / -1; }
.ag-field input, .ag-field select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 11px; cursor: pointer; }
.chip input { margin: 0; }
.chip:has(input:checked) { background: rgba(255,201,60,0.14); border-color: var(--gold); color: var(--gold); }

.ai-gen-out { margin-top: 16px; }
.ai-gen-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-gen-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ai-gen-card-inner {
  padding: 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border-2);
  display: flex; flex-direction: column;
}
.ai-gen-card-inner.gen-safer    { border-top: 3px solid #7DDB9F; }
.ai-gen-card-inner.gen-balanced { border-top: 3px solid #F6D265; }
.ai-gen-card-inner.gen-bigger   { border-top: 3px solid #F18B7E; }
.agc-head { display: flex; justify-content: space-between; align-items: baseline; }
.agc-style { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.agc-price { font-size: 22px; font-weight: 900; color: var(--gold); letter-spacing: -0.5px; }
.agc-headline { font-size: 14px; font-weight: 700; margin: 6px 0 4px; }
.agc-legs { list-style: none; padding: 0; margin: 10px 0; }
.agc-legs li { padding: 8px 0; border-top: 1px dashed var(--border); }
.agc-legs li:first-child { border-top: 0; }
.agc-leg-line { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.agc-leg-price { font-weight: 800; font-size: 13px; color: var(--text-2); }
.agc-leg-reason { margin-top: 3px; }
.agc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.agc-actions { display: flex; gap: 8px; margin-top: 12px; }

.conf-pill {
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; text-transform: uppercase;
}
.conf-pill.conf-low    { background: rgba(231,76,60,0.14);   color: #F18B7E; }
.conf-pill.conf-medium { background: rgba(241,196,15,0.14);  color: #F6D265; }
.conf-pill.conf-high   { background: rgba(46,204,113,0.14);  color: #7DDB9F; }

/* ----- Compare bookies (availability matrix) ---------------- */
.avail-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border-2); }
.avail-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.avail-table th, .avail-table td { padding: 8px 10px; text-align: center; border-top: 1px solid var(--border); }
.avail-table thead th { background: var(--bg-2); color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.avail-table .avail-leg { text-align: left; min-width: 200px; }
.avail-cell.yes  { color: #7DDB9F; }
.avail-cell.no   { color: var(--muted-2); opacity: .5; }
.avail-cell.best { background: rgba(255,201,60,0.10); color: var(--gold); font-weight: 800; }

/* ----- Tracker filters --------------------------------------- */
.filter-sel {
  background: var(--bg); color: var(--text); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600;
}
.row.gap-sm { display: flex; gap: 8px; }

/* ----- Price movement pills ---------------------------------- */
.odds-wrap { display: inline-flex; align-items: center; gap: 6px; }
.mv-pill {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 1px 5px; border-radius: 5px;
}
.mv-pill.mv-short { background: rgba(231,76,60,0.16); color: #F18B7E; }
.mv-pill.mv-drift { background: rgba(46,204,113,0.16); color: #7DDB9F; }

/* ----- Nav roadmap pills (NBA/NFL "soon") -------------------- */
.nav-roadmap { display: inline-flex; gap: 4px; align-items: center; }
.nav-roadmap-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 8px; border-radius: 8px; color: var(--muted);
  font-weight: 700; font-size: 13px; opacity: 0.65;
  transition: opacity .12s, color .12s;
}
.nav-roadmap-link:hover { opacity: 1; color: var(--text); text-decoration: none; }
.nav-soon {
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  background: rgba(255,201,60,0.16); color: var(--gold);
  padding: 2px 5px; border-radius: 999px; text-transform: uppercase;
}
@media (max-width: 600px) { .nav-roadmap { display: none; } }

/* ----- Lineup Impact (WOWY) pills --------------------------- */
.wowy-pill {
  margin-left: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 999px; text-transform: uppercase;
  cursor: help;
  vertical-align: middle;
}
.wowy-pill.wowy-plus  { background: rgba(46,204,113,0.14); color: #7DDB9F; }
.wowy-pill.wowy-minus { background: rgba(231,76,60,0.14); color: #F18B7E; }
/* "moderate" loses the colour intensity so "strong" reads as the action signal */
.wowy-pill.wowy-moderate { opacity: 0.75; }
.wowy-pill.wowy-weak     { opacity: 0.55; }

/* ============================================================
   SLIP — mobile bottom-sheet dock
   ============================================================ */
.slip-dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border-top: 1px solid var(--border-2);
  z-index: 50;
  transform: translateY(calc(100% - 64px));
  transition: transform .25s ease;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.50);
  display: none;
}
.slip-dock.open { transform: translateY(0); }
.slip-dock.has-legs { display: block; }
.slip-dock-handle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
}
.slip-dock-handle .left { display: flex; align-items: center; gap: 10px; }
.slip-dock-handle .leg-pill {
  background: var(--purple); color: #0A2147;
  font-family: var(--mono); font-size: 13px; font-weight: 900;
  padding: 4px 12px; border-radius: 100px;
}
.slip-dock-handle .label { font-weight: 800; font-size: 14px; }
.slip-dock-handle .price {
  font-family: var(--mono); font-weight: 900; font-size: 18px;
  color: var(--green-2); letter-spacing: -0.6px;
}
.slip-dock-handle .chev {
  margin-left: 10px; color: var(--muted);
  transition: transform .25s ease;
}
.slip-dock.open .chev { transform: rotate(180deg); }
.slip-dock-body {
  padding: 16px 18px 24px;
  max-height: 65vh;
  overflow-y: auto;
}

/* ============================================================
   SOURCE BADGE (live data freshness)
   ============================================================ */
.src-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
}
.src-badge .src-dot { width: 6px; height: 6px; border-radius: 50%; }
.src-badge .src-dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.src-badge .src-dot.seed { background: var(--amber); }

/* ============================================================
   TRACKER
   ============================================================ */
.tracker-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 24px; }
.stat-tile {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stat-tile .num { font-family: var(--mono); font-size: 30px; font-weight: 900; letter-spacing: -1px; }
.stat-tile .num.green { color: var(--green-2); }
.stat-tile .num.red   { color: var(--red-2); }
.stat-tile .num.amber { color: var(--amber-2); }
.stat-tile .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-top: 4px; font-weight: 700; }

table.tracker { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; }
table.tracker th, table.tracker td { padding: 14px 16px; text-align: left; font-size: 14px; }
table.tracker th { background: var(--bg-2); color: var(--text-2); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
table.tracker tr + tr td { border-top: 1px solid var(--border-2); }
.pill { display: inline-block; padding: 4px 11px; border-radius: 100px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.pill-won  { background: rgba(0,210,129,0.16); color: var(--green-2); }
.pill-lost { background: rgba(255,77,106,0.16); color: var(--red-2); }
.pill-void { background: rgba(255,255,255,0.08); color: var(--muted); }
.pill-pending { background: rgba(255,201,60,0.16); color: var(--amber-2); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 20px 28px;
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 40px;
  line-height: 1.6;
}
footer .container { display: grid; gap: 22px; }
footer .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
footer .foot-brand { max-width: 320px; }
footer .foot-brand .brand { margin-bottom: 10px; }
footer h4 { color: var(--text); font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 800; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer ul a { color: var(--text-2); font-size: 13.5px; }
footer ul a:hover { color: var(--text); }
footer .legal { border-top: 1px solid var(--border); padding-top: 22px; line-height: 1.7; }
footer .legal strong { color: var(--text-2); }
footer .socials { display: flex; gap: 8px; margin-top: 14px; }
footer .socials a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
footer .socials a:hover { background: var(--card-2); color: var(--text); border-color: var(--border-2); text-decoration: none; }

@media (max-width: 800px) {
  footer .foot-grid { grid-template-columns: 1fr 1fr; }
  footer .foot-brand { grid-column: 1 / -1; max-width: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 800px) {
  .builder { grid-template-columns: 1fr; }
  .slip { display: none; } /* hide desktop slip on mobile, dock takes over */
  .sport-picker { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 44px 16px; }
  .hero { padding: 48px 16px 28px; }
  .builder { gap: 14px; }
  .builder-col { padding: 16px; }
  .prop-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .prop { padding: 8px 10px; font-size: 12.5px; }
  .prop .odds { font-size: 13px; }
  body { padding-bottom: 70px; } /* room for slip dock */
}

/* ============================================================
   UTILITIES
   ============================================================ */
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.row.gap-sm { gap: 6px; }
.spacer { height: 24px; }
.spacer-lg { height: 40px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.kbd {
  font-family: var(--mono); font-size: 11px;
  background: var(--card-2); border: 1px solid var(--border-2);
  padding: 1px 6px; border-radius: 5px;
}

/* Fade-in for dynamic content */
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   AI SURFACES — Lock of the Day, Match Brief, Slip Critic
   ============================================================
   All AI-generated content shares the same visual language so users
   immediately recognise "this came from MultiMate's analyst, not just
   raw bookie data": gold left-rail, "AI" eyebrow, structured panels.
*/
.ai-surface {
  position: relative;
  background: linear-gradient(180deg, rgba(255,201,60,0.06), rgba(255,201,60,0.02));
  border: 1px solid rgba(255,201,60,0.28);
  border-left: 4px solid var(--purple);
  border-radius: 14px;
  padding: 22px 22px 20px;
}
.ai-surface .ai-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--purple-3);
  margin-bottom: 8px;
}
.ai-surface .ai-eyebrow .ai-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3px rgba(255,201,60,0.18);
  animation: aiPulse 2.4s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,201,60,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(255,201,60,0.05); }
}
.ai-surface .ai-headline {
  font-size: 19px; font-weight: 800; color: var(--text);
  line-height: 1.25; margin: 0 0 6px;
}
.ai-surface .ai-thesis {
  color: var(--text-2); font-size: 14.5px; line-height: 1.55; margin: 0 0 16px;
}
.ai-surface .ai-meta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted-2);
  margin-top: 14px;
}
.ai-surface .ai-meta-row .pill {
  background: rgba(255,201,60,0.10);
  border: 1px solid rgba(255,201,60,0.30);
  color: var(--purple-3);
  padding: 3px 9px; border-radius: 999px;
  font-weight: 700; font-size: 11.5px; letter-spacing: 0.3px;
}

/* --- Lock-of-the-Day card (homepage) ----------------------------------- */
.ai-lock-section { padding: 40px 20px 0; }
.ai-lock-card { max-width: 920px; margin: 0 auto; }
.ai-lock-card .ai-match {
  font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.ai-lock-legs {
  display: grid; gap: 8px;
  margin: 14px 0 6px;
}
.ai-lock-leg {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(11,28,58,0.55);
  border: 1px solid rgba(255,201,60,0.18);
  border-radius: 10px;
}
.ai-lock-leg .leg-name {
  font-weight: 700; color: var(--text); font-size: 14px;
}
.ai-lock-leg .leg-reason {
  color: var(--muted); font-size: 12.5px; margin-top: 2px;
  line-height: 1.45;
}
.ai-lock-leg .leg-price {
  font-family: var(--mono); font-size: 16px; font-weight: 800;
  color: var(--purple-3); align-self: center;
}
.ai-lock-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed rgba(255,201,60,0.22);
}
.ai-lock-foot .price-cell {
  font-family: var(--mono); font-size: 22px; font-weight: 800;
  color: var(--purple);
}
.ai-lock-fade {
  margin-top: 10px; padding: 10px 14px;
  background: rgba(208,73,73,0.08);
  border: 1px solid rgba(208,73,73,0.30);
  border-radius: 8px;
  color: var(--text-2); font-size: 13px; line-height: 1.5;
}
.ai-lock-fade strong { color: #FF8C8C; }

.ai-skeleton {
  display: grid; gap: 10px;
}
.ai-skeleton .sk {
  height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: skShimmer 1.4s ease-in-out infinite;
}
.ai-skeleton .sk.lg { height: 22px; width: 60%; }
.ai-skeleton .sk.md { height: 14px; width: 92%; }
.ai-skeleton .sk.sm { height: 12px; width: 40%; }
@keyframes skShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Match Brief inline panel (builder fixture header) ----------------- */
.ai-brief-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,201,60,0.45);
  color: var(--purple-3);
  padding: 6px 12px;
  font-size: 12.5px; font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.ai-brief-trigger:hover {
  background: rgba(255,201,60,0.12);
  color: var(--purple);
}
.ai-brief-trigger .ai-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
}
.ai-brief-panel {
  margin-top: 14px;
}
.ai-brief-panel h4 {
  margin: 14px 0 6px; font-size: 13px; font-weight: 800;
  color: var(--purple-3); text-transform: uppercase; letter-spacing: 0.8px;
}
.ai-brief-panel ul {
  margin: 0; padding-left: 18px; color: var(--text-2);
  font-size: 13.5px; line-height: 1.55;
}
.ai-brief-panel li { margin: 2px 0; }
.ai-brief-panel .ai-tldr {
  background: rgba(11,28,58,0.55);
  padding: 10px 14px; border-radius: 8px;
  color: var(--text); font-size: 14px; line-height: 1.5;
  margin-top: 10px;
}

/* --- Slip Critic panel (slip column) ----------------------------------- */
.ai-critic-cta {
  width: 100%;
  background: linear-gradient(135deg, rgba(255,201,60,0.18), rgba(255,201,60,0.08));
  border: 1px solid rgba(255,201,60,0.40);
  color: var(--purple-3);
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 12px;
  transition: background .15s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ai-critic-cta:hover { background: linear-gradient(135deg, rgba(255,201,60,0.28), rgba(255,201,60,0.14)); }
.ai-critic-cta:disabled { opacity: 0.6; cursor: progress; }
.ai-critic-panel { margin-top: 12px; }
.ai-critic-panel .verdict-badge {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}
.ai-critic-panel .verdict-pass     { background: rgba(86,184,113,0.18); color: #7FD18C; border: 1px solid rgba(86,184,113,0.45); }
.ai-critic-panel .verdict-consider { background: rgba(255,201,60,0.18); color: var(--purple-3); border: 1px solid rgba(255,201,60,0.45); }
.ai-critic-panel .verdict-trim     { background: rgba(255,160,80,0.16); color: #FFB870; border: 1px solid rgba(255,160,80,0.45); }
.ai-critic-panel .verdict-rebuild  { background: rgba(208,73,73,0.16);  color: #FF8C8C; border: 1px solid rgba(208,73,73,0.45);  }
.ai-critic-panel .leg-notes-list {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: grid; gap: 6px;
}
.ai-critic-panel .leg-notes-list li {
  background: rgba(11,28,58,0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px; line-height: 1.5;
  color: var(--text-2);
}
.ai-critic-panel .leg-notes-list .leg-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px;
  padding: 1px 7px; border-radius: 4px;
  margin-right: 8px; text-transform: uppercase;
}
.ai-critic-panel .leg-notes-list .tag-keep { background: rgba(86,184,113,0.18); color: #7FD18C; }
.ai-critic-panel .leg-notes-list .tag-swap { background: rgba(255,201,60,0.18); color: var(--purple-3); }
.ai-critic-panel .leg-notes-list .tag-drop { background: rgba(208,73,73,0.18); color: #FF8C8C; }

.ai-error {
  padding: 10px 14px; border-radius: 8px;
  background: rgba(208,73,73,0.08);
  border: 1px solid rgba(208,73,73,0.30);
  color: #FFC9C9; font-size: 13px;
}

/* On really wide screens give the lock card a touch more breathing room */
@media (min-width: 960px) {
  .ai-lock-card { padding: 28px 32px 26px; }
  .ai-lock-card .ai-headline { font-size: 22px; }
}
