/*
Theme Name: Mundial 2026
Theme URI: https://mundial2026.com
Author: Mundial 2026
Author URI: https://mundial2026.com
Description: FIFA World Cup 2026 Prediction Platform — Predict results, compete with friends, climb the leaderboard.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mundial2026
Tags: sports, predictions, football, world-cup
*/

/* =========================================================
   MUNDIAL 2026 — DESIGN SYSTEM
   Inspired by FIFA.com: bold typography, deep navy, gold accents
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Barlow:wght@400;500;600&display=swap');

:root {
  /* Core palette */
  --c-navy:        #0a1628;
  --c-navy-mid:    #112040;
  --c-navy-light:  #1a3060;
  --c-navy-border: #1e3a6e;
  --c-gold:        #c9a84c;
  --c-gold-light:  #e8c96a;
  --c-gold-pale:   #f5e9c4;
  --c-red:         #d42b2b;
  --c-red-light:   #e84040;
  --c-white:       #ffffff;
  --c-off-white:   #f4f6fa;
  --c-gray-100:    #eef0f5;
  --c-gray-200:    #d8dce8;
  --c-gray-400:    #8892ab;
  --c-gray-600:    #4a5470;
  --c-text:        #1a2540;
  --c-text-muted:  #5a6480;
  --c-success:     #1db954;
  --c-warning:     #f59e0b;
  --c-danger:      #ef4444;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Spacing */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,22,40,0.15);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.2);
  --shadow-lg:  0 8px 32px rgba(10,22,40,0.3);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --header-h: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--c-navy);
  color: var(--c-white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.page-light {
  background: var(--c-off-white);
  color: var(--c-text);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-white);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--c-gold);
}

.section-title.centered { display: block; text-align: center; }
.section-title.centered::after { left: 50%; transform: translateX(-50%); }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 64px; }
.section-sm { padding-block: 40px; }
.section-lg { padding-block: 96px; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,22,40,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-navy-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: color .2s;
}

.site-logo:hover { color: var(--c-gold); }

.site-logo .logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-light) 100%);
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  color: var(--c-navy);
}

.site-logo span { color: var(--c-gold); }

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: color .2s, background .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--c-white);
  background: rgba(255,255,255,0.07);
}

.main-nav a.active { color: var(--c-gold); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  color: var(--c-white);
}

.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: .25s;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--c-navy-mid);
    border-bottom: 1px solid var(--c-navy-border);
    padding: 16px;
    gap: 4px;
    z-index: 999;
  }
  .hamburger { display: flex; }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
  background: var(--c-navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(26,48,96,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,58,110,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,110,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 { margin-bottom: 20px; }
.hero h1 em { color: var(--c-gold); font-style: normal; }
.hero h1 .line-2 { color: var(--c-gray-400); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--c-gray-400);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--c-navy-border);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--c-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 12px 28px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-light) 100%);
  color: var(--c-navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-gold-light) 0%, #f5d97a 100%);
  box-shadow: 0 6px 28px rgba(201,168,76,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(201,168,76,0.07);
}

.btn-navy {
  background: var(--c-navy-light);
  color: var(--c-white);
  border: 1px solid var(--c-navy-border);
}

.btn-navy:hover { background: var(--c-navy-mid); }

.btn-danger { background: var(--c-red); color: #fff; }
.btn-danger:hover { background: var(--c-red-light); }

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* =========================================================
   CARDS
   ========================================================= */
.card {
  background: var(--c-navy-mid);
  border: 1px solid var(--c-navy-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.card:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: 0 8px 32px rgba(10,22,40,0.4);
}

.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--c-navy-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--c-navy-border);
  background: rgba(0,0,0,0.15);
}

/* Light variant */
.card-light {
  background: var(--c-white);
  border-color: var(--c-gray-200);
  color: var(--c-text);
}

.card-light .card-header { border-color: var(--c-gray-200); }
.card-light .card-footer { border-color: var(--c-gray-200); background: var(--c-gray-100); }

/* Gold accent */
.card-gold {
  border-top: 3px solid var(--c-gold);
}

/* =========================================================
   MATCH CARD
   ========================================================= */
.match-card {
  background: var(--c-navy-mid);
  border: 1px solid var(--c-navy-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all .2s;
}

.match-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: var(--c-navy-light);
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.match-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.match-team.home { align-items: flex-end; text-align: right; }
.match-team.away { align-items: flex-start; text-align: left; }

.team-flag {
  width: 48px; height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-navy-light);
}

.team-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-white);
}

.match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.match-score-display {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.05em;
}

.match-score-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-input {
  width: 52px; height: 52px;
  background: var(--c-navy);
  border: 2px solid var(--c-navy-border);
  border-radius: var(--radius-md);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
  transition: border-color .2s;
  -moz-appearance: textfield;
}

.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.score-input:focus {
  outline: none;
  border-color: var(--c-gold);
  background: rgba(201,168,76,0.07);
}

.score-sep {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--c-gray-400);
}

/* =========================================================
   LEADERBOARD TABLE
   ========================================================= */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--c-navy-border);
}

.leaderboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(30,58,110,0.4);
  vertical-align: middle;
}

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

.leaderboard-table tr:hover td { background: rgba(255,255,255,0.03); }

.rank-cell {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  width: 50px;
  text-align: center;
}

.rank-1 { color: var(--c-gold); }
.rank-2 { color: #b0b8c8; }
.rank-3 { color: #cd7f32; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
}

.rank-badge.gold { background: rgba(201,168,76,0.15); color: var(--c-gold); border: 1px solid rgba(201,168,76,0.3); }
.rank-badge.silver { background: rgba(176,184,200,0.15); color: #b0b8c8; border: 1px solid rgba(176,184,200,0.3); }
.rank-badge.bronze { background: rgba(205,127,50,0.15); color: #cd7f32; border: 1px solid rgba(205,127,50,0.3); }

.player-cell { display: flex; align-items: center; gap: 12px; }

.player-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy-light), var(--c-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-gold-light);
  border: 1px solid var(--c-navy-border);
  flex-shrink: 0;
  overflow: hidden;
}

.player-avatar img { width: 100%; height: 100%; object-fit: cover; }

.player-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-white);
}

.player-country {
  font-size: 0.78rem;
  color: var(--c-gray-400);
  margin-top: 1px;
}

.points-cell {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--c-gold);
}

/* =========================================================
   FORM ELEMENTS
   ========================================================= */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 8px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--c-navy);
  border: 1px solid var(--c-navy-border);
  border-radius: var(--radius-md);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color .2s, background .2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-gold);
  background: rgba(201,168,76,0.05);
}

.form-control::placeholder { color: var(--c-gray-600); }

.form-control-light {
  background: var(--c-white);
  border-color: var(--c-gray-200);
  color: var(--c-text);
}

.form-control-light:focus {
  border-color: var(--c-gold);
  background: var(--c-white);
}

/* =========================================================
   BADGES & PILLS
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-gold { background: rgba(201,168,76,0.15); color: var(--c-gold); border: 1px solid rgba(201,168,76,0.25); }
.badge-success { background: rgba(29,185,84,0.12); color: var(--c-success); border: 1px solid rgba(29,185,84,0.2); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--c-danger); border: 1px solid rgba(239,68,68,0.2); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--c-warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-info { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.badge-navy { background: var(--c-navy-light); color: var(--c-gray-400); border: 1px solid var(--c-navy-border); }

/* =========================================================
   TABS
   ========================================================= */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-navy-border); margin-bottom: 24px; }

.tab-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--c-white); }
.tab-btn.active { color: var(--c-gold); border-bottom-color: var(--c-gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =========================================================
   PHASE TIMELINE
   ========================================================= */
.phase-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.phase-step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 120px;
}

.phase-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.phase-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--c-navy-border);
  background: var(--c-navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--c-gray-400);
  transition: all .3s;
}

.phase-step.active .phase-circle {
  border-color: var(--c-gold);
  background: rgba(201,168,76,0.15);
  color: var(--c-gold);
  box-shadow: 0 0 16px rgba(201,168,76,0.3);
}

.phase-step.done .phase-circle {
  border-color: var(--c-success);
  background: rgba(29,185,84,0.1);
  color: var(--c-success);
}

.phase-step.locked .phase-circle {
  border-color: var(--c-danger);
  background: rgba(239,68,68,0.1);
  color: var(--c-danger);
}

.phase-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  text-align: center;
  white-space: nowrap;
}

.phase-step.active .phase-label { color: var(--c-gold); }

.phase-line {
  flex: 1;
  height: 2px;
  background: var(--c-navy-border);
  margin: 0 8px;
  margin-bottom: 22px;
}

.phase-step.done + .phase-step .phase-line,
.phase-step.done .phase-line { background: var(--c-success); opacity: 0.4; }

/* =========================================================
   GROUP TABLE (standings)
   ========================================================= */
.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.group-table th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--c-navy-border);
}

.group-table th:first-child { text-align: left; }

.group-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(30,58,110,0.3);
  color: var(--c-gray-400);
}

.group-table td:first-child { text-align: left; }
.group-table tr:last-child td { border-bottom: none; }

.team-cell { display: flex; align-items: center; gap: 10px; }

.flag-emoji { font-size: 1.2rem; }

.team-abbr {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-white);
  letter-spacing: 0.04em;
}

.pts-cell {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--c-white);
}

.qualify-line td { border-bottom: 2px solid rgba(201,168,76,0.4) !important; }

/* =========================================================
   PREDICTION STATUS INDICATORS
   ========================================================= */
.pred-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pred-correct { color: var(--c-success); }
.pred-partial { color: var(--c-warning); }
.pred-wrong { color: var(--c-danger); }
.pred-pending { color: var(--c-gray-400); }

/* Points earned pill */
.points-earned {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 6px;
}

.points-earned.max { background: rgba(201,168,76,0.15); color: var(--c-gold); }
.points-earned.partial { background: rgba(245,158,11,0.15); color: var(--c-warning); }
.points-earned.zero { background: rgba(239,68,68,0.1); color: var(--c-danger); }
.points-earned.pending { background: rgba(138,146,171,0.1); color: var(--c-gray-400); }

/* =========================================================
   COUNTDOWN TIMER
   ========================================================= */
.countdown {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
  min-width: 80px;
  text-align: center;
  background: var(--c-navy-mid);
  border: 1px solid var(--c-navy-border);
  border-radius: var(--radius-md);
  padding: 12px 8px;
}

.countdown-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-400);
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-gold);
  margin-bottom: 20px;
  opacity: 0.5;
}

/* =========================================================
   NOTIFICATIONS / ALERTS
   ========================================================= */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  border: 1px solid;
  margin-bottom: 16px;
}

.alert-success { background: rgba(29,185,84,0.08); border-color: rgba(29,185,84,0.2); color: #5de893; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); color: #fbbf24; }
.alert-danger  { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.2);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.2);  color: #93c5fd; }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--c-navy);
  border-top: 1px solid var(--c-navy-border);
  padding: 48px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { max-width: 280px; }

.footer-brand .site-logo { margin-bottom: 16px; }

.footer-desc {
  font-size: 0.88rem;
  color: var(--c-gray-600);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-gray-400);
  margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--c-gray-600);
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--c-gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--c-navy-border);
  font-size: 0.8rem;
  color: var(--c-gray-600);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* =========================================================
   LOADING & EMPTY STATES
   ========================================================= */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--c-navy-border);
  border-top-color: var(--c-gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 16px;
}

.empty-state-icon { font-size: 3rem; opacity: 0.3; }
.empty-state-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--c-gray-400); text-transform: uppercase; }
.empty-state-desc { font-size: 0.9rem; color: var(--c-gray-600); max-width: 320px; }

/* =========================================================
   PROFILE PAGE
   ========================================================= */
.profile-header {
  background: linear-gradient(135deg, var(--c-navy-mid), var(--c-navy-light));
  border: 1px solid var(--c-navy-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--c-gold);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--c-gold);
}

.profile-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin-top: 16px;
}

.profile-stat { display: flex; flex-direction: column; gap: 2px; }

.profile-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--c-gold);
}

.profile-stat-label {
  font-size: 0.75rem;
  color: var(--c-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   ADMIN STYLES
   ========================================================= */
.admin-notice-mundial {
  background: var(--c-navy-mid);
  border-left: 4px solid var(--c-gold);
  color: var(--c-white);
  padding: 12px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */
.text-gold { color: var(--c-gold); }
.text-muted { color: var(--c-gray-400); }
.text-success { color: var(--c-success); }
.text-danger { color: var(--c-danger); }
.text-warning { color: var(--c-warning); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.font-display { font-family: var(--font-display); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up { animation: fadeInUp .5s ease both; }
.animate-fade-in { animation: fadeIn .4s ease both; }

/* stagger delays */
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* =========================================================
   RESPONSIVE HELPERS
   ========================================================= */
@media (max-width: 768px) {
  .section { padding-block: 48px; }
  .section-lg { padding-block: 64px; }
  .hide-mobile { display: none !important; }
  .hero-stats { gap: 24px; }
  .countdown-num { font-size: 2rem; min-width: 60px; }
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .card-body { padding: 16px; }
}
