/* ===== VARIABLES ===== */
:root {
  --bg:    #f0f4f8;
  --bg2:   #e4eaf2;
  --bg3:   #d8e2ee;
  --card:  #ffffff;
  --card2: #f7fafd;
  --border: #c5d3e0;
  --gold:   #b07d10;
  --gold2:  #8a6008;
  --gold-glow: rgba(176, 125, 16, 0.12);
  --green:  #16a34a;
  --red:    #dc2626;
  --orange: #ea580c;
  --blue:   #2563eb;
  --text:   #1a2536;
  --text2:  #4a5f7a;
  --text3:  #8099b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(30,60,100,0.10);
  --transition: 0.2s ease;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg:    #0f172a;
  --bg2:   #1e293b;
  --bg3:   #293548;
  --card:  #1e293b;
  --card2: #243044;
  --border: #334155;
  --gold:   #f59e0b;
  --gold2:  #d97706;
  --gold-glow: rgba(245, 158, 11, 0.15);
  --green:  #22c55e;
  --red:    #f87171;
  --orange: #fb923c;
  --blue:   #60a5fa;
  --text:   #f1f5f9;
  --text2:  #94a3b8;
  --text3:  #64748b;
  --shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* Dark mode overrides for hardcoded semantic colors */
[data-theme="dark"] .pts-3,
[data-theme="dark"] .joker-active-row,
[data-theme="dark"] .joker-pick-active,
[data-theme="dark"] .pred-top2,
[data-theme="dark"] .current-pick,
[data-theme="dark"] .bm-winner { background: rgba(245,158,11,0.15) !important; color: var(--text) !important; }

[data-theme="dark"] .pts-1,
[data-theme="dark"] .pred-exact,
[data-theme="dark"] .answer-correct,
[data-theme="dark"] .row-correct,
[data-theme="dark"] .groupe-done { background: rgba(34,197,94,0.12) !important; color: var(--text) !important; }

[data-theme="dark"] .pts-0,
[data-theme="dark"] .pts-miss,
[data-theme="dark"] .pred-miss,
[data-theme="dark"] .answer-wrong,
[data-theme="dark"] .row-wrong { background: rgba(239,68,68,0.12) !important; color: var(--text) !important; }

[data-theme="dark"] .answer-pending,
[data-theme="dark"] .pts-miss { background: var(--bg3) !important; color: var(--text2) !important; }

[data-theme="dark"] .champion-result-banner { background: rgba(245,158,11,0.15) !important; }
[data-theme="dark"] .joker-section { border-color: var(--gold); }
[data-theme="dark"] .badge-legend { background: rgba(245,158,11,0.15) !important; }
[data-theme="dark"] .badge-novice { background: var(--bg3) !important; color: var(--text2) !important; }
[data-theme="dark"] .badge-debutant { background: rgba(239,68,68,0.15) !important; color: #fca5a5 !important; }
[data-theme="dark"] .badge-challenger { background: rgba(96,165,250,0.15) !important; color: #93c5fd !important; }
[data-theme="dark"] .badge-expert { background: rgba(34,197,94,0.15) !important; color: #86efac !important; }
[data-theme="dark"] .badge-pro { background: rgba(251,146,60,0.15) !important; color: #fdba74 !important; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(176,125,16,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(37,99,235,0.04) 0%, transparent 50%);
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

/* ===== NAVBAR ===== */
.navbar {
  background: #1a2e4a;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #243d5c;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 1rem;
}

.nav-brand {
  font-family: 'Exo 2', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--gold) !important;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.trophy { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text2) !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.12);
}

.nav-link.active { color: #fcd34d !important; }
.nav-admin { color: #fcd34d !important; }
.nav-logout { font-size: 0.8rem; color: #94a3b8 !important; }

.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  font-size: 0.85rem; flex-shrink: 0;
  vertical-align: middle; margin-right: 0.3rem;
}
.nav-profile-link { display: inline-flex; align-items: center; }

.btn-nav {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
}

.btn-primary-nav {
  background: #f59e0b !important;
  color: #fff !important;
  border-color: #f59e0b !important;
  font-weight: 600;
}

.btn-primary-nav:hover { background: #d97706 !important; }

.btn-primary-nav:hover { background: var(--gold2) !important; }

/* ===== MAIN ===== */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ===== FLASH MESSAGES ===== */
.flash-container { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash-success  { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.flash-error    { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.flash-warning  { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }

.flash-close {
  background: none; border: none; color: inherit;
  font-size: 1.2rem; cursor: pointer; padding: 0 0.25rem; opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

/* ===== PAGE HEADER ===== */
.page-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.page-header h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow);
  margin-bottom: 0.4rem;
}

.page-header p { color: var(--text2); font-size: 0.95rem; }

/* ===== INFO BANNER ===== */
.info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1d4ed8;
  font-size: 0.9rem;
}

/* ===== PHASE & GROUP HEADERS ===== */
.phase-header {
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.phase-header h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
}

.group-section { margin-bottom: 1.5rem; }

.group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0 0.75rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ===== MATCHES GRID ===== */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

/* ===== MATCH CARD ===== */
.match-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card:hover { border-color: #93c5fd; transform: translateY(-2px); box-shadow: var(--shadow); }
.match-card.finished { border-color: #86efac; background: #f0fdf4; }
.match-card.locked { background: #fafafa; opacity: 0.9; }

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.match-date { font-size: 0.8rem; color: var(--text3); }
.match-venue { font-size: 0.75rem; color: var(--text3); }
.match-detail-link {
  font-size: 0.75rem;
  color: var(--text3);
  margin-left: auto;
  transition: color var(--transition);
}
.match-detail-link:hover { color: var(--gold); }

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.team {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.team-left { justify-content: flex-end; text-align: right; }
.team-right { justify-content: flex-start; }

.flag { font-size: 1.4rem; flex-shrink: 0; }

.team-name {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center { flex-shrink: 0; text-align: center; min-width: 80px; }

.vs-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text3);
  letter-spacing: 0.1em;
  display: inline-block;
}

.result-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.result-score {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green);
}

.result-label { font-size: 0.65rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== PREDICTION ZONE ===== */
.prediction-zone {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.pred-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pred-inputs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.score-input {
  width: 54px;
  padding: 0.4rem;
  text-align: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Exo 2', sans-serif;
  transition: border-color var(--transition);
}

.score-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--card2);
}

.pred-sep { color: var(--text2); font-weight: 700; }

.btn-predict {
  padding: 0.4rem 0.9rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-predict:hover { background: var(--gold2); color: #fff; transform: scale(1.02); }
.btn-edit { background: #fff; color: var(--blue); border: 1px solid #bfdbfe; }
.btn-edit:hover { background: #eff6ff; }

.pred-result, .pred-locked {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.pred-label { color: var(--text2); }

.pred-score {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.pred-missed { color: var(--text3); font-style: italic; font-size: 0.8rem; }
.lock-icon { font-size: 0.85rem; }

/* ===== POINTS BADGES ===== */
.points-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.points-3 { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.points-1 { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.points-0 { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ===== SCORING LEGEND ===== */
.scoring-legend {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.scoring-legend h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--text2); }

.legend-items { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text2); }

/* ===== STATS BAR ===== */
.stats-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
  flex: 1;
}

.stat-value {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label { display: block; font-size: 0.8rem; color: var(--text2); margin-top: 0.2rem; }

/* ===== LEADERBOARD ===== */
.leaderboard-container { overflow-x: auto; }

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.leaderboard-table th {
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text2);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.leaderboard-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}

.leaderboard-table tr:last-child td { border-bottom: none; }

.leaderboard-table tbody tr:hover { background: #f8fafc; }

.rank-gold td   { background: #fefce8; }
.rank-silver td { background: #f8fafc; }
.rank-bronze td { background: #fff7ed; }
.rank-me td     { border-left: 3px solid var(--blue); }

.rank-pos { font-size: 1.1rem; text-align: center; }
.rank-name { font-weight: 600; }
.rank-points { font-family: 'Exo 2', sans-serif; }

.points-total {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
}

.points-unit { font-size: 0.8rem; color: var(--text2); margin-left: 0.2rem; }

.you-badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ===== MY PREDICTIONS ===== */
.predictions-list { display: flex; flex-direction: column; gap: 0.75rem; }

.pred-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: border-color var(--transition);
}

.pred-card.finished { border-color: #86efac; background: #f0fdf4; }
.pred-card:hover { border-color: #93c5fd; box-shadow: var(--shadow); }

.pred-match-info { flex: 1; min-width: 200px; }

.pred-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.vs-sm { color: var(--text3); font-size: 0.8rem; }

.pred-meta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: var(--text3);
  flex-wrap: wrap;
}

.pred-scores {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.score-box { text-align: center; }

.score-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.score-value {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.status-pending { font-size: 0.85rem; color: var(--text2); }

/* ===== AUTH ===== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.auth-header { text-align: center; margin-bottom: 1.75rem; }
.auth-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.auth-header h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}
.auth-header p { color: var(--text2); margin-top: 0.3rem; font-size: 0.9rem; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; color: var(--text2); }

.form-group input,
.form-group select {
  padding: 0.65rem 0.9rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group small { font-size: 0.75rem; color: var(--text3); }

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text2);
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  font-family: inherit;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; color: #fff; }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: #93c5fd; color: var(--blue); }

.btn-gold { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.btn-gold:hover { background: #fef08a; }

.btn-full { width: 100%; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

.btn-success { background: #dcfce7; color: #166534; border-color: #86efac; }
.btn-success:hover { background: #bbf7d0; }

.btn-warning { background: #fff7ed; color: #9a3412; border-color: #fdba74; }
.btn-warning:hover { background: #ffedd5; }

.btn-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.btn-danger:hover { background: #fecaca; }

/* ===== ADMIN ===== */
.admin-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.admin-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-section h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.add-match-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.form-group-sm { max-width: 100px; }

.admin-matches { display: flex; flex-direction: column; gap: 0.6rem; }

.admin-match-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-match-card.finished { border-color: #86efac; background: #f0fdf4; }

.admin-match-info { flex: 1; min-width: 200px; }

.admin-match-teams { font-size: 0.9rem; font-weight: 500; }

.admin-match-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text3);
}

.admin-match-status { margin-top: 0.35rem; }

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.status-open     { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.status-locked   { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.status-finished { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }

.admin-match-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

.result-form { display: flex; align-items: center; gap: 0.4rem; }

.score-mini {
  width: 46px;
  padding: 0.3rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.score-mini:focus { outline: none; border-color: var(--blue); }

.badge-admin {
  background: #fef9c3; color: #854d0e;
  border: 1px solid #fde68a;
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
}

.badge-player {
  background: #eff6ff; color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.75rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text2);
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-state p { font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text3);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.55rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.theme-toggle:hover { background: rgba(255,255,255,0.12); }

/* ===== HAMBURGER ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: 100%;
    padding: 0.5rem 0 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-link { width: 100%; padding: 0.55rem 0.75rem; }
  .nav-container { height: auto; flex-wrap: wrap; padding: 0 0; }
  .nav-brand { padding: 0 0; height: 56px; }
}
@media (max-width: 640px) {
  .matches-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.5rem; }
  .stats-bar { gap: 0.5rem; }
  .stat-item { padding: 0.75rem 1rem; }
  .stat-value { font-size: 1.5rem; }
  .pred-card { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr 1fr; }
}
