/* ============================================================
   BOLÃO DA COPA 2026
   ============================================================ */

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

/* ── Variáveis ── */
:root {
  --bg:      #07100a;
  --bg2:     #0c1810;
  --card:    #101d13;
  --card2:   #152118;
  --yellow:  #D6FF33;
  --yellow2: #BFEA1A;
  --green:   #22C55E;
  --red:     #F43F5E;
  --white:   #EEF2EA;
  --muted:   rgba(238,242,234,0.42);
  --faded:   rgba(238,242,234,0.15);
  --border:  rgba(238,242,234,0.07);
  --border2: rgba(214,255,51,0.18);
  --radius:  6px;
  --radius-sm: 4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--yellow2); border-radius: 2px; }

/* ── Fundo: campo de futebol ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(12, 50, 18, 0.22) 0px,
    rgba(12, 50, 18, 0.22) 52px,
    rgba(7, 32, 12, 0.13) 52px,
    rgba(7, 32, 12, 0.13) 104px
  );
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.065;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 700'><g fill='none' stroke='white' stroke-width='2.5'><rect x='40' y='20' width='1120' height='660'/><line x1='600' y1='20' x2='600' y2='680'/><circle cx='600' cy='350' r='95'/><circle cx='600' cy='350' r='5' fill='white' stroke='none'/><rect x='40' y='183' width='170' height='334'/><rect x='40' y='275' width='57' height='150'/><circle cx='151' cy='350' r='4' fill='white' stroke='none'/><path d='M210,276 A95,95 0 0,1 210,424'/><rect x='990' y='183' width='170' height='334'/><rect x='1103' y='275' width='57' height='150'/><circle cx='1049' cy='350' r='4' fill='white' stroke='none'/><path d='M990,276 A95,95 0 0,0 990,424'/><path d='M40,34 A14,14 0 0,1 54,20'/><path d='M1146,20 A14,14 0 0,1 1160,34'/><path d='M1160,666 A14,14 0 0,1 1146,680'/><path d='M54,680 A14,14 0 0,1 40,666'/></g></svg>") center/cover no-repeat;
}

/* ── Círculo central do campo (decorativo) ── */
.field-circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(214,255,51,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Navegação ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 58px;
  display: flex;
  align-items: stretch;
  background: #0e1f12;
  border-bottom: 1px solid rgba(214,255,51,0.2);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* ── Botão flutuante Início (desktop) ── */
.fab-home {
  position: fixed;
  top: 70px;
  left: 16px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: #0a1200;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.fab-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.fab-home svg {
  width: 14px; height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .fab-home { display: none; }
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 24px;
  text-decoration: none;
  border-right: 1px solid var(--border);
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: var(--yellow);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(0,0,0,0.25);
  border-radius: 50%;
}

.nav-logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.nav-logo-text span { color: var(--yellow); }

.nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
  padding: 0 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(238,242,234,0.75);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* Botão home destacado no nav */
.nav-home-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--yellow);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-home-btn:hover { background: var(--yellow2); transform: translateY(-1px); }

.nav-home-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.nav-end {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  gap: 10px;
  margin-left: auto;
}

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color 0.15s;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.nav-user-pill:hover { border-color: var(--border2); color: var(--white); }
.nav-user-avatar { font-size: 1rem; }

.nav-demo-badge {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(214,255,51,0.15);
  color: var(--yellow);
  border: 1px solid rgba(214,255,51,0.3);
  border-radius: 3px;
  padding: 2px 6px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0 16px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(7,16,10,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 8px 0;
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 12px 20px; border-bottom: none; border-left: 2px solid transparent; }
.nav-mobile .nav-link.active { border-left-color: var(--yellow); }

/* ── Layout Principal ── */
.main { padding-top: 58px; position: relative; z-index: 1; }
.page { min-height: calc(100vh - 58px); padding: 36px 28px; max-width: 1160px; margin: 0 auto; }

/* ── Cabeçalho de página ── */
.page-header { margin-bottom: 36px; }

.page-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
}

.page-subtitle {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.2s;
}

.card:hover { border-color: rgba(238,242,234,0.14); }

.card-accent {
  border-left: 3px solid var(--yellow);
}

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

/* ── Stat Card ── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--yellow);
}

.stat-card:hover { border-color: var(--border2); }

.stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--yellow);
}

.stat-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: #0a1200;
}
.btn-primary:hover { background: var(--yellow2); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: rgba(238,242,234,0.3); background: var(--card2); }

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { filter: brightness(1.1); }

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { filter: brightness(1.1); }

.btn-ghost {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: rgba(214,255,51,0.06); }

.btn-sm { padding: 7px 14px; font-size: 0.76rem; }
.btn-lg { padding: 14px 28px; font-size: 0.9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Formulários ── */
.form-group { margin-bottom: 16px; }

.login-right .form-label { color: rgba(238,242,234,0.62); }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--yellow);
}

.form-input::placeholder { color: var(--faded); }

.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.form-select:focus { outline: none; border-color: var(--yellow); }

/* ── Score input (Palpites) ── */
.score-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-input {
  width: 56px;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 8px 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--yellow);
  transition: border-color 0.15s;
}

.score-input:focus { outline: none; border-color: var(--yellow); }
.score-sep { font-size: 1.2rem; color: var(--muted); font-weight: 700; }

/* ── Card de jogo ── */
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover { border-color: rgba(238,242,234,0.14); transform: translateY(-1px); }

.game-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card2);
}

.game-stage-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--yellow);
}

.game-date-tag {
  font-size: 0.7rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.game-body {
  display: flex;
  align-items: center;
  padding: 18px 16px;
  gap: 12px;
}

.game-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.game-team-flag { font-size: 2rem; line-height: 1; }

.game-team-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  line-height: 1.2;
}

.game-team-short {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.game-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.game-score {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
}

.game-score-num {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--yellow);
}

.game-score-sep { font-size: 1rem; color: var(--muted); }

.game-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 2px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
}

.game-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
}

.game-venue-text { font-size: 0.7rem; color: var(--muted); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-yellow { background: rgba(214,255,51,0.12); color: var(--yellow); }
.badge-green  { background: rgba(34,197,94,0.12);  color: var(--green);  }
.badge-red    { background: rgba(244,63,94,0.12);   color: var(--red);    }
.badge-gray   { background: rgba(238,242,234,0.06); color: var(--muted);  }

.bet-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.bet-tag-exact   { background: rgba(214,255,51,0.14);  color: var(--yellow); border-left: 2px solid var(--yellow); }
.bet-tag-correct { background: rgba(34,197,94,0.12);   color: var(--green);  border-left: 2px solid var(--green);  }
.bet-tag-wrong   { background: rgba(244,63,94,0.1);    color: var(--red);    border-left: 2px solid var(--red);    }
.bet-tag-pending { background: rgba(238,242,234,0.05); color: var(--muted);  border-left: 2px solid var(--faded);  }

/* ── Section Title ── */
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title-accent { color: var(--yellow); }

/* ── Ranking ── */
.ranking-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
  animation: fadeUp 0.35s ease-out both;
}

.ranking-row:hover { border-color: rgba(238,242,234,0.14); }

.ranking-row.rank-1 { border-left: 3px solid var(--yellow); }
.ranking-row.rank-2 { border-left: 3px solid #9DA5A0; }
.ranking-row.rank-3 { border-left: 3px solid #A87040; }
.ranking-row.rank-me { border-color: rgba(34,197,94,0.4); }

.rank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  width: 56px;
  text-align: center;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  padding: 0 8px;
}

.rank-1 .rank-num { color: var(--yellow); }
.rank-2 .rank-num { color: #9DA5A0; }
.rank-3 .rank-num { color: #A87040; }

.rank-divider { width: 1px; background: var(--border); align-self: stretch; flex-shrink: 0; }

.rank-avatar { font-size: 1.4rem; padding: 0 14px; flex-shrink: 0; }

.rank-info { flex: 1; padding: 14px 0; min-width: 0; }
.rank-name { font-weight: 700; font-size: 0.92rem; }
.rank-sub  { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

.rank-pts {
  padding: 0 20px;
  text-align: right;
  flex-shrink: 0;
}

.rank-pts-num {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--yellow);
  line-height: 1;
}

.rank-pts-label { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

/* ── Chat ── */
.chat-wrap {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 220px);
  min-height: 380px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  animation: fadeUp 0.25s ease-out;
}

.chat-msg.own { flex-direction: row-reverse; }

.chat-avatar { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.chat-bubble {
  max-width: 72%;
  padding: 9px 13px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 0 8px 8px 8px;
}

.chat-msg.own .chat-bubble {
  background: rgba(214,255,51,0.07);
  border-color: var(--border2);
  border-radius: 8px 0 8px 8px;
}

.chat-sender { font-size: 0.68rem; color: var(--yellow); font-weight: 700; margin-bottom: 3px; letter-spacing: 0.3px; }
.chat-msg.own .chat-sender { text-align: right; }
.chat-text { font-size: 0.88rem; line-height: 1.5; }
.chat-time { font-size: 0.63rem; color: var(--muted); margin-top: 4px; }
.chat-msg.own .chat-time { text-align: right; }

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.chat-input {
  flex: 1;
  padding: 9px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}

.chat-input:focus { outline: none; border-color: var(--yellow); }

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 68px; right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toast {
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s ease-out;
  max-width: 300px;
  border-left: 3px solid transparent;
}

.toast-success { background: var(--card2); border-left-color: var(--green);  color: var(--white); }
.toast-error   { background: var(--card2); border-left-color: var(--red);    color: var(--white); }
.toast-info    { background: var(--card2); border-left-color: #60A5FA;        color: var(--white); }
.toast-gold    { background: var(--card2); border-left-color: var(--yellow);  color: var(--yellow); }

/* ── Loading ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,16,10,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 16px;
}

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Login ── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 440px;
}

.login-left {
  background: var(--card);
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}

.login-left-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(214,255,51,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(34,197,94,0.04) 0%, transparent 50%);
}

/* Campo de futebol decorativo */
.login-field-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border: 1px solid rgba(214,255,51,0.06);
  border-radius: 50%;
}

.login-field-art::before {
  content: '';
  position: absolute;
  top: 50%; left: -30px; right: -30px;
  height: 1px;
  background: rgba(214,255,51,0.06);
}

.login-field-art::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 60px; height: 60px;
  border: 1px solid rgba(214,255,51,0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.login-left-content { position: relative; z-index: 1; }

.login-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.login-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.login-headline em { color: var(--yellow); font-style: normal; }

.login-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 340px;
  margin-bottom: 28px;
}

.login-score-demo {
  display: flex;
  gap: 8px;
  align-items: center;
}

.login-score-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
}

.login-score-pts {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yellow);
}

.login-score-label { font-size: 0.7rem; color: var(--muted); font-weight: 600; }

.login-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.login-logo-wrap { margin-bottom: 36px; }

.login-logo-ball {
  width: 40px; height: 40px;
  background: var(--yellow);
  border-radius: 50%;
  margin-bottom: 12px;
  position: relative;
}

.login-logo-ball::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 50%;
}

.login-logo-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.login-logo-sub { font-size: 0.75rem; color: rgba(238,242,234,0.65); margin-top: 4px; }

.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.login-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

/* ── Grupos Filter ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 5px 13px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover { color: var(--white); border-color: rgba(238,242,234,0.2); }
.filter-btn.active { background: var(--yellow); color: #0a1200; border-color: var(--yellow); }

/* ── Dashboard Hero ── */
.dashboard-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.hero-field-line {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 200px;
  border-left: 1px solid rgba(214,255,51,0.05);
}

.hero-field-circle {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px; height: 280px;
  border: 1px solid rgba(214,255,51,0.05);
  border-radius: 50%;
}

.hero-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 8px;
}

.hero-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hero-sub { color: var(--muted); font-size: 0.88rem; }

.countdown-strip {
  display: flex;
  gap: 6px;
  margin-top: 24px;
  align-items: center;
}

.countdown-block {
  text-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 56px;
}

.countdown-num {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--yellow);
  line-height: 1;
}

.countdown-label { font-size: 0.58rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.countdown-colon { font-family: 'Roboto Mono', monospace; font-size: 1.2rem; color: var(--muted); margin-top: -8px; }

/* ── Admin ── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}

.admin-tab {
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.admin-tab:hover { color: var(--white); }
.admin-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }

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

/* ── Table ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 12px 14px; font-size: 0.86rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(238,242,234,0.02); }

/* ── Podium ── */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 40px;
}

.podium-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.podium-avatar-wrap { font-size: 2.2rem; }

.podium-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 14px 28px;
  min-width: 90px;
  gap: 4px;
}

.podium-pos {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
}

.podium-username { font-size: 0.72rem; font-weight: 700; opacity: 0.9; letter-spacing: 0.3px; }
.podium-pts-txt  { font-size: 0.62rem; opacity: 0.7; }

.podium-1 { background: rgba(214,255,51,0.12); border: 1px solid rgba(214,255,51,0.25); height: 130px; }
.podium-2 { background: rgba(157,165,160,0.1); border: 1px solid rgba(157,165,160,0.2);  height: 100px; }
.podium-3 { background: rgba(168,112,64,0.1);  border: 1px solid rgba(168,112,64,0.2);   height: 78px; }
.podium-1 .podium-pos { color: var(--yellow); }
.podium-2 .podium-pos { color: #9DA5A0; }
.podium-3 .podium-pos { color: #A87040; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.4; }
.empty-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; color: var(--white); margin-bottom: 6px; }
.empty-text { font-size: 0.88rem; color: var(--muted); }

/* ── Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ── Confetti ── */
.confetti-piece {
  position: fixed;
  border-radius: 2px;
  animation: confettiFall 3s ease-in forwards;
  pointer-events: none;
  z-index: 9998;
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.text-yellow { color: var(--yellow); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'Roboto Mono', monospace; }
.font-head { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; }
.text-xs { font-size: 0.72rem; }
.text-sm { font-size: 0.85rem; }
.uppercase { text-transform: uppercase; letter-spacing: 0.5px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.min-w-0 { min-width: 0; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  from { background-position: 200% center; }
  to   { background-position: -200% center; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes confettiFall {
  0%   { transform: translateY(-100px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(100vh)  rotate(540deg); opacity: 0; }
}

@keyframes ballRoll {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { padding: 48px 24px; min-height: 100vh; justify-content: center; }
}

/* ── Bottom Nav (mobile) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(16, 29, 19, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  height: 62px;
  align-items: stretch;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 4px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
  padding: 6px 2px;
  position: relative;
}

.bottom-nav-item.active { color: var(--yellow); }

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2px;
  background: var(--yellow);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-icon { width: 20px; height: 20px; flex-shrink: 0; }

.bottom-nav-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-end { display: none; }
  .nav-hamburger { display: none; }
  .bottom-nav { display: flex; }
  .main { padding-bottom: 62px; }
  .page { padding: 20px 16px; }
  .page-title { font-size: 2.2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dashboard-hero { padding: 24px; }
}

@media (max-width: 480px) {
  .game-team-name { font-size: 0.72rem; }
  .game-score-num { font-size: 1.6rem; }
  .rank-pts-num { font-size: 1.2rem; }
}

/* ── Palpites: lista por dia ── */
.match-day { margin-bottom: 24px; }

.match-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border);
}

.match-day-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  flex: 1;
}

.match-day-count {
  font-size: 0.62rem;
  color: var(--faded);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 8px;
}

.match-row {
  display: grid;
  grid-template-columns: 28px 1fr auto 1fr 88px;
  align-items: center;
  gap: 0 10px;
  padding: 9px 10px;
  border-radius: 4px;
  transition: background 0.12s;
}

.match-row + .match-row { border-top: 1px solid var(--border); }
.match-row:hover { background: rgba(255,255,255,0.02); }

.match-group-chip {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0.55;
  text-align: center;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.match-team-home { justify-content: flex-end; }
.match-team-away { justify-content: flex-start; }

.match-team-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-team-short {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  display: none;
  white-space: nowrap;
}

.match-inputs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.match-input {
  width: 40px;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 5px 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--yellow);
  transition: border-color 0.12s, background 0.12s;
  -moz-appearance: textfield;
}

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

.match-input:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(214,255,51,0.05);
}

.match-sep {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  flex-shrink: 0;
}

.match-score-final {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--yellow);
  text-align: center;
  padding: 5px 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}

.match-vs-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--faded);
  letter-spacing: 2px;
  text-align: center;
  padding: 5px 12px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}

.match-status {
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .match-row { grid-template-columns: 22px 1fr auto 1fr 70px; gap: 0 6px; padding: 8px 6px; }
  .match-team-name { display: none; }
  .match-team-short { display: inline; }
  .match-input { width: 34px; font-size: 0.95rem; padding: 4px 2px; }
  .match-score-final { font-size: 0.9rem; padding: 4px 8px; }
  .match-vs-tag { padding: 4px 8px; }
}
