/* ─── Mundial 2026 ISTRA · stylesheet ─── */
:root {
  /* Colores anfitriones */
  --mx-green: #006847;
  --mx-white: #ffffff;
  --mx-red: #ce1126;
  --us-blue: #0a3161;
  --us-red: #b31942;
  --ca-red: #d80621;
  /* UI */
  --bg-0: #050510;
  --bg-1: #0d0d1a;
  --bg-2: #14142a;
  --bg-3: #1c1c3a;
  --text: #f5f5f8;
  --text-dim: #a8a8c0;
  --text-muted: #6e6e88;
  --accent: #ffd700;
  --accent-2: #ff6b35;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  /* Gradientes */
  --grad-mx: linear-gradient(135deg, var(--mx-green) 0%, var(--mx-white) 50%, var(--mx-red) 100%);
  --grad-host: linear-gradient(135deg, var(--mx-green) 0%, var(--mx-red) 40%, var(--us-blue) 75%, var(--ca-red) 100%);
  --grad-hot: linear-gradient(135deg, #ff6b35, #ce1126);
  --grad-gold: linear-gradient(135deg, #ffd700, #ff8a00);
  --shadow-glow: 0 8px 32px rgba(206, 17, 38, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  font-family: inherit; font-size: 15px;
  background: var(--bg-3); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; width: 100%;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--mx-green);
  box-shadow: 0 0 0 3px rgba(0, 104, 71, 0.2);
}

/* ─── Fondo animado con orbs ─── */
.bg-orbs {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}
.orb-green { background: var(--mx-green); width: 500px; height: 500px; top: -100px; left: -100px; }
.orb-red { background: var(--mx-red); width: 400px; height: 400px; top: 30%; right: -100px; animation-delay: -7s; }
.orb-blue { background: var(--us-blue); width: 450px; height: 450px; bottom: -100px; left: 30%; animation-delay: -14s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.9); }
}

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(5, 5, 16, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-istra { height: 44px; width: auto; filter: brightness(1.05) drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.nav-title { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }
.nav-2026 { color: var(--mx-red); margin-left: 6px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px; }
.nav-actions { display: flex; gap: 10px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); padding: 13px 26px; }
.btn-primary {
  background: var(--grad-hot); color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(206, 17, 38, 0.4); }
.btn-hero {
  background: var(--grad-mx); color: #111; font-weight: 800; font-size: 17px;
  padding: 16px 38px; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 104, 71, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  position: relative; overflow: hidden;
}
.btn-hero::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.8s;
}
.btn-hero:hover::before { transform: translateX(100%); }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }

/* ─── Hero brand strip (logos grandes con efecto agua) ─── */
.hero-brand-strip {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 36px;
  margin-bottom: 32px;
  padding: 22px 44px;
  background: linear-gradient(135deg, rgba(0,104,71,0.18), rgba(206,17,38,0.12), rgba(10,49,97,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-brand-strip::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 60% 80% at 25% 50%, rgba(0,104,71,0.4) 0%, transparent 50%),
    radial-gradient(ellipse 50% 70% at 75% 50%, rgba(206,17,38,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(10,49,97,0.4) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(255,215,0,0.18) 0%, transparent 55%);
  animation: water 10s ease-in-out infinite;
  pointer-events: none;
  filter: blur(8px);
}
@keyframes water {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(14px, -6px) rotate(2deg) scale(1.06); }
  50% { transform: translate(-8px, 10px) rotate(-1deg) scale(0.96); }
  75% { transform: translate(8px, 6px) rotate(1.5deg) scale(1.03); }
}
.hero-brand-strip img {
  position: relative; z-index: 1;
  height: 56px; width: auto; max-width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5)) brightness(1.05);
  transition: transform 0.3s;
}
.hero-brand-strip img:hover { transform: translateY(-3px) scale(1.06); }
.hero-brand-dot {
  position: relative; z-index: 1;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

/* ─── Hero ─── */
.hero {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto;
  padding: 64px 24px 60px; text-align: center;
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px);
  padding: 6px 14px 6px 8px; border-radius: 100px; font-size: 13px; color: var(--text-dim);
  margin-bottom: 28px;
}
.badge-flag { font-size: 18px; }
.badge-text { font-weight: 500; letter-spacing: 0.3px; }
.hero-title {
  font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.05;
  letter-spacing: -1.5px; margin-bottom: 24px;
}
.hero-title-grad {
  background: linear-gradient(135deg, var(--mx-green), #ffeb3b, var(--mx-red));
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 6s ease infinite;
}
@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-title-sub { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 0.65em; letter-spacing: 4px; color: var(--text-dim); }
.hero-desc {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-dim);
  max-width: 600px; margin: 0 auto 38px; line-height: 1.55;
}
.hero-desc strong { color: var(--accent); font-weight: 700; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* Countdown */
.countdown {
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 24px 32px; border-radius: 20px; max-width: 540px; margin: 0 auto;
}
.countdown-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; }
.countdown-grid { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.countdown-cell {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
  padding: 14px 18px; border-radius: 14px; min-width: 78px;
}
.countdown-cell span {
  display: block; font-family: 'Bebas Neue', sans-serif; font-size: 38px; line-height: 1;
  background: linear-gradient(180deg, #fff, #c8c8d8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; letter-spacing: 1px;
}
.countdown-cell small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.countdown-foot { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* Floating ball */
.hero-ball {
  position: absolute; top: -10px; right: 8%; font-size: 64px;
  animation: bounce 3s ease-in-out infinite, spin 8s linear infinite;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
  pointer-events: none;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Stats bar ─── */
.stats-bar {
  position: relative; z-index: 1; max-width: 1100px; margin: 0 auto 60px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 28px 24px; border-radius: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 42px; line-height: 1;
  background: linear-gradient(135deg, var(--mx-green), var(--mx-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 1px;
}
.stat-lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ─── Section ─── */
section { position: relative; z-index: 1; }
.section-title {
  text-align: center; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px;
  margin-bottom: 12px;
}
.title-accent {
  background: linear-gradient(135deg, var(--accent), var(--mx-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { text-align: center; color: var(--text-dim); margin-bottom: 40px; font-size: 15px; }

/* ─── Pool explanation ─── */
.pool-explain {
  max-width: 760px; margin: 0 auto 40px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px);
  border-radius: 18px; padding: 28px;
}
.pool-explain-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 16px; background: rgba(255,255,255,0.04); border-radius: 12px;
}
.pool-explain-icon {
  font-size: 28px; width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0,104,71,0.25), rgba(206,17,38,0.15));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.pool-explain-body { min-width: 0; }
.pool-explain-title { font-weight: 700; font-size: 15px; }
.pool-explain-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }
.pool-explain-amount {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 1px;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.pool-explain-plus, .pool-explain-eq {
  text-align: center; font-size: 24px; font-weight: 700;
  color: var(--text-muted); margin: 8px 0;
}
.pool-explain-total {
  margin-top: 18px; padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0,104,71,0.18), rgba(206,17,38,0.12));
  border: 1px solid rgba(255,215,0,0.25); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-around; gap: 14px;
  flex-wrap: wrap;
}
.pool-total-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; text-align: center; }
.pool-total-amount {
  font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: 1; letter-spacing: 1px;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center;
}
.pool-total-projected {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pool-total-sep { font-size: 24px; color: var(--text-muted); }

.prizes-subtitle {
  text-align: center; font-size: 20px; font-weight: 700;
  margin: 20px 0 20px; color: var(--text);
}
.prize-current {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text-muted);
}
.prize-current span { font-weight: 700; color: var(--text-dim); font-size: 14px; }
.prizes-foot {
  text-align: center; margin: 24px auto 0; max-width: 600px;
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
}
.prizes-foot strong { color: var(--text-dim); }

/* ─── Prizes ─── */
.prizes { max-width: 1100px; margin: 0 auto 80px; padding: 0 24px; }
.prize-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: end;
}
.prize-card {
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 32px 24px 28px; border-radius: 18px; text-align: center;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.prize-card:hover { transform: translateY(-6px); }
.prize-medal { font-size: 48px; line-height: 1; margin-bottom: 14px; }
.prize-place { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); }
.prize-amount {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; line-height: 1;
  margin: 8px 0 6px; letter-spacing: 1px;
}
.prize-pct { font-size: 13px; color: var(--text-muted); }
.prize-gold {
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.18), rgba(255, 138, 0, 0.08));
  border-color: rgba(255, 215, 0, 0.4);
  padding-top: 50px; padding-bottom: 38px;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.15);
}
.prize-gold .prize-amount { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prize-silver { background: linear-gradient(160deg, rgba(192, 192, 192, 0.12), rgba(160, 160, 180, 0.05)); }
.prize-bronze { background: linear-gradient(160deg, rgba(205, 127, 50, 0.12), rgba(150, 90, 30, 0.05)); }
.prize-shine {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  animation: shine 3s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0%, 100% { transform: translateX(-30%) translateY(-30%); } 50% { transform: translateX(30%) translateY(30%); } }

/* ─── How ─── */
.how { max-width: 1100px; margin: 0 auto 80px; padding: 0 24px; }
.how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
  margin-top: 30px;
}
.how-step {
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 28px 22px; border-radius: 16px; text-align: center;
  transition: transform 0.25s, border 0.25s;
}
.how-step:hover { transform: translateY(-4px); border-color: rgba(206, 17, 38, 0.35); }
.how-num {
  width: 44px; height: 44px; margin: 0 auto 16px;
  background: var(--grad-hot); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff;
  box-shadow: var(--shadow-glow);
}
.how-step h3 { font-size: 17px; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.how-step strong { color: var(--text); }

/* ─── Scoring ─── */
.scoring { max-width: 760px; margin: 0 auto 80px; padding: 0 24px; }
.score-grid {
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(20px);
  border-radius: 16px; overflow: hidden;
  margin-top: 30px;
}
.score-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  font-size: 15px; transition: background 0.15s;
}
.score-row:last-child { border-bottom: none; }
.score-row:hover { background: rgba(255, 255, 255, 0.03); }
.score-row strong {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score-row-hot { background: linear-gradient(90deg, rgba(206, 17, 38, 0.1), transparent); }
.score-row-mega strong {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 28px;
}

/* ─── Fiti section ─── */
.fiti-section { max-width: 1100px; margin: 0 auto 80px; padding: 0 24px; }
.fiti-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, rgba(0, 104, 71, 0.15), rgba(206, 17, 38, 0.15));
  border: 1px solid var(--border); backdrop-filter: blur(20px);
  padding: 36px; border-radius: 22px;
}
.fiti-avatar {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
}
.fiti-content h3 { font-size: 26px; margin-bottom: 10px; }
.fiti-content p { color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
.fiti-content strong { color: var(--text); }
.fiti-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; }
.fiti-list li { font-size: 14px; color: var(--text-dim); }

/* ─── Brands (sección "Una iniciativa de" con fondo agua) ─── */
.brands {
  position: relative;
  text-align: center;
  margin: 0 auto 80px;
  max-width: 1100px;
  padding: 56px 24px 60px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(0,104,71,0.15), transparent 70%),
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(10,49,97,0.15), transparent 70%);
  border: 1px solid rgba(255,255,255,0.06);
}
.brands::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,104,71,0.18) 0%, transparent 35%),
    radial-gradient(circle at 80% 50%, rgba(206,17,38,0.18) 0%, transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(255,215,0,0.12) 0%, transparent 40%);
  animation: water 14s ease-in-out infinite reverse;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.7;
}
.brands-label {
  position: relative; z-index: 1;
  font-size: 13px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 32px; font-weight: 600;
}
.brands-row {
  position: relative; z-index: 1;
  display: flex; gap: 72px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.brand-logo {
  height: 68px; width: auto; max-width: 220px;
  opacity: 0.95; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  transition: transform 0.3s, filter 0.3s;
}
.brand-logo:hover { transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 8px 24px rgba(255,215,0,0.3)); }

/* ─── Final CTA ─── */
.final-cta {
  max-width: 800px; margin: 0 auto 60px; padding: 60px 24px; text-align: center;
  background: linear-gradient(135deg, rgba(0, 104, 71, 0.2), rgba(206, 17, 38, 0.2));
  border: 1px solid var(--border); backdrop-filter: blur(20px); border-radius: 24px;
}
.final-cta h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 12px; line-height: 1.2; }
.final-cta p { color: var(--text-dim); margin-bottom: 28px; font-size: 16px; }

/* ─── Footer ─── */
.footer { text-align: center; padding: 30px 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.footer-small { font-size: 11px; margin-top: 6px; opacity: 0.7; }

/* ─── Modal ─── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 20px;
  max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--text);
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); }
.modal-tabs {
  display: flex; padding: 18px 18px 0; gap: 4px;
}
.modal-tab {
  flex: 1; padding: 12px; border-radius: 10px 10px 0 0;
  color: var(--text-muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent;
}
.modal-tab.active { color: var(--text); border-bottom-color: var(--mx-red); }
.modal-content { padding: 24px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form.hidden { display: none; }
.auth-title { font-size: 20px; margin-bottom: 10px; text-align: center; }
.auth-form label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: -6px; margin-top: 6px; }
.form-err { color: #ff6b35; font-size: 13px; min-height: 18px; margin-top: 4px; }

/* Avatar grid */
.avatar-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 2px; }
.avatar-cell {
  width: 100%; aspect-ratio: 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 2px solid transparent;
  font-size: 20px; cursor: pointer; transition: transform 0.1s;
}
.avatar-cell:hover { transform: scale(1.1); }
.avatar-cell.selected { border-color: var(--mx-red); background: rgba(206, 17, 38, 0.15); }

/* ─── Mobile ─── */
@media (max-width: 720px) {
  .nav-istra { height: 32px; }
  .nav-title { font-size: 14px; }
  .nav-2026 { font-size: 18px; }
  .nav-actions .btn { padding: 8px 12px; font-size: 12px; }
  .hero { padding: 40px 20px 40px; }
  .hero-ball { font-size: 38px; right: 6%; top: -5px; }
  .hero-brand-strip { gap: 16px; padding: 14px 22px; border-radius: 70px; }
  .hero-brand-strip img { height: 38px; max-width: 110px; }
  .hero-brand-dot { width: 4px; height: 4px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .prize-grid { grid-template-columns: 1fr; }
  .prize-gold { padding-top: 32px; }
  .fiti-card { grid-template-columns: 1fr; text-align: center; }
  .fiti-avatar { margin: 0 auto; width: 110px; height: 110px; }
  .countdown { padding: 18px 18px; }
  .countdown-cell { min-width: 64px; padding: 10px 12px; }
  .countdown-cell span { font-size: 30px; }
  .brands { padding: 40px 18px 44px; margin-bottom: 60px; }
  .brands-row { gap: 32px; }
  .brand-logo { height: 44px; max-width: 140px; }
}

/* ─── App page (post-login) ─── */
.app-shell { min-height: 100vh; background: var(--bg-0); }
.app-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px); background: rgba(5, 5, 16, 0.85);
  border-bottom: 1px solid var(--border);
}
.app-nav-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 12px 20px; gap: 12px;
}
.app-user { display: flex; align-items: center; gap: 10px; }
.app-user-emoji { font-size: 28px; }
.app-user-info { display: flex; flex-direction: column; gap: 2px; }
.app-user-name { font-weight: 700; font-size: 14px; }
.app-user-stats { font-size: 12px; color: var(--text-dim); }
.app-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.app-tab {
  padding: 14px 18px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.app-tab.active { color: var(--text); border-bottom-color: var(--mx-red); }
.app-tab:hover:not(.active) { color: var(--text-dim); }
.app-main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.app-section { display: none; }
.app-section.active { display: block; }

/* Match list */
.match-day {
  margin-bottom: 32px;
}
.match-day-h {
  font-size: 14px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.match-day-h.is-today { color: var(--accent); }
.match-card {
  background: var(--glass); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 10px;
  transition: border 0.15s, background 0.15s;
}
.match-card:hover { border-color: rgba(255, 255, 255, 0.18); }
.match-card.is-mexico { background: linear-gradient(135deg, rgba(0,104,71,0.1), rgba(206,17,38,0.1)); border-color: rgba(0, 104, 71, 0.3); }
.match-card.is-locked { opacity: 0.7; }
.match-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.match-meta .phase-badge {
  background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 1px; font-size: 11px;
}
.match-meta .phase-badge.group-A, .match-meta .phase-badge.group-B { background: rgba(0, 104, 71, 0.2); color: #4ade80; }
.match-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center;
}
.team-side { display: flex; align-items: center; gap: 10px; }
.team-side.away { flex-direction: row-reverse; text-align: right; }
.team-flag { font-size: 28px; }
.team-name { font-weight: 600; font-size: 15px; }
.team-name-sub { font-size: 11px; color: var(--text-dim); }
.score-inputs { display: flex; gap: 6px; align-items: center; }
.score-inputs input {
  width: 48px; height: 48px; text-align: center; font-size: 20px; font-weight: 700;
  padding: 0; -moz-appearance: textfield;
}
.score-inputs input::-webkit-outer-spin-button,
.score-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-inputs .vs { color: var(--text-muted); font-size: 14px; padding: 0 4px; }
.match-card.is-finished .score-inputs input { background: rgba(0,0,0,0.4); color: var(--accent); }
.match-result {
  text-align: center; padding: 8px 0; margin-top: 8px;
  font-size: 12px; color: var(--text-dim); border-top: 1px dashed var(--border);
}
.match-result strong { color: var(--text); }
.match-result.is-good { color: #4ade80; }
.match-result.is-perfect { color: var(--accent); font-weight: 700; }
.lock-indicator { font-size: 11px; color: var(--accent-2); }

/* Ranking */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--glass); border: 1px solid var(--border); border-radius: 12px;
  transition: transform 0.15s, border 0.15s;
}
.rank-row:hover { transform: translateX(4px); border-color: rgba(255, 215, 0, 0.3); }
.rank-row.is-me { border-color: var(--mx-red); background: linear-gradient(135deg, rgba(206,17,38,0.1), rgba(0,104,71,0.05)); }
.rank-row.top1 { background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,138,0,0.05)); border-color: rgba(255,215,0,0.3); }
.rank-row.top2 { background: linear-gradient(135deg, rgba(192,192,192,0.1), transparent); }
.rank-row.top3 { background: linear-gradient(135deg, rgba(205,127,50,0.1), transparent); }
.rank-pos { width: 42px; font-family: 'Bebas Neue', sans-serif; font-size: 24px; text-align: center; }
.rank-pos.top1 { color: var(--accent); }
.rank-pos.top2 { color: #c0c0c0; }
.rank-pos.top3 { color: #cd7f32; }
.rank-avatar { font-size: 24px; }
.rank-name { flex: 1; font-weight: 600; }
.rank-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.rank-badge {
  background: rgba(255,255,255,0.06); padding: 2px 8px; border-radius: 100px;
  font-size: 11px; color: var(--text-dim);
}
.rank-pts {
  font-family: 'Bebas Neue', sans-serif; font-size: 26px; min-width: 60px; text-align: right;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Comments */
.comment-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.comment {
  display: flex; gap: 10px;
  padding: 12px 14px; background: var(--glass); border: 1px solid var(--border); border-radius: 12px;
}
.comment-avatar { font-size: 22px; }
.comment-body { flex: 1; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-time { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.comment-text { font-size: 14px; margin-top: 4px; line-height: 1.5; color: var(--text); white-space: pre-wrap; }
.comment-reactions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.reaction-btn {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 100px;
  padding: 2px 10px; font-size: 13px; transition: transform 0.1s, background 0.15s;
}
.reaction-btn:hover { transform: scale(1.05); background: rgba(255,255,255,0.1); }
.reaction-btn.reacted { background: rgba(206,17,38,0.15); border-color: rgba(206,17,38,0.4); }
.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { flex: 1; }
.comment-form button { padding: 11px 18px; }

/* Trivia */
.trivia-card {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,107,53,0.08));
  border: 1px solid rgba(255,215,0,0.3); padding: 28px; border-radius: 18px;
  max-width: 560px; margin: 0 auto;
}
.trivia-q { font-size: 18px; font-weight: 600; margin-bottom: 18px; line-height: 1.4; }
.trivia-opts { display: flex; flex-direction: column; gap: 10px; }
.trivia-opt {
  text-align: left; padding: 14px 18px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 10px; font-size: 14px; transition: transform 0.1s, border 0.15s;
}
.trivia-opt:hover { transform: translateX(4px); border-color: var(--accent); }
.trivia-opt.correct { background: rgba(74, 222, 128, 0.15); border-color: #4ade80; }
.trivia-opt.wrong { background: rgba(206,17,38,0.15); border-color: var(--mx-red); }
.trivia-result { margin-top: 20px; padding: 16px; background: var(--glass); border-radius: 12px; font-size: 14px; line-height: 1.5; }

/* Bracket grid */
.bracket-section { max-width: 560px; margin: 0 auto; }
.bracket-card {
  background: var(--glass); border: 1px solid var(--border); padding: 24px; border-radius: 16px;
  margin-bottom: 16px;
}
.bracket-card h3 { font-size: 16px; margin-bottom: 12px; }
.bracket-card label { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 1px; }
.bracket-card select { margin-bottom: 14px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--bg-2); border: 1px solid var(--border); padding: 14px 22px; border-radius: 100px;
  font-size: 14px; z-index: 200; box-shadow: 0 8px 32px rgba(0,0,0,0.4); transition: transform 0.3s;
  max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(74, 222, 128, 0.4); }
.toast.error { border-color: rgba(206, 17, 38, 0.4); }
