/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
       background: #f8fafc; color: #1e293b; font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px; min-width: 220px;
  background: #1e293b;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  transition: width 0.2s ease, min-width 0.2s ease;
}

/* Collapsed state */
.layout.sb-collapsed .sidebar,
.sb-init-collapsed .sidebar {
  width: 0; min-width: 0; overflow: hidden;
}

/* Close button inside sidebar */
.sidebar-logo {
  display: flex; align-items: center; justify-content: space-between;
}
.sb-close-btn {
  background: none; border: none;
  color: #64748b; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
  flex-shrink: 0;
}
.sb-close-btn:hover { color: #f1f5f9; background: #334155; }

/* Floating open button — hidden normally, visible when collapsed */
.sb-open-btn {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 400;
  background: #1e293b; color: #f1f5f9;
  border: none; border-radius: 6px;
  width: 36px; height: 36px;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.layout.sb-collapsed .sb-open-btn,
.sb-init-collapsed .sb-open-btn {
  display: flex;
}

.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid #334155;
}
.logo-text {
  font-size: 15px; font-weight: 800; letter-spacing: 0.5px;
  color: #f1f5f9;
  background: #7c3aed;
  padding: 6px 10px; border-radius: 6px;
  display: inline-block;
}

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 18px;
  color: #94a3b8; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: #f1f5f9; background: #334155; }
.nav-item.active { color: #a78bfa; border-left-color: #7c3aed; background: rgba(124,58,237,0.12); }
.nav-item.sub { padding-left: 30px; font-size: 12.5px; }
.nav-item.disabled { color: #475569; cursor: default; pointer-events: none; }

.nav-section { margin-top: 8px; }
.nav-section-label {
  padding: 8px 18px 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #475569;
}

.future-badge {
  font-size: 10px; background: #334155; color: #64748b;
  padding: 2px 6px; border-radius: 10px;
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid #334155;
}
.logout-link { color: #64748b; font-size: 12px; }
.logout-link:hover { color: #94a3b8; }

/* ── Main Content ──────────────────────────────────────────────────────────── */
.main-content { flex: 1; overflow-x: auto; min-width: 0; transition: padding-left 0.2s ease; }

/* Indent content when sidebar is hidden so the floating open button doesn't overlap */
.layout.sb-collapsed .main-content,
.sb-init-collapsed .main-content {
  padding-left: 56px;
}

.page-wrap { padding: 28px 32px; max-width: 1600px; }

.page-header { margin-bottom: 22px; }
.page-header h1 { font-size: 22px; font-weight: 700; color: #1e293b; }
.page-header h1 span { color: #7c3aed; }
.page-header p { color: #64748b; font-size: 13px; margin-top: 4px; }

/* ── Filters bar ───────────────────────────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 18px;
}
.filter-select {
  padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 7px;
  background: #fff; font-size: 12.5px; color: #1e293b; cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: #7c3aed; }
.filter-btn {
  padding: 6px 14px; border: 1px solid #e2e8f0; border-radius: 7px;
  background: #fff; font-size: 12.5px; color: #475569;
  cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.filter-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.refresh-btn {
  padding: 6px 14px; border: 1px solid #7c3aed; border-radius: 7px;
  background: #fff; font-size: 12.5px; color: #7c3aed; cursor: pointer;
  transition: all 0.15s; margin-left: auto;
}
.refresh-btn:hover { background: #7c3aed; color: #fff; }
.last-updated { font-size: 11.5px; color: #94a3b8; margin-left: 10px; }

/* ── Table ─────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e2e8f0;
              box-shadow: 0 1px 4px rgba(0,0,0,0.06); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; color: #64748b;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  white-space: nowrap; cursor: pointer; user-select: none;
}
th:hover { color: #1e293b; }
th.no-sort { cursor: default; }
th.no-sort:hover { color: #64748b; }
td { padding: 10px 12px; border-top: 1px solid #f1f5f9; vertical-align: middle; white-space: nowrap; }
tr:hover td { background: #fafbff; }
.tr-sub td { background: #f8fafc; color: #64748b; font-size: 12px; border-top: none; }
.tr-sub:hover td { background: #f1f5f9; }

/* Right-align numeric columns */
td.num, th.num { text-align: right; }

/* ── Odds table specific ───────────────────────────────────────────────────── */
.team-name { font-weight: 600; color: #1e293b; }
.game-meta { font-size: 11px; color: #94a3b8; }
.sub-meta  { font-size: 11px; color: #94a3b8; }
.odds-history-table td.num,
.odds-history-table th.num { text-align: center; }
.best-price { font-weight: 700; color: #1e293b; }
.odds-cell { font-family: monospace; font-size: 13px; text-align: center; }
.odds-best { font-weight: 700; color: #059669; background: #f0fdf4;
             border-radius: 4px; padding: 2px 6px; }
.odds-dash { color: #cbd5e1; }
.margin-pct { font-size: 11px; color: #94a3b8; font-family: monospace; }
.margin-pct.high { color: #dc2626; }

/* ── Bookmaker toggle chips ────────────────────────────────────────────────── */
.bookie-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.bookie-chip {
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
  border: 1px solid #e2e8f0; cursor: pointer; transition: all 0.15s;
  background: #fff; color: #64748b;
}
.bookie-chip.on { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.bookie-chip:hover { border-color: #7c3aed; }

/* ── Bookie dropdown ───────────────────────────────────────────────────────── */
.bookie-dropdown { position: relative; display: inline-block; margin-bottom: 14px; }
.bookie-btn {
  padding: 7px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; font-size: 13px; color: #1e293b; cursor: pointer;
  display: flex; align-items: center; gap: 8px; transition: border-color 0.15s;
}
.bookie-btn:hover { border-color: #7c3aed; }
.bookie-count { background: #7c3aed; color: #fff; font-size: 11px; font-weight: 700;
                padding: 1px 7px; border-radius: 10px; }
.bookie-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 100;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10); min-width: 200px;
  overflow: hidden;
}
.bookie-panel-head { padding: 8px 12px; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.bookie-panel-list { padding: 6px 0; max-height: 320px; overflow-y: auto; }
.bookie-check-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 14px;
  font-size: 13px; color: #1e293b; cursor: pointer; transition: background 0.1s;
}
.bookie-check-row:hover { background: #f8fafc; }
.bookie-check-row input[type=checkbox] { accent-color: #7c3aed; width: 14px; height: 14px; cursor: pointer; }

/* ── Odds History table ────────────────────────────────────────────────────── */
.result-h { color: #059669; font-weight: 700; }
.result-a { color: #dc2626; font-weight: 700; }
.result-d { color: #64748b; font-weight: 600; }
.edge-pos { color: #059669; font-weight: 600; }
.edge-neg { color: #dc2626; }

/* ── Fixture shared ───────────────────────────────────────────────────────── */
.near-games { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.round-header {
  font-size: 13px; font-weight: 700; color: #7c3aed; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px; margin-top: 16px;
}
.round-header:first-child { margin-top: 0; }
.live-badge { background: #dc2626; color: #fff; font-size: 10px; font-weight: 700;
              padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px; }

/* ── ESPN-style upcoming card ─────────────────────────────────────────────── */
.fc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s;
}
.fc-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.09); }
.fc-card.complete { opacity: 0.85; }
.fc-card.complete:hover { opacity: 1; }

/* Header row */
.fc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px;
}
.fc-kickoff { font-weight: 500; color: #475569; }
.fc-venue   { color: #94a3b8; }

/* Score row */
.fc-scores {
  display: flex; align-items: center;
  padding: 14px 20px 10px; gap: 8px;
}
.fc-team { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.fc-team.right { align-items: flex-end; text-align: right; }
.fc-team-badge {
  font-size: 10px; font-weight: 700; color: #fff;
  background: #334155; padding: 2px 6px; border-radius: 4px;
  display: inline-block; letter-spacing: 0.3px; margin-bottom: 4px;
  width: fit-content;
}
.fc-team-name  { font-size: 14px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.fc-winner     { color: #1e293b; }
.fc-score {
  font-size: 38px; font-weight: 800; color: #1e293b;
  line-height: 1; margin: 2px 0 0;
}
.fc-score-win  { color: #1e293b; }
.fc-score-loss { color: #94a3b8; }
.fc-score-label { font-size: 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.fc-vs {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 10px;
}
.fc-vs-sep { font-size: 20px; color: #cbd5e1; font-weight: 300; line-height: 1; }

/* Probability bar */
.fc-prob-row {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 20px 8px;
}
.fc-prob-left  { display: flex; flex-direction: column; gap: 1px; min-width: 56px; }
.fc-prob-right { display: flex; flex-direction: column; gap: 1px; min-width: 56px; align-items: flex-end; text-align: right; }
.fc-prob-pct   { font-size: 15px; font-weight: 700; color: #1e293b; }
.fc-prob-sub   { font-size: 11px; color: #64748b; font-family: monospace; }
.fc-bar-wrap {
  flex: 1; height: 8px; background: #fecaca; border-radius: 4px; overflow: hidden;
}
.fc-bar-fill   { height: 100%; background: #3b82f6; border-radius: 4px 0 0 4px; }
.fc-ev         { font-size: 10px; font-weight: 600; }
.fc-ev.pos     { color: #059669; }
.fc-ev.neg     { color: #dc2626; }
.fc-mc-row     { padding: 0 20px 8px; font-size: 11px; color: #94a3b8; }

/* Edge panels */
.fc-panels {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; padding: 4px 16px 12px;
}
.fc-panel {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 10px 12px;
}
.fc-panel-slim     { border-color: #e2e8f0; }
.fc-panel-moderate { border-color: #fde68a; background: #fffbeb; }
.fc-panel-strong   { border-color: #bbf7d0; background: #f0fdf4; }
.fc-panel-label {
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px;
}
.fc-panel-nums { font-size: 11px; color: #64748b; margin-bottom: 4px; line-height: 1.4; }
.fc-panel-nums strong { color: #1e293b; }
.fc-panel-verdict { font-size: 12px; font-weight: 700; }
.fc-panel-verdict.over   { color: #059669; }
.fc-panel-verdict.under  { color: #dc2626; }
.fc-panel-nbooks  { font-size: 10px; color: #94a3b8; font-weight: 400; }
.fc-panel-range-row { font-size: 10px; color: #94a3b8; margin-bottom: 3px; }
.fc-panel-range   { font-family: monospace; color: #64748b; }
.fc-conf { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; margin-top: 3px; }
.fc-conf.slim     { color: #94a3b8; }
.fc-conf.moderate { color: #d97706; }
.fc-conf.strong   { color: #059669; }

/* Model breakdown toggle */
.fc-model-toggle {
  display: flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 16px;
  border-top: 1px solid #f1f5f9;
  cursor: pointer; font-size: 12px; font-weight: 500; color: #7c3aed;
  user-select: none; transition: background 0.1s;
}
.fc-model-toggle:hover { background: #f5f3ff; }
.fc-toggle-icon {
  font-size: 13px; display: inline-block;
  transition: transform 0.2s;
}

/* Breakdown panel */
.fc-model {
  border-top: 1px solid #f1f5f9;
  padding: 14px 16px 16px;
  background: #fafbff;
}
.fc-breakdown {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0;
  align-items: start;
}
@media (max-width: 800px) {
  .fc-breakdown { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fc-breakdown { grid-template-columns: 1fr; }
}
.fc-model-col { padding-right: 16px; }
.fc-odds-col {
  border-left: 1px solid #e2e8f0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fc-ctx-col {
  border-left: 1px solid #e2e8f0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fc-ctx-section {}
.fc-ctx-row {
  font-size: 12px; color: #334155;
  padding: 3px 0; display: flex; align-items: center; gap: 6px;
}
.fc-ctx-icon { font-size: 13px; }
.fc-ctx-adj  { font-size: 11px; color: #64748b; }
.fc-ctx-hga  { font-size: 11px; color: #7c3aed; font-weight: 500; margin-top: 2px; }
.fc-odds-section {}
.fc-odds-title {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.fc-odds-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.fc-odds-table th {
  font-size: 9px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.3px;
  padding: 0 6px 4px; text-align: right; border-bottom: 1px solid #e2e8f0;
}
.fc-odds-table th:first-child { text-align: left; }
.fc-odds-table td { padding: 4px 6px; border-bottom: 1px solid #f8fafc; }
.fc-odds-table tr:last-child td { border-bottom: none; }
.fc-odds-book  { color: #475569; font-size: 11px; white-space: nowrap; }
.fc-odds-line  { text-align: right; color: #64748b; font-family: monospace; font-size: 11px; }
.fc-odds-price { text-align: right; font-family: monospace; color: #334155; }
.fc-odds-price.best-h { color: #059669; font-weight: 700; }
.fc-bd-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.fc-bd-table th {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding: 0 8px 6px; text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.fc-bd-table th:not(:first-child) { text-align: right; }
.fc-bd-table td {
  padding: 5px 8px; border-bottom: 1px solid #f1f5f9; color: #334155;
}
.fc-bd-table tr:last-child td { border-bottom: none; }
.fc-bd-label { color: #475569; }
.fc-bd-wt    { color: #94a3b8; font-size: 10px; }
.fc-bd-num   { text-align: right; font-weight: 500; color: #1e293b; }
.fc-bd-th-num { text-align: right; }
.fc-bd-margin { font-weight: 600; }
.fc-bd-margin.pos { color: #059669; }
.fc-bd-margin.neg { color: #dc2626; }
.fc-bd-dash  { color: #cbd5e1; font-weight: 400; }
.fc-bd-section-row td { padding: 8px 8px 3px; }
.fc-bd-section-row:first-child td { padding-top: 4px; }
.fc-bd-section {
  font-size: 10px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.fc-bd-blend td { background: #f5f3ff; }
.fc-bd-final td { background: #ede9fe; }
/* Align all numeric td cells right within model table */
.fc-bd-table td:not(.fc-bd-label):not(.fc-bd-section) { text-align: right; }
.fc-bd-footer {
  font-size: 11px; color: #94a3b8;
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}
.fc-bd-blend th, .fc-bd-blend td { background: #f5f3ff; font-weight: 600; }
.fc-bd-composite th { background: #ede9fe; font-weight: 700; }
.fc-bd-adj { text-align: right; font-family: monospace; font-size: 12px; font-weight: 600; }
.fc-bd-pos { color: #059669; }
.fc-bd-neg { color: #dc2626; }
.fc-bd-weight { color: #94a3b8; font-size: 10px; font-weight: 400; margin-left: 3px; }
.fc-vol {
  font-size: 10.5px; color: #94a3b8;
  margin-top: 8px; padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}

/* A/D rank snippet */
.fc-rank-pos  { color: #94a3b8; font-size: 11px; white-space: nowrap; }
.fc-rank-team { font-weight: 600; color: #334155; }
.fc-rank-home { color: #7c3aed; }
.fc-rank-num  { text-align: right; font-family: monospace; font-size: 11px; }
.fc-rank-good { color: #059669; font-weight: 600; }
.fc-rank-bad  { color: #dc2626; font-weight: 600; }

/* HGA badge in game card header */
.fc-hga-badge {
  font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.3px; white-space: nowrap;
}
.fc-hga-true    { background: #dbeafe; color: #1d4ed8; }
.fc-hga-local   { background: #fef9c3; color: #92400e; }
.fc-hga-neutral { background: #f1f5f9; color: #64748b; }

/* ── Completed game card ──────────────────────────────────────────────────── */
.final-badge {
  background: #dcfce7; color: #15803d;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.5px;
}
.result-margin { font-size: 11px; color: #64748b; margin-top: 2px; }
.pred-result   { font-size: 11px; font-weight: 500; margin-top: 4px; }
.pred-correct  { color: #059669; }
.pred-wrong    { color: #dc2626; }

/* ── Round header extras ───────────────────────────────────────────────────── */
.round-status {
  font-size: 10px; color: #94a3b8; font-weight: 500;
  margin-left: 8px; text-transform: none; letter-spacing: 0;
}

/* ── Season ahead table ────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 12px;
}
.section-title { font-size: 15px; font-weight: 700; color: #1e293b; }
.toggle-btn {
  font-size: 12px; color: #7c3aed; background: none; border: none;
  cursor: pointer; font-weight: 500;
}
.collapsible { overflow: hidden; transition: max-height 0.3s ease; }
.collapsible.hidden { max-height: 0 !important; }

/* ── Projections ───────────────────────────────────────────────────────────── */
.sub-tabs { display: flex; gap: 0; border-bottom: 2px solid #e2e8f0; margin-bottom: 22px; }
.sub-tab {
  padding: 9px 20px; font-size: 13px; font-weight: 500; color: #64748b;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all 0.15s;
}
.sub-tab:hover { color: #1e293b; }
.sub-tab.active { color: #7c3aed; border-bottom-color: #7c3aed; font-weight: 600; }
.sub-page { display: none; }
.sub-page.active { display: block; }

/* Prob bars */
.prob-bar-wrap { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.prob-bar-bg { flex: 1; background: #e2e8f0; border-radius: 4px; height: 6px; }
.prob-bar { height: 6px; border-radius: 4px; background: #7c3aed; }
.prob-bar.green { background: #059669; }
.prob-val { font-size: 12px; font-family: monospace; color: #475569; min-width: 36px; text-align: right; }

/* Finals colour rows */
tr.top4  td { background: #ede9fe !important; }
tr.top6  td { background: #f5f3ff !important; }
tr.top10 td { background: #f0fdf4 !important; }
tr.top4:hover  td { background: #ddd6fe !important; }
tr.top6:hover  td { background: #ede9fe !important; }
tr.top10:hover td { background: #dcfce7 !important; }

/* Attack/defence bars */
.ad-bar-wrap { display: flex; align-items: center; gap: 6px; }
.ad-bar-bg { width: 100px; background: #e2e8f0; border-radius: 4px; height: 8px; }
.ad-bar { height: 8px; border-radius: 4px; }
.ad-bar.attack { background: #7c3aed; }
.ad-bar.defence { background: #0ea5e9; }

/* ── Legend chips ──────────────────────────────────────────────────────────── */
.legend { display: flex; gap: 14px; font-size: 12px; color: #64748b; margin-top: 10px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ── Bracket ───────────────────────────────────────────────────────────────── */
.bracket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: 900px; }
.bracket-round { margin-bottom: 20px; }
.bracket-round-title { font-size: 12px; font-weight: 700; text-transform: uppercase;
                        letter-spacing: 0.5px; color: #94a3b8; margin-bottom: 8px; }
.bracket-matchup { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
                   padding: 10px 14px; margin-bottom: 8px; }
.bracket-team { display: flex; justify-content: space-between; padding: 3px 0;
                font-size: 13px; }
.bracket-team.winner { font-weight: 700; color: #7c3aed; }
.bracket-team .pct { font-family: monospace; font-size: 12px; color: #64748b; }

/* ── Loading / Empty ───────────────────────────────────────────────────────── */
.loading { display: flex; align-items: center; justify-content: center;
           padding: 60px; color: #94a3b8; font-size: 13px; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 2px solid #e2e8f0;
           border-top-color: #7c3aed; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px; color: #94a3b8; font-size: 13px; }

/* ── Login ─────────────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #f8fafc;
}
.login-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 40px 36px; width: 340px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.login-logo {
  font-size: 18px; font-weight: 800; color: #f1f5f9;
  background: #7c3aed; padding: 8px 14px; border-radius: 8px;
  display: inline-block; margin-bottom: 28px;
}
.login-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.login-card p { color: #64748b; font-size: 13px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600;
                    color: #475569; margin-bottom: 6px; }
.form-group input {
  width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color 0.15s;
}
.form-group input:focus { border-color: #7c3aed; }
.login-btn {
  width: 100%; padding: 10px; background: #7c3aed; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.login-btn:hover { background: #6d28d9; }
.login-error { color: #dc2626; font-size: 13px; margin-top: 12px; text-align: center; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
