/* ─────────────────────────────────────────────────────────────
   FootballIQ — Classic dark football theme
   ───────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg:        #0a0e1a;
  --surface:   #111827;
  --surface-2: #1a2332;
  --surface-3: #1f2d42;
  --border:    #1e2d40;
  --border-2:  #2a3f58;

  /* Victory accent — GOLD */
  --gold:      #f0b429;
  --gold-dark: #d4991a;
  --gold-glow: rgba(240, 180, 41, 0.12);

  /* Success — GREEN */
  --green:     #22c55e;
  --green-dim: #16a34a;
  --green-bg:  rgba(34, 197, 94, 0.1);

  /* Draw — AMBER */
  --amber:     #f59e0b;
  --amber-bg:  rgba(245, 158, 11, 0.1);

  /* Away — BLUE */
  --blue:      #60a5fa;
  --blue-bg:   rgba(96, 165, 250, 0.1);

  /* Danger — RED */
  --red:       #f87171;

  /* Purple (women's leagues) */
  --purple:    #a78bfa;

  /* Text */
  --text:      #e2e8f0;
  --text-2:    #cbd5e1;
  --muted:     #64748b;
  --muted-2:   #475569;

  /* Layout */
  --sidebar-w: 230px;
  --header-h:  56px;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(90deg, #0a0e1a 0%, #0f1e33 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.6rem; }
.logo-text { font-size: 1.3rem; font-weight: 700; letter-spacing: -.5px; color: var(--gold); }
.header-tag { font-size: .78rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, #111827 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-title { font-size: 2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 6px; }
.hero-sub   { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }

/* Competition strip */
.competition-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.comp-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.comp-btn:hover  { border-color: var(--gold); color: var(--text); }
.comp-btn.active { background: var(--gold); border-color: var(--gold); color: #000; }

/* ── Fixtures section ────────────────────────────────────────── */
.fixtures-section { padding: 32px 0; min-height: 160px; }

.fixtures-loading {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted); padding: 20px 0;
}

.fixtures-error {
  padding: 14px 18px;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: .88rem;
}

.fixtures-list { display: flex; flex-direction: column; gap: 10px; }

/* Single fixture card */
.fixture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px 0;
  display: grid;
  grid-template-columns: 140px 1fr auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  transition: border-color .2s, background .2s;
  cursor: default;
}
.fixture-card:hover { border-color: var(--green); background: #1a2233; }

.fixture-date {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}
.fixture-date strong { display: block; color: var(--text); font-size: .88rem; }

.fixture-team {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .92rem;
}
.fixture-team.away { justify-content: flex-end; }
.fixture-crest {
  width: 28px; height: 28px; object-fit: contain;
  flex-shrink: 0;
}
.fixture-vs {
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 4px;
}

.btn-predict-fix {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-predict-fix:hover { background: var(--gold); color: #000; box-shadow: 0 0 12px var(--gold-glow); }
.btn-predict-fix.loading { opacity: .5; cursor: wait; }

/* Spinner */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Prediction loading ──────────────────────────────────────── */
.pred-loading {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 48px 20px; color: var(--muted);
}

/* ── Results ─────────────────────────────────────────────────── */
/* Full-screen overlay for match prediction detail */
.results {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  overflow-y: auto;
  padding: 0 0 64px;
}
/* Prevent background page from scrolling while overlay is open */
body.overlay-open { overflow: hidden; }

/* Match header */
.match-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 20px;
}
.team-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.team-crest { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.team-name  { font-size: 1rem; font-weight: 700; text-align: center; }
.match-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.score-sep  { font-size: 1.4rem; font-weight: 800; color: var(--muted); }
.match-date { font-size: .75rem; color: var(--muted); text-align: center; }

.confidence-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.confidence-badge.high   { background: var(--gold-glow); color: var(--gold); border: 1px solid rgba(240,180,41,.35); }
.confidence-badge.medium { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.3); }
.confidence-badge.low    { background: rgba(239,68,68,.12);  color: #fca5a5;      border: 1px solid rgba(239,68,68,.25); }

.summary-text {
  color: var(--muted); font-size: .88rem; line-height: 1.7;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin-bottom: 36px;
}

.section-title {
  font-size: .9rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted);
  margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.section-sub { font-weight: 400; font-size: .85rem; text-transform: none; letter-spacing: 0; }

/* ── Prediction cards ────────────────────────────────────────── */
.cards-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 14px; margin-bottom: 36px;
}
.pred-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px 16px; text-align: center;
  transition: border-color .2s;
}
.pred-card:hover { border-color: var(--green); }
.card-icon   { font-size: 1.7rem; margin-bottom: 6px; }
.card-label  { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 2px; }
.card-market { font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.card-verdict { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.verdict-over  { color: var(--green); }
.verdict-under { color: var(--blue); }
.verdict-yes   { color: var(--green); }
.verdict-no    { color: var(--red); }
.card-confidence-bar {
  height: 5px; background: var(--surface-2);
  border-radius: 10px; margin-bottom: 6px; overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 10px; background: var(--green); transition: width .6s ease; width: 0; }
.card-conf-label { font-size: .7rem; color: var(--muted); }

/* ── Poisson ─────────────────────────────────────────────────── */
.poisson-grid {
  display: grid; grid-template-columns: 1fr 1fr 2fr;
  gap: 14px; margin-bottom: 36px;
}
.poisson-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; }
.poisson-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 12px; }
.poisson-score { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; color: var(--green); text-align: center; line-height: 1; margin-bottom: 6px; }
.poisson-prob  { text-align: center; font-size: .8rem; color: var(--muted); }
.expected-goals { display: flex; align-items: center; justify-content: space-around; }
.eg-team { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.eg-label { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.eg-value { font-size: 1.6rem; font-weight: 800; }
.eg-sep   { color: var(--border); font-size: 1.2rem; }
.outcome-bars { display: flex; flex-direction: column; gap: 10px; }
.outcome-row  { display: grid; grid-template-columns: 72px 1fr 44px; align-items: center; gap: 10px; }
.outcome-lbl  { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.outcome-bar-wrap { height: 8px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.outcome-bar  { height: 100%; border-radius: 10px; transition: width .7s ease; width: 0; }
.home-bar { background: var(--green); }
.draw-bar { background: var(--amber); }
.away-bar { background: var(--blue); }
.outcome-pct  { font-size: .82rem; font-weight: 700; text-align: right; }

/* ── Team form ───────────────────────────────────────────────── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 36px;
}
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.form-team-name { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.form-badges { display: flex; gap: 7px; margin-bottom: 14px; }
.form-badge {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800;
}
.badge-W { background: rgba(34,197,94,.18); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.badge-D { background: rgba(245,158,11,.15); color: var(--amber); border: 1px solid rgba(245,158,11,.25); }
.badge-L { background: rgba(239,68,68,.12);  color: #fca5a5;      border: 1px solid rgba(239,68,68,.2); }
.form-stats { display: flex; gap: 20px; }
.form-stat  { display: flex; flex-direction: column; }
.stat-val   { font-size: 1.1rem; font-weight: 800; }
.stat-lbl   { font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* ── H2H ─────────────────────────────────────────────────────── */
.h2h-summary {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px;
}
.h2h-wins  { font-size: 2rem; font-weight: 800; color: var(--green); line-height: 1; }
.h2h-wlbl  { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.h2h-mid   { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.h2h-draws { font-size: 1.3rem; font-weight: 700; color: var(--amber); }
.h2h-total { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* H2H table */
.h2h-table-wrap { overflow-x: auto; margin-bottom: 40px; }
.h2h-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  font-size: .88rem;
}
.h2h-table thead th {
  background: var(--surface-2); padding: 10px 14px;
  text-align: left; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.h2h-table thead th.score-col { text-align: center; }
.h2h-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.h2h-table tbody tr:last-child { border-bottom: none; }
.h2h-table tbody tr:hover { background: #1a2233; }
.h2h-table td { padding: 11px 14px; vertical-align: middle; }
.h2h-score { text-align: center; font-weight: 800; font-size: 1rem; letter-spacing: 1px; }
.h2h-result {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.h2h-result.home-win { background: rgba(34,197,94,.15); color: var(--green); }
.h2h-result.away-win { background: rgba(59,130,246,.15); color: var(--blue); }
.h2h-result.draw     { background: rgba(245,158,11,.12); color: var(--amber); }
.h2h-empty { color: var(--muted); font-size: .88rem; padding: 16px 0; text-align: center; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); padding: 20px 0;
  text-align: center; color: var(--muted); font-size: .78rem;
}

/* ── Bookmaker Odds ──────────────────────────────────────────── */
.odds-section { margin-bottom: 36px; }

.odds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.odds-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.odds-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 14px;
}

.odds-1x2 {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.odds-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.odds-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.5px;
  line-height: 1;
}

.odds-team-lbl {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

.odds-impl {
  font-size: .7rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 4px;
  padding: 1px 6px;
}

.odds-total { display: flex; flex-direction: column; gap: 10px; }
.odds-total-line {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber);
}

/* Value check list */
.odds-value-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}

.value-badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.value-badge.value    { background: rgba(34,197,94,.2);  color: var(--green); }
.value-badge.no-value { background: rgba(139,156,176,.1); color: var(--muted); }

.odds-source {
  margin-top: 8px;
  font-size: .7rem;
  color: var(--muted);
  text-align: right;
}

/* ── Sport tabs ──────────────────────────────────────────────── */
.sport-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.sport-tab {
  padding: 10px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.sport-tab.active { color: var(--text); border-bottom-color: var(--green); }
.sport-tab:hover:not(.active) { color: var(--text); }

/* Unavailable (no API key) league pill */
.comp-btn.unavailable {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Women's league pill — subtle purple accent */
.comp-btn.comp-btn-women { border-color: #9c6fe4; color: #c4a0f5; }
.comp-btn.comp-btn-women:hover { border-color: #c4a0f5; color: var(--text); }
.comp-btn.comp-btn-women.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* Divider between league provider groups */
.comp-divider {
  display: inline-block;
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 6px;
  align-self: center;
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero-title { font-size: 1.5rem; }
  .fixture-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .fixture-team.away { justify-content: flex-start; }
  .cards-grid   { grid-template-columns: 1fr; }
  .poisson-grid { grid-template-columns: 1fr; }
  .form-grid    { grid-template-columns: 1fr; }
  .match-header { grid-template-columns: 1fr; text-align: center; }
  .h2h-summary  { grid-template-columns: 1fr; }
}

/* ── League Table (Standings) ────────────────────────────────── */
.fixtures-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.btn-table {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn-table:hover { background: var(--surface); border-color: var(--gold); color: var(--gold); }
.btn-table.hidden { display: none !important; }

.standings-section {
  padding: 28px 0 10px;
  border-bottom: 1px solid var(--border);
}

.standings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btn-standings-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  transition: color .2s, border-color .2s;
}
.btn-standings-close:hover { color: var(--text); border-color: var(--text); }

/* Group label (for Champions League etc.) */
.standings-group-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  margin: 18px 0 8px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-bottom: 6px;
}

.standings-table thead tr {
  border-bottom: 1px solid var(--border);
}

.standings-table th {
  padding: 7px 8px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.standings-table th.col-team { text-align: left; padding-left: 10px; }

.standings-table tbody tr {
  border-bottom: 1px solid rgba(45,55,72,.5);
  transition: background .15s;
}
.standings-table tbody tr:hover { background: var(--surface); }

/* Highlight zones */
.standings-table tbody tr.zone-champions { border-left: 3px solid var(--gold); }
.standings-table tbody tr.zone-europe    { border-left: 3px solid var(--amber); }
.standings-table tbody tr.zone-relegation{ border-left: 3px solid var(--red); }

.standings-table td {
  padding: 8px 8px;
  text-align: center;
  vertical-align: middle;
}
.standings-table td.col-team {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.standings-pos {
  font-weight: 700;
  color: var(--muted);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.standings-crest {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.standings-team-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.standings-pts {
  font-weight: 800;
  color: var(--green);
  font-size: .95rem;
}

.standings-gd-pos { color: var(--green); }
.standings-gd-neg { color: var(--red); }
.standings-gd-zero { color: var(--muted); }

@media (max-width: 600px) {
  .standings-table th.col-hide,
  .standings-table td.col-hide { display: none; }
  .standings-team-name { max-width: 110px; }
}

/* ── Market Prediction Cards ─────────────────────────────────── */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.market-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.market-icon { font-size: 1.3rem; flex-shrink: 0; }

.market-titles {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.market-name { font-weight: 700; font-size: .88rem; }
.market-line { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.market-verdict {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.market-verdict.mv-over  { background: rgba(34,197,94,.15);  color: var(--green); }
.market-verdict.mv-under { background: rgba(239,68,68,.15);  color: var(--red); }
.market-verdict.mv-yes   { background: rgba(34,197,94,.15);  color: var(--green); }
.market-verdict.mv-no    { background: rgba(139,156,176,.15); color: var(--muted); }

/* Dual probability bars */
.prob-bars { display: flex; flex-direction: column; gap: 8px; }

.prob-row {
  display: grid;
  grid-template-columns: 68px 1fr 38px;
  align-items: center;
  gap: 8px;
}

.prob-label { font-size: .78rem; color: var(--muted); text-align: right; }

.prob-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.fill-over  { background: var(--green); }
.fill-under { background: var(--red); }

.prob-pct {
  font-size: .8rem;
  font-weight: 700;
  text-align: left;
}

.market-no-data {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  font-style: italic;
}

/* ── Outcome Full Card ────────────────────────────────────────── */
.outcome-full-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.outcome-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  padding-right: 24px;
  gap: 4px;
}

.outcome-score-lbl { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.outcome-score-val { font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; color: var(--text); }
.outcome-score-prob { font-size: .75rem; color: var(--muted); }

.outcome-xg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: .78rem;
}
.outcome-xg-item { color: var(--muted); }
.outcome-xg-item span { color: var(--green); font-weight: 700; }
.outcome-xg-sep { color: var(--border); }

/* ── Stats Comparison Table ──────────────────────────────────── */
.stats-compare-wrap {
  margin-bottom: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stats-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.stats-compare-table thead tr {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.stats-compare-table th {
  padding: 10px 14px;
  text-align: center;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  font-weight: 700;
}
.stats-compare-table th.sc-stat-col { text-align: left; }

.stats-compare-table tbody tr {
  border-bottom: 1px solid rgba(45,55,72,.4);
  transition: background .15s;
}
.stats-compare-table tbody tr:hover { background: var(--surface); }
.stats-compare-table tbody tr:last-child { border-bottom: none; }

.stats-compare-table td {
  padding: 9px 14px;
  text-align: center;
  vertical-align: middle;
}
.stats-compare-table td.sc-stat-col {
  text-align: left;
  color: var(--muted);
  font-size: .8rem;
}

.sc-val-col { min-width: 90px; }

/* Winner highlighting */
.sc-winner { font-weight: 700; color: var(--green); }
.sc-loser  { color: var(--muted); }
.sc-neutral { font-weight: 600; }

/* Section divider rows */
.stats-compare-table tr.sc-divider td {
  background: var(--surface);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  padding: 5px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .markets-grid { grid-template-columns: 1fr; }
  .outcome-full-card {
    grid-template-columns: 1fr;
  }
  .outcome-score-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Weekly Picks Panel
   ───────────────────────────────────────────────────────────── */

/* Toolbar button */
.btn-weekly {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-weekly:hover { opacity: .85; }

/* Section wrapper */
/* ── Picks overlays (daily + weekly) ─────────────────────────── */
.picks-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  overflow-y: auto;
  padding: 0 0 64px;
}

.picks-overlay-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
}

.picks-overlay-title {
  font-weight: 700;
  font-size: 1rem;
  flex: 1;
}

.picks-overlay-body {
  padding-top: 28px;
}

.picks-overlay-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Header row */
.weekly-picks-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.weekly-picks-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.weekly-title { margin-bottom: 0; }
.weekly-range-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}
.weekly-picks-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.weekly-scan-meta {
  font-size: .78rem;
  color: var(--muted);
}

/* Refresh button */
.btn-weekly-refresh {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .78rem;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-weekly-refresh:hover { color: var(--text); border-color: var(--text); }

/* Loading / progress */
.weekly-loading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.weekly-loading .spinner {
  flex-shrink: 0;
  margin-top: 4px;
}
.weekly-loading-text { flex: 1; }
.weekly-loading-text p { margin-bottom: 4px; font-size: .9rem; }
.weekly-loading-sub { color: var(--muted); font-size: .78rem !important; }

.weekly-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.weekly-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.weekly-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #4f46e5);
  border-radius: 99px;
  transition: width .4s ease;
}
.weekly-progress-label {
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  min-width: 46px;
}

/* ── Pick card grid ─────────────────────────────────────────── */
.weekly-picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Individual pick card */
.pick-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.pick-card:hover {
  border-color: #7c3aed55;
  box-shadow: 0 0 0 1px #7c3aed33;
}

/* Left accent strip — colour by confidence */
.pick-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--muted);
}
.pick-card.pick-high::before   { background: var(--green); }
.pick-card.pick-medium::before { background: var(--amber); }
.pick-card.pick-low::before    { background: var(--red); }

/* Rank badge */
.pick-rank {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 1px 7px;
}

/* League + date line */
.pick-league-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  padding-right: 46px; /* space for rank badge */
}
.pick-league-name { color: var(--text); }

/* Teams */
.pick-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
}
.pick-team-name { flex: 1; }
.pick-team-name.pick-home-name { text-align: left; }
.pick-team-name.pick-away-name { text-align: right; }
.pick-vs {
  font-size: .72rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* Market recommendation */
.pick-market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pick-market-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  font-weight: 700;
}
.pick-market-icon { font-size: .9rem; }
.pick-prob-badge {
  font-size: .88rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--surface);
  border: 1.5px solid var(--border);
}
.pick-high .pick-prob-badge   { color: var(--green);  border-color: var(--green); }
.pick-medium .pick-prob-badge { color: var(--amber);  border-color: var(--amber); }
.pick-low .pick-prob-badge    { color: var(--red);    border-color: var(--red); }

/* Probability bar */
.pick-prob-track {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.pick-prob-fill {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width .5s ease .1s;
  background: var(--muted);
}
.pick-high   .pick-prob-fill { background: var(--green); }
.pick-medium .pick-prob-fill { background: var(--amber); }
.pick-low    .pick-prob-fill { background: var(--red); }

/* xG / score row */
.pick-xg-row {
  display: flex;
  justify-content: space-between;
  font-size: .73rem;
  color: var(--muted);
}

/* Form badges row */
.pick-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.pick-form-badges {
  display: flex;
  gap: 3px;
}
.pick-form-badges .form-badge {
  width: 18px;
  height: 18px;
  font-size: .62rem;
}

/* Footer meta */
.pick-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: .72rem;
  color: var(--muted);
  gap: 6px;
}
.pick-outcome-probs { display: flex; gap: 8px; }
.pick-outcome-item  { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pick-outcome-pct   { font-weight: 700; color: var(--text); font-size: .8rem; }

/* Empty / no-games state */
.weekly-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .weekly-picks-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   How It Works Modal
   ───────────────────────────────────────────────────────────── */

/* Header button */
.btn-how-it-works {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-how-it-works:hover { color: var(--text); border-color: var(--text); }

/* Header layout fix so button sits right */
.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-tag { flex: 1; }

/* Overlay backdrop */
.hiw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 40px;
  overflow-y: auto;
}

/* Modal box */
.hiw-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}

/* Modal header row */
.hiw-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
}
.hiw-title {
  font-size: 1.1rem;
  font-weight: 700;
}
.hiw-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.hiw-close:hover { color: var(--text); background: var(--surface-2); }

/* Tab strip */
.hiw-tabs {
  display: flex;
  gap: 0;
  padding: 14px 22px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.hiw-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.hiw-tab:hover  { color: var(--text); }
.hiw-tab.active { color: var(--text); border-bottom-color: #7c3aed; }

/* Panel content */
.hiw-body { padding: 22px; }
.hiw-panel { display: none; }
.hiw-panel.active { display: block; }

.hiw-lead {
  font-size: .95rem;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.7;
}

.hiw-section-title {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  margin: 18px 0 8px;
}
.hiw-section-title:first-child { margin-top: 0; }

/* Pipeline steps */
.hiw-pipeline { display: flex; flex-direction: column; gap: 0; }
.hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.hiw-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hiw-step-text {
  display: flex; flex-direction: column; gap: 2px;
}
.hiw-step-text strong { font-size: .88rem; }
.hiw-step-text span   { font-size: .78rem; color: var(--muted); }
.hiw-arrow {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 2px 0;
}

/* Code blocks */
.hiw-code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: .78rem;
  line-height: 1.7;
  color: #a5b4fc;
  white-space: pre;
  overflow-x: auto;
  margin: 8px 0;
}
.hiw-hl { color: var(--green); font-weight: 700; }

/* Formula blocks */
.hiw-formula {
  background: var(--surface-2);
  border-left: 3px solid #7c3aed;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: .82rem;
  color: #e2e8f0;
  line-height: 1.8;
  margin: 8px 0;
}

/* Example label */
.hiw-example {
  font-size: .78rem;
  color: var(--muted);
  margin: 10px 0 4px;
}

/* Lists */
.hiw-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.hiw-list li {
  padding: 7px 12px;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: .85rem;
}
.hiw-list li::before {
  content: '→ ';
  color: #7c3aed;
  font-weight: 700;
}

/* Table in markets tab */
.hiw-table-wrap { overflow-x: auto; margin: 8px 0; }
.hiw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.hiw-table th {
  text-align: left;
  padding: 7px 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .4px;
}
.hiw-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.hiw-table tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  .hiw-modal { border-radius: 10px; }
  .hiw-code  { font-size: .7rem; }
}

/* ── Last 10 Matches ───────────────────────────────────────── */
.recent-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.recent-tab {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.recent-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.recent-matches-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}
.recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.recent-table thead th {
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .4px;
  text-align: left;
  white-space: nowrap;
}
.recent-table td {
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.recent-table tbody tr:hover { background: var(--surface-2); }
.recent-venue {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
}
.recent-venue.home { background: #1a4a2e; color: #4caf50; }
.recent-venue.away { background: #1a2a4a; color: #64b5f6; }
.recent-result {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 800;
}
.recent-result.W { background: #1a4a2e; color: #4caf50; }
.recent-result.D { background: #2a2a1a; color: #ffc107; }
.recent-result.L { background: #4a1a1a; color: #e57373; }
.recent-score { font-weight: 700; letter-spacing: .5px; }
.recent-nil { color: var(--muted); font-size: .75rem; }

/* ── Back button & results nav ─────────────────────────────── */
.results-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.results-nav-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-back-results {
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.btn-back-results:hover {
  background: #dc2626;
  transform: translateX(-2px);
}

/* ── Quick score prediction on fixture cards ───────────────── */
.fixture-quick-pred {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 8px 0 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  min-width: 0;
}
.qpred-loading { color: var(--muted); font-size: .78rem; }
.qpred-error   { color: var(--muted); font-size: .78rem; }
.qpred-score {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
}
.qpred-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.qpred-badge {
  padding: 2px 7px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 700;
}
.qpred-badge.over25   { background: #1a3a4a; color: #64b5f6; }
.qpred-badge.btts     { background: #2a1a4a; color: #ce93d8; }
.qpred-badge.outcome-home { background: #1a4a2e; color: #4caf50; }
.qpred-badge.outcome-away { background: #1a2a4a; color: #64b5f6; }
.qpred-badge.outcome-draw { background: #3a3010; color: #ffc107; }

/* ── Best Bet highlight ────────────────────────────────────── */
.qpred-best-bet {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid rgba(240, 180, 41, 0.35);
  border-radius: 5px;
  white-space: nowrap;
}
.qpred-best-bet em {
  font-style: normal;
  color: #fcd34d;
  margin-left: 2px;
}

/* ── Top Scorers table ─────────────────────────────────────── */
.scorers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}
.scorers-table thead th {
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .4px;
  text-align: left;
}
.scorers-table td {
  padding: 9px 10px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.scorers-table tbody tr:hover { background: var(--surface-2); }
.scorer-rank {
  color: var(--muted);
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.scorer-crest {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}
.scorer-goals {
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
}
.scorer-assists { color: var(--muted); font-size: .8rem; }

/* ── Injuries & Suspensions ────────────────────────────────── */
.injuries-section {
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid #3a2020;
  border-radius: 10px;
  background: #1a1010;
}
.injuries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.injury-team-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.injury-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.injury-item:last-child { border-bottom: none; }
.injury-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
}
.injury-badge.injury    { background: #3a1a1a; color: #e57373; }
.injury-badge.suspension { background: #3a2a00; color: #ffc107; }
.injury-player { color: var(--text); }
.injury-reason { color: var(--muted); font-size: .75rem; }
.injury-none   { color: var(--muted); font-size: .8rem; font-style: italic; }
@media (max-width: 500px) {
  .injuries-grid { grid-template-columns: 1fr; }
}

/* ── Quick pred: top-3 score chips ────────────────────────── */
.qpred-scores {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.qpred-score-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.qpred-score-chip.top {
  background: #1a2a3a;
  border-color: var(--accent);
  color: var(--text);
  font-size: .9rem;
}
.qpred-score-chip em {
  font-style: normal;
  font-weight: 400;
  font-size: .72rem;
  color: var(--muted);
}

/* ── Prediction panel: top-5 correct scores ───────────────── */
.top-scores-block {
  margin-top: 12px;
  width: 100%;
}
.top-scores-lbl {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  margin-bottom: 6px;
}
.top-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: .82rem;
}
.top-score-line {
  min-width: 36px;
  font-weight: 700;
  color: var(--muted);
}
.top-score-best .top-score-line { color: var(--text); font-size: .9rem; }
.top-score-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.top-score-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}
.top-score-best .top-score-bar { background: #4caf50; }
.top-score-pct {
  min-width: 30px;
  text-align: right;
  color: var(--muted);
  font-size: .78rem;
}
.top-score-best .top-score-pct { color: var(--text); font-weight: 700; }

/* ── App layout with sidebar ─────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.app-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 100;
}
.sidebar-overlay.visible { display: block; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}
.sidebar-logo-icon { font-size: 1.4rem; }
.sidebar-logo-text { font-size: 1.1rem; font-weight: 800; color: var(--gold); flex: 1; }
.sidebar-close-btn {
  display: none;
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px;
  line-height: 1;
}

.sidebar-today-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 14px;
  background: var(--gold-glow);
  border: none; border-left: 3px solid var(--gold);
  color: var(--gold); font-size: .88rem; font-weight: 700;
  cursor: pointer; text-align: left;
  transition: background .15s;
}
.sidebar-today-btn:hover { background: rgba(240,180,41,.2); }
.sidebar-today-btn.active { background: rgba(240,180,41,.18); }

/* ── Sidebar day filter tabs ──────────────────────────────────── */
.sidebar-day-tabs {
  display: flex; gap: 4px;
  padding: 8px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.sdt-btn {
  flex: 1; padding: 5px 4px;
  background: none; border: 1px solid var(--border-2);
  border-radius: 6px; color: var(--muted);
  font-size: .7rem; font-weight: 600; cursor: pointer;
  transition: all .15s; white-space: nowrap; text-align: center;
}
.sdt-btn:hover { border-color: var(--gold); color: var(--gold); }
.sdt-btn.active { background: var(--gold); border-color: var(--gold); color: #000; }
.sdt-btn .sdt-count {
  display: inline-block; margin-left: 3px;
  background: rgba(0,0,0,.25); border-radius: 8px;
  padding: 0 4px; font-size: .65rem; font-weight: 700;
}
.sdt-btn.active .sdt-count { background: rgba(0,0,0,.3); }

.sidebar-day-empty {
  padding: 12px 14px;
  font-size: .8rem; color: var(--muted); font-style: italic;
}

/* League badge inside sidebar item */
.sidebar-league-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: .62rem; font-weight: 700; border-radius: 4px;
  padding: 1px 5px; white-space: nowrap;
}
.slb-today    { background: rgba(34,197,94,.15);  color: var(--green); }
.slb-tomorrow { background: rgba(96,165,250,.15); color: var(--blue); }
.slb-week     { background: rgba(100,116,139,.1); color: var(--muted); }

.sidebar-sport-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.sidebar-sport-header {
  padding: 10px 14px 6px;
  font-size: .73rem; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .8px;
}
.sidebar-league-list { padding: 0 0 8px 0; }
.sidebar-league-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 7px 14px;
  background: none; border: none; border-left: 3px solid transparent;
  color: var(--text-2); font-size: .83rem; cursor: pointer;
  text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .12s, color .12s;
}
.sidebar-league-item:hover {
  background: var(--surface);
  color: var(--text);
}
.sidebar-league-item.active {
  background: var(--surface-2);
  border-left-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}
.sidebar-league-item.unavailable { opacity: .4; cursor: not-allowed; }
.sidebar-league-flag { font-size: .95rem; flex-shrink: 0; }
.sidebar-league-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-league-item.women .sidebar-league-name { color: var(--purple); }
.sidebar-league-item.women.active { border-left-color: var(--purple); color: var(--purple); }

/* ── Header overrides ────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none; border: 1px solid var(--border-2);
  color: var(--text); font-size: 1.1rem;
  padding: 6px 10px; border-radius: 6px; cursor: pointer;
  flex-shrink: 0;
}
.header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
}

/* ── Main views ─────────────────────────────────────────────── */
.main-view { min-height: calc(100vh - var(--header-h)); padding-bottom: 60px; }

/* ── Today's View ───────────────────────────────────────────── */
.today-hero {
  background: linear-gradient(135deg, #0f1e33 0%, #1a2d4a 50%, #0f2238 100%);
  border-bottom: 2px solid var(--gold);
  padding: 24px 20px 20px;
}
.today-hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.today-title {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px;
  color: var(--gold); margin-bottom: 2px;
}
.today-date { color: var(--text-2); font-size: .9rem; }
.today-hero-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.today-meta {
  color: var(--muted); font-size: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
}
.btn-today-refresh {
  background: none; border: 1px solid var(--border-2);
  color: var(--muted); padding: 5px 12px; border-radius: 6px;
  cursor: pointer; font-size: .82rem;
}
.btn-today-refresh:hover { border-color: var(--gold); color: var(--gold); }

/* Market filter strip */
.market-filter-strip {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: var(--header-h); z-index: 50;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.market-filter-strip::-webkit-scrollbar { display: none; }

.mf-btn {
  flex-shrink: 0;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border-2);
  background: transparent; color: var(--text-2);
  font-size: .8rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.mf-btn:hover { border-color: var(--gold); color: var(--gold); }
.mf-btn.active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }

/* Today content area */
.today-content { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.today-loading {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 40px 20px; max-width: 1100px; margin: 0 auto;
}
.today-loading-text p { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.today-loading-sub { font-size: .8rem !important; color: var(--muted-2) !important; }
.today-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* Today games list */
.today-games-list {
  display: flex; flex-direction: column; gap: 0;
}
.today-games-group { margin-top: 16px; }
.today-games-group-header {
  font-size: .73rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .8px;
  padding: 8px 0 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.today-game-row {
  display: grid;
  grid-template-columns: 60px 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  border-radius: 4px;
}
.today-game-row:hover { background: var(--surface-2); padding-left: 6px; padding-right: 6px; }

.tgr-time {
  text-align: center;
}
.tgr-time-val {
  font-size: .88rem; font-weight: 700; color: var(--text);
  display: block;
}
.tgr-league {
  font-size: .68rem; color: var(--muted);
  display: block; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

.tgr-team {
  display: flex; align-items: center; gap: 6px;
  overflow: hidden;
}
.tgr-team-home { justify-content: flex-end; }
.tgr-team-away { justify-content: flex-start; }
.tgr-team-crest {
  width: 20px; height: 20px; object-fit: contain;
  flex-shrink: 0;
}
.tgr-team-name {
  font-size: .85rem; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tgr-center {
  text-align: center; flex-shrink: 0; min-width: 90px;
}
.tgr-outcomes {
  display: flex; gap: 4px; justify-content: center; margin-bottom: 3px;
}
.tgr-outcome {
  font-size: .72rem; font-weight: 700; padding: 2px 5px;
  border-radius: 3px; min-width: 32px; text-align: center;
}
.tgr-outcome.home { background: var(--green-bg); color: var(--green); }
.tgr-outcome.draw { background: var(--amber-bg); color: var(--amber); }
.tgr-outcome.away { background: var(--blue-bg); color: var(--blue); }
.tgr-score {
  font-size: .7rem; color: var(--muted); white-space: nowrap;
}

.tgr-market {
  text-align: center; min-width: 80px; flex-shrink: 0;
}
.tgr-market-val {
  display: block; font-size: 1.05rem; font-weight: 800;
  margin-bottom: 1px;
}
.tgr-market-val.high    { color: var(--green); }
.tgr-market-val.medium  { color: var(--amber); }
.tgr-market-val.low     { color: var(--muted); }
.tgr-market-label {
  font-size: .65rem; color: var(--muted); white-space: nowrap;
}
.tgr-best-bet {
  font-size: .68rem;
  background: var(--gold-glow);
  border: 1px solid rgba(240,180,41,.3);
  color: var(--gold); border-radius: 4px;
  padding: 1px 5px; white-space: nowrap;
  display: inline-block; margin-top: 2px;
}

/* ── League View ────────────────────────────────────────────── */
.league-view-header {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f1e33 0%, #1a2d4a 100%);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: var(--header-h); z-index: 50;
}
.btn-back-today {
  background: none; border: 1px solid var(--border-2);
  color: var(--muted); padding: 6px 12px; border-radius: 6px;
  cursor: pointer; font-size: .82rem; white-space: nowrap;
  flex-shrink: 0;
}
.btn-back-today:hover { border-color: var(--gold); color: var(--gold); }
.league-view-title {
  font-size: 1.2rem; font-weight: 800; color: var(--gold);
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.league-toolbar {
  display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto;
}
.league-view-content {
  max-width: 960px; margin: 0 auto; padding: 20px;
}

/* ── Mobile responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: block !important; }
  .sidebar-overlay.visible { display: block; }
  .app-wrapper { margin-left: 0; }
  .hamburger { display: block !important; }

  .today-game-row {
    grid-template-columns: 50px 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .tgr-time { grid-row: 1 / 3; }
  .tgr-team-home { grid-column: 2; justify-content: flex-start; }
  .tgr-team-away { grid-column: 3; justify-content: flex-start; }
  .tgr-center { grid-column: 2; grid-row: 2; text-align: left; }
  .tgr-market { grid-column: 3; grid-row: 2; text-align: left; }
}

@media (max-width: 600px) {
  .today-title { font-size: 1.3rem; }
  .today-game-row { padding: 8px 4px; gap: 8px; }
  .tgr-team-name { font-size: .78rem; }
  .league-view-header { padding: 12px; gap: 8px; }
  .league-view-title { font-size: 1rem; }
  .today-hero { padding: 16px; }
  .today-hero-inner { flex-direction: column; align-items: flex-start; }
  .today-hero-right { width: 100%; }
}

/* ── Grok Analysis ─────────────────────────────────────────────────────────── */
.grok-section { margin: 12px 0 4px; }

.grok-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid var(--gold);
  border-radius: 20px;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  letter-spacing: .04em;
}
.grok-btn:hover { background: var(--gold-glow); box-shadow: 0 0 12px rgba(240,180,41,.3); }
.grok-btn:disabled { opacity: .5; cursor: not-allowed; }
.grok-btn-icon { font-size: 1rem; }

.grok-panel {
  margin-top: 12px;
  background: #0d1117;
  border: 1px solid rgba(240,180,41,.25);
  border-radius: 10px;
  overflow: hidden;
}
.grok-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(240,180,41,.07);
  border-bottom: 1px solid rgba(240,180,41,.15);
}
.grok-label { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.grok-close {
  background: none; border: none; color: var(--text-muted);
  font-size: .9rem; cursor: pointer; line-height: 1;
}
.grok-close:hover { color: var(--gold); }
.grok-content {
  padding: 14px 16px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  min-height: 60px;
}
.grok-content .grok-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: blink .7s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ai-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.grok-btn-chatgpt { border-color: #10a37f; color: #10a37f; }
.grok-btn-chatgpt:hover { background: rgba(16,163,127,.1); box-shadow: 0 0 12px rgba(16,163,127,.3); }

/* ═══════════════════════════════════════════════════════════════
   SAFE BETS SECTION
   ═══════════════════════════════════════════════════════════════ */

.safe-bets-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.sb-group {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.sb-group-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Double Chance pills */
.sb-dc-row {
  display: flex;
  gap: 10px;
}

.sb-dc-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 6px;
  transition: border-color .2s, background .2s;
}

.sb-dc-pill.sb-dc-best {
  border-color: var(--gold);
  background: rgba(212,175,55,.12);
}

.sb-dc-name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sb-dc-pill.sb-dc-best .sb-dc-name {
  color: var(--gold);
}

.sb-dc-pct {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

/* Goals bar rows */
.sb-goals-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-goals-item,
.sb-tg-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-goals-label,
.sb-tg-label {
  font-size: .75rem;
  color: var(--text-muted);
  min-width: 28px;
}

.sb-goals-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}

.sb-goals-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width .4s ease;
}

.sb-bar-home { background: var(--home-color, #4ade80); }
.sb-bar-away { background: var(--blue, #60a5fa); }

.sb-goals-pct {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text);
  min-width: 36px;
  text-align: right;
}

/* Team goals split */
.sb-team-goals-row {
  display: flex;
  gap: 20px;
}

.sb-tg-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-tg-header {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   TICKETS OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.btn-tickets {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-tickets:hover { opacity: .88; transform: translateY(-1px); }

/* Sub-tabs inside tickets overlay header */
.tickets-subtabs {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.tkt-tab {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  transition: background .2s, color .2s;
}
.tkt-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Panels */
.tickets-panel { display: none; padding: 0 20px 20px; }
.tickets-panel.active { display: block; }

/* Date nav */
.tickets-date-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 12px;
}

.tkt-date-label {
  flex: 1;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.tkt-date-arrow {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 12px;
  transition: background .2s;
}
.tkt-date-arrow:hover { background: rgba(255,255,255,.15); }

/* Status */
.tickets-status {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .82rem;
  margin-bottom: 12px;
}
.tickets-status.hidden { display: none; }
.tkt-status-loading { background: rgba(255,255,255,.06); color: var(--text-muted); }
.tkt-status-info    { background: rgba(96,165,250,.12); color: #60a5fa; }
.tkt-status-error   { background: rgba(239,68,68,.12);  color: #f87171; }

/* Grids */
.tickets-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tkt-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: .9rem;
  line-height: 1.6;
}

/* Ticket cards */
.tkt-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tkt-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.tkt-card-icon { font-size: 1.1rem; }

.tkt-card-label {
  flex: 1;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}

.tkt-card-count {
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 2px 8px;
  color: var(--text-muted);
}

/* Color accents per ticket type */
.tkt-safe    .tkt-card-header { border-left: 3px solid #4ade80; }
.tkt-over25  .tkt-card-header { border-left: 3px solid #fb923c; }
.tkt-btts    .tkt-card-header { border-left: 3px solid #f59e0b; }
.tkt-draws   .tkt-card-header { border-left: 3px solid #a78bfa; }
.tkt-win     .tkt-card-header { border-left: 3px solid var(--gold); }
.tkt-over15  .tkt-card-header { border-left: 3px solid #34d399; }
.tkt-home    .tkt-card-header { border-left: 3px solid #60a5fa; }
.tkt-away    .tkt-card-header { border-left: 3px solid #f472b6; }

.tkt-card-desc {
  font-size: .75rem;
  color: var(--text-muted);
  padding: 6px 14px 4px;
  margin: 0;
}

/* Table */
.tkt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}

.tkt-row {
  border-top: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.tkt-row:hover { background: rgba(255,255,255,.04); }

.tkt-table td {
  padding: 7px 10px;
  vertical-align: middle;
}

.tkt-flag  { width: 24px; text-align: center; }
.tkt-match { color: var(--text); font-weight: 500; }
.tkt-vs    { color: var(--text-muted); margin: 0 4px; font-size: .7rem; }

.tkt-bet-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.tkt-conf  { color: var(--accent); font-weight: 700; text-align: right; white-space: nowrap; }
.tkt-time  { color: var(--text-muted); font-size: .7rem; text-align: right; white-space: nowrap; }

/* Weekly grid */
.tickets-weekly-grid { display: flex; flex-direction: column; gap: 24px; }

.tkt-weekly-day-header {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.tkt-weekly-day-grid { display: flex; flex-direction: column; gap: 12px; }
.tkt-cs      .tkt-card-header { border-left: 3px solid #e879f9; }
.tkt-over45  .tkt-card-header { border-left: 3px solid #ef4444; }
.tkt-corners .tkt-card-header { border-left: 3px solid #06b6d4; }
.tkt-booking .tkt-card-header { border-left: 3px solid #facc15; }

/* Result badges */
.tkt-result        { font-size: 0.72rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.tkt-won           { background: rgba(74,222,128,.15); color: #4ade80; }
.tkt-lost          { background: rgba(248,113,113,.15); color: #f87171; }
.tkt-void          { background: rgba(148,163,184,.12); color: var(--muted); }
.tkt-pending       { color: var(--muted); font-size: 0.8rem; }
.tkt-result-col    { text-align: right; min-width: 60px; }
.tkt-actual-score  { margin-left: 6px; font-size: 0.75rem; font-weight: 700; color: var(--accent); opacity: .85; }
.tkt-row-won  td   { background: rgba(74,222,128,.04); }
.tkt-row-lost td   { background: rgba(248,113,113,.04); }
