/* =====================================================
   QUINIELA MUNDIAL 2026 — Design System
   Paleta: Verde futbol + Dorado + Oscuro profundo
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --green-primary: #00c853;
  --green-dark:    #00962f;
  --green-light:   #69f0ae;
  --gold:          #ffd600;
  --gold-dark:     #f9a825;
  --bg-900:        #0a0e1a;
  --bg-800:        #0f1528;
  --bg-700:        #16213e;
  --bg-600:        #1a2744;
  --surface:       rgba(22, 33, 62, 0.85);
  --surface-light: rgba(255,255,255,0.06);
  --border:        rgba(255,255,255,0.10);
  --text-primary:  #f0f4ff;
  --text-secondary:#9aa5c0;
  --text-muted:    #5a6580;
  --red:           #ff4444;
  --accent-primary: var(--green-primary);
  --accent-secondary: var(--gold);
  --accent-blue:   #6482ff;
  --accent-cyan:   #45d6ff;
  --accent-orange: #ff8a2a;
  --accent-lime:   #c8ff3d;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --shadow-card:   0 8px 32px rgba(0,0,0,0.45);
  --shadow-glow:   0 0 30px rgba(0,200,83,0.18);
  --transition:    0.25s ease;
  --bg:            var(--bg-900);
  --bg-soft:       var(--bg-800);
  --card:          var(--surface);
  --card-border:   var(--border);
  --text:          var(--text-primary);
  --accent:        var(--accent-primary);
  --accent-2:      var(--accent-secondary);
}

/* Tema visual base Mundial 2026. */
body.theme-worldcup {
  --green-primary: #00e676;
  --green-dark:    #00b852;
  --green-light:   #7dffb3;
  --gold:          #d9ff32;
  --gold-dark:     #ffb21f;
  --bg-900:        #050b19;
  --bg-800:        #071329;
  --bg-700:        #0d2140;
  --bg-600:        #12345b;
  --surface:       rgba(9, 25, 52, 0.88);
  --surface-light: rgba(255,255,255,0.075);
  --border:        rgba(112, 210, 255, 0.18);
  --text-primary:  #f7fbff;
  --text-secondary:#b7c9e8;
  --text-muted:    #7890b7;
  --red:           #ff4f5e;
  --accent-primary:#0072ff;
  --accent-secondary:#00e676;
  --accent-blue:   #0072ff;
  --accent-cyan:   #27d8ff;
  --accent-orange: #ff6b2b;
  --accent-lime:   #d9ff32;
  --shadow-card:   0 10px 36px rgba(0,0,0,0.5);
  --shadow-glow:   0 0 34px rgba(39,216,255,0.17), 0 0 18px rgba(0,230,118,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-900);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Fondo animado ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(0,200,83,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255,214,0,0.07) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-900) 0%, var(--bg-800) 100%);
  z-index: -1;
}

body.theme-worldcup::before {
  background:
    radial-gradient(ellipse 55% 45% at 14% 18%, rgba(0,114,255,0.18) 0%, transparent 62%),
    radial-gradient(ellipse 42% 36% at 84% 16%, rgba(217,255,50,0.10) 0%, transparent 58%),
    radial-gradient(ellipse 48% 42% at 78% 84%, rgba(255,107,43,0.11) 0%, transparent 62%),
    radial-gradient(ellipse 44% 38% at 28% 86%, rgba(0,230,118,0.13) 0%, transparent 60%),
    linear-gradient(135deg, #050b19 0%, #071329 46%, #091f3f 100%);
}

/* ── Tipografía ── */
h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
a  { color: var(--green-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── Contenedor ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.2rem; color: var(--text-primary);
}
.navbar-brand .ball { font-size: 1.5rem; }
.navbar-brand span { color: var(--green-primary); }
.brand-lockup {
  gap: 0;
  letter-spacing: 0;
}
.brand-logo-wrap {
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  position: relative;
}
.brand-logo-wrap-nav {
  width: clamp(180px, 16vw, 260px);
  aspect-ratio: 3201 / 607;
}
.brand-logo-wrap-auth {
  width: min(380px, 82vw);
  aspect-ratio: 2509 / 1486;
  margin: 0 auto;
}
.brand-logo {
  object-fit: contain;
  padding: 0;
  display: block;
}
.brand-logo-navbar {
  position: absolute;
  top: 0;
  left: -2.1%;
  width: 105.5%;
  height: auto;
  transform: translateY(-35.96%);
  object-fit: contain;
}
.brand-logo-display {
  position: absolute;
  top: 0;
  left: -18.1%;
  width: 134.6%;
  height: auto;
  transform: translateY(-32.21%);
  object-fit: contain;
}
.brand-logo-placeholder {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--gold) !important;
}
.brand-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary) !important;
}
.navbar-nav { display: flex; align-items: center; gap: 0.4rem; }
.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border: 1px solid rgba(112,210,255,0.24);
  border-radius: 999px;
  background: rgba(4,13,29,0.64);
  color: var(--accent-lime);
  cursor: pointer;
  font-size: 1.02rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(217,255,50,0.42);
  background: rgba(0,114,255,0.16);
}
.theme-toggle-floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 110;
}
.nav-link {
  padding: 0.45rem 0.9rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover { background: var(--surface-light); color: var(--text-primary); }
.nav-link.active { color: var(--green-primary); }
.landing-partidos-pill {
  border: 1px solid rgba(112,210,255,0.24);
  background: rgba(4,13,29,0.56);
  color: var(--text-primary);
}
.landing-partidos-pill:hover {
  border-color: rgba(217,255,50,0.34);
  background: rgba(0,114,255,0.14);
}

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  color: #fff; box-shadow: 0 4px 15px rgba(0,200,83,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,200,83,0.45); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1a1a; box-shadow: 0 4px 15px rgba(255,214,0,0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255,214,0,0.40); color: #1a1a1a; }
.btn-outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface-light); border-color: var(--green-primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex; align-items: center; gap: 0.7rem;
  margin-bottom: 1.2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.card-header h2, .card-header h3 { margin: 0; }
.card-icon { font-size: 1.5rem; }

/* ── Match Card (Premium & Symmetric) ── */
.group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
.group-header h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.group-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
}

.match-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 260px; /* Force uniform minimum height */
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 200, 83, 0.3);
}

.match-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.match-teams-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  grid-template-rows: 104px 54px;
  align-items: stretch;
  gap: 0.85rem 0.65rem;
  margin-bottom: 1.5rem;
  flex: 1; /* Pushes footer down */
}
.match-team-name {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.16;
  text-align: center;
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  min-height: 104px;
}
.team-with-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 0.15rem 0.1rem;
}
.team-with-flag.compact {
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.35rem;
  width: auto;
  min-height: 0;
  padding: 0;
}
.team-flag {
  width: 32px;
  height: 22px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1;
}
.team-with-flag.compact .team-flag {
  width: 28px;
  height: 19px;
  flex-basis: 28px;
  font-size: 0.82rem;
}
.team-flag-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.team-flag.fallback,
.team-flag-fallback {
  color: var(--gold);
  background: rgba(255,214,0,0.09);
}
.team-flag-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.team-flag-fallback:not([hidden]) {
  display: inline-flex;
}
.team-flag.placeholder {
  color: var(--gold);
  background: rgba(255,214,0,0.09);
}
.team-name-text {
  min-width: 0;
  max-width: 100%;
  min-height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.team-with-flag.compact .team-name-text {
  min-height: 0;
  display: inline;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.match-vs {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-self: center;
  justify-self: stretch;
  grid-column: 2;
  grid-row: 2;
}
.match-score-input {
  width: 60px !important;
  height: 52px;
  text-align: center;
  font-size: 1.3rem !important;
  font-weight: 800;
  padding: 0.5rem !important;
  margin: auto;
  align-self: center;
  justify-self: center;
  border-radius: var(--radius-md);
  background: rgba(10, 14, 26, 0.6);
}
.match-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.landing-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  flex: 1;
}
.landing-match-team {
  min-width: 0;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.08rem);
  line-height: 1.16;
}
.landing-match-vs {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.btn-saved {
  background: rgba(0, 200, 83, 0.15) !important;
  color: var(--green-light) !important;
  border: 1px solid rgba(0, 200, 83, 0.3) !important;
  box-shadow: none !important;
}
.btn-locked {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  border: 1px dashed var(--border) !important;
  cursor: not-allowed;
}

/* ── Formularios ── */
.form-group { margin-bottom: 1.2rem; }
.form-label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  transition: all var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--green-primary);
  background: rgba(0,200,83,0.05);
  box-shadow: 0 0 0 3px rgba(0,200,83,0.12);
}
.form-control::placeholder { color: var(--text-muted); }

/* Estilos globales reutilizables para selects de Muquiniela */
select,
.form-select,
.muqui-select,
.admin-select {
  min-height: 46px;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(4,13,29,0.82);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%),
    linear-gradient(90deg, rgba(112,210,255,0.14), rgba(0,230,118,0.08));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%,
    100% 0;
  background-size: 5px 5px, 5px 5px, 42px 100%;
  background-repeat: no-repeat;
  border: 1px solid rgba(112,210,255,0.22);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  padding-right: 3rem;
}
select.form-control,
.form-control.muqui-select,
.form-control.form-select,
.form-control.admin-select {
  background-color: rgba(4,13,29,0.82);
}
select:hover,
.form-select:hover,
.muqui-select:hover,
.admin-select:hover {
  border-color: rgba(39,216,255,0.42);
  background-color: rgba(5,20,43,0.92);
}
select:focus,
.form-select:focus,
.muqui-select:focus,
.admin-select:focus {
  border-color: rgba(39,216,255,0.62);
  background-color: rgba(0,114,255,0.12);
  box-shadow: 0 0 0 3px rgba(39,216,255,0.13);
  outline: none;
}
select:disabled,
.form-select:disabled,
.muqui-select:disabled,
.admin-select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
select option,
.form-select option,
.muqui-select option,
.admin-select option {
  background: #071329;
  color: var(--text-primary);
}
select option:checked,
.form-select option:checked,
.muqui-select option:checked,
.admin-select option:checked {
  background: #0d2140;
  color: var(--accent-lime);
}
.form-error {
  color: var(--red); font-size: 0.82rem; margin-top: 0.3rem; display: none;
}
.form-error.show { display: block; }

/* ── Alertas ── */
.alert {
  padding: 0.85rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 1rem; display: none;
}
.alert.show { display: block; }
.alert-error { background: rgba(255,68,68,0.12); border: 1px solid rgba(255,68,68,0.3); color: #ff8a8a; }
.alert-success { background: rgba(0,200,83,0.12); border: 1px solid rgba(0,200,83,0.3); color: var(--green-light); }
.alert-info { background: rgba(100,130,255,0.12); border: 1px solid rgba(100,130,255,0.3); color: #9ab4ff; }

/* ── Hero Section ── */
.hero {
  min-height: 88vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.5rem;
  position: relative; overflow: hidden;
}
.hero-brand-logo {
  width: min(420px, 86vw);
  aspect-ratio: 2509 / 1486;
  margin: 0 auto 1.35rem;
  overflow: hidden;
  position: relative;
}
.hero-brand-logo img {
  display: block;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(0,200,83,0.12); border: 1px solid rgba(0,200,83,0.3);
  color: var(--green-light); padding: 0.35rem 0.9rem;
  border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.hero-title { margin-bottom: 1rem; line-height: 1.15; }
.hero-title .highlight {
  background: linear-gradient(135deg, var(--green-primary), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--text-secondary); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }
.landing-participants-badge {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: -0.75rem auto 1.35rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(217,255,50,0.26);
  border-radius: 999px;
  background: rgba(217,255,50,0.08);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}
.landing-participants-badge strong {
  color: var(--accent-lime);
  font-family: 'Outfit', sans-serif;
  font-size: 1.08em;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-final-cta-inner { text-align: center; }
.landing-final-cta p { max-width: 500px; margin: 0.8rem auto 1.5rem; color: var(--text-secondary); line-height: 1.55; }
.landing-final-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }

/* ── Secciones ── */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2.5rem; }

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ── Tabla de Ranking ── */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th {
  text-align: left; padding: 0.7rem 1rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.ranking-table td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.92rem; }
.ranking-table tr:hover td { background: var(--surface-light); }
.section-copy {
  color: var(--text-secondary);
  margin: -0.6rem 0 1.2rem;
  max-width: 760px;
}
.table-match-teams {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.table-match-teams > span:not(.team-with-flag) {
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.rank-pos { font-weight: 800; font-size: 1.1rem; width: 50px; }
.rank-1 { color: var(--gold); }
.rank-2 { color: #b0bec5; }
.rank-3 { color: #cd7f32; }
.rank-pts {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem;
  color: var(--green-primary);
}

/* ── Ranking Board ── */
.ranking-board-card {
  background: rgba(15,21,40,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  width: min(1920px, calc(100vw - 310px));
}
.ranking-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.ranking-count {
  justify-self: end;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ranking-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.55rem;
}
.ranking-column {
  min-width: 300px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.ranking-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  background: rgba(0,200,83,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ranking-column-header strong {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ranking-column-header span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.ranking-list {
  display: flex;
  flex-direction: column;
}
.ranking-column-legend {
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}
.ranking-row {
  display: grid;
  grid-template-columns: 32px 42px minmax(102px, 1fr) 40px 30px 34px;
  gap: 0.28rem;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.045);
}
.ranking-row:last-child {
  border-bottom: none;
}
.ranking-row:hover {
  background: rgba(255,255,255,0.045);
}
.ranking-row.is-me {
  background: rgba(0,200,83,0.13);
  box-shadow: inset 3px 0 0 var(--green-primary);
}
.ranking-row.is-top-1 { background: linear-gradient(90deg, rgba(255,214,0,0.15), rgba(255,255,255,0.03)); }
.ranking-row.is-top-2 { background: linear-gradient(90deg, rgba(176,190,197,0.13), rgba(255,255,255,0.03)); }
.ranking-row.is-top-3 { background: linear-gradient(90deg, rgba(205,127,50,0.13), rgba(255,255,255,0.03)); }
.ranking-position {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
}
.ranking-movement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(255,255,255,0.055);
  color: var(--text-muted);
}
.ranking-movement.up {
  color: var(--green-light);
  background: rgba(0,200,83,0.12);
}
.ranking-movement.down {
  color: #ff8a8a;
  background: rgba(255,68,68,0.12);
}
.ranking-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ranking-name-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 0;
  text-align: left;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.ranking-name-button:hover span {
  color: var(--green-light);
}
.ranking-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.ranking-name em {
  flex-shrink: 0;
  color: var(--green-light);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}
.ranking-stat {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.18rem;
}
.ranking-stat span {
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}
.ranking-points {
  color: var(--green-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
}

/* ── Badge de estado ── */
/* Simulator */
.simulator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.05rem 0 0.85rem;
}
.simulator-help {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin: 0.65rem 0 1.1rem;
  line-height: 1.45;
}
.simulator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 1.15rem;
  align-items: start;
}
.simulator-card,
.simulator-locked {
  background: rgba(15,21,40,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.simulator-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.simulator-card-header strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
}
.simulator-card-header span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
}
.simulator-group + .simulator-group { margin-top: 1rem; }
.simulator-group h3 {
  margin: 0 0 0.55rem;
  color: var(--text-secondary);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.simulator-match-list {
  display: grid;
  gap: 0.55rem;
}
.simulator-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 132px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
}
.simulator-match-row.is-simulated {
  border-color: rgba(0,230,118,0.32);
  background: rgba(0,230,118,0.055);
}
.simulator-teams {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-weight: 800;
}
.simulator-teams > strong {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.simulator-score-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.simulator-score-inputs .form-control {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  padding: 0.55rem 0.35rem;
}
.simulator-official {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}
.simulator-official strong {
  display: block;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}
.simulator-ranking-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
}
.simulator-ranking-table-wrap { overflow-x: visible; }
.simulator-ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.65rem;
  table-layout: auto;
}
.simulator-ranking-table thead {
  display: none;
}
.simulator-ranking-table tbody,
.simulator-ranking-table tr {
  display: block;
  width: 100%;
}
.simulator-ranking-table tr {
  padding: 0.85rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
}
.simulator-ranking-table th,
.simulator-ranking-table td {
  padding: 0;
  border-bottom: 0;
  font-size: 0.8rem;
  text-align: left;
}
.simulator-ranking-table td {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.simulator-ranking-table td:nth-child(1) {
  min-width: 42px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  color: var(--gold);
  vertical-align: top;
}
.simulator-ranking-table td:nth-child(2)::before {
  content: 'Actual: ';
  color: var(--text-muted);
  font-weight: 800;
}
.simulator-ranking-table td:nth-child(4)::before {
  content: 'Cambio: ';
  color: var(--text-muted);
  font-weight: 800;
}
.simulator-ranking-table td:nth-child(5)::before {
  content: 'Puntos simulados: ';
  color: var(--text-muted);
  font-weight: 800;
}
.simulator-ranking-table td:nth-child(6)::before {
  content: 'Dif: ';
  color: var(--text-muted);
  font-weight: 800;
}
.simulator-ranking-table td:nth-child(3) {
  display: -webkit-box;
  width: calc(100% - 48px);
  margin-left: 0.45rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.22;
  font-weight: 800;
  font-size: 0.95rem;
  vertical-align: top;
}
.simulator-ranking-table td:nth-child(n+2):not(:nth-child(3)) {
  margin-top: 0.55rem;
  margin-right: 0.8rem;
  color: var(--text-secondary);
  font-weight: 800;
}
.simulator-ranking-table tr.is-me {
  background: rgba(0,200,83,0.12);
  box-shadow: inset 3px 0 0 var(--green-primary);
}
.simulator-ranking-table td.positive {
  color: var(--green-light);
  font-weight: 900;
}
.simulator-ranking-table td.negative {
  color: #ff8a8a;
  font-weight: 900;
}

.badge {
  display: inline-block; padding: 0.2rem 0.65rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}
.badge-scheduled { background: rgba(100,130,255,0.15); color: #9ab4ff; }
.badge-live { background: rgba(0,200,83,0.15); color: var(--green-light); animation: pulse 1.5s infinite; }
.badge-finished { background: rgba(90,101,128,0.2); color: var(--text-muted); }
.badge-paid { background: rgba(0,200,83,0.15); color: var(--green-light); }
.badge-pending { background: rgba(255,214,0,0.12); color: var(--gold); }

/* ── Auth Layout ── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-logo {
  text-align: center; margin-bottom: 0.75rem;
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem;
}
.auth-logo .ball { font-size: 2.5rem; display: block; margin-bottom: 0.3rem; }
.auth-logo .brand-wordmark {
  display: block;
  font-size: 1.65rem;
}
.auth-card-title {
  justify-content: center;
  border: none;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.auth-card-title h2 { font-size: 1.3rem; }
.auth-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
}
.auth-footer { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; color: var(--text-secondary); }

/* ── Dashboard Layout ── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; min-height: 100vh; padding: 1.5rem; }
.dashboard-layout main { min-width: 0; }
.sidebar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  height: fit-content; position: sticky; top: 80px;
}
.sidebar-brand { display: none; }
.sidebar-brand .brand-logo-wrap {
  width: 46px;
  height: 46px;
}
.sidebar-brand .brand-wordmark {
  font-size: 1.25rem;
}
.sidebar-user { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; margin: 0 auto 0.6rem;
  font-family: 'Outfit', sans-serif;
}
.sidebar-name { font-weight: 700; font-size: 1rem; }
.sidebar-role { font-size: 0.8rem; color: var(--text-muted); }
.sidebar-nav { list-style: none; }
.sidebar-nav.is-loading { visibility: hidden; }
.sidebar-nav li + li { margin-top: 0.2rem; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(0,200,83,0.1); color: var(--green-light);
}
.sidebar-nav a .icon { font-size: 1.1rem; width: 22px; text-align: center; }

/* ── Pool Context ── */
.pool-context {
  background:
    linear-gradient(135deg, rgba(0,200,83,0.13), rgba(255,214,0,0.07)),
    rgba(15,21,40,0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}
.pool-context-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.pool-context h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}
.pool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.pool-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}
.pool-select-wrap .form-label {
  margin-bottom: 0.35rem;
}
.pool-select-wrap[hidden] {
  display: none;
}

/* ── Group Accordion ── */
.group-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.group-toggle-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}
.group-toggle {
  min-height: 68px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.group-toggle span {
  font-weight: 800;
  font-size: 0.95rem;
}
.group-toggle small {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.72rem;
}
.group-toggle:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0,200,83,0.35);
  background: rgba(0,200,83,0.08);
}
.group-toggle.active {
  border-color: rgba(0,200,83,0.65);
  background: linear-gradient(135deg, rgba(0,200,83,0.22), rgba(0,150,47,0.14));
  box-shadow: 0 10px 28px rgba(0,200,83,0.16);
}
.group-toggle.active small {
  color: var(--green-light);
}
.group-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.group-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(10,14,26,0.28);
  padding: 1rem;
}
.group-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.group-panel-header h3 {
  margin: 0;
  font-size: 1.2rem;
}
.group-panel-header span {
  color: var(--green-light);
  font-size: 0.82rem;
  font-weight: 800;
}
.group-match-grid {
  align-items: stretch;
}

/* ── Summary Cards ── */
.section-heading {
  margin-bottom: 1.1rem;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-card {
  min-height: 178px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028)),
    rgba(15,21,40,0.82);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,200,83,0.32);
  box-shadow: var(--shadow-glow);
}
.summary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.summary-icon {
  min-width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
}
.summary-icon.green { background: rgba(0,200,83,0.15); color: var(--green-light); }
.summary-icon.gold  { background: rgba(255,214,0,0.12); color: var(--gold); }
.summary-icon.blue  { background: rgba(100,130,255,0.13); color: #9ab4ff; }
.summary-icon.cyan  { background: rgba(39,216,255,0.13); color: var(--accent-cyan); }
.summary-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.05rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.summary-label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.position-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 30px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.1);
}
.position-change.up {
  color: var(--green-light);
  background: rgba(0,200,83,0.13);
  border-color: rgba(0,200,83,0.28);
}
.position-change.down {
  color: #ff8a8a;
  background: rgba(255,68,68,0.12);
  border-color: rgba(255,68,68,0.28);
}
.position-change.neutral {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
}

/* ── Stats Cards ── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.3rem;
  display: flex; align-items: center; gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  flex-shrink: 0;
}
.stat-icon.green { background: rgba(0,200,83,0.15); }
.stat-icon.gold  { background: rgba(255,214,0,0.12); }
.stat-icon.blue  { background: rgba(100,130,255,0.12); }
.stat-icon.red   { background: rgba(255,68,68,0.12); }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Spinner ── */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--green-primary);
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}
.loading-text { text-align: center; color: var(--text-muted); margin-top: 0.5rem; font-size: 0.9rem; }

/* ── Registration Management ── */
.registration-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.026)),
    rgba(15,21,40,0.82);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}
.registration-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.registration-kicker {
  color: var(--green-light);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.registration-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}
.registration-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.1);
}
.registration-status.pending {
  color: var(--gold);
  background: rgba(255,214,0,0.1);
  border-color: rgba(255,214,0,0.24);
}
.registration-status.verified {
  color: var(--green-light);
  background: rgba(0,200,83,0.13);
  border-color: rgba(0,200,83,0.28);
}
.registration-status.rejected {
  color: #ff8a8a;
  background: rgba(255,68,68,0.12);
  border-color: rgba(255,68,68,0.28);
}
.registration-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.registration-details div {
  min-height: 86px;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.07);
}
.registration-details span {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}
.registration-details strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.25;
}
/* ── Admin Inscriptions ── */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.admin-metrics div {
  min-height: 92px;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}
.admin-metrics span {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-metrics strong {
  display: block;
  margin-top: 0.35rem;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 220px;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.custom-select {
  position: relative;
}
.custom-select-trigger {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.055);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.custom-select-trigger::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus {
  outline: none;
  border-color: rgba(0,200,83,0.55);
  background: rgba(0,200,83,0.07);
  box-shadow: 0 0 0 3px rgba(0,200,83,0.1);
}
.custom-select.open .custom-select-trigger::after {
  transform: rotate(225deg) translateY(-2px);
}
.custom-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  display: none;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  background: rgba(10,14,26,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-card);
  max-height: 260px;
  overflow-y: auto;
}
.custom-select.open .custom-select-menu {
  display: block;
}
.custom-select-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-weight: 750;
  cursor: pointer;
}
.custom-select-menu button:hover,
.custom-select-menu button.selected {
  background: rgba(0,200,83,0.12);
  color: var(--green-light);
}
.admin-feedback {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}
.admin-feedback.success {
  display: block;
  color: var(--green-light);
  background: rgba(0,200,83,0.12);
  border: 1px solid rgba(0,200,83,0.25);
}
.admin-feedback.error {
  display: block;
  color: #ff8a8a;
  background: rgba(255,68,68,0.12);
  border: 1px solid rgba(255,68,68,0.25);
}
.admin-table-card {
  background: rgba(15,21,40,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}
.admin-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.8rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  vertical-align: middle;
  font-size: 0.86rem;
}
.admin-table td strong {
  display: block;
  font-size: 0.92rem;
}
.admin-table td em {
  display: inline-flex;
  margin-top: 0.2rem;
  color: #ff8a8a;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
}
.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 0.45rem;
  min-width: 236px;
}
.admin-actions .btn {
  width: 100%;
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}
.admin-actions .btn:active {
  transform: translateY(1px) !important;
}
.progress-mini {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.progress-mini span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-primary), var(--gold));
}
.progress-action {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.progress-action:hover .progress-mini {
  background: rgba(255,255,255,0.13);
}
.progress-action small {
  display: inline-flex;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 800;
}
.complete-badge {
  display: inline-flex !important;
  margin-left: 0.35rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(0,200,83,0.14);
  color: var(--green-light) !important;
  font-style: normal;
  font-size: 0.68rem !important;
}
.admin-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
}

/* Admin Results */
.results-toolbar {
  grid-template-columns: minmax(240px, 1fr) 170px 170px 170px;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1rem;
}
.result-card {
  background: rgba(15,21,40,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}
.result-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.result-card-top strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}
.result-card-top span:not(.registration-status) {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}
.result-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.result-teams > span {
  color: var(--text-muted);
  font-weight: 900;
  font-size: 0.72rem;
  text-align: center;
}
.result-team {
  min-width: 0;
  display: flex;
  justify-content: center;
  font-weight: 800;
  text-align: center;
}
.result-form {
  display: grid;
  grid-template-columns: 68px minmax(120px, 1fr) 68px;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.result-save-btn {
  grid-column: 1 / -1;
}
.result-score-input {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}
.result-status-select {
  min-height: 44px;
}
.result-status-select.status-scheduled {
  color: #9ee6ff;
  border-color: rgba(39,216,255,0.30);
}
.result-status-select.status-live {
  color: var(--green-light);
  border-color: rgba(0,230,118,0.34);
}
.result-status-select.status-finished {
  color: var(--accent-lime);
  border-color: rgba(217,255,50,0.34);
}
.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.result-meta strong {
  color: var(--accent-lime);
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(3,6,14,0.74);
  backdrop-filter: blur(10px);
}
.modal-backdrop[hidden] {
  display: none;
}
.modal-panel {
  width: min(920px, 100%);
  max-height: min(760px, 92vh);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(15,21,40,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.62);
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-header h3 {
  margin: 0;
  font-size: 1.45rem;
}
.modal-header p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-weight: 700;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  font-size: 1.35rem;
  cursor: pointer;
}
.modal-close:hover {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
}
.modal-progress {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.modal-progress strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
}
.modal-progress span {
  color: var(--green-light);
  font-weight: 800;
}
.predictions-modal-content {
  overflow-y: auto;
  padding: 1rem 1.35rem 1.35rem;
}
.predictions-list {
  display: grid;
  gap: 0.6rem;
}
.prediction-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.prediction-detail-row.completed {
  border-color: rgba(0,200,83,0.18);
}
.prediction-detail-row strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
}
.prediction-detail-row strong span {
  color: var(--text-muted);
  font-weight: 800;
}
.prediction-detail-row small {
  display: block;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 700;
}
.prediction-detail-score {
  justify-self: end;
  min-width: 96px;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--green-light);
  background: rgba(0,200,83,0.1);
}
.prediction-detail-row.pending .prediction-detail-score {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.06);
}

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Animaciones ── */
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.5; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.4s ease forwards; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .container { padding: 0 1rem; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout {
    max-width: 100% !important;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  .results-toolbar {
    grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 170px));
  }
  .ranking-board {
    grid-auto-columns: minmax(350px, 1fr);
  }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .navbar { padding: 0.65rem 0; }
  .navbar .container { padding: 0 0.85rem; }
  .dashboard-layout { grid-template-columns: 1fr; padding: 1rem 0.85rem; }
  .sidebar { position: static; padding: 1rem; border-radius: var(--radius-md); }
  .sidebar-user { margin-bottom: 1rem; padding-bottom: 1rem; }
  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .sidebar-nav a { min-height: 46px; }
  .pool-context { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: 150px; }
  .registration-header { flex-direction: column; }
  .registration-details { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-toolbar { grid-template-columns: 1fr; }
  .results-toolbar { grid-template-columns: 1fr; }
  .simulator-layout { grid-template-columns: 1fr; }
  .simulator-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .simulator-actions .btn {
    width: 100%;
    min-height: 46px;
  }
  .simulator-card { padding: 0.9rem; }
  .simulator-card-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .simulator-help { margin-bottom: 0.9rem; }
  .simulator-match-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }
  .simulator-score-inputs,
  .simulator-official {
    grid-column: 1;
  }
  .simulator-official {
    text-align: left;
  }
  .simulator-score-inputs .form-control {
    min-height: 50px;
    font-size: 1.1rem;
  }
  .result-form {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
  }
  .result-score-input,
  .result-status-select {
    min-height: 48px;
  }
  .result-save-btn { min-height: 46px; }
  .group-toggle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group-toggle { min-height: 64px; padding: 0.75rem; }
  .ranking-board {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .ranking-column { min-width: 0; }
  .ranking-row {
    grid-template-columns: 40px minmax(110px, 1fr) 64px;
    grid-template-areas:
      "pos name points"
      "move name meta";
  }
  .ranking-position { grid-area: pos; }
  .ranking-movement { grid-area: move; min-width: 40px; }
  .ranking-name { grid-area: name; }
  .ranking-points { grid-area: points; }
  .ranking-exacts {
    grid-area: meta;
    text-align: right;
  }
  .ranking-winners {
    display: none;
  }
  .ranking-toolbar {
    grid-template-columns: 1fr;
  }
  .ranking-count {
    justify-self: start;
  }
  .navbar-nav .nav-link { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
  .dashboard-navbar { padding: 0.7rem 0 0.78rem; }
  .dashboard-navbar .container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.6rem;
    padding: 0 0.9rem;
  }
  .dashboard-navbar .navbar-brand { justify-self: center; }
  .dashboard-navbar .brand-logo-wrap-nav { width: clamp(130px, 42vw, 170px); }
  .dashboard-navbar-nav {
    display: grid;
    grid-template-columns: minmax(0, auto) auto auto;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.6rem;
    width: 100%;
  }
  .dashboard-navbar-nav #nav-username {
    display: inline-block;
    max-width: min(54vw, 240px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }
  .dashboard-navbar-nav #logout-btn { min-height: 40px; }
  .dashboard-navbar-nav .theme-toggle { width: 40px; height: 40px; flex-basis: 40px; }
  .dashboard-navbar-nav .navbar-countdown {
    grid-column: 1 / -1;
    justify-self: center;
    width: fit-content;
    max-width: calc(100vw - 1.8rem);
    margin: 0.08rem auto 0;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .dashboard-layout {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
    overflow: hidden;
  }
  .dashboard-layout main,
  .pool-context,
  .section-panel { min-width: 0; max-width: 100%; }
  .pool-context h2 { overflow-wrap: anywhere; }
  .landing-navbar { padding: 0.7rem 0 0.78rem; }
  .landing-navbar .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.62rem;
    padding: 0 0.9rem;
  }
  .landing-navbar .navbar-brand { justify-self: center; }
  .landing-navbar .brand-logo-wrap-nav { width: clamp(130px, 42vw, 170px); }
  .landing-navbar-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.48rem;
    width: 100%;
  }
  .landing-navbar-nav .nav-link,
  .landing-navbar-nav .btn {
    min-height: 40px;
  }
  .landing-navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
  }
  .landing-navbar-nav .navbar-countdown {
    order: 3;
    width: fit-content;
    max-width: calc(100vw - 1.8rem);
    margin: 0.12rem auto 0;
    text-align: center;
  }
  .landing-navbar-nav .theme-toggle {
    position: absolute;
    top: 0;
    right: 0.9rem;
  }
  .landing-final-cta { padding: 3rem 0; }
  .landing-final-cta-inner { padding: 0 1.15rem; }
  .landing-final-cta p { margin-bottom: 1.25rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 0.85rem; }
  .navbar .container { gap: 0.55rem; }
  .navbar-nav #nav-username { display: none; }
  .dashboard-navbar-nav #nav-username { display: inline-block; max-width: 58vw; font-size: 0.8rem !important; }
  .dashboard-navbar .brand-logo-wrap-nav { width: clamp(130px, 42vw, 170px); }
  .dashboard-navbar-nav { gap: 0.38rem 0.5rem; }
  .dashboard-navbar-nav #logout-btn { min-height: 40px; padding: 0.55rem 0.8rem; }
  .dashboard-navbar-nav .navbar-countdown {
    width: fit-content;
    margin: 0.1rem auto 0;
    padding: 0.34rem 0.5rem;
    white-space: normal;
    line-height: 1.2;
  }
  .card { padding: 1.2rem; }
  .section-heading { margin-bottom: 0.85rem; }
  .section-copy { font-size: 0.95rem; margin-bottom: 1rem; }
  .match-teams-grid {
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    grid-template-rows: 112px 52px;
    gap: 0.75rem 0.45rem;
  }
  .match-team-name {
    min-height: 112px;
    font-size: 0.92rem;
  }
  .match-score-input {
    width: 54px !important;
    height: 48px;
  }
  .landing-match-teams {
    grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    gap: 0.45rem;
  }
  .landing-match-team {
    min-height: 118px;
    font-size: 0.92rem;
  }
  .brand-logo-wrap-nav { width: clamp(130px, 42vw, 170px); }
  .brand-logo-wrap-auth { width: min(300px, 82vw); }
  .sidebar-nav { grid-template-columns: 1fr; }
  .pool-context { padding: 1rem; }
  .simulator-actions { grid-template-columns: 1fr; }
  .simulator-card,
  .simulator-locked { padding: 0.8rem; }
  .simulator-teams {
    justify-content: center;
    text-align: center;
  }
  .simulator-score-inputs {
    max-width: 180px;
    margin: 0 auto;
  }
  .simulator-ranking-table tr {
    padding: 0.78rem;
  }
  .simulator-ranking-table td:nth-child(1) {
    min-width: 38px;
    font-size: 1.05rem;
  }
  .simulator-ranking-table td:nth-child(3) {
    width: calc(100% - 44px);
    font-size: 0.92rem;
  }
  .simulator-ranking-table td:nth-child(n+2):not(:nth-child(3)) {
    width: 100%;
    margin-right: 0;
  }
  .result-card { padding: 0.85rem; }
  .result-card-top { flex-direction: column; gap: 0.55rem; }
  .result-teams {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }
  .result-teams > span { order: 2; }
  .result-form {
    grid-template-columns: 1fr 1fr;
  }
  .result-status-select {
    grid-column: 1 / -1;
    order: -1;
  }
  .result-score-input { min-width: 0; }
  .admin-metrics { grid-template-columns: 1fr; }
  .admin-table { min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem;
    background: rgba(255,255,255,0.035);
  }
  .admin-table td {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .admin-table td:last-child { border-bottom: none; }
  .admin-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .admin-table td {
    overflow-wrap: anywhere;
  }
  .ranking-table thead { display: none; }
  .ranking-table,
  .ranking-table tbody,
  .ranking-table tr,
  .ranking-table td {
    display: block;
    width: 100%;
  }
  .ranking-table tr {
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    background: rgba(255,255,255,0.035);
  }
  .ranking-table td {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .ranking-table td:last-child { border-bottom: none; }
  .admin-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .prediction-detail-row {
    grid-template-columns: 1fr;
  }
  .prediction-detail-score {
    justify-self: start;
  }
  .group-toggle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-panel { padding: 0.75rem; }
  .ranking-board-card { padding: 0.65rem; }
  .ranking-row { padding: 0.55rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .landing-navbar .container { gap: 0.52rem; }
  .landing-navbar .brand-logo-wrap-nav { width: clamp(130px, 42vw, 170px); }
  .landing-navbar-nav { gap: 0.38rem; }
  .landing-navbar-nav .nav-link { padding: 0.4rem 0.52rem; font-size: 0.78rem; }
  .landing-navbar-nav .btn {
    min-height: 40px;
    padding: 0.56rem 0.74rem;
    font-size: 0.78rem;
  }
  .landing-navbar-nav .navbar-countdown {
    width: fit-content;
    margin: 0.12rem auto 0;
    padding: 0.34rem 0.54rem;
    white-space: normal;
    line-height: 1.2;
  }
  .landing-final-cta { padding: 2.6rem 0; }
  .landing-final-cta h2 { font-size: 1.5rem; }
  .landing-final-cta p { margin: 0.7rem auto 1.1rem; font-size: 0.94rem; }
  .landing-final-actions { display: grid; grid-template-columns: 1fr; gap: 0.62rem; width: min(100%, 310px); margin: 0 auto; }
  .landing-final-actions .btn { width: 100%; min-height: 46px; }
}

/* Theme Worldcup: acentos vivos sobre base premium. */
body.theme-worldcup .navbar,
body.theme-worldcup .sidebar,
body.theme-worldcup .card,
body.theme-worldcup .ranking-board-card,
body.theme-worldcup .admin-table-card,
body.theme-worldcup .modal-panel {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.028)),
    var(--surface);
  box-shadow: var(--shadow-card);
}

body.theme-worldcup .navbar {
  background:
    linear-gradient(90deg, rgba(0,114,255,0.16), rgba(0,230,118,0.06), rgba(255,107,43,0.08)),
    rgba(5,11,25,0.94);
}

body.theme-worldcup .brand-logo-wrap {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.pool-countdown {
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(217,255,50,0.28);
  border-radius: 6px;
  background: rgba(217,255,50,0.07);
  color: var(--accent-lime);
  font-size: 0.82rem;
  font-weight: 700;
}
.navbar-countdown {
  margin: 0 0.45rem 0 0;
  padding: 0.38rem 0.58rem;
  white-space: nowrap;
  background: rgba(3,12,24,0.74);
  border-color: rgba(217,255,50,0.34);
  color: #f3ffb1;
  font-size: 0.74rem;
  box-shadow: 0 5px 16px rgba(0,0,0,0.18);
}
.pool-countdown.is-closed { border-color: rgba(255,95,64,0.34); background: rgba(255,95,64,0.08); color: #ff927a; }
.submit-confirmation-panel { max-width: 520px; }
.submit-confirmation-copy { margin: 0; padding: 1rem; color: var(--text-secondary); line-height: 1.6; }
.submit-confirmation-actions { display: flex; justify-content: flex-end; gap: 0.7rem; padding: 0 1rem 1rem; }
.statistics-locked { margin-top: 1rem; color: var(--text-secondary); }
.statistics-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.statistics-summary-card,
.statistics-highlights > div,
.statistics-trend-card {
  border: 1px solid rgba(112,210,255,0.18);
  border-radius: 8px;
  background: rgba(4,13,29,0.62);
}
.statistics-summary-card { display: grid; gap: 0.28rem; min-height: 112px; padding: 0.9rem; align-content: center; }
.statistics-summary-card span,
.statistics-highlights span { color: var(--text-muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.statistics-summary-card strong { color: var(--accent-lime); font-size: 1.55rem; }
.statistics-summary-card small,
.statistics-highlights small { color: var(--text-secondary); }
.statistics-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.statistics-highlights > div { display: grid; gap: 0.32rem; padding: 0.9rem; }
.statistics-section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 0.65rem; }
.statistics-section-title h3 { margin: 0; font-size: 1rem; }
.statistics-section-title span { color: var(--text-muted); font-size: 0.76rem; font-weight: 700; }
.statistics-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.statistics-leaders > div { display: grid; gap: 0.32rem; padding: 0.9rem; border: 1px solid rgba(112,210,255,0.18); border-radius: 8px; background: rgba(4,13,29,0.62); }
.statistics-leaders span { color: var(--text-muted); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.statistics-leaders small,
.statistics-empty-note { color: var(--text-secondary); }
.statistics-empty-note { padding: 0.85rem; border-left: 3px solid var(--accent-lime); background: rgba(217,255,50,0.06); font-size: 0.86rem; }
.statistics-toolbar { display: flex; align-items: center; gap: 0.8rem; margin: 1.2rem 0 0.75rem; }
.statistics-toolbar label { color: var(--text-secondary); font-size: 0.85rem; font-weight: 700; }
.statistics-toolbar .muqui-select { width: min(250px, 100%); }
.statistics-trends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.statistics-trend-card { display: grid; grid-template-rows: auto 1fr auto; height: 100%; padding: 0.9rem; }
.statistics-trend-header { display: grid; gap: 0.45rem; }
.statistics-trend-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.45rem; min-height: 76px; }
.statistics-trend-team { min-width: 0; }
.statistics-trend-team .team-with-flag.compact { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; gap: 0.35rem; text-align: center; }
.statistics-trend-team .team-name-text { min-height: 2.6em; display: flex; align-items: center; justify-content: center; overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 0.78rem; line-height: 1.3; }
.statistics-trend-vs { color: var(--text-muted); font-size: 0.7rem; font-weight: 900; }
.statistics-trend-header small,
.statistics-popular-score { color: var(--text-muted); }
.statistics-bars { display: grid; gap: 0.35rem; margin: 0.85rem 0 0.55rem; }
.statistics-bars div { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 0.45rem; }
.statistics-bars span { color: var(--text-secondary); font-size: 0.76rem; }
.statistics-bars i { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.07); }
.statistics-bars b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-blue), var(--green-primary), var(--accent-lime)); }
.statistics-movement-note { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.82rem; }

/* Rules */
.rules-hero,
.rules-card { border: 1px solid rgba(112,210,255,0.18); border-radius: 8px; background: rgba(4,13,29,0.64); }
.rules-hero { padding: 1.2rem; margin-bottom: 0.85rem; }
.rules-hero h2 { margin: 0.28rem 0 0.45rem; }
.rules-hero p,
.rules-card p { color: var(--text-secondary); line-height: 1.55; }
.rules-kicker { color: var(--accent-lime); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.rules-card { padding: 1rem; margin-top: 0.85rem; }
.rules-card h3 { margin: 0 0 0.8rem; }
.rules-score-table { display: grid; gap: 0.42rem; }
.rules-score-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 0.65rem; padding: 0.62rem; border-radius: 6px; background: rgba(255,255,255,0.035); }
.rules-points { display: inline-flex; justify-content: center; width: fit-content; min-width: 54px; padding: 0.24rem 0.42rem; border-radius: 999px; font-size: 0.76rem; font-weight: 900; }
.rules-points.six { color: #d9ff32; background: rgba(217,255,50,0.12); border: 1px solid rgba(217,255,50,0.28); }
.rules-points.four { color: #79e8ff; background: rgba(39,216,255,0.11); border: 1px solid rgba(39,216,255,0.28); }
.rules-points.three { color: #7effaa; background: rgba(0,230,118,0.11); border: 1px solid rgba(0,230,118,0.28); }
.rules-points.one { color: #ffd166; background: rgba(255,209,102,0.11); border: 1px solid rgba(255,209,102,0.28); }
.rules-official-score,
.rules-match-example { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.6rem; text-align: center; }
.rules-official-score { max-width: 430px; margin: 0.85rem auto 1rem; padding: 0.85rem; border: 1px solid rgba(217,255,50,0.24); border-radius: 8px; background: rgba(217,255,50,0.06); }
.rules-official-score strong { color: var(--accent-lime); font-size: 1.35rem; }
.rules-example-grid,
.rules-prize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.rules-example-grid article,
.rules-prize-grid article { padding: 0.8rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; background: rgba(255,255,255,0.035); }
.rules-example-grid p,
.rules-prize-grid p { margin: 0.6rem 0; font-size: 0.86rem; }
.rules-match-example { padding: 0.52rem; border-radius: 6px; background: rgba(0,114,255,0.1); font-size: 0.84rem; }
.rules-match-example strong,
.rules-prize-grid strong { color: var(--accent-lime); }
.rules-prize-distribution { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.7rem; margin: 0.2rem 0 0.85rem; }
.rules-prize-card { display: grid; gap: 0.32rem; align-content: center; min-height: 106px; padding: 0.95rem; border: 1px solid rgba(112,210,255,0.18); border-radius: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)); text-align: center; }
.rules-prize-card span { color: var(--text-secondary); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.rules-prize-card strong { color: var(--accent-lime); font-family: 'Outfit', sans-serif; font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1; }
.rules-prize-card.first { border-color: rgba(217,255,50,0.28); background: linear-gradient(180deg, rgba(217,255,50,0.12), rgba(255,255,255,0.025)); }
.rules-prize-card.second { border-color: rgba(39,216,255,0.24); }
.rules-prize-card.third { border-color: rgba(255,107,43,0.24); }
.rules-prize-note { margin: 0 0 0.9rem; padding: 0.75rem 0.85rem; border-left: 3px solid var(--accent-lime); border-radius: 6px; background: rgba(217,255,50,0.06); font-size: 0.88rem; }

@media (max-width: 768px) {
  .ranking-board-card { width: 100%; }
  .statistics-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-highlights,
  .statistics-trends,
  .statistics-leaders { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .pool-countdown { font-size: 0.75rem; line-height: 1.35; }
  .submit-confirmation-actions { display: grid; grid-template-columns: 1fr; }
  .submit-confirmation-actions .btn { min-height: 44px; }
  .statistics-toolbar { display: grid; }
  .rules-example-grid,
  .rules-prize-grid,
  .rules-prize-distribution { grid-template-columns: 1fr; }
}

body.theme-worldcup .brand-wordmark,
body.theme-worldcup .brand-logo-placeholder {
  color: var(--text-primary) !important;
  text-shadow: 0 0 18px rgba(39,216,255,0.18);
}

body.theme-worldcup .brand-logo-placeholder {
  color: var(--accent-lime) !important;
}

body.theme-worldcup .nav-link:hover,
body.theme-worldcup .sidebar-nav a:hover,
body.theme-worldcup .sidebar-nav a.active {
  background: linear-gradient(90deg, rgba(0,114,255,0.16), rgba(0,230,118,0.10));
  color: var(--accent-lime);
}

body.theme-worldcup .nav-link.active {
  color: var(--accent-lime);
}

body.theme-worldcup .sidebar {
  box-shadow: inset 4px 0 0 rgba(0,114,255,0.42), var(--shadow-card);
}

body.theme-worldcup .sidebar-avatar {
  background: linear-gradient(135deg, var(--accent-blue), var(--green-primary) 52%, var(--accent-lime));
  color: #031221;
  box-shadow: 0 10px 26px rgba(0,114,255,0.25);
}

body.theme-worldcup .btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--green-primary));
  box-shadow: 0 6px 22px rgba(0,114,255,0.28);
}

body.theme-worldcup .btn-primary:hover {
  box-shadow: 0 8px 26px rgba(0,230,118,0.30), 0 0 18px rgba(39,216,255,0.22);
}

body.theme-worldcup .btn-gold {
  background: linear-gradient(135deg, var(--accent-lime), var(--accent-orange));
  color: #06121f;
  box-shadow: 0 5px 18px rgba(217,255,50,0.18);
}

body.theme-worldcup .btn-outline:hover {
  border-color: rgba(39,216,255,0.45);
  background: rgba(0,114,255,0.12);
}

body.theme-worldcup .btn-danger {
  background: linear-gradient(135deg, #ff4f5e, var(--accent-orange));
}

body.theme-worldcup .pool-context {
  background:
    linear-gradient(135deg, rgba(0,114,255,0.22), rgba(0,230,118,0.10) 48%, rgba(255,107,43,0.10)),
    rgba(7,19,41,0.78);
  border-color: rgba(39,216,255,0.24);
}

body.theme-worldcup .pool-chip,
body.theme-worldcup .badge {
  border: 1px solid rgba(255,255,255,0.08);
}

body.theme-worldcup .badge-scheduled,
body.theme-worldcup .summary-icon.blue {
  background: rgba(0,114,255,0.18);
  color: #8ddcff;
}

body.theme-worldcup .badge-live,
body.theme-worldcup .badge-paid,
body.theme-worldcup .complete-badge {
  background: rgba(0,230,118,0.16);
  color: var(--green-light) !important;
}

body.theme-worldcup .badge-pending {
  background: rgba(217,255,50,0.13);
  color: var(--accent-lime);
}

body.theme-worldcup .alert-info {
  background: rgba(0,114,255,0.13);
  border-color: rgba(39,216,255,0.30);
  color: #9ee6ff;
}

body.theme-worldcup .summary-card,
body.theme-worldcup .stat-card,
body.theme-worldcup .registration-card,
body.theme-worldcup .match-card,
body.theme-worldcup .result-card,
body.theme-worldcup .simulator-card,
body.theme-worldcup .simulator-locked,
body.theme-worldcup .group-panel,
body.theme-worldcup .ranking-column,
body.theme-worldcup .admin-metrics > div {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.026)),
    rgba(7,19,41,0.78);
  border-color: rgba(112,210,255,0.18);
}

body.theme-worldcup .summary-card:hover,
body.theme-worldcup .stat-card:hover,
body.theme-worldcup .match-card:hover,
body.theme-worldcup .registration-card:hover {
  border-color: rgba(0,230,118,0.34);
  box-shadow: 0 0 28px rgba(39,216,255,0.16), 0 10px 32px rgba(0,0,0,0.42);
}

body.theme-worldcup .summary-icon.green {
  background: rgba(0,230,118,0.15);
  color: var(--green-light);
}

body.theme-worldcup .summary-icon.gold {
  background: rgba(255,107,43,0.14);
  color: #ffbc76;
}

body.theme-worldcup .group-header::after,
body.theme-worldcup .card-header,
body.theme-worldcup .sidebar-brand,
body.theme-worldcup .sidebar-user,
body.theme-worldcup .match-card-footer {
  border-color: rgba(112,210,255,0.16);
}

body.theme-worldcup .group-header::after {
  background: linear-gradient(to right, rgba(39,216,255,0.4), rgba(0,230,118,0.18), transparent);
}

body.theme-worldcup .group-toggle {
  background: linear-gradient(180deg, rgba(0,114,255,0.10), rgba(255,255,255,0.028));
  border-color: rgba(112,210,255,0.16);
}

body.theme-worldcup .group-toggle:hover:not(:disabled) {
  border-color: rgba(39,216,255,0.42);
  background: linear-gradient(135deg, rgba(0,114,255,0.16), rgba(0,230,118,0.10));
}

body.theme-worldcup .group-toggle.active {
  border-color: rgba(217,255,50,0.56);
  background: linear-gradient(135deg, rgba(0,114,255,0.26), rgba(0,230,118,0.16), rgba(217,255,50,0.08));
  box-shadow: 0 12px 30px rgba(0,114,255,0.16);
}

body.theme-worldcup .group-toggle.active small,
body.theme-worldcup .group-panel-header span,
body.theme-worldcup .ranking-points,
body.theme-worldcup .rank-pts,
body.theme-worldcup .prediction-detail-score,
body.theme-worldcup .modal-progress span {
  color: var(--accent-lime);
}

body.theme-worldcup .match-card {
  position: relative;
  overflow: hidden;
}

body.theme-worldcup .match-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--green-primary), var(--accent-lime), var(--accent-orange));
  opacity: 0.72;
}

body.theme-worldcup .match-vs {
  color: var(--accent-lime);
  background: rgba(0,114,255,0.13);
  border-color: rgba(39,216,255,0.20);
}

body.theme-worldcup .landing-match-vs {
  color: var(--accent-lime);
  background: rgba(0,114,255,0.13);
  border-color: rgba(39,216,255,0.20);
}

body.theme-worldcup .team-flag {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 5px 12px rgba(0,0,0,0.22);
}

body.theme-worldcup .form-control,
body.theme-worldcup .custom-select-trigger,
body.theme-worldcup .match-score-input {
  background: rgba(4,13,29,0.66);
  border-color: rgba(112,210,255,0.18);
}

body.theme-worldcup .form-control:focus,
body.theme-worldcup .custom-select.open .custom-select-trigger,
body.theme-worldcup .custom-select-trigger:focus,
body.theme-worldcup .match-score-input:focus {
  border-color: rgba(39,216,255,0.55);
  background: rgba(0,114,255,0.09);
  box-shadow: 0 0 0 3px rgba(39,216,255,0.11);
}

body.theme-worldcup .custom-select-menu {
  background: rgba(5,11,25,0.98);
  border-color: rgba(112,210,255,0.22);
}

body.theme-worldcup .custom-select-menu button:hover,
body.theme-worldcup .custom-select-menu button.selected {
  background: rgba(0,114,255,0.16);
  color: var(--accent-lime);
}

body.theme-worldcup .ranking-row.is-me {
  box-shadow: inset 3px 0 0 var(--accent-lime);
  background: linear-gradient(90deg, rgba(0,114,255,0.16), rgba(0,230,118,0.07));
}

body.theme-worldcup .progress-mini span {
  background: linear-gradient(90deg, var(--accent-blue), var(--green-primary), var(--accent-lime));
}

body.theme-worldcup .progress-action:hover .progress-mini {
  background: rgba(39,216,255,0.16);
}

.prediction-submit-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(112,210,255,0.2);
  border-radius: 8px;
  background: rgba(0,114,255,0.08);
}
.prediction-submit-card.is-submitted { border-color: rgba(0,230,118,0.34); background: rgba(0,230,118,0.08); }
.prediction-submit-card strong, .prediction-submit-card small, .prediction-submit-kicker { display: block; }
.prediction-submit-kicker { margin-bottom: 0.25rem; color: var(--accent-cyan); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.prediction-submit-card strong { font-size: 1.15rem; }
.prediction-submit-card small { margin-top: 0.22rem; color: var(--text-secondary); }
.prediction-submit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.55rem; }
.prediction-receipt-btn { min-height: 42px; }
.prediction-submit-feedback { grid-column: 1 / -1; min-height: 0; margin: 0; font-size: 0.85rem; }
.prediction-submit-feedback.success { color: var(--green-light); }
.prediction-submit-feedback.error { color: var(--red); }
.prediction-status { display: inline-flex; padding: 0.22rem 0.48rem; border: 1px solid rgba(112,210,255,0.2); border-radius: 999px; color: var(--text-secondary); font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.prediction-status.submitted { border-color: rgba(255,214,0,0.3); color: #ffe16a; }
.prediction-status.approved { border-color: rgba(0,230,118,0.34); color: var(--green-light); }
.prediction-status.reopened { border-color: rgba(39,216,255,0.38); color: var(--accent-cyan); }
.prediction-review-status { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: center; padding: 0 1rem 0.9rem; color: var(--text-secondary); }
.prediction-review-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.simulator-official-note { margin: 0.75rem 0 1rem; padding: 0.75rem 0.9rem; border-left: 3px solid var(--accent-lime); background: rgba(217,255,50,0.06); color: var(--text-secondary); font-size: 0.86rem; }

@media (max-width: 480px) {
  .prediction-submit-card { grid-template-columns: 1fr; }
  .prediction-submit-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .prediction-submit-btn,
  .prediction-receipt-btn { width: 100%; min-height: 44px; }
  .prediction-review-actions { width: 100%; margin-left: 0; }
  .prediction-review-actions .btn { flex: 1 1 150px; min-height: 40px; }
}

html.theme-light body.theme-worldcup,
body.theme-worldcup.theme-light {
  --green-primary: #00a85a;
  --green-dark: #008846;
  --green-light: #007a42;
  --gold: #d8a900;
  --gold-dark: #b67d00;
  --bg-900: #eef4fb;
  --bg-800: #f6f9fd;
  --bg-700: #e3edf8;
  --bg-600: #d5e5f5;
  --surface: rgba(255,255,255,0.88);
  --surface-light: rgba(0,45,92,0.06);
  --border: rgba(0,74,140,0.14);
  --text-primary: #10233d;
  --text-secondary: #49617f;
  --text-muted: #71829a;
  --red: #d73545;
  --accent-primary: #006fe6;
  --accent-secondary: #00a85a;
  --accent-blue: #006fe6;
  --accent-cyan: #008fc2;
  --accent-orange: #e86021;
  --accent-lime: #6f9700;
  --shadow-card: 0 14px 36px rgba(24,61,104,0.12);
  --shadow-glow: 0 0 28px rgba(0,111,230,0.14), 0 10px 28px rgba(0,168,90,0.10);
}

html.theme-light body::before,
body.theme-light::before {
  background:
    radial-gradient(ellipse 55% 45% at 14% 18%, rgba(0,111,230,0.12) 0%, transparent 62%),
    radial-gradient(ellipse 42% 36% at 84% 16%, rgba(0,168,90,0.10) 0%, transparent 58%),
    radial-gradient(ellipse 48% 42% at 78% 84%, rgba(232,96,33,0.08) 0%, transparent 62%),
    linear-gradient(135deg, #eef4fb 0%, #f7fbff 50%, #eaf4ff 100%);
}

html.theme-light body.theme-worldcup .navbar,
body.theme-worldcup.theme-light .navbar {
  background: rgba(248,251,255,0.9);
  box-shadow: 0 10px 28px rgba(24,61,104,0.08);
}

html.theme-light body.theme-worldcup .card,
html.theme-light body.theme-worldcup .sidebar,
html.theme-light body.theme-worldcup .summary-card,
html.theme-light body.theme-worldcup .pool-context,
html.theme-light body.theme-worldcup .registration-card,
html.theme-light body.theme-worldcup .match-card,
html.theme-light body.theme-worldcup .result-card,
html.theme-light body.theme-worldcup .simulator-card,
html.theme-light body.theme-worldcup .group-panel,
html.theme-light body.theme-worldcup .ranking-column,
html.theme-light body.theme-worldcup .admin-metrics > div,
body.theme-worldcup.theme-light .card,
body.theme-worldcup.theme-light .sidebar,
body.theme-worldcup.theme-light .summary-card,
body.theme-worldcup.theme-light .pool-context,
body.theme-worldcup.theme-light .registration-card,
body.theme-worldcup.theme-light .match-card,
body.theme-worldcup.theme-light .result-card,
body.theme-worldcup.theme-light .simulator-card,
body.theme-worldcup.theme-light .group-panel,
body.theme-worldcup.theme-light .ranking-column,
body.theme-worldcup.theme-light .admin-metrics > div {
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,249,255,0.9));
  border-color: rgba(0,74,140,0.14);
}

html.theme-light body.theme-worldcup .theme-toggle,
body.theme-worldcup.theme-light .theme-toggle {
  background: rgba(255,255,255,0.82);
  color: #0f2f58;
  border-color: rgba(0,111,230,0.2);
  box-shadow: 0 8px 22px rgba(24,61,104,0.12);
}

html.theme-light body.theme-worldcup .form-control,
html.theme-light body.theme-worldcup select,
body.theme-worldcup.theme-light .form-control,
body.theme-worldcup.theme-light select {
  background-color: rgba(255,255,255,0.9);
  color: var(--text-primary);
  border-color: rgba(0,74,140,0.16);
}

html.theme-light body.theme-worldcup .team-flag,
body.theme-worldcup.theme-light .team-flag {
  background: rgba(0,45,92,0.04);
  border-color: rgba(0,74,140,0.14);
}

html.theme-light body.theme-worldcup .simulator-official-note,
body.theme-worldcup.theme-light .simulator-official-note {
  background: rgba(0,168,90,0.08);
  color: var(--text-secondary);
}

html.theme-light body.theme-worldcup .alert-info,
body.theme-worldcup.theme-light .alert-info {
  background: linear-gradient(180deg, rgba(232,244,255,0.96), rgba(243,249,255,0.94));
  border-color: rgba(0,111,230,0.22);
  color: #153963;
  box-shadow: 0 10px 26px rgba(24,61,104,0.08);
}

html.theme-light body.theme-worldcup .btn-outline,
body.theme-worldcup.theme-light .btn-outline,
html.theme-light body.theme-worldcup .landing-partidos-pill,
body.theme-worldcup.theme-light .landing-partidos-pill {
  background: rgba(255,255,255,0.74);
  border-color: rgba(0,74,140,0.18);
  color: #14365f;
}

html.theme-light body.theme-worldcup .btn-outline:hover,
body.theme-worldcup.theme-light .btn-outline:hover,
html.theme-light body.theme-worldcup .landing-partidos-pill:hover,
body.theme-worldcup.theme-light .landing-partidos-pill:hover {
  background: rgba(228,243,255,0.92);
  border-color: rgba(0,111,230,0.34);
  color: #05284b;
}

html.theme-light body.theme-worldcup .section-subtitle,
html.theme-light body.theme-worldcup .section-copy,
html.theme-light body.theme-worldcup .hero-subtitle,
html.theme-light body.theme-worldcup .landing-final-cta p,
body.theme-worldcup.theme-light .section-subtitle,
body.theme-worldcup.theme-light .section-copy,
body.theme-worldcup.theme-light .hero-subtitle,
body.theme-worldcup.theme-light .landing-final-cta p {
  color: #3f5876;
}

html.theme-light body.theme-worldcup .landing-participants-badge,
body.theme-worldcup.theme-light .landing-participants-badge {
  background: rgba(255,255,255,0.82);
  border-color: rgba(0,168,90,0.22);
  color: #173653;
}

html.theme-light body.theme-worldcup .ranking-table th,
body.theme-worldcup.theme-light .ranking-table th {
  color: #5d7088;
  border-bottom-color: rgba(0,74,140,0.13);
}

html.theme-light body.theme-worldcup .ranking-table td,
body.theme-worldcup.theme-light .ranking-table td {
  border-bottom-color: rgba(0,74,140,0.08);
}

html.theme-light body.theme-worldcup .custom-select-trigger,
html.theme-light body.theme-worldcup .match-score-input,
html.theme-light body.theme-worldcup .result-score-input,
body.theme-worldcup.theme-light .custom-select-trigger,
body.theme-worldcup.theme-light .match-score-input,
body.theme-worldcup.theme-light .result-score-input {
  background: rgba(255,255,255,0.9);
  color: var(--text-primary);
  border-color: rgba(0,74,140,0.16);
}

html.theme-light body.theme-worldcup .custom-select-menu,
body.theme-worldcup.theme-light .custom-select-menu {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,74,140,0.16);
  box-shadow: 0 18px 36px rgba(24,61,104,0.16);
}

html.theme-light body.theme-worldcup .custom-select-menu button,
body.theme-worldcup.theme-light .custom-select-menu button {
  color: #183755;
}

html.theme-light body.theme-worldcup .custom-select-menu button:hover,
html.theme-light body.theme-worldcup .custom-select-menu button.selected,
body.theme-worldcup.theme-light .custom-select-menu button:hover,
body.theme-worldcup.theme-light .custom-select-menu button.selected {
  background: rgba(0,111,230,0.08);
  color: #05284b;
}

html.theme-light body.theme-worldcup .group-toggle,
html.theme-light body.theme-worldcup .simulator-match-row,
html.theme-light body.theme-worldcup .simulator-ranking-table tr,
html.theme-light body.theme-worldcup .ranking-row,
body.theme-worldcup.theme-light .group-toggle,
body.theme-worldcup.theme-light .simulator-match-row,
body.theme-worldcup.theme-light .simulator-ranking-table tr,
body.theme-worldcup.theme-light .ranking-row {
  background: rgba(255,255,255,0.72);
  border-color: rgba(0,74,140,0.12);
}

html.theme-light body.theme-worldcup .simulator-match-row.is-simulated,
body.theme-worldcup.theme-light .simulator-match-row.is-simulated {
  background: rgba(0,168,90,0.08);
  border-color: rgba(0,168,90,0.28);
}

html.theme-light body.theme-worldcup .group-toggle:hover:not(:disabled),
body.theme-worldcup.theme-light .group-toggle:hover:not(:disabled) {
  background: rgba(228,243,255,0.9);
  border-color: rgba(0,111,230,0.26);
}

html.theme-light body.theme-worldcup .group-toggle.active,
body.theme-worldcup.theme-light .group-toggle.active {
  background: linear-gradient(135deg, rgba(0,111,230,0.12), rgba(0,168,90,0.10));
  border-color: rgba(0,168,90,0.30);
}

html.theme-light body.theme-worldcup .badge-scheduled,
body.theme-worldcup.theme-light .badge-scheduled {
  background: rgba(0,111,230,0.10);
  color: #075db8;
}

html.theme-light body.theme-worldcup .badge-live,
html.theme-light body.theme-worldcup .badge-paid,
html.theme-light body.theme-worldcup .complete-badge,
body.theme-worldcup.theme-light .badge-live,
body.theme-worldcup.theme-light .badge-paid,
body.theme-worldcup.theme-light .complete-badge {
  background: rgba(0,168,90,0.11);
  color: #057444 !important;
}

html.theme-light body.theme-worldcup .badge-pending,
body.theme-worldcup.theme-light .badge-pending {
  background: rgba(216,169,0,0.12);
  color: #946300;
}

html.theme-light body.theme-worldcup .badge-finished,
body.theme-worldcup.theme-light .badge-finished {
  background: rgba(73,97,127,0.10);
  color: #425a78;
}

html.theme-light body.theme-worldcup .rules-hero,
html.theme-light body.theme-worldcup .rules-card,
body.theme-worldcup.theme-light .rules-hero,
body.theme-worldcup.theme-light .rules-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,248,255,0.92));
  border-color: rgba(0,111,230,0.18);
  box-shadow: 0 14px 32px rgba(24,61,104,0.10);
}

html.theme-light body.theme-worldcup .rules-hero p,
html.theme-light body.theme-worldcup .rules-card p,
body.theme-worldcup.theme-light .rules-hero p,
body.theme-worldcup.theme-light .rules-card p {
  color: #344f70;
}

html.theme-light body.theme-worldcup .rules-kicker,
html.theme-light body.theme-worldcup .rules-match-example strong,
html.theme-light body.theme-worldcup .rules-prize-grid strong,
body.theme-worldcup.theme-light .rules-kicker,
body.theme-worldcup.theme-light .rules-match-example strong,
body.theme-worldcup.theme-light .rules-prize-grid strong {
  color: #057444;
}

html.theme-light body.theme-worldcup .rules-score-row,
html.theme-light body.theme-worldcup .rules-example-grid article,
html.theme-light body.theme-worldcup .rules-prize-grid article,
html.theme-light body.theme-worldcup .rules-prize-card,
body.theme-worldcup.theme-light .rules-score-row,
body.theme-worldcup.theme-light .rules-example-grid article,
body.theme-worldcup.theme-light .rules-prize-grid article,
body.theme-worldcup.theme-light .rules-prize-card {
  background: rgba(0,74,140,0.045);
  border-color: rgba(0,74,140,0.12);
}

html.theme-light body.theme-worldcup .rules-prize-card.first,
body.theme-worldcup.theme-light .rules-prize-card.first {
  background: rgba(111,151,0,0.09);
  border-color: rgba(111,151,0,0.24);
}

html.theme-light body.theme-worldcup .rules-prize-card span,
body.theme-worldcup.theme-light .rules-prize-card span {
  color: #3f5876;
}

html.theme-light body.theme-worldcup .rules-prize-card strong,
body.theme-worldcup.theme-light .rules-prize-card strong {
  color: #057444;
}

html.theme-light body.theme-worldcup .rules-prize-note,
body.theme-worldcup.theme-light .rules-prize-note {
  background: rgba(111,151,0,0.08);
  color: #344f70;
}

html.theme-light body.theme-worldcup .rules-official-score,
body.theme-worldcup.theme-light .rules-official-score {
  background: rgba(111,151,0,0.08);
  border-color: rgba(111,151,0,0.24);
}

html.theme-light body.theme-worldcup .rules-official-score strong,
body.theme-worldcup.theme-light .rules-official-score strong {
  color: #5c7b00;
}

html.theme-light body.theme-worldcup .rules-match-example,
body.theme-worldcup.theme-light .rules-match-example {
  background: rgba(0,111,230,0.08);
}

html.theme-light body.theme-worldcup .rules-points.six,
body.theme-worldcup.theme-light .rules-points.six {
  color: #526f00;
  background: rgba(111,151,0,0.12);
  border-color: rgba(111,151,0,0.28);
}

html.theme-light body.theme-worldcup .rules-points.four,
body.theme-worldcup.theme-light .rules-points.four {
  color: #006d93;
  background: rgba(0,143,194,0.11);
  border-color: rgba(0,143,194,0.26);
}

html.theme-light body.theme-worldcup .rules-points.three,
body.theme-worldcup.theme-light .rules-points.three {
  color: #007345;
  background: rgba(0,168,90,0.11);
  border-color: rgba(0,168,90,0.26);
}

html.theme-light body.theme-worldcup .rules-points.one,
body.theme-worldcup.theme-light .rules-points.one {
  color: #946300;
  background: rgba(216,169,0,0.12);
  border-color: rgba(216,169,0,0.28);
}

html.theme-light body.theme-worldcup .statistics-summary-card,
html.theme-light body.theme-worldcup .statistics-highlights > div,
html.theme-light body.theme-worldcup .statistics-trend-card,
html.theme-light body.theme-worldcup .statistics-leaders > div,
body.theme-worldcup.theme-light .statistics-summary-card,
body.theme-worldcup.theme-light .statistics-highlights > div,
body.theme-worldcup.theme-light .statistics-trend-card,
body.theme-worldcup.theme-light .statistics-leaders > div {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,248,255,0.92));
  border-color: rgba(0,111,230,0.16);
  box-shadow: 0 14px 32px rgba(24,61,104,0.10);
}

html.theme-light body.theme-worldcup .statistics-section-title h3,
html.theme-light body.theme-worldcup .statistics-summary-card strong,
html.theme-light body.theme-worldcup .statistics-leaders strong,
body.theme-worldcup.theme-light .statistics-section-title h3,
body.theme-worldcup.theme-light .statistics-summary-card strong,
body.theme-worldcup.theme-light .statistics-leaders strong {
  color: #10233d;
}

html.theme-light body.theme-worldcup .statistics-summary-card span,
html.theme-light body.theme-worldcup .statistics-highlights span,
html.theme-light body.theme-worldcup .statistics-leaders span,
html.theme-light body.theme-worldcup .statistics-section-title span,
html.theme-light body.theme-worldcup .statistics-trend-header small,
html.theme-light body.theme-worldcup .statistics-popular-score,
html.theme-light body.theme-worldcup .statistics-trend-vs,
body.theme-worldcup.theme-light .statistics-summary-card span,
body.theme-worldcup.theme-light .statistics-highlights span,
body.theme-worldcup.theme-light .statistics-leaders span,
body.theme-worldcup.theme-light .statistics-section-title span,
body.theme-worldcup.theme-light .statistics-trend-header small,
body.theme-worldcup.theme-light .statistics-popular-score,
body.theme-worldcup.theme-light .statistics-trend-vs {
  color: #5d7088;
}

html.theme-light body.theme-worldcup .statistics-summary-card small,
html.theme-light body.theme-worldcup .statistics-highlights small,
html.theme-light body.theme-worldcup .statistics-leaders small,
html.theme-light body.theme-worldcup .statistics-bars span,
html.theme-light body.theme-worldcup .statistics-movement-note,
body.theme-worldcup.theme-light .statistics-summary-card small,
body.theme-worldcup.theme-light .statistics-highlights small,
body.theme-worldcup.theme-light .statistics-leaders small,
body.theme-worldcup.theme-light .statistics-bars span,
body.theme-worldcup.theme-light .statistics-movement-note {
  color: #3f5876;
}

html.theme-light body.theme-worldcup .statistics-bars i,
body.theme-worldcup.theme-light .statistics-bars i {
  background: rgba(0,74,140,0.10);
  box-shadow: inset 0 0 0 1px rgba(0,74,140,0.06);
}

html.theme-light body.theme-worldcup .statistics-empty-note,
body.theme-worldcup.theme-light .statistics-empty-note {
  background: rgba(111,151,0,0.08);
  border-color: rgba(111,151,0,0.26);
  color: #344f70;
}

html.theme-light body.theme-worldcup .statistics-trend-team .team-with-flag.compact,
body.theme-worldcup.theme-light .statistics-trend-team .team-with-flag.compact {
  color: #10233d;
}

html.theme-light body.theme-worldcup .statistics-trend-team .team-name-text,
body.theme-worldcup.theme-light .statistics-trend-team .team-name-text {
  color: #10233d;
}

@media (max-width: 768px) {
  .predictions-card {
    padding: 0.85rem;
  }

  .predictions-table,
  .predictions-table tbody,
  .predictions-table tr,
  .predictions-table td {
    display: block;
    width: 100%;
  }

  .predictions-table thead {
    display: none;
  }

  .predictions-table tr {
    padding: 0.9rem;
    border: 1px solid rgba(112,210,255,0.14);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
  }

  .predictions-table tr + tr {
    margin-top: 0.75rem;
  }

  .predictions-table td {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .predictions-table td:last-child {
    border-bottom: 0;
  }

  .predictions-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .predictions-table td[data-label="Partido"] {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .predictions-table td[data-label="Partido"]::before {
    margin-bottom: 0.1rem;
  }

  .predictions-table .table-match-teams {
    justify-content: center;
    padding: 0.55rem;
    border-radius: 7px;
    background: rgba(0,114,255,0.08);
  }
}

@media (max-width: 480px) {
  .predictions-table td {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    text-align: left;
  }

  .predictions-table .table-match-teams {
    justify-content: flex-start;
  }
}

html.theme-light body.theme-worldcup .predictions-table tr,
body.theme-worldcup.theme-light .predictions-table tr {
  background: rgba(255,255,255,0.76);
  border-color: rgba(0,74,140,0.12);
}

html.theme-light body.theme-worldcup .predictions-table td,
body.theme-worldcup.theme-light .predictions-table td {
  border-bottom-color: rgba(0,74,140,0.08);
}

html.theme-light body.theme-worldcup .predictions-table .table-match-teams,
body.theme-worldcup.theme-light .predictions-table .table-match-teams {
  background: rgba(0,111,230,0.07);
}
