/* ─────────────────────────────────────────────
   SandmanEdge — Shared Stylesheet
   Used by: predict.php, admin_refresh.php
───────────────────────────────────────────── */

/* FONTS — loaded via <link> in header.php for parallel loading */

/* VARIABLES — Dark mode (default) */
:root {
  /* Colors */
  --bg:      #060d16;
  --surface: #091428;
  --surface-alt: #0b1929;
  --border:  #1a2e45;
  --accent:  #3D931B;
  --accent2: #4db023;
  --win:     #3D931B;
  --loss:    #ff4444;
  --text:    #e0eaf5;
  --text-secondary: #a0b8d0;
  --muted:   #5a7a99;
  --gold:    #f0b429;
  --info:    #5a9fd4;
  --warn:    #f0b429;
  --success: #3D931B;
  --error:   #ff4444;

  /* Spacing scale (4px base) */
  --sp-xs:  0.25rem;  /* 4px  */
  --sp-sm:  0.5rem;   /* 8px  */
  --sp-md:  0.75rem;  /* 12px */
  --sp-lg:  1rem;     /* 16px */
  --sp-xl:  1.5rem;   /* 24px */
  --sp-2xl: 2rem;     /* 32px */
  --sp-3xl: 3rem;     /* 48px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;

  /* Transitions */
  --ease-default: 0.15s ease;
  --ease-smooth:  0.25s ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 15px rgba(61,147,27,0.3);
}

/* VARIABLES — Light mode */
:root.light-mode {
  --bg:      #e8ecf0;
  --surface: #f4f6f8;
  --surface-alt: #eef1f5;
  --border:  #c8ced6;
  --text:    #1a2233;
  --text-secondary: #3a4a5a;
  --muted:   #5c6a7a;
  --accent:  #2d7a10;
  --accent2: #3a9416;
  --win:     #2d7a10;
  --loss:    #cc2222;
  --info:    #2a6faa;
  --gold:    #c08f10;
  --warn:    #c08f10;
  --success: #2d7a10;
  --error:   #cc2222;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 15px rgba(45,122,16,0.2);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ACCESSIBILITY — skip-to-content + screen reader utilities */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--sp-lg);
  z-index: 9999;
  padding: var(--sp-sm) var(--sp-lg);
  background: var(--accent);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top var(--ease-default);
}
.skip-to-content:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* FOCUS — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* BASE */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(61,147,27,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(9,20,40,0.8) 0%, transparent 60%);
}
/* ══════════════════════════════════════════════
   SHARED HEADER / NAV
══════════════════════════════════════════════ */
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,13,22,0.97);
  backdrop-filter: blur(12px);
}
:root.light-mode header { background: rgba(244,246,248,0.97); }
.header-logo { display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.header-logo img { height: 30px; width: auto; }

/* badges next to logo */
.header-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 2px;
  border: 1px solid rgba(61,147,27,0.4);
  color: var(--accent); background: rgba(61,147,27,0.08);
  white-space: nowrap;
}
.header-ent  { border-color: rgba(240,180,41,0.3); color: var(--gold);   background: rgba(240,180,41,0.06); }
.header-live { border-color: rgba(239,68,68,0.4);  color: #f87171;       background: rgba(239,68,68,0.08);
               animation: pulse-live 2s ease-in-out infinite; }
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:0.5} }
.header-upgrade {
  margin-left: auto;
  margin-right: auto;
  padding: 0.3rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.header-upgrade:hover {
  background: #4db023;
  box-shadow: 0 0 14px rgba(61,147,27,0.4);
}

/* ── Always-visible nav links (outside hamburger) ── */
.nav-always {
  flex-shrink: 0;
}
/* Feedback: inline on desktop, inside panel on mobile */
.nav-panel-feedback { display: none; }

/* ── Main nav (hamburger panel — hidden by default) ── */
.main-nav {
  display: none;
  order: 99;
  width: 100%;
  margin-left: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0;
  margin-top: var(--sp-sm);
  overflow: visible;
}
:root.light-mode .main-nav { background: var(--surface); }
.main-nav.open { display: flex !important; }

/* Nav items (links + dropdown triggers) */
.nav-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  padding: 0.4rem 0.65rem; border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.35rem;
}
.nav-item:hover  { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-active > .nav-item,
.nav-active.nav-item,
a.nav-item.nav-active { color: var(--text); }

/* ── Dropdown wrapper ── */
.nav-dropdown { position: static; width: 100%; }

/* Arrow icon */
.drop-arrow {
  opacity: 0.5; transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}
.nav-dropdown.open .drop-arrow { transform: rotate(180deg); opacity: 1; }
.nav-dropdown.open > .nav-drop-btn { color: var(--text); background: rgba(255,255,255,0.05); }

/* ── Dropdown menu (inline in panel) ── */
.drop-menu {
  display: none;
  position: static;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 0;
}
.nav-dropdown.open .drop-menu { display: block; }

.drop-group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); padding: 0.5rem 1rem 0.25rem;
}
.drop-divider {
  height: 1px; background: var(--border); margin: 0.35rem 0;
}
.drop-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.5px;
  color: var(--muted); text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.1s, background 0.1s;
}
.drop-item:hover   { color: var(--text); background: rgba(255,255,255,0.04); }
.drop-active       { color: var(--text) !important; }
.drop-live-dot {
  font-size: 0.5rem; color: #f87171; margin-left: auto;
  animation: pulse-live 2s ease-in-out infinite;
}

/* ── User dropdown & auth nav ── */
.nav-user-dropdown { margin-left: auto; }
.nav-user-btn {
  font-size: 0.65rem !important;
  letter-spacing: 0.5px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-bankroll {
  display: inline-block;
  background: rgba(61,147,27,0.15);
  color: #3D931B;
  border: 1px solid rgba(61,147,27,0.3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.3rem;
  letter-spacing: 0.5px;
  vertical-align: middle;
}
.drop-menu-right { left: auto; right: 0; }
.drop-role-badge {
  font-size: 0.55rem !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent) !important;
  cursor: default;
  padding: 0.3rem 1rem !important;
}
.drop-role-badge:hover { background: transparent !important; }
.drop-upgrade-link { color: var(--accent) !important; font-size: 0.65rem; }
.drop-upgrade-link:hover { background: rgba(61,147,27,0.08) !important; }
.drop-logout {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
  text-align: left;
  color: var(--muted);
}
.drop-logout:hover { color: var(--loss); background: rgba(255,68,68,0.06); }
.drop-logout-form { display: block; width: 100%; }

/* ── Compact user identity strip (top of user dropdown) ── */
.user-strip {
  padding: 0.8rem 1rem 0.6rem;
  background: linear-gradient(180deg, rgba(61,147,27,0.06), transparent);
  border-bottom: 1px solid var(--border);
}
.user-strip-row {
  display: flex; align-items: center; gap: 0.7rem;
}
.user-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; font-weight: 700;
  flex-shrink: 0;
}
.user-avatar-lg {
  width: 36px; height: 36px; font-size: 0.9rem;
}
.user-strip-meta {
  display: flex; flex-direction: column; gap: 0.25rem;
  min-width: 0; flex: 1;
}
.user-strip-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-role-pill {
  display: inline-block; align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem; letter-spacing: 1.5px; font-weight: 700;
  padding: 0.15rem 0.45rem; border-radius: 3px;
  text-transform: uppercase;
}
.user-role-pill.role-free   { background: rgba(150,150,150,0.15); color: var(--muted); border: 1px solid var(--border); }
.user-role-pill.role-basic  { background: rgba(90,159,212,0.15);  color: #5a9fd4;      border: 1px solid rgba(90,159,212,0.4); }
.user-role-pill.role-member { background: rgba(61,147,27,0.15);   color: var(--accent); border: 1px solid rgba(61,147,27,0.4); }
.user-role-pill.role-admin  { background: rgba(245,158,11,0.15);  color: #f59e0b;      border: 1px solid rgba(245,158,11,0.4); }
.user-strip-bankroll {
  margin-top: 0.7rem;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.5rem 0.7rem;
  background: rgba(61,147,27,0.08);
  border: 1px solid rgba(61,147,27,0.25);
  border-radius: 5px;
}
.user-strip-bankroll-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase;
}
.user-strip-bankroll-amt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem; font-weight: 700;
  color: var(--accent);
}

/* ── CLV sparkline in user panel ── */
.user-strip-clv {
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem 0.45rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 5px;
}
:root.light-mode .user-strip-clv { background: rgba(0,0,0,0.02); }
.user-clv-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.35rem;
}
.user-clv-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; letter-spacing: 1.5px;
  color: var(--muted); text-transform: uppercase;
}
.user-clv-avg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
}
.user-clv-avg.good { color: var(--accent); }
.user-clv-avg.bad  { color: var(--loss, #ff4444); }
.user-clv-avg.warn { color: var(--muted); }
.user-clv-spark {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}
.user-clv-spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.user-clv-spark-fill {
  fill: var(--accent);
  opacity: 0.14;
  stroke: none;
}
.user-clv-spark-zero {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

/* ── Small notification badge on nav items ── */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px;
  padding: 0 5px; margin-left: 0.25rem;
  background: var(--accent); color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem; font-weight: 700;
  border-radius: 9px;
  line-height: 1;
}
.drop-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 6px; margin-left: auto;
  background: var(--accent); color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem; font-weight: 700;
  border-radius: 10px;
  line-height: 1;
}

/* ── Prominent Upgrade CTA (free users only) ── */
.drop-upgrade-cta {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0.5rem 0.8rem;
  padding: 0.55rem 0.8rem;
  background: linear-gradient(135deg, rgba(61,147,27,0.18), rgba(61,147,27,0.08));
  border: 1px solid rgba(61,147,27,0.4);
  border-radius: 5px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.5px;
  color: var(--accent);
  transition: background 0.15s, transform 0.15s;
}
.drop-upgrade-cta:hover {
  background: linear-gradient(135deg, rgba(61,147,27,0.28), rgba(61,147,27,0.14));
  transform: translateY(-1px);
}
.drop-upgrade-cta-arrow {
  font-size: 0.85rem; font-weight: 700;
  transition: transform 0.15s;
}
.drop-upgrade-cta:hover .drop-upgrade-cta-arrow { transform: translateX(3px); }

/* ── Today's Picks shortcut (top of menu) ── */
.nav-today-shortcut {
  color: var(--accent) !important;
  background: rgba(61,147,27,0.08);
  font-weight: 600;
  border-bottom: 1px solid rgba(61,147,27,0.2) !important;
}
.nav-today-shortcut:hover {
  background: rgba(61,147,27,0.15) !important;
  color: var(--accent) !important;
}

/* ── Inline theme toggle inside user dropdown ── */
.drop-theme-btn {
  background: none; border: none; cursor: pointer;
  font: inherit; width: 100%; text-align: left;
  color: var(--muted);
}
.drop-theme-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.drop-theme-btn .theme-icon-dark,
.drop-theme-btn .theme-icon-light { font-size: 0.85rem; }
.drop-theme-btn .btn-label { font-size: inherit; text-transform: none; letter-spacing: 0.5px; }

/* ── Header bankroll chip (desktop, shown in toggle) ── */
.user-display {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 120px;
}

/* ── Live game pulse indicator (nav dropdown buttons + sticky tabs) ── */
.nav-live-pulse,
.tab-live-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #f87171;
  margin-left: 0.3rem;
  box-shadow: 0 0 6px rgba(248,113,113,0.7);
  animation: pulse-live 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.tab-live-pulse { margin-left: 0.25rem; }
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.25); }
}

/* ── Top Edge Hero card (dashboard) ── */
.top-edge-hero {
  display: block;
  position: relative;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.1rem 1.1rem;
  background: linear-gradient(135deg, rgba(61,147,27,0.12) 0%, rgba(61,147,27,0.04) 100%);
  border: 1px solid rgba(61,147,27,0.4);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.top-edge-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(61,147,27,0.6);
}
.top-edge-hero:hover {
  transform: translateY(-1px);
  border-color: rgba(61,147,27,0.7);
  box-shadow: 0 4px 18px rgba(61,147,27,0.18);
}
:root.light-mode .top-edge-hero {
  background: linear-gradient(135deg, rgba(61,147,27,0.08) 0%, rgba(61,147,27,0.02) 100%);
  border-color: rgba(61,147,27,0.35);
}
.teh-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.teh-label-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(61,147,27,0.7);
  animation: pulse-live 1.8s ease-in-out infinite;
}
.teh-matchup {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}
.teh-at {
  color: var(--muted);
  font-weight: 400;
  margin: 0 0.3rem;
}
.teh-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0,0,0,0.22);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
:root.light-mode .teh-pick-row { background: rgba(0,0,0,0.04); }
.teh-pick {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.teh-pick-type {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.teh-pick-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.teh-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.teh-conf {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.teh-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.teh-cta {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 480px) {
  .top-edge-hero { padding: 0.85rem 0.9rem 0.95rem; }
  .teh-matchup { font-size: 0.92rem; }
  .teh-pick-value { font-size: 0.78rem; }
  .teh-conf { font-size: 0.9rem; }
  .teh-time { display: none; }
}

/* ── Mobile bottom tab bar (primary nav on mobile) ── */
.bottom-tab-bar { display: none; }
@media (max-width: 768px) {
  .bottom-tab-bar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
  }
  :root.light-mode .bottom-tab-bar { background: var(--surface); }
  .bt-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.15rem;
    text-decoration: none;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.15rem;
    min-height: 48px;
    position: relative;
    transition: color 0.15s;
  }
  .bt-item svg { opacity: 0.72; transition: opacity 0.15s, transform 0.15s; }
  .bt-item:active svg { transform: scale(0.92); }
  .bt-active { color: var(--accent); }
  .bt-active svg { opacity: 1; }
  .bt-active::before {
    content: '';
    position: absolute;
    top: 0; left: 25%; right: 25%; height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
  }
  .bt-item span { display: inline-flex; align-items: center; gap: 0.2rem; }
  .bt-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 14px; height: 14px; padding: 0 4px;
    background: var(--accent); color: #fff;
    border-radius: 8px;
    font-size: 0.5rem; font-weight: 700;
    line-height: 1;
  }
  /* Reserve space at the bottom of the page so content isn't hidden behind the bar */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Toast notifications ── */
.sandman-toast-container {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  left: 50%; transform: translateX(-50%);
  z-index: 2000;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  pointer-events: none;
  width: min(92vw, 420px);
}
.sandman-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.3px;
  color: var(--text);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity var(--ease-smooth), transform var(--ease-smooth);
  width: 100%;
  max-width: 100%;
}
.sandman-toast-show { opacity: 1; transform: translateY(0); }
.sandman-toast-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  flex-shrink: 0;
  font-weight: 700;
}
.sandman-toast-success { border-color: rgba(61,147,27,0.5); }
.sandman-toast-success .sandman-toast-icon { background: var(--accent); color: #fff; }
.sandman-toast-error   { border-color: rgba(255,68,68,0.5); }
.sandman-toast-error   .sandman-toast-icon { background: var(--loss);  color: #fff; }
.sandman-toast-info    { border-color: rgba(90,159,212,0.5); }
.sandman-toast-info    .sandman-toast-icon { background: var(--info);   color: #fff; }
.sandman-toast-msg { flex: 1; }
.sandman-toast-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; padding: 0 0.25rem;
  line-height: 1;
}
.sandman-toast-close:hover { color: var(--text); }
:root.light-mode .sandman-toast { background: var(--surface); color: var(--text); }

/* ── Pull-to-refresh indicator ── */
.pull-refresh-indicator {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-60px);
  z-index: 1500;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #0b1929;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.5px;
  color: var(--muted);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}
.pull-refresh-arrow {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.pull-refresh-indicator.armed {
  color: var(--accent); border-color: rgba(61,147,27,0.4);
}
.pull-refresh-indicator.armed .pull-refresh-arrow { transform: rotate(180deg); color: var(--accent); }
.pull-refresh-indicator.loading .pull-refresh-arrow {
  animation: pr-spin 0.9s linear infinite;
  transform: none !important;
}
@keyframes pr-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
:root.light-mode .pull-refresh-indicator { background: #fff; }

/* ── Skeleton loading blocks ── */
.skeleton {
  display: block;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  color: transparent;
  user-select: none;
}
.skeleton-line { height: 0.8em; margin: 0.35rem 0; }
.skeleton-line.sk-sm { height: 0.6em; }
.skeleton-line.sk-lg { height: 1.1em; }
.skeleton-line.w-25 { width: 25%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
:root.light-mode .skeleton {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.04) 0%,
    rgba(0,0,0,0.08) 50%,
    rgba(0,0,0,0.04) 100%);
  background-size: 200% 100%;
}

/* ── Empty prompts with action CTAs (rich version, different from .empty-state plain) ── */
.empty-prompt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.015);
}
:root.light-mode .empty-prompt { background: rgba(0,0,0,0.015); }
.empty-prompt-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  line-height: 1;
}
.empty-prompt-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.empty-prompt-msg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  max-width: 360px;
  line-height: 1.55;
  margin-bottom: 1.2rem;
}
.empty-prompt-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
}
.empty-prompt-cta:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(61,147,27,0.3);
}
.empty-prompt-cta-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}
.empty-prompt-cta-secondary:hover {
  color: var(--text);
  border-color: var(--muted);
  background: transparent;
  box-shadow: none;
}
.nav-login-btn {
  margin-left: auto;
  background: var(--accent);
  color: #fff !important;
  border-radius: 5px;
  padding: 0.3rem 0.9rem !important;
  font-size: 0.65rem !important;
  letter-spacing: 1px;
  transition: background 0.15s, box-shadow 0.15s;
}
.nav-login-btn:hover {
  background: var(--accent2) !important;
  box-shadow: 0 0 12px rgba(61,147,27,0.3);
}

/* ── Hamburger (always visible) ── */
.hamburger {
  display: flex;
  flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--muted); border-radius: 2px; transition: all 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Text size toggle ── */
.text-size-btn {
  cursor: pointer; position: relative; border: 1px solid var(--border);
  border-radius: 4px; background: transparent; color: var(--text);
  padding: 0.3rem 0.5rem; margin: 0 0.15rem;
  font-family: 'IBM Plex Sans', sans-serif;
  transition: border-color 0.15s, background 0.15s;
}
.text-size-btn:hover { border-color: var(--accent); background: rgba(61,147,27,0.08); }
.text-size-icon { font-size: 0.85rem; font-weight: 700; letter-spacing: -1px; }
.text-size-btn::after {
  content: attr(data-size);
  position: absolute; top: -4px; right: -4px;
  font-size: 0.4rem; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; background: var(--accent); border-radius: 3px;
  padding: 0px 3px; line-height: 1.3;
  pointer-events: none;
}
.text-size-btn[data-size=""]::after { display: none; }

/* ── Theme toggle (light/dark) ── */
.theme-toggle-btn {
  cursor: pointer; border: 1px solid var(--border);
  border-radius: 4px; background: transparent; color: var(--text);
  padding: 0.3rem 0.5rem; margin: 0 0.15rem;
  font-size: 0.95rem; line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}
.theme-toggle-btn:hover { border-color: var(--accent); background: rgba(61,147,27,0.08); }
/* Dark mode (default): show moon, hide sun */
.theme-icon-light { display: none; }
.theme-icon-dark  { display: inline; }
/* Light mode: show sun, hide moon */
:root.light-mode .theme-icon-light { display: inline; }
:root.light-mode .theme-icon-dark  { display: none; }

/* ── Nav items inside hamburger panel ── */
.main-nav .nav-item,
.main-nav .nav-drop-btn {
  padding: 0.7rem 1rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.75rem;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
}
.main-nav .nav-dropdown { position: static; width: 100%; }
.main-nav .drop-menu {
  position: static;
  box-shadow: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-radius: 0;
  padding: 0;
  background: rgba(255,255,255,0.02);
  display: none;
  width: 100%;
}
.main-nav .nav-dropdown.open .drop-menu { display: block; }
.main-nav .drop-item { padding-left: 1.75rem; font-size: 0.72rem; }
.main-nav .drop-group-label { padding-left: 1.75rem; }
.main-nav .nav-user-dropdown { margin-left: 0; width: 100%; }
.main-nav .nav-user-btn { max-width: none; }
.main-nav .drop-menu-right { left: 0; right: auto; }
.main-nav .nav-login-btn { margin-left: 0; text-align: center; }
.main-nav .text-size-btn,
.main-nav .theme-toggle-btn {
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-radius: 0;
  justify-content: flex-start;
  gap: 0.6rem;
}
:root.light-mode .main-nav .text-size-btn,
:root.light-mode .main-nav .theme-toggle-btn {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* ── Button labels (text next to icons in panel) ── */
.btn-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase;
}
/* Dark mode (default): show "Dark Mode" label, hide "Light Mode" */
.btn-label-light { display: none; }
.btn-label-dark  { display: inline; }
:root.light-mode .btn-label-light { display: inline; }
:root.light-mode .btn-label-dark  { display: none; }

/* ── Responsive: hide tags on smaller screens ── */
@media (max-width: 1024px) {
  .header-ent { display: none; }
}
@media (max-width: 768px) {
  .header-tag { display: none; }
  /* Move Feedback into hamburger panel on mobile */
  .nav-always.nav-feedback { display: none; }
  .nav-panel-feedback { display: flex; }
}
@media (max-width: 480px) {
  header { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .header-logo img { height: 24px; }
  .nav-always { font-size: 0.6rem; padding: 0.3rem 0.4rem; }
  .header-upgrade { font-size: 0.72rem; padding: 0.25rem 0.8rem; letter-spacing: 1.5px; }
}

/* ── Sport Navigation Bar ── */
.sport-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 99;
}
.sport-nav::-webkit-scrollbar { display: none; }
.sport-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.sport-nav-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.sport-nav-tab.active {
  color: var(--accent);
  background: rgba(61,147,27,0.08);
  border: 1px solid rgba(61,147,27,0.2);
}
.sport-nav-tab .sport-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sport-nav-spacer { flex: 1; }
.sport-nav .text-size-btn,
.sport-nav .theme-toggle-btn {
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  padding: 0.25rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.sport-nav .text-size-btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  position: relative;
}
.sport-nav .text-size-btn::after {
  content: attr(data-size);
  position: absolute; top: -4px; right: -4px;
  font-size: 0.4rem; font-weight: 700; letter-spacing: 0.5px;
  color: #fff; background: var(--accent); border-radius: 3px;
  padding: 0px 3px; line-height: 1.3;
  pointer-events: none;
}
.sport-nav .text-size-btn[data-size=""]::after { display: none; }
.sport-nav .text-size-btn:hover,
.sport-nav .theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.sport-nav .theme-icon-light { display: none; }
.sport-nav .theme-icon-dark  { display: inline; }
:root.light-mode .sport-nav .theme-icon-light { display: inline; }
:root.light-mode .sport-nav .theme-icon-dark  { display: none; }
@media (max-width: 480px) {
  .sport-nav { padding: 0.3rem 0.5rem; gap: 0.15rem; }
  .sport-nav-tab { font-size: 0.58rem; padding: 0.25rem 0.5rem; }
  .sport-nav .text-size-btn,
  .sport-nav .theme-toggle-btn { padding: 0.2rem 0.35rem; font-size: 0.65rem; }
}

/* ── Legacy tag aliases (used by predict.php / admin) ── */
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
  border: 1px solid var(--border); color: var(--muted);
}
.tag.ent-tag  { border-color: var(--accent); color: var(--accent); }
.tag.admin    { border-color: var(--warn); color: var(--warn); background: rgba(240,180,41,0.08); }

/* ── Site footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-xl) var(--sp-xl);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--accent);
}
.footer-links {
  display: flex;
  gap: var(--sp-lg);
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  transition: color var(--ease-default);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}
.footer-ent { color: rgba(240,180,41,0.6); }
.footer-copy { color: var(--muted); opacity: 0.6; }
@media (max-width: 480px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--sp-sm); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── LAYOUT ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-2xl);
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}
main.narrow { max-width: 1100px; }

/* ── SHARED CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  transition: border-color var(--ease-default), box-shadow var(--ease-default);
}
.card:hover { border-color: rgba(255,255,255,0.08); }
.card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--ease-default), box-shadow var(--ease-default), border-color var(--ease-default), transform var(--ease-default);
  width: 100%;
  text-decoration: none;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
/* Variants */
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); box-shadow: var(--shadow-glow); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(61,147,27,0.08); }
.btn-warn      { background: rgba(240,180,41,0.1); color: var(--warn); border-color: rgba(240,180,41,0.3); }
.btn-warn:hover { background: rgba(240,180,41,0.2); }
.btn-danger    { background: rgba(255,68,68,0.1); color: var(--error); border-color: rgba(255,68,68,0.3); }
.btn-danger:hover { background: rgba(255,68,68,0.2); }
.btn-ghost     { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); background: rgba(255,255,255,0.03); }
/* Sizes */
.btn-sm  { font-size: 0.75rem; padding: 0.35rem 0.75rem; letter-spacing: 1px; }
.btn-lg  { font-size: 1.05rem; padding: 0.75rem 1.5rem; letter-spacing: 2px; }
.btn-auto { width: auto; }
/* States */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 1em; height: 1em;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── FORM COMPONENTS ── */
.form-group { margin-bottom: var(--sp-lg); }
.form-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-sm);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--ease-default), box-shadow var(--ease-default);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(61,147,27,0.6);
  box-shadow: 0 0 0 3px rgba(61,147,27,0.1);
}
.form-input::placeholder { color: var(--muted); opacity: 0.6; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a7a99'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
/* Error state */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}
.form-error-msg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--error);
  margin-top: var(--sp-xs);
}
/* Disabled state */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
}
/* Hint text below inputs */
.form-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: var(--sp-xs);
}
/* Inline form row (label + input side by side) */
.form-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
/* Checkbox / Radio custom styling */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── NOTICES / ALERTS ── */
.error,
.notice-error {
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  color: var(--error);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: var(--sp-xl);
  line-height: 1.5;
}
.notice-success {
  background: rgba(61,147,27,0.1);
  border: 1px solid rgba(61,147,27,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  color: var(--success);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: var(--sp-xl);
  line-height: 1.5;
}
.notice-info {
  background: rgba(90,159,212,0.1);
  border: 1px solid rgba(90,159,212,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  color: var(--info);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: var(--sp-xl);
  line-height: 1.5;
}
.notice-warn {
  background: rgba(240,180,41,0.1);
  border: 1px solid rgba(240,180,41,0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  color: var(--warn);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: var(--sp-xl);
  line-height: 1.5;
}
/* .no-games — now unified with .empty-state above */

/* ── DISCLAIMER ── */
.disclaimer {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────
   PREDICT.PHP SPECIFIC
───────────────────────────────────────────── */

/* GAME SELECTOR */
.selector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.selector-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
@media (max-width: 700px) { .games-grid { grid-template-columns: 1fr; } }
/* ── Date-grouped collapsible sections ── */
.date-group {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.date-group[open] {
  border-color: rgba(61,147,27,0.3);
}
.date-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  user-select: none;
  background: rgba(255,255,255,0.02);
  list-style: none;
  font-family: 'IBM Plex Mono', monospace;
}
.date-group-header::-webkit-details-marker { display: none; }
.date-group-header::marker { content: ''; }
.date-group-label {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}
.date-group-meta {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-left: auto;
}
.date-group-arrow {
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.date-group[open] > .date-group-header .date-group-arrow {
  transform: rotate(180deg);
}
.date-group[open] > .date-group-header {
  border-bottom: 1px solid var(--border);
}
.date-group > .games-grid {
  padding: 0.75rem;
}
.game-option { display: none; }
.game-label {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.game-label:hover { border-color: var(--accent); background: rgba(61,147,27,0.04); }
.game-option:checked + .game-label {
  border-color: var(--accent);
  background: rgba(61,147,27,0.08);
  box-shadow: 0 0 0 1px var(--accent);
}
.has-prediction .game-label {
  border-left: 2px solid var(--accent);
}
.game-matchup {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
/* Team logos */
.team-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.15) drop-shadow(0 0 2px rgba(255,255,255,0.5));
}
.team-logo-lg {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.15em;
  filter: brightness(1.15) drop-shadow(0 0 2px rgba(255,255,255,0.5));
}
.team-logo-score {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.4rem;
  filter: brightness(1.15) drop-shadow(0 0 3px rgba(255,255,255,0.5));
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.5));
}
.game-meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); flex: 1; }
.game-ou   { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--gold); margin-top: 0.2rem; }
.game-odds-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.6rem; }
.game-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid;
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}
.game-pill-picked {
  color: var(--win);
  border-color: var(--win);
  background: rgba(61,147,27,0.15);
}
.game-pill-against {
  color: var(--loss);
  border-color: var(--loss);
  background: rgba(255,68,68,0.12);
}
.game-pill-pass {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(128,128,128,0.1);
  opacity: 0.7;
  font-style: italic;
}
.game-pill-edge {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(240,180,41,0.18);
  border: 1px solid rgba(240,180,41,0.5);
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.game-close-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  background: rgba(240,180,41,0.12);
  border: 1px solid rgba(240,180,41,0.3);
  padding: 1px 5px;
  border-radius: 2px;
}
/* Mini confidence bars for sidebar predicted cards */
.sb-conf-row { display: flex; gap: 0.6rem; margin-bottom: 0.2rem; align-items: center; }
.sb-conf-item { display: flex; align-items: center; gap: 0.25rem; }
.sb-conf-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.5rem; color: var(--muted); letter-spacing: 0.5px; }
.sb-conf-bar { width: 36px; height: 3px; background: rgba(255,255,255,0.06); border-radius: 1.5px; overflow: hidden; }
.sb-conf-fill { height: 100%; border-radius: 1.5px; }
.sb-conf-fill.sb-hot  { background: var(--win); }
.sb-conf-fill.sb-good { background: var(--info); }
.sb-conf-fill.sb-low  { background: var(--muted); }
.sb-conf-pct { font-family: 'IBM Plex Mono', monospace; font-size: 0.55rem; font-weight: 600; }

/* RESULTS */
.results { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.results-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.results-header h2 { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 2px; }
.auto-regen-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  background: rgba(255,68,68,0.10);
  color: #ff6b6b;
  border: 1px solid rgba(255,68,68,0.3);
  padding: 2px 8px;
  border-radius: 3px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}
.tag-ent {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: rgba(61,147,27,0.1);
}

/* SCORE CARD */
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.team-block { text-align: center; }
.team-block.winner .team-name { color: var(--win); }
.team-name { font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem; letter-spacing: 3px; line-height: 1; margin-bottom: 0.4rem; }
.team-score { font-family: 'IBM Plex Mono', monospace; font-size: 2rem; font-weight: 600; }
.team-label  { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--muted); letter-spacing: 2px; margin-top: 0.3rem; }
.team-record { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.vs-block { text-align: center; }
.vs-text  { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; color: var(--muted); display: block; }
.conf-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; color: var(--accent); line-height: 1; }
.conf-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; color: var(--muted); letter-spacing: 1px; }

/* ODDS STRIP */
.odds-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.odds-card  {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  position: relative;
  transition: border-color 0.2s;
}
.odds-card.odds-card-best { border-color: var(--accent); box-shadow: 0 0 20px rgba(61,147,27,0.1); }
.odds-card-badge {
  position: absolute;
  top: -9px;
  right: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0a0f14;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
}
.odds-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.odds-fav-inline { color: var(--loss); font-weight: 600; }
.odds-dog-inline { color: var(--win);  font-weight: 600; }

/* Pick + confidence */
.ou-pick-big { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--gold); letter-spacing: 2px; line-height: 1.1; }
.ou-pick-pct { font-size: 1.4rem; color: var(--muted); margin-left: 0.15em; }
.ou-pick-pct.pct-hot  { color: var(--accent); }
.ou-pick-pct.pct-good { color: var(--info); }
.ou-pick-pct.pct-low  { color: var(--muted); }

/* Confidence bar */
.conf-bar-wrap { height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.conf-bar-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }
.conf-bar-fill.bar-hot  { background: var(--accent); }
.conf-bar-fill.bar-good { background: var(--info); }
.conf-bar-fill.bar-low  { background: var(--muted); }

.ou-details  { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; }
.ou-conf     { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--accent); margin-top: 0.2rem; }
.ou-reason   { font-size: 0.82rem; color: var(--text); margin-top: 0.6rem; line-height: 1.5; }
.ou-reason-collapsed { max-height: 3.3em; overflow: hidden; position: relative; }
.ou-reason-collapsed::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5em;
  background: linear-gradient(transparent, var(--surface));
}
.ou-reason-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  cursor: pointer;
  margin-top: 0.25rem;
  background: none;
  border: none;
  padding: 0;
}
.ou-reason-toggle:hover { text-decoration: underline; }

/* DETAIL GRID */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.factor { display: flex; gap: 0.75rem; margin-bottom: 0.75rem; align-items: flex-start; }
.factor-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(61,147,27,0.12);
  border: 1px solid rgba(61,147,27,0.25);
  border-radius: 3px;
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.factor-text  { font-size: 0.88rem; line-height: 1.5; }
.injury-text  { font-size: 0.88rem; line-height: 1.6; }
.matchup-row  { border: 1px solid var(--border); border-radius: 5px; padding: 0.75rem; margin-bottom: 0.6rem; background: var(--bg); }
.matchup-teams { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--accent); margin-bottom: 0.3rem; }
.matchup-edge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--win);
  background: rgba(61,147,27,0.12);
  padding: 1px 6px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 0.3rem;
}
.matchup-notes { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.summary-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 30px rgba(61,147,27,0.06);
}
.summary-text { font-size: 0.95rem; line-height: 1.7; font-style: italic; }

/* ── Predict.php tablet/mobile ── */
@media (max-width: 768px) {
  .grid-two-col { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 640px) {
  .score-card { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.25rem; text-align: center; }
  .team-name  { font-size: 1.8rem; }
  .team-score { font-size: 1.4rem; }
  .conf-num   { font-size: 1.6rem; }
  .odds-strip   { grid-template-columns: 1fr; gap: 0.75rem; }
  .detail-grid  { grid-template-columns: 1fr; }
  .grid-two-col { grid-template-columns: 1fr; gap: 1rem; }
  /* Injury card: don't force span 2 when grid is single column */
  .detail-grid .card[style*="grid-column: span 2"] { grid-column: span 1 !important; }
  /* Score breakdown header: wrap on narrow screens */
  .bd-header { flex-wrap: wrap !important; gap: 0.35rem !important; padding: 0.5rem 0.75rem !important; }
  /* Score breakdown: show team header, reflow to 2-row layout */
  .bd-team-header { display: block !important; }
  .bd-factor-row {
    grid-template-columns: minmax(0, 1fr) 52px 80px !important;
    grid-template-rows: auto auto;
    row-gap: 0.1rem !important;
    padding: 0.35rem 0.75rem !important;
  }
  .bd-factor-row > div:first-child {
    overflow: hidden;
    min-width: 0;
  }
  .bd-factor-row > div:first-child > span {
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 22px);
    vertical-align: middle;
  }
  .bd-factor-row > div:nth-child(4) {
    grid-column: 1 / -1;
    text-align: left !important;
    white-space: normal !important;
    font-size: 0.55rem !important;
    color: #7a9bb8;
    padding-left: 0;
  }
}

/* ─────────────────────────────────────────────
   ADMIN_REFRESH.PHP SPECIFIC
───────────────────────────────────────────── */
.page-title    { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 3px; color: var(--muted); margin-bottom: 0.5rem; }
.page-subtitle { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--muted); margin-bottom: 2rem; }
.refresh-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.refresh-card  { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.refresh-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 2px; }
.refresh-card p  { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); line-height: 1.5; flex: 1; }
.all-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 0 30px rgba(61,147,27,0.05);
}
.all-card-text h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 0.3rem; }
.all-card-text p  { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); }
.log-card  { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; margin-top: 1.5rem; }
.log-title { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 2px; color: var(--muted); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.log-entry { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; }
.log-entry:last-child { border-bottom: none; }
.log-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.log-dot.success { background: var(--success); }
.log-dot.error   { background: var(--error); box-shadow: 0 0 6px var(--error); }
.log-dot.info    { background: var(--info); }
.log-dot.warn    { background: var(--warn); }
.log-msg.error   { color: var(--error); }
.log-msg.success { color: var(--text); }
.log-msg.info    { color: var(--info); }
.log-msg.warn    { color: var(--warn); }

/* Sport Switcher Tabs */
.sport-switcher { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.sport-tab {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  padding: 0.45rem 1.25rem; border-radius: 4px;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none; transition: all 0.15s;
}
.sport-tab:hover { border-color: var(--muted); color: var(--text); }
.sport-tab--nba.active   { border-color: var(--accent); color: var(--accent); background: rgba(61,147,27,0.08); }
.sport-tab--ncaab.active { border-color: #5a9fd4; color: #5a9fd4; background: rgba(90,159,212,0.08); }
.sport-tab--nhl.active   { border-color: #5bc8af; color: #5bc8af; background: rgba(91,200,175,0.08); }
.sport-tab--mlb.active   { border-color: #c44569; color: #c44569; background: rgba(196,69,105,0.08); }
.sport-tab--nfl.active   { border-color: #e3872d; color: #e3872d; background: rgba(227,135,45,0.08); }
.sport-tab--ncaaf.active { border-color: #d4a017; color: #d4a017; background: rgba(212,160,23,0.08); }
.sport-tab--golf.active  { border-color: #3D931B; color: #3D931B; background: rgba(61,147,27,0.08); }

/* Collapsible Sections */
.refresh-section { margin-bottom: 1.5rem; }
.refresh-section summary {
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem;
  letter-spacing: 2px; cursor: pointer; padding: 0.6rem 0;
  color: var(--muted); border-bottom: 1px solid var(--border);
  margin-bottom: 1rem; list-style: none; display: flex;
  align-items: center; gap: 0.5rem;
}
.refresh-section summary::-webkit-details-marker { display: none; }
.refresh-section summary::before {
  content: '▸'; font-size: 0.9rem; transition: transform 0.15s;
}
.refresh-section[open] summary::before { transform: rotate(90deg); }

/* Freshness Indicators */
.refresh-card.fresh  { border-left: 3px solid var(--success); }
.refresh-card.stale  { border-left: 3px solid var(--warn); }
.refresh-card.old    { border-left: 3px solid var(--error); }
.refresh-card.never  { border-left: 3px solid var(--border); }
.last-run {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem;
  margin-top: -0.25rem;
}
.freshness-dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; margin-right: 2px; vertical-align: middle;
}

/* Mobile: single-column */
@media (max-width: 700px) {
  .refresh-grid { grid-template-columns: 1fr; }
  .refresh-card.span-2 { grid-column: span 1; }
  .all-card { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════
   ADMIN_ANALYTICS.PHP — Claude Analytics
═══════════════════════════════════════════════ */
.analytics-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Range tabs */
.analytics-range-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.analytics-tab {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s;
}
.analytics-tab:hover { border-color: var(--accent); color: var(--text); }
.analytics-tab-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Summary cards */
.analytics-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.analytics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.analytics-card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.analytics-card-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--accent);
}
.analytics-card-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Sections */
.analytics-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.analytics-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.analytics-empty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}

/* Chart */
.analytics-chart { display: flex; gap: 0.5rem; height: 200px; }
.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  min-width: 50px;
  text-align: right;
  padding: 2px 0;
}
.chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.chart-bar-stack {
  width: 100%;
  max-width: 24px;
  display: flex;
  flex-direction: column-reverse;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
  min-height: 1px;
}
.chart-bar-seg { width: 100%; min-height: 1px; }
.chart-bar-label {
  position: absolute;
  bottom: -18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
  white-space: nowrap;
}
.chart-bar-today .chart-bar-stack { box-shadow: 0 0 8px rgba(61,147,27,0.4); }
.chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}
.chart-legend-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.chart-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

/* Tables */
.analytics-table-wrap { overflow-x: auto; }
.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}
.analytics-table th {
  text-align: left;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.analytics-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.analytics-table tfoot td {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.analytics-table tbody tr:hover { background: rgba(61,147,27,0.04); }
.col-mono { font-family: 'IBM Plex Mono', monospace; }

/* Sport badges */
.sport-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  display: inline-block;
}
.sport-nba   { background: rgba(61,147,27,0.15); color: #3D931B; }
.sport-ncaab { background: rgba(90,159,212,0.15); color: #5a9fd4; }
.sport-nhl   { background: rgba(0,212,170,0.15); color: #00d4aa; }
.sport-mlb   { background: rgba(255,68,68,0.15); color: #ff4444; }

/* Stop reason badges */
.stop-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}
.stop-ok  { background: rgba(61,147,27,0.15); color: var(--accent); }
.stop-bad { background: rgba(255,68,68,0.15); color: var(--error); }

/* Stop reason bars */
.analytics-stop-reasons { display: flex; flex-direction: column; gap: 0.5rem; }
.stop-reason-item { display: flex; align-items: center; gap: 0.75rem; }
.stop-reason-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  min-width: 100px;
  color: var(--text);
}
.stop-reason-bad { color: var(--error); }
.stop-reason-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}
.stop-reason-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.stop-reason-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
}

/* Token avg grid */
.analytics-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.token-avg-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
}
.token-avg-sport {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.token-avg-row {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  padding: 0.15rem 0;
}
.token-avg-label { color: var(--muted); }
.token-avg-value { color: var(--text); }

/* Console billing section */
.console-section { border-color: rgba(240,180,41,0.3); }
.console-section .analytics-section-title { color: var(--gold); }
.console-card { border-color: rgba(240,180,41,0.2); }
.console-val { color: var(--gold) !important; }

/* Analytics responsive */
@media (max-width: 768px) {
  .analytics-cards { grid-template-columns: repeat(2, 1fr); }
  .analytics-chart { height: 150px; }
  .analytics-table-recent td:nth-child(3),
  .analytics-table-recent th:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .analytics-cards { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ── */
/* ─── MOBILE LAYOUT ──────────────────────────── */


/* ══════════════════════════════════════════════
   PREDICT.PHP SPECIFIC — modal, bench depth info
══════════════════════════════════════════════ */
#methodology-modal { display:none; }
  #methodology-modal.open { display:flex; }

/* ── Bench depth info tooltips ── */
.bd-info-btn { display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;background:rgba(90,159,212,0.15);border:1px solid rgba(90,159,212,0.3);color:#5a9fd4;font-size:0.55rem;font-family:'IBM Plex Mono',monospace;cursor:default;margin-left:5px;vertical-align:middle;flex-shrink:0 }
    .bd-tooltip-wrap { position:relative;display:inline-flex;align-items:center }
    .bd-tooltip { display:none;position:absolute;left:20px;top:50%;transform:translateY(-50%);background:#0d1f33;border:1px solid rgba(90,159,212,0.35);border-radius:5px;padding:0.5rem 0.65rem;width:240px;font-size:0.7rem;color:#8a9bb5;line-height:1.5;z-index:100;pointer-events:none }
    .bd-tooltip-wrap:hover .bd-tooltip { display:block }
    .bd-row-info { display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;border-radius:50%;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);color:#5a6a7a;font-size:0.5rem;font-family:'IBM Plex Mono',monospace;cursor:default;margin-left:4px;flex-shrink:0 }
    .bd-row-wrap { position:relative;display:inline-flex;align-items:center }
    .bd-row-tip { display:none;position:absolute;left:18px;top:50%;transform:translateY(-50%);background:#0d1f33;border:1px solid rgba(90,159,212,0.25);border-radius:5px;padding:0.45rem 0.6rem;width:220px;font-size:0.68rem;color:#7a8fa8;line-height:1.5;z-index:200;pointer-events:none }
    .bd-row-wrap:hover .bd-row-tip { display:block }

@media (max-width: 600px) {
    .bd-tooltip-wrap, .bd-row-wrap { position:static }
    .bd-tooltip, .bd-row-tip { position:fixed !important;left:1rem !important;right:1rem !important;transform:none !important;width:auto !important;max-width:none !important;box-sizing:border-box !important;z-index:9999;pointer-events:auto }
    .bd-tooltip-wrap:hover .bd-tooltip, .bd-row-wrap:hover .bd-row-tip { display:none }
}

/* ══════════════════════════════════════════════
   INDEX.PHP SPECIFIC — dashboard layout
══════════════════════════════════════════════ */
/* index.php — extends style.css */
  :root {
    --card:   var(--surface);
    --nba:    var(--accent);
    --ncaab:  var(--info);
  }
  body {
    font-family: 'IBM Plex Mono', monospace;
    background-image:
      radial-gradient(ellipse at 20% 0%,  rgba(61,147,27,0.06)  0%, transparent 60%),
      radial-gradient(ellipse at 80% 100%, rgba(90,159,212,0.04) 0%, transparent 60%);
  }

  header img { height: 32px; }
  .header-tag {
    font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 2px;
    border: 1px solid rgba(61,147,27,0.4); color: var(--accent);
    background: rgba(61,147,27,0.08);
  }
  .header-ent {
    border-color: rgba(240,180,41,0.3); color: var(--gold);
    background: rgba(240,180,41,0.06);
  }
  .header-nav { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; }
  .header-nav a {
    font-size: 0.68rem; color: var(--muted); text-decoration: none;
    letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.15s;
  }
  .header-nav a:hover { color: var(--text); }




  /* ── MAIN GRID (inherits max-width: 1200px from line ~300) ── */

  /* ── Welcome bar (logged-in users) ── */
  .welcome-bar {
    max-width: 1200px; margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.5px;
  }
  .welcome-dropdown { position: relative; }
  .welcome-toggle {
    background: none; border: none; cursor: pointer;
    color: var(--fg); font: inherit; letter-spacing: inherit;
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.5rem; border-radius: 4px;
    transition: background 0.15s;
  }
  .welcome-toggle:hover { background: var(--card); }
  .welcome-arrow { transition: transform 0.2s; opacity: 0.5; }
  .welcome-dropdown.open .welcome-arrow { transform: rotate(180deg); }
  .welcome-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    min-width: 140px; margin-top: 0.3rem;
    background: var(--card); border: 1px solid var(--border); border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 100; overflow: hidden;
  }
  .welcome-dropdown.open .welcome-menu { display: block; }
  .welcome-menu-item {
    display: block; padding: 0.55rem 1rem;
    color: var(--fg); text-decoration: none;
    font-size: 0.68rem; letter-spacing: 0.5px;
    transition: background 0.12s;
  }
  .welcome-menu-item:hover { background: var(--accent); color: #fff; }

  /* ── Dashboard sign-in bar (guests only) ── */
  .dash-signin-bar {
    display: flex; justify-content: flex-end;
    padding: 0.5rem 0; margin-bottom: 0.25rem;
  }
  .dash-signin-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase;
    color: #fff; text-decoration: none;
    background: var(--accent); padding: 0.45rem 1.2rem;
    border-radius: 5px; transition: background 0.15s, box-shadow 0.15s;
  }
  .dash-signin-btn:hover {
    background: var(--accent2);
    box-shadow: 0 0 12px rgba(61,147,27,0.3);
  }

  /* ── HERO ─────────────────────────────────── */
  .hero {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: 4px;
    line-height: 0.95;
    color: var(--text);
  }
  .hero-title span { color: var(--accent); }
  .hero-subtitle { font-size: 0.72rem; color: var(--muted); margin-top: 0.5rem; letter-spacing: 1px; }
  .hero-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem; letter-spacing: 3px; color: var(--muted);
    text-align: right;
  }
  .hero-date span { display: block; font-size: 0.65rem; font-family: 'IBM Plex Mono', monospace; letter-spacing: 1px; color: var(--muted); margin-top: 0.25rem; }

  /* ── SECTION HEADERS ─────────────────────── */
  .section-head {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .section-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem; letter-spacing: 3px;
  }
  .sport-dot {
    width: 8px; height: 8px; border-radius: 50%;
    flex-shrink: 0;
  }
  .nba-dot   { background: var(--nba); }
  .ncaab-dot { background: var(--ncaab); }
  .section-meta { font-size: 0.65rem; color: var(--muted); letter-spacing: 1px; margin-left: auto; }

  /* ── RECORD BAR ──────────────────────────── */
  .record-bar {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 2rem; padding: 1rem 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
  }
  .rec-item {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
  }
  .rec-item:last-child { border-right: none; }
  .rec-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
  .rec-val {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 1px;
  }
  .rec-sub { font-size: 0.6rem; color: var(--muted); }
  .good  { color: var(--win); }
  .warn  { color: var(--warn); }
  .bad   { color: var(--loss); }
  .muted { color: var(--muted); }

  /* ── EDGE PICKS INFO TIP ────────────────── */
  .edge-info-tip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem; color: var(--muted); cursor: help;
    border-bottom: 1px dotted var(--muted); position: relative;
    margin-left: 0.5rem;
  }
  .edge-info-tip:hover { color: var(--accent); border-color: var(--accent); }

  /* ── EDGE PICKS ACCORDIONS ───────────────── */
  .edge-today-wrap { margin-bottom: 0.75rem; }
  .edge-today-wrap .edge-row:hover { background: rgba(61,147,27,0.05); }
  .edge-history-wrap { margin-bottom: 1.5rem; }
  .edge-history-toggle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); cursor: pointer; padding: 0.4rem 0;
    user-select: none;
  }
  .edge-history-toggle:hover { color: var(--accent); }
  .edge-arrow {
    display: inline-block; transition: transform 0.2s;
    font-size: 0.7rem; margin-right: 0.25rem;
  }
  .edge-arrow.open { transform: rotate(90deg); color: var(--accent); }
  .edge-history-pills {
    display: flex; gap: 0.4rem; margin: 0.75rem 0;
  }
  .edge-pill {
    font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem;
    padding: 0.25rem 0.65rem; border-radius: 4px; cursor: pointer;
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    transition: all 0.15s;
  }
  .edge-pill:hover { border-color: var(--accent); color: var(--text); }
  .edge-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(61,147,27,0.1); }
  .edge-history-list {
    max-height: 320px; overflow-y: auto;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--card);
  }
  .edge-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
  }
  .edge-row:last-child { border-bottom: none; }
  .edge-sport {
    font-size: 0.55rem; font-weight: 600; letter-spacing: 1px;
    padding: 1px 6px; border-radius: 3px; text-transform: uppercase;
    background: rgba(90,159,212,0.12); color: var(--info);
    min-width: 38px; text-align: center;
  }
  .edge-sport-nba   { background: rgba(200,80,50,0.12); color: #e0714d; }
  .edge-sport-ncaab { background: rgba(90,159,212,0.12); color: var(--info); }
  .edge-sport-nhl   { background: rgba(90,90,180,0.12); color: #8888cc; }
  .edge-sport-mlb   { background: rgba(61,147,27,0.12); color: var(--accent); }
  .edge-date { color: var(--muted); min-width: 42px; white-space: nowrap; }
  .edge-matchup { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .edge-type {
    font-size: 0.55rem; letter-spacing: 1px; padding: 1px 5px;
    border-radius: 3px; border: 1px solid var(--border); color: var(--muted);
    min-width: 28px; text-align: center;
  }
  .edge-pick { color: var(--text); font-weight: 600; min-width: 36px; text-align: center; }
  .edge-result { font-weight: 700; min-width: 16px; text-align: center; }
  .parlay-suggest-card {
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
    padding: 1rem 1.25rem; margin-bottom: 1.5rem;
  }
  .parlay-suggest-header { margin-bottom: 0.75rem; }
  .parlay-suggest-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 0.9rem; letter-spacing: 2px; color: #f0b429;
  }
  .parlay-suggest-sub {
    font-size: 0.6rem; color: var(--muted); margin-left: 0.5rem;
  }
  .parlay-suggest-legs { display: flex; flex-direction: column; gap: 0.4rem; }
  .parlay-suggest-leg {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  }
  .parlay-leg-matchup { flex: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .parlay-leg-type { font-size: 0.55rem; letter-spacing: 1px; color: #f0b429; min-width: 24px; }
  .parlay-leg-pick { color: var(--text); font-weight: 600; min-width: 40px; }
  .parlay-leg-conf { font-size: 0.6rem; color: var(--muted); min-width: 30px; text-align: right; }
  .parlay-suggest-cta {
    display: inline-block; margin-top: 0.75rem; font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem; color: #f0b429; text-decoration: none; letter-spacing: 1px;
    transition: color 0.15s;
  }
  .parlay-suggest-cta:hover { color: #ffe066; }
  @media (max-width: 500px) {
    .parlay-suggest-leg { font-size: 0.6rem; gap: 0.3rem; }
    .parlay-suggest-sub { display: block; margin: 0.2rem 0 0; }
  }
  .edge-empty { font-size: 0.7rem; color: var(--muted); padding: 1rem; text-align: center; }
  @media (max-width: 600px) {
    .edge-row { font-size: 0.62rem; gap: 0.35rem; padding: 0.4rem 0.5rem; flex-wrap: wrap; }
    .edge-matchup { min-width: 0; flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; }
    .edge-date { display: none; }
    .edge-pick { min-width: 0; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  }

  /* ── RECORD PAGE ──────────────────────────── */
  .record-hero {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
  }
  .record-hero-pct {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    line-height: 1;
  }
  .record-hero-wl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0.25rem;
  }
  .record-hero-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    margin-top: 0.25rem;
  }
  .conf-tier-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem;
  }
  @media (max-width: 500px) { .conf-tier-grid { grid-template-columns: 1fr; } }
  .conf-tier-card {
    border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
    padding: 1rem; text-align: center;
  }
  .conf-tier-header { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: 0.5rem; }
  .conf-tier-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 1px; color: var(--muted); }
  .conf-tier-pct { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; letter-spacing: 1px; line-height: 1; }
  .conf-tier-wl { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; }

  .record-table {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  .record-table-header, .record-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    align-items: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
  }
  .record-table-header {
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.58rem;
    border-bottom: 1px solid var(--border);
  }
  .record-table-row {
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .record-table-row:last-child { border-bottom: none; }
  .rt-sport { font-weight: 600; }
  .rt-cell { text-align: center; }
  .rt-cell .rec-sub { display: block; font-size: 0.58rem; }
  .record-cta {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 1.5rem;
  }
  .record-cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--accent);
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .record-cta-btn:hover { opacity: 0.9; }
  @media (max-width: 600px) {
    .record-table-header, .record-table-row {
      grid-template-columns: 60px 1fr 1fr 1fr 1fr;
      font-size: 0.6rem;
      gap: 0.25rem;
      padding: 0.4rem 0.5rem;
    }
    .record-hero-pct { font-size: 2.2rem; }
  }

  /* ── GAME PAGE (game.php) ──────────────────── */
  .game-matchup-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
  }
  .game-team-col {
    text-align: center;
    flex: 1;
    max-width: 200px;
  }
  .game-team-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 0.4rem;
  }
  .game-team-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    color: var(--text);
  }
  .game-team-record {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
  }
  .game-vs-col { text-align: center; flex-shrink: 0; }
  .game-vs-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    color: var(--muted);
    letter-spacing: 2px;
  }
  .game-vs-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--muted);
    max-width: 140px;
  }
  .game-final-score {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--text);
  }
  .game-final-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 2px;
  }
  .game-lines-bar {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    margin-bottom: 1rem;
  }
  .game-line-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
  }
  .game-line-label {
    color: var(--muted);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .game-line-val { color: var(--text); font-weight: 600; }
  .game-pred-card {
    border: 1px solid rgba(61,147,27,0.2);
    border-radius: 6px;
    padding: 1rem;
    background: rgba(61,147,27,0.03);
  }
  .game-pred-winner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .game-pred-picks {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text);
  }
  .game-pred-pick-item { color: var(--muted); }
  .game-pred-pick-item strong { color: var(--text); }
  .game-pred-locked {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px dashed var(--border);
    border-radius: 6px;
    background: var(--surface);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--text);
  }
  .game-comparison {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
  }
  .game-comp-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.03);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }
  .game-comp-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .game-comp-row:last-child { border-bottom: none; }
  .game-comp-label {
    text-align: center;
    color: var(--muted);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 50px;
  }
  .game-comp-val { text-align: center; color: var(--text); }
  @media (max-width: 600px) {
    .game-matchup-hero { gap: 0.75rem; padding: 1rem 0.5rem; }
    .game-team-logo { width: 36px; height: 36px; }
    .game-team-name { font-size: 0.9rem; }
    .game-final-score { font-size: 1.4rem; }
    .game-pred-locked { flex-direction: column; text-align: center; }
  }

  /* ── SPORT SECTION WRAPPER ─────────────────── */
  .sports-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  @media (max-width: 900px) { .sports-grid { grid-template-columns: 1fr; } }

  /* ── GAME CARDS ──────────────────────────── */
  .games-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  @media (max-width: 700px) { .games-list { grid-template-columns: 1fr; } }
  .game-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
  }
  .game-card:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }
  .game-card.has-pick { border-left: 2px solid var(--accent); }
  .game-card.has-pick.ncaab-pick { border-left-color: var(--ncaab); }
  .game-card.is-final { opacity: 0.7; }
  .streak-pill {
    font-family: 'Bebas Neue', sans-serif; font-size: 0.55rem; letter-spacing: 1px;
    padding: 0.05rem 0.3rem; border-radius: 3px; vertical-align: middle; margin-left: 0.15rem;
  }
  .streak-pill.streak-win { color: #3D931B; background: rgba(61,147,27,0.12); }
  .streak-pill.streak-loss { color: #ff4444; background: rgba(255,68,68,0.1); }
  .game-card.is-postponed { opacity: 0.6; border-left: 2px solid #f0b429; }
  .game-card.is-postponed .game-lines { opacity: 0.4; }
  .game-status-badge {
    font-family: 'Bebas Neue', sans-serif; font-size: 0.65rem; letter-spacing: 2px;
    color: #f0b429; background: rgba(240,180,41,0.1); border: 1px solid rgba(240,180,41,0.25);
    padding: 0.1rem 0.4rem; border-radius: 3px; white-space: nowrap;
  }

  .game-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.35rem; }
  .game-matchup { font-size: 0.78rem; }
  .game-time { font-size: 0.65rem; color: var(--muted); }
  .game-live { color: #f0b429; }
  .game-final { color: var(--muted); }

  .game-score { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 2px; color: var(--muted); }

  .pick-row {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.4rem; flex-wrap: wrap;
  }
  .pick-tag {
    font-size: 0.58rem; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 1px 6px; border-radius: 2px;
  }
  .pick-winner { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.5px; }
  .pick-conf {
    font-size: 0.65rem; color: var(--muted);
    padding: 1px 6px; border-radius: 2px;
    background: rgba(255,255,255,0.05);
  }
  .pick-pill {
    font-size: 0.6rem; color: var(--muted);
    padding: 1px 6px; border: 1px solid var(--border); border-radius: 2px;
  }
  .pick-low { color: var(--warn); border-color: rgba(240,180,41,0.3); background: rgba(240,180,41,0.06); }
  .result-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    margin-left: auto;
  }
  .dot-win  { background: var(--win); }
  .dot-loss { background: var(--loss); }
  .dot-pend { background: var(--muted); }

  .game-lines {
    display: flex; gap: 0.4rem; margin-top: 0.35rem; flex-wrap: wrap;
  }
  .line-pill {
    font-size: 0.6rem; color: var(--muted);
    padding: 1px 5px; border: 1px solid rgba(255,255,255,0.05); border-radius: 2px;
  }
  /* .no-games — unified in shared section */

  /* ── RECENT RESULTS ──────────────────────── */
  .recent-section { margin-bottom: 3rem; }
  .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  @media (max-width: 700px) { .results-grid { grid-template-columns: 1fr; } }
  .result-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 5px; padding: 0.6rem 0.85rem;
    display: flex; align-items: center; gap: 0.75rem;
  }
  .result-icon {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem; width: 24px; text-align: center; flex-shrink: 0;
  }
  .result-info { flex: 1; min-width: 0; }
  .result-matchup { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .result-pick { font-size: 0.78rem; font-weight: 600; }
  .result-actual { font-size: 0.65rem; color: var(--muted); }
  .result-conf { font-size: 0.65rem; color: var(--muted); }
  .sport-badge {
    font-size: 0.55rem; letter-spacing: 1px; padding: 1px 5px;
    border-radius: 2px; flex-shrink: 0;
  }
  .badge-nba   { border: 1px solid rgba(61,147,27,0.3); color: var(--nba); background: rgba(61,147,27,0.08); }
  .badge-ncaab { border: 1px solid rgba(90,159,212,0.3); color: var(--ncaab); background: rgba(90,159,212,0.08); }

  /* ── QUICK LINKS ─────────────────────────── */
  .quick-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  @media (max-width: 900px)  { .quick-links { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 560px)  { .quick-links { grid-template-columns: repeat(2, 1fr); } }
  .quick-link {
    background: var(--card); border: 1px solid var(--border); border-radius: 6px;
    padding: 1rem 1.25rem; text-decoration: none; color: var(--text);
    display: flex; align-items: center; gap: 0.75rem;
    transition: border-color 0.15s;
  }
  .quick-link:hover { border-color: rgba(255,255,255,0.18); }
  .ql-icon { font-size: 1.4rem; }
  .ql-label { font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 2px; }
  .ql-sub { font-size: 0.62rem; color: var(--muted); }

  /* ── DISCLAIMER ──────────────────────────── */
  .disclaimer { font-size: 0.62rem; color: var(--muted); text-align: center; padding: 1.5rem 0; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════════
   TEST_NETWORK.PHP SPECIFIC
══════════════════════════════════════════════ */
.test-network main { max-width: 900px; margin: 2rem auto; padding: 0 2rem; }
.test-network h1 { font-family:'Bebas Neue',sans-serif; font-size:1.6rem; letter-spacing:3px; color:#5a7a99; margin-bottom:0.5rem; }
.test-network p  { font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:#5a7a99; margin-bottom:1.5rem; }
.test-network table { width:100%; border-collapse:collapse; background:#091428; border:1px solid #1a2e45; border-radius:8px; overflow:hidden; }
.test-network th { font-family:'Bebas Neue',sans-serif; font-size:0.8rem; letter-spacing:2px; color:#5a7a99; padding:0.75rem 1rem; text-align:left; border-bottom:1px solid #1a2e45; background:#060d16; }
.test-network td { padding:0.75rem 1rem; border-bottom:1px solid rgba(255,255,255,0.04); vertical-align:top; }
.test-network tr:last-child td { border-bottom:none; }
.test-network .section { font-family:'Bebas Neue',sans-serif; font-size:0.9rem; letter-spacing:2px; color:#5a7a99; margin:1.5rem 0 0.5rem; padding-bottom:0.4rem; border-bottom:1px solid #1a2e45; }

/* ══════════════════════════════════════════════
   GOLF.PHP + GOLF_LIVE.PHP — shared golf styles
══════════════════════════════════════════════ */
:root { --golf: #4ade80; --golf-dim: rgba(74,222,128,0.12); }

/* Page layout */
main.golf-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }

/* Tournament header */
.tourn-header {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.tourn-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 3px; color: var(--text); line-height: 1;
}
.tourn-subtitle { font-size: 0.65rem; color: var(--muted); letter-spacing: 1px; }
.tourn-badge {
  font-size: 0.6rem; letter-spacing: 2px; padding: 3px 10px;
  border: 1px solid rgba(74,222,128,0.4); color: var(--golf);
  background: var(--golf-dim); border-radius: 3px;
}
.tourn-live-badge {
  font-size: 0.6rem; letter-spacing: 2px; padding: 3px 10px;
  border: 1px solid rgba(239,68,68,0.4); color: #f87171;
  background: rgba(239,68,68,0.08); border-radius: 3px;
  animation: pulse-live 2s ease-in-out infinite;
}
.tourn-updated { font-size: 0.62rem; color: var(--muted); margin-left: auto; align-self: center; }

/* Tab switcher */
.golf-tabs {
  display: flex; gap: 0; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.golf-tab {
  font-size: 0.72rem; letter-spacing: 1px; padding: 0.5rem 1.1rem;
  text-decoration: none; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.15s; text-transform: uppercase;
}
.golf-tab:hover { color: var(--text); }
.golf-tab.active { color: var(--golf); border-bottom-color: var(--golf); }

/* Controls row */
.controls {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center;
  margin-bottom: 1.25rem;
}
.search-box {
  flex: 1; min-width: 180px; max-width: 300px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 0.45rem 0.75rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
  border-radius: 4px; outline: none; transition: border-color 0.15s;
}
.search-box:focus { border-color: rgba(74,222,128,0.5); }
.search-box::placeholder { color: var(--muted); }
.sort-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sort-pill {
  font-size: 0.62rem; letter-spacing: 1px; padding: 4px 10px;
  border: 1px solid var(--border); color: var(--muted);
  background: transparent; border-radius: 3px;
  text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.sort-pill:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.sort-pill.active { border-color: rgba(74,222,128,0.5); color: var(--golf); background: var(--golf-dim); }
.player-count { font-size: 0.65rem; color: var(--muted); margin-left: auto; }

/* Golf table */
.golf-table-wrap { overflow-x: auto; }
table.golf-table {
  width: 100%; border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem;
}
.golf-table thead th {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted); font-weight: 400;
  letter-spacing: 1px; text-transform: uppercase; font-size: 0.6rem;
  white-space: nowrap; text-align: left; cursor: pointer; user-select: none;
}
.golf-table thead th:hover { color: var(--text); }
.golf-table thead th.sorted { color: var(--golf); }
.golf-table thead th.num { text-align: right; }
.golf-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.1s; }
.golf-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.golf-table tbody tr.is-cut { opacity: 0.45; }
.golf-table td { padding: 0.5rem 0.75rem; vertical-align: middle; }
.golf-table td.num { text-align: right; font-size: 0.72rem; }
.golf-table td.ctr { text-align: center; }

/* Rank column */
.rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 1px; color: var(--muted);
  width: 32px; text-align: center;
}
.rank-num.top3 { color: var(--gold); }

/* Player cell */
.player-cell { display: flex; align-items: center; gap: 0.6rem; }
.flag-icon    { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.player-name-text { color: var(--text); font-size: 0.8rem; cursor: default; }
.player-name-text.has-fit {
  cursor: pointer; border-bottom: 1px dashed rgba(74,222,128,0.4);
}
.player-name-text.has-fit:hover { color: var(--golf); }

/* Probability bars */
.prob-cell { min-width: 110px; }
.prob-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }
.prob-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.07);
  border-radius: 3px; overflow: hidden; min-width: 50px;
}
.prob-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.prob-pct { font-size: 0.68rem; width: 42px; text-align: right; flex-shrink: 0; color: var(--text); }

/* Color tiers */
.tier-hot  { background: var(--golf); }
.tier-warm { background: #60a5fa; }
.tier-cool { background: #f59e0b; }
.tier-cold { background: rgba(255,255,255,0.25); }

/* DG rank badge */
.dg-rank {
  font-size: 0.62rem; padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); border-radius: 2px;
}

/* Course fit tooltip */
.fit-table {
  border-collapse: collapse;
  min-width: 300px;
  font-size: 0.72rem;
  font-family: 'IBM Plex Mono', monospace;
}
.fit-table thead tr th {
  padding: 7px 12px;
  text-align: left;
  color: var(--golf);
  letter-spacing: 1.5px;
  font-size: 0.58rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(74,222,128,0.2);
}
.fit-table td {
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
  color: #c9d6e3;
}
.fit-table td:first-child { color: var(--muted); font-size: 0.68rem; }
.fit-table tr:last-child td {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  color: #e0eaf5;
  font-weight: 700;
  padding-top: 7px;
}
.fit-val  { font-family: 'IBM Plex Mono', monospace; text-align: right; min-width: 48px; }
.fit-pos  { color: #4ade80; }
.fit-neg  { color: #f87171; }
.fit-bar-track {
  display: inline-block; width: 70px; height: 5px;
  background: rgba(255,255,255,0.07); border-radius: 3px;
  position: relative; vertical-align: middle;
}
.fit-bar-fill { position: absolute; height: 100%; top: 0; border-radius: 3px; }

/* Tippy dark theme override for course-fit tooltip */
.tippy-box[data-theme~='sandman'] {
  background: #111c27;
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(74,222,128,0.08);
  overflow: visible;
}
.tippy-box[data-theme~='sandman'][data-placement^='bottom'] > .tippy-arrow::before {
  border-bottom-color: rgba(74,222,128,0.3);
}
.tippy-box[data-theme~='sandman'][data-placement^='top'] > .tippy-arrow::before {
  border-top-color: rgba(74,222,128,0.3);
}
.tippy-box[data-theme~='sandman'] .tippy-arrow {
  color: #111c27;
}
.tippy-box[data-theme~='sandman'] .tippy-content {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Live score styles (golf_live only) */
.score-under { color: var(--golf); font-weight: 600; }
.score-even  { color: var(--muted); }
.score-over  { color: #f87171; }
.pos-top3    { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--gold); letter-spacing: 1px; }
.pos-top10   { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--golf); letter-spacing: 1px; }
.pos-other   { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--muted); letter-spacing: 1px; }
.pos-cut     { font-family: 'Bebas Neue', sans-serif; font-size: 0.75rem; color: rgba(255,255,255,0.25); letter-spacing: 1px; }
.thru-badge {
  font-size: 0.6rem; padding: 1px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--muted); border-radius: 2px;
}
.thru-badge.live { border-color: rgba(239,68,68,0.4); color: #f87171; }

/* Error / empty state */
.state-box {
  text-align: center; padding: 3rem 1rem;
  border: 1px dashed var(--border); border-radius: 8px;
  font-size: 0.8rem; color: var(--muted);
}
.state-box .state-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.state-box .state-msg  { color: var(--text); margin-bottom: 0.5rem; font-size: 0.9rem; }

/* DataGolf credit */
.dg-credit {
  font-size: 0.62rem; color: var(--muted); text-align: center;
  padding: 1.5rem 0; border-top: 1px solid var(--border); margin-top: 2rem;
}
.dg-credit a { color: var(--golf); text-decoration: none; }
.dg-credit a:hover { text-decoration: underline; }

/* ── Golf Value Betting & Matchups ─────────────────────────── */

/* Edge badge (inline next to player name) */
.edge-badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.4rem;
  letter-spacing: 1.5px;
  color: #f0b429;
  background: rgba(240,180,41,0.15);
  padding: 0.08rem 0.35rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.3rem;
}

/* Edge values */
.edge-val { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; }
.edge-pos { color: #4ade80; }
.edge-neg { color: #f87171; }
.edge-hot  { font-weight: 700; }
.edge-warm { font-weight: 600; }
.edge-mild { }

/* Golf header info tooltips */
.th-info {
  display: inline-block;
  width: 12px;
  height: 12px;
  line-height: 12px;
  text-align: center;
  font-size: 0.45rem;
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: help;
  position: relative;
  vertical-align: middle;
  margin-left: 0.2rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.th-info:hover { opacity: 1; }
.th-info-tip {
  position: fixed;
  transform: translateX(-50%) translateY(-100%);
  background: #0a1628;
  color: #ccd;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  padding: 0.45rem 0.6rem;
  border-radius: 5px;
  white-space: normal;
  width: max-content;
  max-width: 220px;
  z-index: 10000;
  border: 1px solid #1a2e45;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: none;
}
html.light-mode .th-info {
  border-color: rgba(0,0,0,0.15);
}
html.light-mode .th-info-tip {
  background: #fff;
  color: #333;
  border-color: #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Golf odds display */
.golf-odds {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: #f0b429;
  font-weight: 600;
}

.golf-bet-btn {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.5rem;
  letter-spacing: 1.5px;
  color: #4ade80;
  background: rgba(61,147,27,0.12);
  border: 1px solid rgba(61,147,27,0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.golf-bet-btn:hover {
  background: rgba(61,147,27,0.25);
  border-color: rgba(61,147,27,0.6);
  color: #fff;
}
html.light-mode .golf-bet-btn {
  color: #16a34a;
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.25);
}
html.light-mode .golf-bet-btn:hover {
  background: rgba(22,163,74,0.18);
  border-color: rgba(22,163,74,0.45);
  color: #15803d;
}

/* Market tags */
.market-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
}
.market-win      { background: rgba(240,180,41,0.15); color: #f0b429; }
.market-top_5    { background: rgba(74,222,128,0.12); color: #4ade80; }
.market-top_10   { background: rgba(96,165,250,0.12); color: #60a5fa; }
.market-top_20   { background: rgba(192,132,252,0.12); color: #c084fc; }
.market-make_cut { background: rgba(255,255,255,0.06); color: var(--muted); }

/* Book tags */
.book-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.52rem;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Value explainer box */
.value-explainer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  background: rgba(74,222,128,0.04);
  border: 1px solid rgba(74,222,128,0.1);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* ── Matchup Cards ─────────────────────────────────────────── */
.matchup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}
.matchup-card {
  background: var(--surface, #091428);
  border: 1px solid var(--border, #1a2e45);
  border-radius: 8px;
  padding: 0.75rem;
}
.matchup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.matchup-book {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.52rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.matchup-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.3rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.matchup-favored {
  background: rgba(74,222,128,0.06);
  border-left: 2px solid #4ade80;
  padding-left: 0.5rem;
}
.matchup-player-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.matchup-player-name {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--text, #e0eaf5);
}
.matchup-player-odds {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.matchup-odds {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: #f0b429;
  font-weight: 600;
}
.matchup-prob {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  color: var(--muted);
}
.matchup-vs {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.15);
  padding: 0.15rem 0;
}

/* Light mode overrides for golf value/matchups */
:root.light-mode .matchup-card { background: var(--surface); border-color: var(--border); }
:root.light-mode .matchup-favored { background: rgba(74,222,128,0.08); }
:root.light-mode .matchup-vs { color: rgba(0,0,0,0.12); }
:root.light-mode .value-explainer { background: rgba(74,222,128,0.06); border-color: rgba(74,222,128,0.15); }
:root.light-mode .market-make_cut { background: rgba(0,0,0,0.04); }

@media (max-width: 700px) {
  .matchup-grid { grid-template-columns: 1fr; }
  .matchup-player-odds { flex-direction: column; align-items: flex-end; gap: 0.15rem; }
}

/* ══════════════════════════════════════════════
   SCHEDULE.PHP
══════════════════════════════════════════════ */

.stat-strip { display:flex; gap:1.5rem; flex-wrap:wrap; margin-bottom:1.25rem; font-family:'IBM Plex Mono',monospace; font-size:0.8rem; }
.stat-item { color:var(--muted); }
.stat-item strong { color:var(--text); font-weight:600; margin-right:0.25rem; }

.days-filter { display:flex; align-items:center; gap:0.5rem; flex-wrap:wrap; margin-bottom:1.5rem; font-family:'IBM Plex Mono',monospace; font-size:0.7rem; color:var(--muted); }
.days-btn { padding:3px 12px; border:1px solid var(--border); border-radius:3px; color:var(--muted); text-decoration:none; transition:all 0.15s; letter-spacing:0.5px; }
.days-btn:hover { border-color:rgba(255,255,255,0.2); color:var(--text); }
.days-btn.active { border-color:rgba(61,147,27,0.5); color:var(--accent); background:rgba(61,147,27,0.08); }

.sched-day { margin-bottom:2rem; }
.sched-day-header { display:flex; align-items:center; gap:0.75rem; font-family:'IBM Plex Mono',monospace; font-size:0.72rem; color:var(--muted); letter-spacing:1px; text-transform:uppercase; margin-bottom:0.75rem; padding-bottom:0.4rem; border-bottom:1px solid var(--border); }
.day-badge { font-size:0.58rem; padding:2px 8px; border-radius:2px; border:1px solid var(--border); color:var(--muted); letter-spacing:1px; }

.sched-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:0.75rem; }

.sched-card { display:block; text-decoration:none; background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:0.85rem 1rem; transition:border-color 0.15s, background 0.15s; }
.sched-card:hover { border-color:rgba(61,147,27,0.35); background:rgba(9,20,40,0.8); }
.sched-card.has-pred { border-color:rgba(61,147,27,0.2); }
.sched-card.is-final { opacity:0.6; }

.sched-matchup { font-family:'Bebas Neue',sans-serif; font-size:1.05rem; letter-spacing:1.5px; color:var(--text); margin-bottom:0.3rem; }
.sched-time { font-family:'IBM Plex Mono',monospace; font-size:0.68rem; color:var(--muted); margin-bottom:0.5rem; }
.sched-score { font-weight:600; color:var(--text); }
.sched-final { font-size:0.6rem; color:var(--muted); letter-spacing:1px; margin-left:0.25rem; }

.sched-pills { display:flex; flex-wrap:wrap; gap:0.35rem; margin-bottom:0.5rem; }
.sched-pill { font-family:'IBM Plex Mono',monospace; font-size:0.62rem; padding:2px 7px; border-radius:3px; border:1px solid var(--border); color:var(--muted); white-space:nowrap; }

.pred-badge { display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; padding-top:0.4rem; border-top:1px solid rgba(255,255,255,0.05); font-family:'IBM Plex Mono',monospace; }
.pred-badge-label { font-size:0.58rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--accent); opacity:0.8; }
.pred-badge-team { font-size:0.72rem; font-weight:600; color:var(--text); }
.pred-badge-conf { font-size:0.62rem; color:var(--muted); margin-left:auto; }

/* ══════════════════════════════════════════════
   TEAMS.PHP
══════════════════════════════════════════════ */

.back-link { display:inline-flex; align-items:center; gap:0.4rem; font-family:'IBM Plex Mono',monospace; font-size:0.7rem; color:var(--muted); text-decoration:none; letter-spacing:1px; margin-bottom:1.25rem; transition:color 0.15s; }
.back-link:hover { color:var(--text); }

.teams-nav { display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; margin-bottom:1.5rem; }

.team-link { display:flex; align-items:center; gap:0.5rem; color:var(--accent); text-decoration:none; font-family:'IBM Plex Mono',monospace; font-size:0.78rem; transition:color 0.15s; }
.team-link:hover { color:var(--accent2); }

.conf-header { display:flex; align-items:center; gap:0.75rem; font-family:'IBM Plex Mono',monospace; font-size:0.65rem; letter-spacing:2px; text-transform:uppercase; padding:0.5rem 0.75rem; background:rgba(255,255,255,0.02); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.conf-record { opacity:0.6; }

.win-pct     { font-family:'IBM Plex Mono',monospace; font-size:0.75rem; }
.win-pct-big { font-family:'Bebas Neue',sans-serif; font-size:1rem; letter-spacing:1px; color:var(--muted); }
.record-cell { font-family:'IBM Plex Mono',monospace; font-size:0.8rem; font-weight:600; }

table.stats-table { width:100%; border-collapse:collapse; font-family:'IBM Plex Mono',monospace; font-size:0.73rem; }
.stats-table th { padding:0.5rem 0.75rem; border-bottom:1px solid var(--border); color:var(--muted); font-weight:400; letter-spacing:1px; text-transform:uppercase; font-size:0.58rem; white-space:nowrap; text-align:right; cursor:pointer; user-select:none; }
.stats-table th:first-child { text-align:left; }
.stats-table th:hover { color:var(--text); }
.stats-table th.active-sort { color:var(--accent); }
.stats-table tr { border-bottom:1px solid rgba(255,255,255,0.04); transition:background 0.1s; }
.stats-table tr:first-child { border-bottom:1px solid var(--border); }
.stats-table tr:not(:first-child):hover { background:rgba(255,255,255,0.025); }
.stats-table td { padding:0.45rem 0.75rem; vertical-align:middle; text-align:right; }
.stats-table td:first-child { text-align:left; }
.stats-table th a { color:inherit; text-decoration:none; display:flex; align-items:center; justify-content:flex-end; gap:0.25rem; white-space:nowrap; }
.stats-table th:first-child a { justify-content:flex-start; }
.stats-table th a:hover { color:var(--text); }
.stats-table th.active-sort a { color:var(--accent); }

.form-strip { display:flex; gap:3px; align-items:center; justify-content:flex-end; }
.form-pill { width:16px; height:16px; border-radius:2px; font-size:0.56rem; font-weight:700; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; cursor:default; }
.form-pill.W { background:rgba(61,147,27,0.2);  color:var(--win); }
.form-pill.L { background:rgba(255,68,68,0.12); color:var(--loss); }

.team-hero { display:flex; align-items:flex-start; gap:1.5rem; flex-wrap:wrap; margin-bottom:2rem; padding:1.5rem; background:var(--surface); border:1px solid var(--border); border-radius:8px; }
.hero-city { font-family:'IBM Plex Mono',monospace; font-size:0.62rem; letter-spacing:3px; color:var(--muted); text-transform:uppercase; margin-bottom:0.2rem; }
.hero-name { font-family:'Bebas Neue',sans-serif; font-size:3rem; letter-spacing:4px; line-height:1; }
.hero-record { font-family:'IBM Plex Mono',monospace; font-size:0.78rem; color:var(--muted); margin-top:0.4rem; }

.stat-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:0.65rem; margin-bottom:1.75rem; }
.stat-box { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:0.85rem 1rem; }
.stat-val { font-family:'Bebas Neue',sans-serif; font-size:1.9rem; letter-spacing:1px; line-height:1; margin-bottom:0.3rem; }
.stat-lbl { font-family:'IBM Plex Mono',monospace; font-size:0.56rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--muted); }

.card { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:1.25rem 1.5rem; }
.card-title { font-family:'Bebas Neue',sans-serif; font-size:0.75rem; letter-spacing:3px; text-transform:uppercase; color:var(--muted); margin-bottom:1rem; padding-bottom:0.5rem; border-bottom:1px solid var(--border); }

table.roster-table { width:100%; border-collapse:collapse; font-family:'IBM Plex Mono',monospace; font-size:0.72rem; }
.roster-table thead th { padding:0.4rem 0.65rem; border-bottom:1px solid var(--border); color:var(--muted); font-weight:400; letter-spacing:1px; text-transform:uppercase; font-size:0.57rem; text-align:right; white-space:nowrap; }
.roster-table thead th:first-child { text-align:left; }
.roster-table tbody tr { border-bottom:1px solid rgba(255,255,255,0.04); transition:background 0.1s; }
.roster-table tbody tr:hover { background:rgba(255,255,255,0.025); }
.roster-table td { padding:0.4rem 0.65rem; vertical-align:middle; text-align:right; }
.roster-table td:first-child { text-align:left; }
.pos-badge { font-family:'IBM Plex Mono',monospace; font-size:0.58rem; padding:1px 6px; border-radius:2px; border:1px solid var(--border); color:var(--muted); letter-spacing:1px; }

/* ─────────────────────────────────────────────
   HISTORY.PHP — pred-table, badges, accuracy
───────────────────────────────────────────── */

/* filter nav (period + show buttons) */
.filter-nav { display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; margin-bottom:1rem; }

/* tab buttons (Game Log / Per-Team / etc.) */
.tab-btn { font-family:'IBM Plex Mono',monospace; font-size:0.65rem; letter-spacing:1px; padding:4px 14px; border:1px solid var(--border); color:var(--muted); background:transparent; border-radius:3px; text-decoration:none; cursor:pointer; transition:all 0.15s; white-space:nowrap; display:inline-block; }
.tab-btn:hover  { border-color:rgba(255,255,255,0.2); color:var(--text); }
.tab-btn.active { border-color:var(--accent); color:var(--accent); background:rgba(61,147,27,0.08); }

/* empty state — unified pattern for all "no data" messages */
.empty-state,
.no-games {
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.01);
  line-height: 1.5;
}

/* accuracy summary cards */
.accuracy-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0.75rem; margin-bottom:1.75rem; }
.acc-card { background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:1rem 1.25rem; }
.acc-pct  { font-family:'Bebas Neue',sans-serif; font-size:2.2rem; letter-spacing:1px; line-height:1; margin-bottom:0.2rem; }
.acc-label{ font-family:'IBM Plex Mono',monospace; font-size:0.58rem; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:0.5rem; }
.acc-sub  { font-family:'IBM Plex Mono',monospace; font-size:0.62rem; color:var(--muted); }
.acc-bar  { height:3px; border-radius:2px; background:rgba(255,255,255,0.07); margin-top:0.6rem; overflow:hidden; }
.acc-bar-fill { height:100%; border-radius:2px; }

/* main prediction table */
table.pred-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.73rem;
  /* NO table-layout:fixed — let browser size columns to content */
}
.pred-table th {
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.58rem;
  text-align: left;
  white-space: nowrap;
}
.pred-table td {
  padding: 0.55rem 0.6rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.pred-row { transition: background 0.1s; }
.pred-row:hover { background: rgba(255,255,255,0.025); }
/* toggle col — tiny */
.pred-table th:nth-child(1), .pred-table td:nth-child(1) { width:28px; text-align:center; padding:0.5rem 0.25rem; }
/* game col — allow wrapping */
.pred-table td:nth-child(2) { white-space: normal; min-width: 160px; max-width: 220px; }
/* pts off — right align */
.pred-table th:nth-child(5), .pred-table td:nth-child(5) { text-align: right; }
/* conf — center */
.pred-table th:nth-child(6), .pred-table td:nth-child(6) { text-align: center; }
/* ml — center */
.pred-table th:nth-child(7), .pred-table td:nth-child(7) { text-align: center; }
/* date — right align */
.pred-table th:nth-child(10), .pred-table td:nth-child(10) { text-align: right; }

.team-vs  { font-family:'Bebas Neue',sans-serif; font-size:0.95rem; letter-spacing:1px; color:var(--text); }
.pred-meta{ font-family:'IBM Plex Mono',monospace; font-size:0.62rem; color:var(--muted); margin-top:0.15rem; }
.score-actual { font-size:0.65rem; color:var(--muted); }
.conf-badge { font-family:'IBM Plex Mono',monospace; font-size:0.7rem; font-weight:600; }

/* result badges */
.result-badge { font-family:'IBM Plex Mono',monospace; font-size:0.6rem; padding:2px 8px; border-radius:2px; letter-spacing:0.5px; white-space:nowrap; display:inline-block; }
.result-badge.win   { background:rgba(61,147,27,0.15); color:var(--win);  border:1px solid rgba(61,147,27,0.3); }
.result-badge.loss  { background:rgba(255,68,68,0.1);  color:var(--loss); border:1px solid rgba(255,68,68,0.25); }
.result-badge.push  { background:rgba(255,255,255,0.04); color:var(--muted); border:1px solid var(--border); }

/* spread/ou badges */
.badge-spread   { font-family:'IBM Plex Mono',monospace; font-size:0.7rem; font-weight:700; }
.badge-correct  { color:var(--win); }
.badge-incorrect{ color:var(--loss); }
.badge-pending  { color:var(--muted); }

/* no lines badge — for MLB pre-season predictions without betting lines */
.no-lines-badge {
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #856404;
}
.no-lines-badge strong {
  color: #856404;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}
.no-lines-badge p {
  color: #664d03;
  line-height: 1.4;
}

/* expand row */
.expand-toggle { font-size:0.7rem; color:var(--muted); cursor:pointer; transition:transform 0.15s; display:inline-block; }
.expand-toggle.open { transform:rotate(90deg); color:var(--accent); }
.expand-row { display:none; }
.expand-row.open { display:table-row; }
.expand-inner { padding:0.75rem 1rem 1rem 2.5rem; background:rgba(255,255,255,0.015); }
.expand-section { margin-bottom:0.75rem; }
.expand-label { font-size:0.58rem; letter-spacing:2px; text-transform:uppercase; color:var(--muted); margin-bottom:0.35rem; }
.expand-text  { font-size:0.72rem; color:var(--text); line-height:1.6; }
.expand-factors { display:flex; flex-wrap:wrap; gap:0.35rem; }
.factor-pill { font-family:'IBM Plex Mono',monospace; font-size:0.62rem; padding:2px 8px; border-radius:3px; border:1px solid var(--border); color:var(--muted); }

/* pct bar */
.pct-bar-wrap { display:flex; align-items:center; gap:0.5rem; }
.pct-bar      { flex:1; height:4px; background:rgba(255,255,255,0.07); border-radius:3px; overflow:hidden; }
.pct-bar-fill { height:100%; border-radius:3px; background:var(--accent); }

/* per-team table */
table.team-table { width:100%; border-collapse:collapse; font-family:'IBM Plex Mono',monospace; font-size:0.73rem; }
.team-table th { padding:0.45rem 0.75rem; border-bottom:1px solid var(--border); color:var(--muted); font-weight:400; letter-spacing:1px; text-transform:uppercase; font-size:0.58rem; text-align:left; white-space:nowrap; cursor:pointer; }
.team-table th:hover { color:var(--text); }
.team-table td { padding:0.45rem 0.75rem; vertical-align:middle; border-bottom:1px solid rgba(255,255,255,0.04); }
.team-table tbody tr:hover { background:rgba(255,255,255,0.025); }

/* ─────────────────────────────────────────────
   TEAMS.PHP — stats-table header link fix
───────────────────────────────────────────── */

/* nav-btn — used in teams (conference/sort) and history (period filter) */
.nav-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.5px;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.nav-btn:hover  { border-color: rgba(255,255,255,0.2); color: var(--text); }
.nav-btn.active { border-color: rgba(61,147,27,0.5); color: var(--accent); background: rgba(61,147,27,0.08); }

/* ── PREDICT.PHP — CARD LOADING OVERLAY ─────────────────────────────────── */
.card-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(10,14,20,0.92);
  border-radius: inherit;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem;
  box-sizing: border-box;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: var(--muted);
  z-index: 10;
}
.card-loading-overlay.active {
  display: flex;
}
.card-loading-overlay .loading-title {
  font-size: 0.6rem;
  letter-spacing: 2px;
}
.card-loading-overlay .loading-status {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 0 0.5rem;
  max-width: 100%;
  word-wrap: break-word;
}
.card-spin {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(61,147,27,0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: card-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes card-spin {
  to { transform: rotate(360deg); }
}
.dash-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,14,20,0.88);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.loading-bar {
  width: 80%;
  max-width: 240px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.2s ease;
}
/* Compositor-driven progress animation — keeps running during mobile navigation
   when JS setTimeout chains get paused by the browser. */
.card-loading-overlay.active .loading-bar-fill {
  animation: loadingBarProgress 32s cubic-bezier(0.15, 0.65, 0.25, 1) forwards;
}
.card-loading-overlay.active[data-has-prediction="1"] .loading-bar-fill {
  animation: loadingBarProgress 7s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;
}
@keyframes loadingBarProgress {
  0%   { width: 0%; }
  100% { width: 95%; }
}

.data-as-of { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); letter-spacing: 1px; }

/* ══════════════════════════════════════════════
   LIVE SCORES — index.php live polling
══════════════════════════════════════════════ */
.live-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f0c040;
  letter-spacing: 0.5px;
}
.live-score .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #ff4444;
  border-radius: 50%;
  margin-right: 4px;
  animation: live-blink 1.2s ease-in-out infinite;
}
.live-score .live-clock {
  font-size: 0.6rem;
  color: var(--muted);
  margin-left: 4px;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
.game-card.is-final .game-score {
  color: var(--muted);
  font-size: 0.72rem;
}
/* ══════════════════════════════════════════════
   SPORT TABS (Index Page)
══════════════════════════════════════════════ */
.sport-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.sport-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.sport-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.sport-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.sport-tab .sport-dot {
  width: 8px;
  height: 8px;
}

.tab-count {
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.25rem;
}

.sport-tab.active .tab-count {
  background: rgba(61, 147, 27, 0.2);
  color: var(--accent2);
}

.sport-panels {
  position: relative;
}

.sport-panel {
  display: none;
}

.sport-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

/* ══════════════════════════════════════════════
   SEASON BADGES (Spring Training, etc.)
══════════════════════════════════════════════ */
.season-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-badge.spring-training {
  background: rgba(240, 180, 41, 0.15);
  color: #f0b429;
  border: 1px solid rgba(240, 180, 41, 0.3);
}

/* Confidence badge colors */
.conf-badge-hot  { color: #3D931B !important; font-weight: 700; }
.conf-badge-good { color: #5aaf3b !important; }
.conf-badge-low  { color: var(--muted) !important; }

/* Sharp edge indicator */
.edge-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(255,193,7,0.15);
  color: #ffc107;
  border: 1px solid rgba(255,193,7,0.3);
  font-weight: 600;
}

/* Edge badge — upper-right corner of game card */
.edge-badge-wrap {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 4;
}
.edge-type-pill { font-size: 0.5rem; padding: 1px 5px; }
.edge-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.5px;
  color: #ffc107;
  font-weight: 600;
  white-space: nowrap;
}
.edge-admin-btn {
  background: rgba(255,193,7,0.12);
  border: 1px solid rgba(255,193,7,0.3);
  color: #ffc107;
  font-size: 0.65rem;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.edge-admin-btn:hover { background: rgba(255,193,7,0.25); }
.edge-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: var(--card-bg, #0d1b2a);
  border: 1px solid rgba(255,193,7,0.3);
  border-radius: 6px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 10;
  min-width: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.edge-check-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--text, #c8ddf0);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
}
.edge-save-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  background: rgba(61,147,27,0.15);
  color: #3D931B;
  border: 1px solid rgba(61,147,27,0.3);
  border-radius: 3px;
  cursor: pointer;
  margin-top: 0.15rem;
}
.edge-save-btn:hover { background: rgba(61,147,27,0.3); }
.edge-btn-row { display: flex; gap: 0.3rem; margin-top: 0.15rem; }
.edge-btn-row .edge-save-btn { margin-top: 0; }
.edge-x-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  background: rgba(29,155,240,0.15);
  color: #1d9bf0;
  border: 1px solid rgba(29,155,240,0.3);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.edge-x-btn:hover { background: rgba(29,155,240,0.3); }
.edge-x-btn:disabled { opacity: 0.5; cursor: default; }
.edge-x-posted { background: rgba(29,155,240,0.25); color: #1d9bf0; }

/* Breakdown max potential */
.bd-max { font-size: 0.55rem; font-weight: 400; color: #3a5070; }

/* Season record summary */
.sys-record { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--muted); }
.sys-record strong { color: var(--win); }

/* Line movement warning */
.line-moved-warning {
  font-size: 0.7rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.25);
  border-radius: 6px;
  color: #f0b429;
  margin-bottom: 0.75rem;
}

/* Flash messages (admin) */
.flash-success {
  background: rgba(61,147,27,0.1);
  border: 1px solid rgba(61,147,27,0.3);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  color: #3D931B;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}
.flash-error {
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.3);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  color: #ff4444;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  margin-bottom: 1.5rem;
}

/* ── PREDICT.PHP — FREE PREVIEW / LOCKED CARDS ─────────────────────────── */
.game-card-wrap { position: relative; }

/* Locked card — greyed out, no interaction */
.game-locked .game-label {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
}
.game-locked .game-label:hover {
  border-color: var(--border);
  background: var(--bg);
}

/* Lock overlay — sits on top of the card */
.game-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(6,13,22,0.6);
  border-radius: 6px;
  z-index: 5;
  cursor: not-allowed;
}
.locked-icon { font-size: 0.9rem; }
.locked-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  text-decoration: none;
}
.locked-label:hover { color: var(--accent); }

/* Dashboard locked card (free user gating) */
.game-card.is-locked {
  position: relative;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
  background: var(--surface);
  min-height: 80px;
}
.game-card.is-locked .game-top { opacity: 0.35; filter: grayscale(0.4); }
.free-upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  margin-top: 1rem;
  background: rgba(61,147,27,0.06);
  border: 1px solid rgba(61,147,27,0.2);
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
}
.free-upgrade-banner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.free-upgrade-banner a:hover { text-decoration: underline; }
.sched-locked-pick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.3rem;
}
.sched-locked-pick .locked-icon { font-size: 0.75rem; }
.sched-locked-pick .locked-label { font-size: 0.58rem; letter-spacing: 1.5px; }

/* Free preview badge — green accent tag inside the card */
.free-preview-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: 0.35rem;
  margin-bottom: 0.1rem;
  animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,147,27,0.4); }
  50%      { box-shadow: 0 0 8px 2px rgba(61,147,27,0.2); }
}

/* Free preview card — subtle green glow border */
.game-free-preview .game-label {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(61,147,27,0.15);
}

/* ══════════════════════════════════════════════
   BRACKET ANALYSIS PAGE
══════════════════════════════════════════════ */
.bracket-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Header */
.bracket-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.bracket-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.bracket-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.bracket-updated {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.bracket-hiw-btn {
  margin-top: 0.75rem;
  font-size: 0.72rem;
}
.bracket-gen-btn {
  margin-top: 0.75rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.bracket-gen-btn:hover { background: var(--accent2); }

/* Empty state */
.bracket-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}
.bracket-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.bracket-empty h2 { color: var(--text); margin-bottom: 0.5rem; }

/* Champion Banner */
.bracket-champion-banner {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(61,147,27,0.12) 0%, rgba(240,180,41,0.08) 100%);
  border: 1px solid var(--accent);
  border-radius: 10px;
}
.champion-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.champion-team {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: var(--text);
}
.champion-seed {
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 0.3rem;
}
.champion-conf {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Region Tabs */
.bracket-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.bracket-tab {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.bracket-tab:hover { color: var(--text); border-color: var(--accent); }
.bracket-tab-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Upset Summary */
.bracket-upset-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255,68,68,0.06);
  border: 1px solid rgba(255,68,68,0.2);
  border-radius: 8px;
}
.upset-summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--loss);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.upset-chip {
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(255,68,68,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Round sections */
.bracket-round {
  margin-bottom: 2rem;
}
.bracket-round-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

/* Matchup grid */
.bracket-matchups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem;
}

/* Individual matchup card */
.bracket-matchup {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s;
}
.bracket-matchup:hover { border-color: var(--accent); }
.bracket-matchup-upset { border-color: rgba(255,68,68,0.3); }
.bracket-matchup-actual { border-color: rgba(212,160,23,0.4); background: rgba(212,160,23,0.03); }

.actual-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  color: #d4a017;
  background: rgba(212,160,23,0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}
.actual-badge.actual-correct { color: #fff; background: #3D931B; }
.actual-badge.actual-wrong   { color: #fff; background: #e05252; }

.bracket-record-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  margin: 0 auto 1rem;
  max-width: 440px;
  background: rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
}
.bracket-record-banner .record-label {
  font-size: 0.7rem;
  color: #d4a017;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bracket-record-banner .record-value {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
}

.upset-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #fff;
  background: var(--loss);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
  z-index: 1;
}

.matchup-region {
  position: absolute;
  top: -6px;
  left: 8px;
  font-size: 0.6rem;
  color: var(--muted);
  background: var(--bg);
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Team rows within matchup */
.matchup-teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.matchup-team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  font-size: 0.82rem;
}
.matchup-winner {
  background: rgba(61,147,27,0.1);
  color: var(--text);
  font-weight: 600;
}
.matchup-loser {
  color: var(--muted);
}
.matchup-seed {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 1.2rem;
  text-align: center;
}
.matchup-name { flex: 1; }
.matchup-score {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  min-width: 2rem;
  text-align: right;
}
.matchup-winner .matchup-score { color: var(--accent); }

/* Confidence column */
.matchup-conf {
  text-align: center;
  min-width: 3.5rem;
}
.matchup-conf-num {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}
.matchup-conf-label {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
  text-transform: uppercase;
}

/* Championship Path cards */
.bracket-path-summary { margin-bottom: 2rem; }
.bracket-path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.path-card {
  text-align: center;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.path-seed {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}
.path-team {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0.2rem 0;
}
.path-region {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.path-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
}

/* Team Summary Table */
.bracket-summary-section { margin-bottom: 2rem; }
.bracket-search-row { margin-bottom: 0.75rem; }
.bracket-search-input {
  width: 100%;
  max-width: 300px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
}
.bracket-search-input:focus { border-color: var(--accent); }

.bracket-table-wrap { overflow-x: auto; }
.bracket-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.bracket-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.bracket-table th.sortable { cursor: pointer; }
.bracket-table th.sortable:hover { color: var(--text); }
.bracket-table th.sort-active { color: var(--accent); }
.bracket-table th.sort-active::after {
  content: ' ▼';
  font-size: 0.6rem;
}
.bracket-table th.sort-active.sort-asc::after {
  content: ' ▲';
}
.bracket-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(26,46,69,0.3);
}
.bracket-table tbody tr:hover { background: rgba(61,147,27,0.04); }
.col-seed { font-weight: 600; color: var(--gold); text-align: center; width: 3rem; }
.col-pct { font-family: 'IBM Plex Mono', monospace; }
.col-exit { text-align: center; }

/* Exit badges */
.exit-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}
.exit-r1 { background: rgba(255,68,68,0.15); color: var(--loss); }
.exit-r2 { background: rgba(255,68,68,0.1); color: #ff8888; }
.exit-r3 { background: rgba(240,180,41,0.1); color: var(--gold); }
.exit-r4 { background: rgba(240,180,41,0.15); color: var(--gold); }
.exit-r5 { background: rgba(90,159,212,0.15); color: var(--info); }
.exit-r6 { background: rgba(61,147,27,0.15); color: var(--accent); }
.exit-r7 { background: rgba(61,147,27,0.25); color: var(--accent); font-weight: 700; }

/* Game Analysis Modal */
.game-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.game-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  padding: 1.5rem;
}
.game-modal-close {
  position: absolute; top: 0.5rem; right: 0.75rem;
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.game-modal-close:hover { color: var(--text); }

.gm-header { text-align: center; margin-bottom: 1rem; }
.gm-round { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.gm-matchup-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.gm-team { color: var(--muted); }
.gm-team-win { color: var(--success); }
.gm-vs { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); }

.gm-result {
  text-align: center; padding: 0.75rem;
  background: rgba(61,147,27,0.06); border: 1px solid rgba(61,147,27,0.15);
  border-radius: 8px; margin-bottom: 1.25rem;
}
.gm-winner { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; margin-bottom: 0.25rem; }
.gm-score { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 2px; }
.gm-conf { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--muted); }

/* Factor rows now use inline styles matching predict.php + shared bd-row-info/bd-row-tip classes */

.gm-totals {
  display: flex; justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  padding: 0.6rem 0.75rem; background: rgba(255,255,255,0.03);
  border-radius: 6px;
}

/* ── Prediction page utility classes ─────────────────────────────── */
.label-mono-accent {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 0.5rem;
}
.text-mono-muted {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem;
  color: var(--muted); letter-spacing: 1px;
}
.section-heading {
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
  letter-spacing: 2px; color: var(--info); margin-bottom: 0.75rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
}
.flex-center { display: flex; align-items: center; justify-content: center; }
.alert-success-box {
  background: rgba(61,147,27,0.06); border: 1px solid rgba(61,147,27,0.2);
  border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.alert-danger-box {
  background: rgba(255,68,68,0.05); border: 1px solid rgba(255,68,68,0.2);
  border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.text-secondary {
  font-size: 0.82rem; color: #8a9bb5; margin-bottom: 0.75rem; line-height: 1.6;
}
.subtle-box {
  background: rgba(255,255,255,0.03); border-radius: 6px;
  padding: 0.75rem 1rem; margin-top: 0.75rem;
  font-size: 0.78rem; color: var(--muted); line-height: 1.6;
}
.grid-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem;
}
.stat-label-mono {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 640px) {
  .bracket-page { padding: 1rem 0.75rem 3rem; }
  .bracket-title { font-size: 1.5rem; }
  .bracket-matchups { grid-template-columns: 1fr; }
  .bracket-tabs { gap: 0.3rem; }
  .bracket-tab { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
  .bracket-path-cards { grid-template-columns: repeat(2, 1fr); }
  .game-modal { padding: 1rem; max-height: 90vh; max-width: 100%; }
  .gm-matchup-title { font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════
   LIGHT MODE — override hardcoded dark colors
   (variables already swapped in :root.light-mode)
══════════════════════════════════════════════ */

/* Header & nav */
:root.light-mode .nav-item:hover,
:root.light-mode .drop-item:hover { background: rgba(0,0,0,0.05); }
:root.light-mode .nav-dropdown.open > .nav-drop-btn { background: rgba(0,0,0,0.06); }

/* Dropdown menus (inline in panel) */
:root.light-mode .drop-menu {
  background: rgba(0,0,0,0.02);
}

/* Hamburger nav panel — light mode */
:root.light-mode .main-nav a.nav-item,
:root.light-mode .main-nav button.nav-item,
:root.light-mode .main-nav .nav-drop-btn { border-bottom-color: rgba(0,0,0,0.06); }
:root.light-mode .main-nav .drop-menu { border-top-color: rgba(0,0,0,0.06); background: rgba(0,0,0,0.02); }
:root.light-mode .main-nav .drop-menu .drop-item { background: rgba(0,0,0,0.02); }

/* Subtle white-alpha highlights → black-alpha */
:root.light-mode .date-group-header,
:root.light-mode .conf-header,
:root.light-mode .token-avg-card,
:root.light-mode .subtle-box,
:root.light-mode .gm-totals { background: rgba(0,0,0,0.03); }

:root.light-mode .stop-reason-bar-bg,
:root.light-mode .acc-bar,
:root.light-mode .pct-bar,
:root.light-mode .golf-bar-bg { background: rgba(0,0,0,0.08); }

:root.light-mode .pick-conf,
:root.light-mode .line-pill { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }

/* Card hovers */
:root.light-mode .game-card:hover { border-color: rgba(0,0,0,0.15); background: rgba(0,0,0,0.03); }
:root.light-mode .sched-card:hover { background: rgba(0,0,0,0.04); }
:root.light-mode .golf-table tbody tr:hover,
:root.light-mode .stats-table tr:not(:first-child):hover,
:root.light-mode .roster-table tbody tr:hover,
:root.light-mode .team-table tbody tr:hover { background: rgba(0,0,0,0.03); }
:root.light-mode .pred-row:hover { background: rgba(0,0,0,0.03); }
:root.light-mode .expand-inner { background: rgba(0,0,0,0.02); }

/* Table & list borders (white-alpha → black-alpha) */
:root.light-mode .analytics-table td,
:root.light-mode .golf-table tbody tr,
:root.light-mode .stats-table tr,
:root.light-mode .roster-table tbody tr,
:root.light-mode .team-table td,
:root.light-mode .log-entry,
:root.light-mode .pred-row,
:root.light-mode .pred-badge,
:root.light-mode .sched-pill,
:root.light-mode .test-network td { border-color: rgba(0,0,0,0.06); }

/* Days filter hover */
:root.light-mode .days-btn:hover { border-color: rgba(0,0,0,0.2); }

/* Push badge */
:root.light-mode .result-badge.push { background: rgba(0,0,0,0.05); }

/* Test network tables */
:root.light-mode .test-network table { background: var(--surface); border-color: var(--border); }
:root.light-mode .test-network th { background: var(--bg); border-color: var(--border); color: var(--muted); }
:root.light-mode .test-network .section { border-color: var(--border); }

/* Tooltips */
:root.light-mode .bd-tooltip,
:root.light-mode .bd-row-tip { background: #fff; border-color: rgba(0,0,0,0.12); color: var(--muted); }
:root.light-mode .bd-row-info { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); }

/* Game lock overlay */
:root.light-mode .game-locked-overlay { background: rgba(232,236,240,0.7); }

/* Modal overlay */
:root.light-mode .game-modal-overlay { background: rgba(0,0,0,0.4); }

/* Text color overrides for hardcoded grays */
:root.light-mode .text-secondary { color: #5c6a7a; }

/* Footer */
:root.light-mode .site-footer { background: var(--surface); border-top: 1px solid var(--border); }

/* Quick links hover */
:root.light-mode .quick-link:hover { border-color: rgba(0,0,0,0.18); }

/* Index.php body gradient */
:root.light-mode body {
  background-image: none !important;
}

/* Score breakdown — themed backgrounds */
.bd-container { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); }
.bd-header { border-bottom: 1px solid rgba(255,255,255,0.05); }
.bd-factor-row { border-bottom: 1px solid rgba(255,255,255,0.03); }
.bd-bar-track { background: rgba(255,255,255,0.06); }
.bd-bar-center { background: rgba(255,255,255,0.15); }

:root.light-mode .bd-team-header { border-bottom-color: rgba(0,0,0,0.06); color: #4a5568; }
:root.light-mode .bd-team-header span { color: #1a2233 !important; }
:root.light-mode .bd-container { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.08); }
:root.light-mode .bd-header { border-bottom-color: rgba(0,0,0,0.06); }
:root.light-mode .bd-factor-row { border-bottom-color: rgba(0,0,0,0.05); }
:root.light-mode .bd-bar-track { background: rgba(0,0,0,0.08); }
:root.light-mode .bd-bar-center { background: rgba(0,0,0,0.2); }

/* Score breakdown — hardcoded text colors for light mode */
:root.light-mode .bd-container [style*="color:#8a9bb5"] { color: #4a5568 !important; }
:root.light-mode .bd-container [style*="color:#3a5070"] { color: #5c6a7a !important; }
:root.light-mode .bd-container [style*="color:#aac4de"] { color: #2d3748 !important; }
:root.light-mode .bd-container [style*="color:#c0d4e8"] { color: #2d3748 !important; }
:root.light-mode .bd-container [style*="color:#e0eaf5"] { color: #1a2233 !important; }

/* Remaining table/list borders (white-alpha → black-alpha) */
:root.light-mode .pred-table td { border-color: rgba(0,0,0,0.06); }

/* Red/live indicator colors — darker for light backgrounds */
:root.light-mode .header-live { color: #dc2626; border-color: rgba(220,38,38,0.4); background: rgba(220,38,38,0.08); }
:root.light-mode .drop-live-dot { color: #dc2626; }
:root.light-mode .fit-neg { color: #dc2626; }
:root.light-mode .score-over { color: #dc2626; }
:root.light-mode .thru-badge.live { color: #dc2626; border-color: rgba(220,38,38,0.4); }
:root.light-mode .exit-r2 { color: #b91c1c; background: rgba(185,28,28,0.08); }

/* Predict.php action buttons — CSS classes for theme awareness */
.btn-pred {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  border-width: 1px;
  border-style: solid;
}
.btn-pred-info {
  background: rgba(90,159,212,0.08);
  border-color: rgba(90,159,212,0.3);
  color: #5a9fd4;
}
.btn-pred-info:hover { background: rgba(90,159,212,0.16); }
.btn-pred-accent {
  background: rgba(61,147,27,0.08);
  border-color: rgba(61,147,27,0.3);
  color: #3D931B;
}
.btn-pred-accent:hover { background: rgba(61,147,27,0.16); }
.btn-pred-danger {
  background: rgba(255,68,68,0.12);
  border-color: rgba(255,68,68,0.4);
  color: #ff4444;
}
.btn-pred-danger:hover { background: rgba(255,68,68,0.22); }

:root.light-mode .btn-pred-info { background: rgba(37,99,155,0.08); border-color: rgba(37,99,155,0.3); color: #25639b; }
:root.light-mode .btn-pred-info:hover { background: rgba(37,99,155,0.16); }
:root.light-mode .btn-pred-accent { background: rgba(34,110,12,0.08); border-color: rgba(34,110,12,0.3); color: #226e0c; }
:root.light-mode .btn-pred-accent:hover { background: rgba(34,110,12,0.16); }
:root.light-mode .btn-pred-danger { background: rgba(185,28,28,0.08); border-color: rgba(185,28,28,0.3); color: #b91c1c; }
:root.light-mode .btn-pred-danger:hover { background: rgba(185,28,28,0.16); }

/* Methodology modal — theme-aware */
.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}
.modal-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-close-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
:root.light-mode .modal-panel { box-shadow: 0 25px 60px rgba(0,0,0,0.15); }

/* predict.php — hardcoded inline text color overrides */
:root.light-mode [style*="color:#5a9fd4"] { color: #25639b !important; }
:root.light-mode [style*="color:#5a7a99"] { color: #4a6178 !important; }
:root.light-mode [style*="color:#e0eaf5"] { color: #1a2233 !important; }
:root.light-mode [style*="color:#8a9bb5"] { color: #4a5568 !important; }
:root.light-mode [style*="color:#3a5070"] { color: #5c6a7a !important; }
:root.light-mode [style*="color:#ff4444"] { color: #b91c1c !important; }
:root.light-mode [style*="color:#ff8888"] { color: #dc2626 !important; }
:root.light-mode [style*="color:#c0cfe0"] { color: #2d3748 !important; }
:root.light-mode [style*="color:#c0d4e8"] { color: #2d3748 !important; }
:root.light-mode [style*="color:#3a5a7a"] { color: #4a6178 !important; }

/* Generic white-alpha border fix inside modals/panels */
:root.light-mode .modal-panel [style*="border-bottom:1px solid rgba(255,255,255"] { border-color: rgba(0,0,0,0.06) !important; }
:root.light-mode .modal-panel [style*="background:rgba(255,255,255"] { background: rgba(0,0,0,0.03) !important; }
:root.light-mode .modal-panel [style*="background:rgba(90,159,212"] { background: rgba(37,99,155,0.12) !important; }
:root.light-mode .modal-panel [style*="border:1px solid rgba(90,159,212"] { border-color: rgba(37,99,155,0.3) !important; }

/* predict.php — hardcoded inline background overrides */
:root.light-mode [style*="background:#091428"] { background: var(--surface) !important; }
:root.light-mode [style*="background:#0a1628"] { background: var(--surface) !important; }
:root.light-mode [style*="border:1px solid #1a2e45"],
:root.light-mode [style*="border-bottom:1px solid #1a2e45"] { border-color: var(--border) !important; }

/* ── Bet Placement Strip ── */
.bet-strip {
  background: var(--surface, #091428);
  border: 1px solid var(--border, #1a2e45);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.bet-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.bet-strip-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #e0eaf5;
}
.bet-strip-balance {
  font-size: 0.65rem;
  color: #5a7a99;
}
.bet-strip-balance strong {
  color: #3D931B;
}
.bet-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bet-group {
  flex: 1;
  min-width: 200px;
}
.bet-group-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  color: #5a7a99;
  margin-bottom: 0.3rem;
}
.bet-group-row {
  display: flex;
  gap: 0.35rem;
}
.bet-option-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(26,46,69,0.4);
  border: 1px solid #1a2e45;
  border-radius: 5px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
  flex: 1;
  position: relative;
}
.bet-option-btn:hover {
  background: rgba(61,147,27,0.12);
  border-color: rgba(61,147,27,0.4);
}
.bet-option-btn.bet-ai-pick {
  background: rgba(61,147,27,0.08);
  border-color: rgba(61,147,27,0.3);
}
.bet-ai-tag {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.45rem;
  letter-spacing: 1px;
  color: #3D931B;
  background: rgba(61,147,27,0.15);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  white-space: nowrap;
}
.bet-opt-pick {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: #e0eaf5;
  flex: 1;
  white-space: nowrap;
}
.bet-opt-odds {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: #f0b429;
  white-space: nowrap;
}

/* ── Bet Slip Modal ── */
.bet-slip-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.bet-slip {
  background: #091428;
  border: 1px solid #1a2e45;
  border-radius: 10px;
  padding: 1.25rem;
  width: 100%;
  max-width: 360px;
}
.bet-slip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.bet-slip-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #e0eaf5;
}
.bet-slip-close {
  background: none;
  border: none;
  color: #5a7a99;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.bet-slip-close:hover { color: #e0eaf5; }
.bet-slip-game {
  font-size: 0.68rem;
  color: #5a7a99;
  margin-bottom: 0.5rem;
}
.bet-slip-pick {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: #e0eaf5;
  margin-bottom: 0.25rem;
}
.bet-slip-odds {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #f0b429;
  margin-bottom: 0.75rem;
}
.bet-slip-label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 1.5px;
  color: #5a7a99;
  margin-bottom: 0.3rem;
}
.bet-slip-input-row {
  display: flex;
  align-items: center;
  background: #060d16;
  border: 1px solid #1a2e45;
  border-radius: 5px;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}
.bet-slip-dollar {
  color: #5a7a99;
  font-size: 0.85rem;
  margin-right: 0.25rem;
}
.bet-slip-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0eaf5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  outline: none;
  width: 100%;
}
.bet-slip-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bet-quick-btns {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.bet-quick-btns button {
  flex: 1;
  background: #1a2e45;
  border: 1px solid #1a2e45;
  color: #b0c4de;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  padding: 0.35rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.bet-quick-btns button:hover { background: #243a55; }
.bet-quick-btns button.active {
  background: rgba(61,147,27,0.15);
  border-color: rgba(61,147,27,0.4);
  color: #3D931B;
}
.bet-slip-payout {
  font-size: 0.72rem;
  color: #b0c4de;
  margin-bottom: 0.75rem;
  text-align: center;
}
.bet-slip-payout strong {
  color: #3D931B;
  font-size: 0.85rem;
}
.bet-slip-error {
  font-size: 0.68rem;
  color: #ff4444;
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.2);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
}
.bet-slip-submit {
  width: 100%;
  background: #3D931B;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 0.6rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.bet-slip-submit:hover {
  background: #4db023;
  box-shadow: 0 0 15px rgba(61,147,27,0.3);
}
.bet-slip-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Light mode overrides for bet UI */
:root.light-mode .bet-strip { background: var(--surface); border-color: var(--border); }
:root.light-mode .bet-option-btn { background: rgba(61,147,27,0.06); border-color: rgba(61,147,27,0.2); }
:root.light-mode .bet-option-btn:hover { background: rgba(61,147,27,0.12); }
:root.light-mode .bet-opt-pick { color: var(--text); }
:root.light-mode .bet-slip { background: var(--surface); border-color: var(--border); }
:root.light-mode .bet-slip-pick { color: var(--text); }
:root.light-mode .bet-slip-input-row { background: var(--bg); border-color: var(--border); }
:root.light-mode .bet-slip-input { color: var(--text); }
:root.light-mode .bet-quick-btns button { background: var(--border); border-color: var(--border); color: var(--text-muted); }

/* ── Parlay Toggle ─────────────────────────────────────────── */
.parlay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}
.parlay-toggle input { display: none; }
.parlay-toggle-slider {
  width: 32px;
  height: 16px;
  background: #1a2e45;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s;
}
.parlay-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #5a7a99;
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.parlay-toggle input:checked + .parlay-toggle-slider {
  background: rgba(61,147,27,0.3);
}
.parlay-toggle input:checked + .parlay-toggle-slider::after {
  transform: translateX(16px);
  background: #3D931B;
}
.parlay-toggle-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #5a7a99;
  transition: color 0.2s;
}
.parlay-toggle input:checked ~ .parlay-toggle-label {
  color: #3D931B;
}

/* Parlay mode active indicators */
.parlay-mode-active {
  position: relative;
  border-color: #3D931B !important;
  box-shadow: 0 0 12px rgba(61,147,27,0.35), inset 0 0 0 1px rgba(61,147,27,0.15);
}
.parlay-mode-active .bet-option-btn:hover {
  border-color: #f0b429;
  background: rgba(240,180,41,0.08);
}
.bet-option-btn.parlay-selected {
  border-color: #f0b429 !important;
  background: rgba(240,180,41,0.12) !important;
}
.bet-option-btn.parlay-selected::after {
  content: '\2713';
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 0.55rem;
  color: #f0b429;
  font-weight: 700;
}
.bet-option-btn { position: relative; }

/* ── Parlay Drawer ─────────────────────────────────────────── */
.parlay-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  background: #060d16;
  border-left: 1px solid #1a2e45;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.parlay-drawer-open {
  right: 0;
}
.parlay-drawer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #1a2e45;
  flex-shrink: 0;
}
.parlay-drawer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: #f0b429;
}
.parlay-drawer-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  color: #5a7a99;
  letter-spacing: 1px;
}
.parlay-drawer-clear {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,68,68,0.3);
  color: #ff4444;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
}
.parlay-drawer-clear:hover {
  background: rgba(255,68,68,0.1);
}
.parlay-drawer-close {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.3rem;
  margin-left: 0.4rem;
}
.parlay-drawer-close:hover {
  color: #fff;
}
.parlay-legs-list {
  flex: 1;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.parlay-empty {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #5a7a99;
  text-align: center;
  padding: 2rem 1rem;
  line-height: 1.5;
}
.parlay-leg-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #091428;
  border: 1px solid #1a2e45;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
}
.parlay-leg-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.parlay-leg-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #e0eaf5;
}
.parlay-leg-odds {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: #f0b429;
  font-weight: 600;
}
.parlay-leg-remove {
  background: transparent;
  border: none;
  color: #ff4444;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}
.parlay-leg-remove:hover { color: #ff6666; }

/* Parlay Summary */
.parlay-summary {
  border-top: 1px solid #1a2e45;
  padding: 0.75rem;
  flex-shrink: 0;
}
.parlay-combined-odds {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #b0c4de;
  margin-bottom: 0.6rem;
}
.parlay-combined-odds strong {
  color: #f0b429;
  font-size: 0.8rem;
}
.parlay-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 1.5px;
  color: #5a7a99;
  display: block;
  margin-bottom: 0.3rem;
}
.parlay-input-row {
  display: flex;
  align-items: center;
  background: #091428;
  border: 1px solid #1a2e45;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.parlay-dollar {
  padding: 0.4rem 0.5rem;
  color: #5a7a99;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}
.parlay-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0eaf5;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  padding: 0.4rem;
  outline: none;
  -moz-appearance: textfield;
}
.parlay-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.parlay-quick-btns {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.parlay-quick-btns button {
  flex: 1;
  background: #0d1d33;
  border: 1px solid #1a2e45;
  color: #5a7a99;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  padding: 0.3rem;
  border-radius: 4px;
  cursor: pointer;
}
.parlay-quick-btns button:hover,
.parlay-quick-btns button.active {
  background: rgba(61,147,27,0.15);
  border-color: rgba(61,147,27,0.4);
  color: #3D931B;
}
.parlay-payout {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #b0c4de;
  margin-bottom: 0.6rem;
}
.parlay-payout strong {
  color: #3D931B;
  font-size: 0.85rem;
}
.parlay-error {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #ff4444;
  background: rgba(255,68,68,0.08);
  border: 1px solid rgba(255,68,68,0.2);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.5rem;
}
.parlay-submit {
  width: 100%;
  background: #f0b429;
  color: #060d16;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 0.55rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.parlay-submit:hover { background: #f5c542; }
.parlay-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Parlay in Wagers Page ─────────────────────────────────── */
.parlay-row { cursor: pointer; }
.parlay-row:hover { background: rgba(240,180,41,0.04); }
.parlay-legs-expand {
  display: none;
  background: rgba(9,20,40,0.5);
}
.parlay-legs-expand.open { display: table-row; }
.parlay-legs-expand td { padding: 0; }
.parlay-leg-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.3rem 0.5rem 0.3rem 2.5rem;
  font-size: 0.62rem;
  border-bottom: 1px solid rgba(26,46,69,0.2);
}
.parlay-leg-detail:last-child { border-bottom: none; }
.parlay-leg-status {
  font-size: 0.52rem;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Light mode overrides for parlay */
:root.light-mode .parlay-drawer { background: var(--bg); border-left-color: var(--border); }
:root.light-mode .parlay-drawer-header { border-bottom-color: var(--border); }
:root.light-mode .parlay-leg-card { background: var(--surface); border-color: var(--border); }
:root.light-mode .parlay-leg-label { color: var(--text); }
:root.light-mode .parlay-summary { border-top-color: var(--border); }
:root.light-mode .parlay-input-row { background: var(--surface); border-color: var(--border); }
:root.light-mode .parlay-input { color: var(--text); }
:root.light-mode .parlay-quick-btns button { background: var(--border); border-color: var(--border); color: var(--text-muted); }
:root.light-mode .parlay-empty { color: var(--text-muted); }
:root.light-mode .parlay-toggle-slider { background: var(--border); }

/* Mobile responsive for bet strip + parlay drawer */
@media (max-width: 768px) {
  .bet-strip-header {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .bet-strip-title { flex: 0 0 auto; }
  .bet-strip-balance { order: 2; flex: 0 0 100%; }
  .bet-group { min-width: 0; flex: 1 1 100%; }
  .bet-option-btn { padding: 0.55rem 0.6rem; min-height: 44px; }
  .parlay-toggle { min-height: 44px; }
  .parlay-drawer {
    width: 300px;
    right: -320px;
  }
  .parlay-leg-remove {
    padding: 0.4rem 0.5rem;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .parlay-drawer-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
  }
  .parlay-drawer-clear {
    padding: 0.35rem 0.6rem;
    font-size: 0.6rem;
  }
}
@media (max-width: 480px) {
  .parlay-drawer {
    width: 100%;
    right: -110%;
  }
  .bet-group-row { gap: 0.25rem; }
  .bet-opt-pick { font-size: 0.58rem; }
  .bet-opt-odds { font-size: 0.58rem; }
  .bet-ai-tag { font-size: 0.4rem; padding: 0.1rem 0.2rem; }
}

/* ── Light mode overrides ──────────────────────────────────────────────── */
.light-mode {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --text: #1a1f2e;
  --muted: #5a6a7a;
  --border: #d0d5dd;
  --accent: #2d7a14;
  --accent-hover: #236310;
  --danger: #c53030;
  --warning: #b7791f;
}
.light-mode .nav-item:hover,
.light-mode .drop-item:hover { background: rgba(0,0,0,0.06); }
.light-mode .game-card { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.light-mode .site-footer { background: #e8ecf0; }
.light-mode input, .light-mode select, .light-mode textarea {
  background: #fff; color: var(--text); border-color: var(--border);
}

/* ── Mobile: today's games overflow fixes ─────────────────────────────── */
@media (max-width: 768px) {
  /* Sport tabs: horizontal scroll instead of overflow */
  .sport-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;         /* Firefox */
    -ms-overflow-style: none;      /* IE/Edge */
  }
  .sport-tabs::-webkit-scrollbar { display: none; }
  .sport-tab {
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .tab-count { font-size: 0.6rem; padding: 0.1rem 0.35rem; }

  /* Panels + cards: prevent any child from blowing out width */
  .sport-panels { overflow: hidden; }
  .games-list { overflow: hidden; }
  .game-card { overflow: hidden; min-width: 0; }

  /* Game top row: wrap matchup onto second line if needed, keep time/score visible */
  .game-top { gap: 0.3rem; flex-wrap: wrap; }
  .game-matchup {
    min-width: 0;
    flex: 1 1 0;
    flex-wrap: wrap;
    line-height: 1.35;
  }
  .game-time, .game-score, .live-score, .game-status-badge { flex-shrink: 0; white-space: nowrap; }

  /* Line pills row: already wraps, but truncate long team names inside pills */
  .line-pill {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Confidence bars: wrap if needed */
  .sb-conf-row { flex-wrap: wrap; gap: 0.35rem; }
}
@media (max-width: 480px) {
  .sport-tab { padding: 0.5rem 0.6rem; font-size: 0.72rem; gap: 0.3rem; }
  .game-card { padding: 0.6rem 0.7rem; }
  .game-matchup { font-size: 0.72rem; gap: 0.25rem; }
  .team-logo { width: 16px; height: 16px; }
  .game-score { font-size: 0.95rem; }
  .game-time { font-size: 0.6rem; }
  .line-pill { font-size: 0.55rem; padding: 1px 4px; }
  .pick-winner { font-size: 0.7rem; }
  .sb-conf-bar { width: 28px; }
  main { padding: 1rem 0.75rem; }
}

/* ── Focus states for accessibility ────────────────────────────────────── */
.btn:focus-visible,
button:focus-visible,
a:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* High-contrast focus ring for inputs (already have box-shadow focus) */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ── Touch target sizing ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .toolbar-btn, .text-size-btn, #theme-toggle-btn, #text-size-btn,
  .hamburger, .nav-item, .bt-item, .drop-item {
    min-height: 44px;
  }
  /* Ensure all clickable nav elements are tappable */
  .hamburger { min-width: 44px; }
}
