/* ============================================================
   COMPARE N' BET — comparenbet.org
   DeeDubyah Software LLC
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #07090e;
  --surface:     #0c1018;
  --surface-2:   #111820;
  --surface-3:   #16202e;
  --surface-4:   #1c2a3a;

  /* Borders */
  --border:      #1b2838;
  --border-lt:   #243245;

  /* Gold / Brand */
  --gold:        #c9a84c;
  --gold-lt:     #e8c96a;
  --gold-dim:    rgba(201,168,76,0.10);
  --gold-glow:   rgba(201,168,76,0.22);
  --gold-border: rgba(201,168,76,0.35);

  /* Text */
  --text:        #e4ecf5;
  --text-sub:    #8c9fb5;
  --text-dim:    #485a6e;

  /* Status */
  --green:       #3dba78;
  --green-dim:   rgba(61,186,120,0.12);
  --green-border:rgba(61,186,120,0.30);
  --red:         #d95858;
  --red-dim:     rgba(217,88,88,0.12);
  --red-border:  rgba(217,88,88,0.30);

  /* Fonts */
  --font-display:'Barlow Condensed', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'JetBrains Mono', monospace;

  /* Geometry */
  --radius:    8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --strip-h:   44px;
  --sidebar-w: 210px;
  --list-w:    300px;
  --t:         0.18s ease;
  --t-slow:    0.38s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* Grain overlay — the secret sauce */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header strip ─────────────────────────────────────────── */
.header-strip {
  height: var(--strip-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
  position: relative;
}
/* Subtle gold accent line at top */
.header-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
}

.hs-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}
.hs-logo-mark {
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--bg);
  flex-shrink: 0;
}
.hs-logo span { color: var(--gold); }

.hs-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hs-nav a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 5px 11px;
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
}
.hs-nav a:hover { color: var(--text); background: var(--surface-2); }
.hs-nav a.hs-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--bg);
  font-weight: 700;
  padding: 5px 14px;
}
.hs-nav a.hs-cta:hover { opacity: 0.88; background: linear-gradient(135deg, var(--gold), var(--gold-lt)); }

/* ── App shell ────────────────────────────────────────────── */
.app-shell {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 2px; }

.sb-section { padding: 14px 10px 4px; }
.sb-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding: 0 6px;
  margin-bottom: 4px;
}

.sb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-sub);
  transition: all var(--t);
  position: relative;
}
.sb-btn:hover { background: var(--surface-2); color: var(--text); }
.sb-btn.active {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.sb-icon { font-size: 0.85rem; width: 18px; text-align: center; flex-shrink: 0; opacity: 0.8; }
.sb-btn.active .sb-icon { opacity: 1; }
.sb-pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  animation: pip-pulse 2s infinite;
  display: none;
  box-shadow: 0 0 6px var(--green);
}
.sb-btn.has-live .sb-pip { display: block; }
@keyframes pip-pulse { 0%,100%{opacity:1;transform:translateY(-50%) scale(1)} 50%{opacity:.5;transform:translateY(-50%) scale(.8)} }

.sb-futures-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  width: calc(100% - 14px);
  margin: 2px 7px 6px;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  transition: all var(--t);
}
.sb-futures-btn:hover { color: var(--gold); border-color: var(--gold-border); background: var(--gold-dim); }
.sb-futures-btn.active { color: var(--gold); border-color: var(--gold-border); background: var(--gold-dim); }

.sb-divider { height: 1px; background: var(--border); margin: 6px 12px; }

.sb-more-section {
  margin-top: auto;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--border);
}

/* ── Game list panel ──────────────────────────────────────── */
.game-list-panel {
  width: var(--list-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.glp-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.glp-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.glp-live-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 100px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid var(--green-border);
  display: none;
  box-shadow: 0 0 8px rgba(61,186,120,0.15);
}
.glp-live-badge.visible { display: inline-block; }

.glp-filter-row {
  display: flex;
  gap: 4px;
}
.glp-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all var(--t);
}
.glp-filter-btn:hover  { color: var(--text-sub); border-color: var(--border-lt); }
.glp-filter-btn.active { background: var(--gold-dim); border-color: var(--gold-border); color: var(--gold); }

.glp-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; }
.glp-scroll::-webkit-scrollbar { width: 3px; }
.glp-scroll::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 2px; }

/* Date divider */
.date-div {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 10px 14px 4px;
}

/* Game row */
.game-row {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(27,40,56,0.6);
  transition: background var(--t);
  gap: 10px;
  position: relative;
}
.game-row:hover { background: var(--surface-2); }
.game-row.active {
  background: var(--gold-dim);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}
.game-row.live-row { border-left: 2px solid var(--green); padding-left: 12px; }
.game-row.live-row.active { border-left-color: var(--gold); background: var(--gold-dim); }

.gr-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gr-team  { display: flex; align-items: center; gap: 6px; }

.gr-logo {
  width: 18px; height: 18px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface-3);
  flex-shrink: 0;
}
.gr-logo-fb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
  text-transform: uppercase;
}
.gr-name {
  font-size: 0.8rem;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-weight: 400;
}
.gr-name.win { color: var(--text); font-weight: 600; }
.gr-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
  min-width: 18px;
  text-align: right;
}
.gr-score.win { color: var(--gold); }

.gr-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.gr-status {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 100px;
}
.s-live     { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.s-upcoming { background: var(--surface-3); color: var(--text-dim); border: 1px solid var(--border); }
.s-final    { background: transparent; color: var(--text-dim); border: 1px solid rgba(27,40,56,.6); }
.gr-time    { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-dim); }

/* List state screens */
.list-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
}
.list-state-icon { font-size: 2rem; opacity: 0.3; }
.list-state h4   { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.02em; }
.list-state p    { font-size: 0.8rem; color: var(--text-dim); }

/* Skeleton */
.skel-row { padding: 10px 14px; border-bottom: 1px solid rgba(27,40,56,.4); animation: sk-pulse 1.5s ease-in-out infinite; }
.skel-line { background: var(--surface-3); border-radius: 3px; margin-bottom: 6px; }
.sk-w { height: 9px; width: 65%; }
.sk-m { height: 9px; width: 50%; }
@keyframes sk-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* ── Detail panel ─────────────────────────────────────────── */
.detail-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
/* Subtle ambient glow in the background of the empty state */
.detail-panel::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.04) 0%, transparent 65%);
  pointer-events: none;
}

/* Empty state */
.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  text-align: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}
.detail-empty-icon {
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.18;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}
.detail-empty h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-sub); letter-spacing: 0.02em; }
.detail-empty p  { font-size: 0.875rem; color: var(--text-dim); max-width: 320px; }

/* Detail header */
.detail-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.dh-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 20px 12px;
}
.dh-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.dh-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.dh-logo-fb {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}
.dh-team-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-sub);
  text-align: center;
  max-width: 110px;
  line-height: 1.3;
}
.dh-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--text);
  min-width: 44px;
  text-align: center;
  line-height: 1;
  letter-spacing: -0.02em;
}
.dh-score.win { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }

.dh-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.dh-status-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 100px;
}
.dh-vs { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); }
.dh-game-time { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); text-align: center; }

/* Detail sub-tabs */
.detail-tabs {
  display: flex;
  overflow-x: auto;
  padding: 0 20px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.det-tab {
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--t);
  margin-bottom: -1px;
}
.det-tab:hover  { color: var(--text-sub); }
.det-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Detail scroll */
.detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 40px;
}
.detail-scroll::-webkit-scrollbar { width: 4px; }
.detail-scroll::-webkit-scrollbar-thumb { background: var(--border-lt); border-radius: 2px; }

/* ── Market tabs ──────────────────────────────────────────── */
.mkt-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 16px;
  width: fit-content;
}
.mkt-tab {
  padding: 5px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  transition: all var(--t);
}
.mkt-tab:hover  { color: var(--text-sub); }
.mkt-tab.active { background: var(--gold-dim); color: var(--gold); border: 1px solid var(--gold-border); }

/* ── Section label ────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  margin-top: 20px;
}
.section-label:first-child { margin-top: 0; }

/* ── Odds table ───────────────────────────────────────────── */
.odds-tbl-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.odds-tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 340px;
}
.odds-tbl th {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 9px 14px;
  text-align: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}
.odds-tbl th:first-child { text-align: left; }
.odds-tbl td {
  padding: 8px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(27,40,56,0.5);
  vertical-align: middle;
}
.odds-tbl td:first-child { text-align: left; }
.odds-tbl tr:last-child td { border-bottom: none; }
.odds-tbl tr:hover td { background: rgba(255,255,255,0.018); }

.bk-cell { display: flex; align-items: center; gap: 8px; }
.bk-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-sub);
}
.bet-btn {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  transition: all var(--t);
  letter-spacing: 0.04em;
}
.bet-btn:hover { background: var(--gold); color: var(--bg); }

.oc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.25s;
}
.oc.best  { color: var(--gold); background: var(--gold-dim); font-weight: 700; border: 1px solid var(--gold-border); }
.oc.empty { color: var(--text-dim); font-size: 0.68rem; }

.sp-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sp-line { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-sub); }

/* Deeplink footer */
.dl-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.dl-lbl { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-dim); flex: 1; letter-spacing: 0.04em; }
.dl-btn {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-sub);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.dl-btn:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-dim); }

.no-data {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  padding: 40px 20px;
}

/* ── Player props ─────────────────────────────────────────── */
.props-player {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--t);
}
.props-player:hover { border-color: var(--border-lt); }
.props-player.expanded { border-color: var(--gold-border); }

.props-player-header {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--t);
  border-bottom: 1px solid transparent;
}
.props-player-header:hover { background: rgba(255,255,255,.018); }
.props-player.expanded .props-player-header { border-bottom-color: var(--border); }
.pp-name  { font-size: 0.875rem; font-weight: 500; color: var(--text); flex: 1; }
.pp-count { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); }
.pp-chevron { font-size: 0.62rem; color: var(--text-dim); transition: transform var(--t); }
.props-player.expanded .pp-chevron { transform: rotate(180deg); color: var(--gold); }

.props-body { display: none; }
.props-player.expanded .props-body { display: block; }

.prop-stat-group { padding: 8px 14px 10px; margin-top: 6px; }
.psg-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 8px;
}
.prop-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 4px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(27,40,56,.4);
}
.prop-row:last-child { border-bottom: none; }
.prop-line  { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-sub); font-weight: 600; }
.prop-side  { display: flex; flex-direction: column; gap: 1px; }
.prop-price { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); font-weight: 600; }
.prop-price.best { color: var(--green); font-weight: 700; }
.prop-book  { font-family: var(--font-mono); font-size: 0.56rem; color: var(--text-dim); }

/* ── Team analysis ────────────────────────────────────────── */
.ta-team-picker {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.ta-team-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--t);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-sub);
}
.ta-team-btn:hover  { border-color: var(--border-lt); color: var(--text); }
.ta-team-btn.active { border-color: var(--gold-border); background: var(--gold-dim); color: var(--gold); }

.stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.stat-card h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(27,40,56,.4);
  font-size: 0.8125rem;
}
.stat-row:last-child { border-bottom: none; }
.stat-lbl { color: var(--text-sub); }
.stat-val { font-family: var(--font-mono); font-weight: 600; color: var(--text); }
.stat-val.pos { color: var(--green); }
.stat-val.neg { color: var(--red); }

.recent-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(27,40,56,.4);
  font-size: 0.775rem;
}
.recent-game:last-child { border-bottom: none; }
.rg-result { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; min-width: 22px; text-align: center; }
.rg-result.w { background: var(--green-dim); color: var(--green); }
.rg-result.l { background: var(--red-dim); color: var(--red); }
.rg-opponent { flex: 1; color: var(--text-sub); }
.rg-score    { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); font-weight: 600; }
.rg-home     { font-family: var(--font-mono); font-size: 0.58rem; color: var(--text-dim); }

/* ── Futures ──────────────────────────────────────────────── */
.futures-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--t);
}
.futures-card.expanded { border-color: var(--gold-border); }
.fc-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background var(--t);
}
.fc-header:hover { background: rgba(255,255,255,.018); }
.futures-card.expanded .fc-header { border-bottom: 1px solid var(--border); }
.fc-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.fc-meta  { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); }
.fc-chev  { font-size: 0.62rem; color: var(--text-dim); transition: transform var(--t); }
.futures-card.expanded .fc-chev { transform: rotate(180deg); color: var(--gold); }
.fc-body  { display: none; }
.futures-card.expanded .fc-body { display: block; }

.outcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid rgba(27,40,56,.4);
  font-size: 0.8125rem;
}
.outcome-row:last-child { border-bottom: none; }
.or-name  { color: var(--text-sub); flex: 1; }
.or-books { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.or-book-price { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.or-price { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; color: var(--text); }
.or-price.best { color: var(--gold); }
.or-bname { font-family: var(--font-mono); font-size: 0.54rem; color: var(--text-dim); }

/* ── Shared helpers ───────────────────────────────────────── */
.loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.spin { animation: spinning 0.8s linear infinite; display: inline-block; }
@keyframes spinning { to { transform: rotate(360deg); } }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.chip-green { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-border); }
.chip-gold  { background: var(--gold-dim);  color: var(--gold);  border: 1px solid var(--gold-border); }
.chip-red   { background: var(--red-dim);   color: var(--red);   border: 1px solid var(--red-border); }

/* ── Gambling footer ──────────────────────────────────────── */
.gambling-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.gf-warn {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.gf-links { display: flex; gap: 16px; flex-wrap: wrap; }
.gf-links a { font-size: 0.7rem; color: var(--text-dim); transition: color var(--t); }
.gf-links a:hover { color: var(--gold); }

/* ── Secondary page layout ────────────────────────────────── */
.page-body {
  height: calc(100vh - var(--strip-h) - 37px);
  overflow-y: auto;
  background: var(--bg);
}
.page-container { max-width: 860px; margin: 0 auto; padding: 36px 24px 64px; }
.page-title    { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.page-subtitle { font-size: 0.9375rem; color: var(--text-sub); margin-bottom: 32px; }

/* Page tabs */
.page-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-tab {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t);
}
.page-tab:hover  { color: var(--text-sub); }
.page-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.page-panel { display: none; }
.page-panel.active { display: block; }

/* Legal */
.legal-content h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.01em; }
.legal-content .lc-meta { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); margin-bottom: 28px; letter-spacing: 0.06em; }
.legal-content h3 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.legal-content p, .legal-content li { font-size: 0.875rem; line-height: 1.8; color: var(--text-sub); margin-bottom: 10px; }
.legal-content ul { padding-left: 18px; list-style: disc; }
.legal-content a  { color: var(--gold); text-underline-offset: 3px; text-decoration: underline; }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-highlight { background: var(--gold-dim); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.legal-highlight p { color: var(--text); margin: 0; }

/* FAQ */
.faq-group-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 28px 0 10px; letter-spacing: 0.01em; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: color var(--t);
}
.faq-q:hover { color: var(--text); }
.faq-icon { font-size: 1rem; color: var(--text-dim); transition: transform var(--t); flex-shrink: 0; }
.faq-item.open .faq-q { color: var(--gold); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner { padding-bottom: 16px; }
.faq-a-inner p { font-size: 0.875rem; line-height: 1.8; color: var(--text-sub); }
.faq-a-inner a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.contact-info-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 10px; transition: border-color var(--t); }
.contact-info-card:hover { border-color: var(--border-lt); }
.contact-info-card h4 { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.contact-info-card p  { font-size: 0.8rem; color: var(--text-sub); line-height: 1.65; }
.contact-info-card a  { color: var(--gold); }

.form-group  { margin-bottom: 14px; }
.form-label  { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-sub); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%238c9fb5' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-select option { background: var(--surface-2); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-status { display: none; padding: 10px 14px; border-radius: var(--radius); margin-top: 12px; font-size: 0.8rem; font-weight: 500; }
.form-status.success { background: var(--green-dim); border: 1px solid var(--green-border); color: var(--green); display: block; }
.form-status.error   { background: var(--red-dim);   border: 1px solid var(--red-border);   color: var(--red);   display: block; }

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--t);
  cursor: pointer;
  border: none;
  width: 100%;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--gold-glow); }

/* Get the App page */
.app-hero { text-align: center; padding: 52px 24px 36px; }
.app-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.app-hero h1 span { color: var(--gold); }
.app-hero p { font-size: 1rem; color: var(--text-sub); max-width: 480px; margin: 0 auto 32px; }
.store-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-lt);
  background: var(--surface-2);
  transition: all var(--t);
  min-width: 164px;
}
.store-btn:hover { border-color: var(--gold-border); background: var(--surface-3); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.store-btn.disabled { opacity: 0.4; pointer-events: none; }
.store-icon { font-size: 1.5rem; }
.store-text { display: flex; flex-direction: column; }
.store-lbl  { font-size: 0.62rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.store-name { font-size: 0.95rem; font-weight: 700; color: var(--text); font-family: var(--font-display); letter-spacing: 0.02em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px 0; }
.feat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--t-slow);
}
.feat-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }
.feat-icon { font-size: 1.5rem; margin-bottom: 12px; }
.feat-card h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: 0.01em; }
.feat-card p  { font-size: 0.8125rem; color: var(--text-sub); line-height: 1.65; }

/* ── Mobile ───────────────────────────────────────────────── */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 40; backdrop-filter: blur(4px); }
.sb-overlay.open { display: block; }
.hs-menu-btn { display: none; background: none; border: none; color: var(--text-sub); font-size: 1.1rem; cursor: pointer; padding: 6px; }

@media (max-width: 1100px) {
  .detail-panel { display: none; }
  .detail-panel.mobile-visible { display: flex; position: fixed; inset: var(--strip-h) 0 37px 0; z-index: 30; background: var(--bg); }
  .game-list-panel { width: auto; flex: 1; }
}
@media (max-width: 700px) {
  :root { --sidebar-w: 210px; }
  .sidebar { position: fixed; left: -220px; top: var(--strip-h); bottom: 37px; z-index: 50; transition: left var(--t); box-shadow: none; }
  .sidebar.open { left: 0; box-shadow: 8px 0 40px rgba(0,0,0,0.6); }
  .hs-menu-btn { display: block; }
  .hs-nav a:not(.hs-cta) { display: none; }
  .gambling-footer .gf-links { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .form-2col { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.5s ease both; }
