/* ============================================================
   BOLÃO COPA 2026 - KBET | COMPONENTS
   ============================================================ */

/* ============================================================
   SEPARADOR DE DIA (DAY HEADER)
   ============================================================ */
.day-section {
  margin-bottom: 32px;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.day-header-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 204, 0, 0.45),
    rgba(0, 100, 55, 0.3),
    transparent
  );
}

.day-header-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 204, 0, 0.09);
  border: 1px solid rgba(255, 204, 0, 0.22);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.1);
}

/* ============================================================
   WHEEL PICKER — Seletor de Placar (iOS-style)
   ============================================================ */

/* Container externo */
/* ============================================================
   SCORE BUTTON — Placar clicável (substitui o <input>)
   ============================================================ */
.score-btn {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(8, 24, 58, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  color: rgba(240, 244, 255, 0.80);
  cursor: pointer;
  transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.score-btn:hover {
  border-color: rgba(255, 204, 0, 0.45);
  transform: scale(1.06);
}

.score-btn.wp-btn-active {
  border-color: #FFCC00;
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.40);
  color: #FFCC00;
}

.score-btn-locked {
  cursor: default;
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.06);
}
.score-btn-locked:hover { transform: none; border-color: rgba(255,255,255,0.06); }

/* Separador × entre os dois placares */
.score-sep {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(240, 244, 255, 0.30);
  flex-shrink: 0;
}

/* Área central do card (botões + horário + countdown) */
.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

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

/* ============================================================
   WHEEL PICKER — Overlay Flutuante (singleton)
   ============================================================ */

/* Camada de fundo — intercepta cliques fora do painel */
#wp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: transparent;
}

#wp-overlay.wp-open {
  display: block;
}

/* ============================================================
   WHEEL PICKER — Transform-based (sem scroll)
   Painel: 7 itens visíveis × 52px = 364px
   Seletor: CENTER=3 → top = 3 × 52 = 156px
   ============================================================ */

.wp-panel {
  position: fixed;
  width: 86px;
  height: 364px;           /* 7 × ITEM_H */
  border-radius: 20px;
  background: rgba(3, 12, 35, 0.97);
  border: 1px solid rgba(255, 204, 0, 0.38);
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  /* Animação de abertura */
  transform: scale(0.82) translateY(-8px);
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity   0.18s ease;
  pointer-events: none;
}

#wp-overlay.wp-open .wp-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Track deslizante — move via translateY no JS */
.wp-track {
  position: absolute;
  top: 0; left: 0; right: 0;
  /* Transição suave ao navegar */
  transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Item da wheel */
.wpi {
  height: 52px;            /* ITEM_H */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(240, 244, 255, 0.10);
  cursor: pointer;
  transition: color 0.12s, font-size 0.12s, text-shadow 0.12s;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1;
}

/* Hover: realce para itens não selecionados */
.wpi:hover {
  color: rgba(240, 244, 255, 0.50);
}

/* Selecionado — dourado com glow */
.wpi-sel {
  color: #FFCC00 !important;
  font-size: 2.1rem !important;
  text-shadow:
    0 0 10px rgba(255, 204, 0, 0.95),
    0 0 22px rgba(255, 204, 0, 0.50),
    0 0 44px rgba(255, 160, 0, 0.20);
}

/* ±1 */
.wpi-n1 { color: rgba(240, 244, 255, 0.55); font-size: 1.3rem; }
/* ±2 */
.wpi-n2 { color: rgba(240, 244, 255, 0.22); font-size: 1.05rem; }
/* demais */
.wpi-far { color: rgba(240, 244, 255, 0.06); font-size: 0.90rem; }

/* Quadrado seletor — sempre no slot CENTER (3 × 52 = 156px) */
.wp-selector {
  position: absolute;
  top: 156px;              /* CENTER × ITEM_H */
  left: 8px;
  right: 8px;
  height: 52px;            /* ITEM_H */
  border-top:    2px solid rgba(255, 204, 0, 0.75);
  border-bottom: 2px solid rgba(255, 204, 0, 0.75);
  background: rgba(255, 204, 0, 0.07);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}

/* Fade masks topo e base */
.wp-fade {
  position: absolute;
  left: 0; right: 0;
  height: 130px;
  pointer-events: none;
  z-index: 1;
}
.wp-fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(3,12,35,0.99) 0%, rgba(3,12,35,0.70) 55%, transparent 100%);
}
.wp-fade-bot {
  bottom: 0;
  background: linear-gradient(to top, rgba(3,12,35,0.99) 0%, rgba(3,12,35,0.70) 55%, transparent 100%);
}


/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform var(--transition-spring),
              box-shadow var(--transition-normal),
              background var(--transition-fast),
              opacity var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Ripple */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.15s;
}
.btn:active::after { opacity: 1; }

/* Primário - Amarelo */
.btn-primary {
  background: linear-gradient(135deg, #FFCC00 0%, #F4B904 100%);
  color: #051937;
  box-shadow: 0 4px 20px rgba(255,204,0,0.25);
}
.btn-primary:hover:not(:disabled) {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 24px rgba(255,204,0,0.45), 0 8px 30px rgba(255,204,0,0.2);
}
.btn-primary:active:not(:disabled) { transform: scale(0.98); }

/* Secundário - Verde */
.btn-success {
  background: linear-gradient(135deg, #006437 0%, #008045 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,100,55,0.3);
}
.btn-success:hover:not(:disabled) {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 0 24px rgba(0,100,55,0.5), 0 8px 30px rgba(0,100,55,0.2);
}

/* Ghost / Outline */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: rgba(255,255,255,0.04);
}

/* Outline Dourado */
.btn-outline-gold {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline-gold:hover:not(:disabled) {
  background: var(--color-primary-dim);
  box-shadow: 0 0 16px rgba(255,204,0,0.2);
}

/* Tamanhos */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 0.8rem; border-radius: var(--radius-md); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: 1rem; }
.btn-full { width: 100%; }
.btn-icon { padding: var(--space-3); border-radius: var(--radius-md); }

/* ============================================================
   CARDS GLASSMORPHIC
   ============================================================ */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.card-glass-sm {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
}

.card-glass:hover {
  border-color: rgba(255,204,0,0.15);
  background: var(--color-bg-card-hover);
}

/* Grid responsivo de partidas */
.matches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .matches-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card de Jogo (Dashboard) */
.match-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: border-color var(--transition-normal),
              background var(--transition-normal),
              transform var(--transition-spring),
              box-shadow var(--transition-normal);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.match-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,204,0,0.2), transparent);
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,204,0,0.18);
}

/* ============================================================
   INPUTS DE PALPITE (PLACAR)
   ============================================================ */
.score-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  justify-content: center;
}

.score-input {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 204, 0, 0.25);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);
  -moz-appearance: textfield;
}

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

.score-input:focus {
  border-color: var(--color-primary);
  background: rgba(255, 204, 0, 0.06);
  box-shadow: 0 0 0 3px rgba(255,204,0,0.12);
}

.score-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255,255,255,0.08);
}

.score-separator {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* ============================================================
   ESCUDOS / FLAGS
   ============================================================ */
.flag-img {
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-spring),
              filter var(--transition-normal);
}

.flag-img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255,204,0,0.35));
}

.flag-sm  { width: 36px; height: 27px; }
.flag-md  { width: 48px; height: 36px; }
.flag-lg  { width: 64px; height: 48px; }
.flag-xl  { width: 80px; height: 60px; }

/* ============================================================
   CRONÔMETRO / COUNTDOWN
   ============================================================ */
.countdown-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  justify-content: center;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-2);
  min-width: 40px;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dim);
  margin-bottom: 8px;
}

/* Countdown urgente (menos de 1h) */
.countdown-urgent .countdown-value {
  color: var(--color-error);
  animation: timerTick 1s ease infinite;
}

/* Jogo bloqueado (30min antes) */
.match-locked .score-input {
  opacity: 0.35;
  pointer-events: none;
}

/* ============================================================
   BADGES / CHIPS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-exact {
  background: rgba(255,204,0,0.12);
  color: var(--color-primary);
  border: 1px solid rgba(255,204,0,0.35);
  animation: glowPulse 2.5s ease-in-out infinite;
}

.badge-winner {
  background: rgba(0,100,55,0.15);
  color: var(--color-success);
  border: 1px solid rgba(0,200,120,0.25);
}

.badge-error {
  background: rgba(255,75,92,0.1);
  color: var(--color-error);
  border: 1px solid rgba(255,75,92,0.2);
}

.badge-pending {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.badge-live {
  background: rgba(255,75,92,0.12);
  color: var(--color-error);
  border: 1px solid rgba(255,75,92,0.3);
}

.badge-group {
  background: rgba(59,158,255,0.1);
  color: var(--color-info);
  border: 1px solid rgba(59,158,255,0.2);
  font-size: 0.85rem;
  padding: 4px 12px;
}

.badge-phase {
  background: rgba(255,204,0,0.08);
  color: var(--color-primary);
  border: 1px solid rgba(255,204,0,0.15);
  font-size: 0.7rem;
}

/* ============================================================
   INPUTS DE FORMULÁRIO
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input {
  width: 100%;
  padding: var(--space-4) var(--space-4);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast),
              background var(--transition-fast),
              box-shadow var(--transition-fast);
}

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

.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(255,204,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,204,0,0.10);
}

.form-input.error {
  border-color: var(--color-error);
  background: rgba(255,75,92,0.04);
}

.form-error {
  font-size: 0.78rem;
  color: var(--color-error);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================================
   NAVEGAÇÃO INFERIOR (NAV BAR)
   ============================================================ */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-top);
  background: rgba(5, 25, 55, 0.92);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-2) var(--space-4);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
}

.nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 64px;
}

.nav-item:hover { background: rgba(255,255,255,0.04); }

.nav-item.active .nav-icon { color: var(--color-primary); }
.nav-item.active .nav-label { color: var(--color-primary); }
.nav-item.active {
  background: rgba(255,204,0,0.08);
}

.nav-icon {
  font-size: 1.3rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), transform var(--transition-spring);
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  transform: scale(1.15) translateY(-2px);
}

.nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

/* ============================================================
   HEADER DE TELA
   ============================================================ */
.screen-header {
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  /* Fluxo normal — acompanha o scroll e não cobre o conteúdo */
  position: relative;
  z-index: var(--z-above);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.screen-header-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

/* ============================================================
   MEDALHAS DO RANKING (Top 3)
   ============================================================ */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4) var(--space-6);
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  max-width: 140px;
}

.podium-item-1st {
  order: 2;
  transform: translateY(-16px);
}
.podium-item-2nd { order: 1; }
.podium-item-3rd { order: 3; }

.medal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.medal-gold {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  box-shadow: 0 0 20px rgba(255,215,0,0.5), 0 0 50px rgba(255,165,0,0.2);
  color: #3a2000;
}

.medal-silver {
  background: linear-gradient(135deg, #C0C0C0, #808080);
  box-shadow: 0 0 15px rgba(192,192,192,0.4), 0 0 35px rgba(128,128,128,0.15);
  color: #1a1a1a;
}

.medal-bronze {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  box-shadow: 0 0 15px rgba(205,127,50,0.4), 0 0 35px rgba(139,69,19,0.15);
  color: #fff;
}

.podium-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid;
  overflow: hidden;
  background: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.podium-item-1st .podium-avatar {
  width: 72px;
  height: 72px;
  border-color: #FFD700;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.podium-item-2nd .podium-avatar { border-color: #C0C0C0; }
.podium-item-3rd .podium-avatar { border-color: #CD7F32; }

.podium-name {
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.podium-points {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--color-primary);
}

/* Pódio Premium dos Prêmios Garantidos (1º ao 4º) */
.premium-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 22px 4px 15px;
  background: rgba(8, 18, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.podium-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 95px;
  position: relative;
}

.player-figure {
  position: relative;
  width: 70px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -2px;
}

/* Escalonamento das figuras (bonecos) por posição no pódio */
.player-figure.size-1 { transform: scale(1.10); transform-origin: bottom center; }
.player-figure.size-2 { transform: scale(0.94); transform-origin: bottom center; }
.player-figure.size-3 { transform: scale(0.82); transform-origin: bottom center; }
.player-figure.size-4 { transform: scale(0.72); transform-origin: bottom center; }

.player-body {
  position: absolute;
  top: 0px;
  width: 70px;
  height: 110px;
  z-index: 1;
}

/* Informações do competidor posicionadas logo abaixo do boneco */
.podium-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
  width: 100%;
}

.podium-info .podium-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030F21;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  margin-bottom: 6px;
  z-index: 2;
  position: relative;
}

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

.podium-info .podium-prize {
  font-family: var(--font-display), 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: -0.1px;
  margin-top: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
}

.podium-info .podium-step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 1px;
  opacity: 0.95;
}

/* Cores específicas de acordo com a posição do competidor */
.podium-info.step-1st .podium-avatar { border-color: #FFD700; box-shadow: 0 0 10px rgba(255,215,0,0.3); }
.podium-info.step-1st .podium-prize { color: #FFD700; font-size: 0.95rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 0 8px rgba(255,215,0,0.3); }
.podium-info.step-1st .podium-step-num { color: #FFD700; font-size: 1.8rem; text-shadow: 0 0 10px rgba(255,215,0,0.4); }

.podium-info.step-2nd .podium-avatar { border-color: #C0C0C0; }
.podium-info.step-2nd .podium-prize { color: #E0E0E0; font-size: 0.85rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.podium-info.step-2nd .podium-step-num { color: #C0C0C0; font-size: 1.5rem; }

.podium-info.step-3rd .podium-avatar { border-color: #CD7F32; }
.podium-info.step-3rd .podium-prize { color: #CD7F32; font-size: 0.8rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.podium-info.step-3rd .podium-step-num { color: #CD7F32; font-size: 1.5rem; }

.podium-info.step-4th .podium-avatar { border-color: #A0A0A0; }
.podium-info.step-4th .podium-prize { color: #A0A0A0; font-size: 0.78rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.podium-info.step-4th .podium-step-num { color: #A0A0A0; font-size: 1.5rem; }

/* Responsividade do Pódio Premium para mobile */
@media (max-width: 480px) {
  .premium-podium {
    gap: 4px;
    padding: 16px 2px 10px;
    margin-bottom: 16px;
  }
  .podium-col {
    max-width: 80px;
  }
  .player-figure {
    width: 60px;
    height: 95px;
  }
  .player-figure.size-1 { transform: scale(1.02); transform-origin: bottom center; }
  .player-figure.size-2 { transform: scale(0.90); transform-origin: bottom center; }
  .player-figure.size-3 { transform: scale(0.80); transform-origin: bottom center; }
  .player-figure.size-4 { transform: scale(0.70); transform-origin: bottom center; }

  .player-body {
    top: 0px;
    width: 60px;
    height: 95px;
  }
  .player-body svg {
    width: 60px !important;
    height: 95px !important;
  }
  
  .podium-info {
    margin-top: 8px;
  }
  
  .podium-info .podium-avatar {
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
    border-width: 1.5px;
  }
  
  .podium-info.step-1st .podium-avatar {
    width: 35px;
    height: 35px;
  }
  
  .podium-info .podium-prize {
    font-size: 0.7rem;
  }
  .podium-info.step-1st .podium-prize {
    font-size: 0.82rem;
  }
  
  .podium-info .podium-step-num {
    font-size: 1.2rem;
  }
  .podium-info.step-1st .podium-step-num {
    font-size: 1.4rem;
  }
}

/* ============================================================
   TABELA DE RANKING
   ============================================================ */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px 1fr 60px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  animation: slideInUp 0.3s both;
}

.ranking-row:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

.ranking-row:hover {
  background: rgba(255,204,0,0.05);
}

.ranking-row.is-me {
  background: rgba(255,204,0,0.08);
  border: 1px solid rgba(255,204,0,0.2);
}

.ranking-position {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.ranking-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.ranking-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
}

.ranking-username {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-pts {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
  text-align: right;
}

/* ============================================================
   GRUPO CARDS (Bracket)
   ============================================================ */
.group-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: border-color var(--transition-normal),
              transform var(--transition-spring);
}

.group-card:hover {
  border-color: rgba(255,204,0,0.2);
  transform: translateY(-2px);
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.group-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-primary);
}

.team-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast),
              border-color var(--transition-fast);
  border: 1.5px solid transparent;
}

.team-row:hover {
  background: rgba(255,204,0,0.06);
}

.team-row.selected-first {
  background: rgba(255,204,0,0.1);
  border-color: rgba(255,204,0,0.4);
}

.team-row.selected-second {
  background: rgba(0,100,55,0.12);
  border-color: rgba(0,100,55,0.4);
}

.team-rank-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-1st { background: var(--color-primary); color: #051937; }
.rank-2nd { background: var(--color-secondary); color: #fff; }

.team-name-txt {
  font-size: 0.82rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid;
  pointer-events: all;
  width: 100%;
  max-width: 420px;
  animation: toastSlideIn 0.3s ease both;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.50);
}

.toast-success {
  background: rgba(0, 100, 55, 0.85);
  border-color: rgba(0, 200, 120, 0.3);
  color: #fff;
}

.toast-error {
  background: rgba(120, 20, 30, 0.85);
  border-color: rgba(255, 75, 92, 0.3);
  color: #fff;
}

.toast-info {
  background: rgba(10, 34, 64, 0.9);
  border-color: rgba(59, 158, 255, 0.3);
  color: #fff;
}

.toast-gold {
  background: rgba(80, 60, 0, 0.9);
  border-color: rgba(255, 204, 0, 0.4);
  color: var(--color-primary);
}

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-md  { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg  { width: 60px; height: 60px; font-size: 1.3rem; }
.avatar-xl  { width: 80px; height: 80px; font-size: 1.6rem; }

/* ============================================================
   DIVISORES
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: var(--space-4) 0;
}

.divider-gold {
  background: linear-gradient(90deg, transparent, rgba(255,204,0,0.2), transparent);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  display: flex;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(255,204,0,0.12);
  color: var(--color-primary);
  box-shadow: 0 0 10px rgba(255,204,0,0.1);
}

/* ============================================================
   MODAL / OVERLAY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,13,30,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease both;
}

.modal-sheet {
  background: #0A1F3A;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-6) var(--space-5);
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-5);
}

/* ============================================================
   SCORE / PONTOS
   ============================================================ */
.points-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--color-primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,204,0,0.3);
}

.points-label {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-12) var(--space-6);
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.empty-title {
  font-weight: 700;
  color: var(--color-text-muted);
}

.empty-desc {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  max-width: 240px;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-deep);
  z-index: var(--z-top);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transition: opacity 0.4s ease;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  text-shadow: 0 0 30px rgba(255,204,0,0.4);
}

/* ============================================================
   BRACKET SVG Lines
   ============================================================ */
.bracket-line {
  stroke: rgba(255, 204, 0, 0.25);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 100%;
  stroke-dashoffset: 100%;
  transition: stroke-dashoffset 0.8s ease;
}

.bracket-line.drawn {
  stroke-dashoffset: 0%;
}

.bracket-team-slot {
  background: rgba(10, 34, 64, 0.7);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 120px;
}

.bracket-team-slot:hover,
.bracket-team-slot.selected {
  border-color: rgba(255,204,0,0.4);
  background: rgba(255,204,0,0.08);
}

.bracket-team-slot.champion {
  border-color: var(--color-primary);
  background: rgba(255,204,0,0.12);
  box-shadow: 0 0 20px rgba(255,204,0,0.25);
}

/* ============================================================
   PALPITE MESTRE — FASE DE GRUPOS
   ============================================================ */

/* Card de grupo: fundo bem mais opaco para leitura sobre imagem de fundo */
.group-card {
  background: rgba(5, 18, 45, 0.88);
  border: 1px solid rgba(255, 204, 0, 0.18);
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 204, 0, 0.15);
}

.group-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #FFCC00;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(255, 204, 0, 0.40);
}

/* Row de time dentro do grupo */
.team-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  position: relative;
  margin-bottom: 3px;
}

.team-row:last-child { margin-bottom: 0; }

.team-row:hover:not(.selected-first):not(.selected-second) {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

/* === 1° LUGAR — Ouro brilhante === */
.team-row.selected-first {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.22), rgba(255, 140, 0, 0.12)) !important;
  border-color: rgba(255, 204, 0, 0.70) !important;
  box-shadow: 0 0 14px rgba(255, 204, 0, 0.28), inset 0 0 10px rgba(255, 204, 0, 0.07) !important;
  transform: translateX(2px);
}

/* === 2° LUGAR — Prata brilhante === */
.team-row.selected-second {
  background: linear-gradient(135deg, rgba(190, 205, 220, 0.20), rgba(150, 170, 195, 0.11)) !important;
  border-color: rgba(200, 215, 230, 0.60) !important;
  box-shadow: 0 0 12px rgba(190, 205, 220, 0.22), inset 0 0 8px rgba(190, 205, 220, 0.06) !important;
  transform: translateX(2px);
}

/* Badge circular de posição */
.rank-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.58rem;
  flex-shrink: 0;
  letter-spacing: 0;
  line-height: 1;
}

/* Badge dourado — 1° lugar */
.rank-badge-1 {
  background: linear-gradient(135deg, #FFDD00, #FF9500);
  color: #0A1628;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.65), 0 0 18px rgba(255, 160, 0, 0.35);
  animation: goldBadgePulse 2.2s ease-in-out infinite;
}

/* Badge prata — 2° lugar */
.rank-badge-2 {
  background: linear-gradient(135deg, #D0DCE8, #8CA0B5);
  color: #0A1628;
  box-shadow: 0 0 7px rgba(190, 210, 225, 0.50), 0 0 14px rgba(160, 185, 205, 0.22);
}

/* Espaço vazio quando sem seleção */
.rank-badge-empty {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

/* Nome do time */
.team-name-txt {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(240, 244, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  transition: color 0.15s ease;
}

.selected-first  .team-name-txt { color: #FFE040 !important; font-weight: 700; }
.selected-second .team-name-txt { color: #C8DAEA !important; font-weight: 700; }

/* Animação de pulso do badge dourado */
@keyframes goldBadgePulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.65), 0 0 18px rgba(255, 160, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.90), 0 0 30px rgba(255, 160, 0, 0.60);
  }
}

/* ============================================================
   PALPITE MESTRE — CHAVEAMENTO (mata-mata)
   ============================================================ */
.bt-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(5, 18, 45, 0.80);
  cursor: pointer;
  min-height: 36px;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
  margin: 2px 0;
}

.bt-slot:hover { background: rgba(255,255,255,0.09); transform: scale(1.02); }

.bt-slot.bt-winner {
  background: linear-gradient(135deg, rgba(255,204,0,0.20), rgba(255,160,0,0.12));
  border-color: rgba(255,204,0,0.55);
  box-shadow: 0 0 10px rgba(255,204,0,0.20);
}

.bt-slot.bt-champion {
  background: linear-gradient(135deg, rgba(255,204,0,0.35), rgba(255,120,0,0.20));
  border-color: rgba(255,204,0,0.80);
  box-shadow: 0 0 18px rgba(255,204,0,0.45);
  animation: champSlotGlow 2s ease-in-out infinite;
}

.bt-slot.bt-empty {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.bt-slot-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(240, 244, 255, 0.80);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.bt-winner .bt-slot-name  { color: #FFDD44; font-weight: 700; }
.bt-champion .bt-slot-name { color: #FFCC00; font-weight: 800; }

.phase-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 204, 0, 0.70);
  text-align: center;
  padding: 4px 0 8px;
}

@keyframes champSlotGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(255,204,0,0.45); }
  50%       { box-shadow: 0 0 30px rgba(255,204,0,0.75); }
}

/* ============================================================
   CLASSES DE SUPORTE AO LAYOUT GERAL
   ============================================================ */
.team-name-card {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  max-width: 90px;
  word-break: break-word;
  line-height: 1.25;
  color: var(--color-text);
}

.match-time-col {
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}

.thirds-selection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .thirds-selection-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.bracket-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-bottom: 16px;
  scrollbar-width: thin;
}

/* ============================================================
   RESPONSIVIDADE E AJUSTES DE LAYOUT MOBILE (CELULARES)
   ============================================================ */
@media (max-width: 480px) {
  /* Nav Bar Inferior */
  .nav-bar {
    padding: var(--space-1) var(--space-1);
  }
  .nav-item {
    flex: 1 1 0;
    min-width: 0;
    padding: var(--space-1) 0;
    gap: 1px;
  }
  .nav-icon {
    font-size: 1.05rem;
  }
  .nav-label {
    font-size: 0.48rem;
    text-align: center;
    line-height: 1.05;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    text-transform: none;
    letter-spacing: -0.02em;
  }

  /* Match Card (Dashboard) */
  .match-card {
    padding: var(--space-3) var(--space-3); /* padding de 12px lateral/vertical */
  }
  
  /* Bandeiras */
  .flag-lg {
    width: 46px !important;
    height: 32px !important;
  }

  /* Times e Horário nos cards */
  .team-name-card {
    font-size: 0.72rem;
    max-width: 78px;
    line-height: 1.2;
  }
  .match-time-col {
    min-width: 100px;
  }

  /* Countdown */
  .countdown-wrap {
    gap: 2px;
  }
  .countdown-block {
    min-width: 30px;
    padding: 3px 4px;
    border-radius: 6px;
  }
  .countdown-value {
    font-size: 0.88rem;
  }
  .countdown-label {
    font-size: 0.44rem;
  }
  .countdown-sep {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }

  /* Score Buttons no Dashboard */
  .score-btn {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    border-radius: 10px;
  }
  .score-sep {
    font-size: 1.1rem;
  }

  /* Seletor de Terceiros Colocados (Thirds Grid) */
  .thirds-selection-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* Bracket Chaveamento */
  .bracket-scroll-wrapper {
    padding-bottom: 12px;
  }
  
  /* Melhores ajustes para inputs de placar de login */
  .score-input {
    width: 52px;
    height: 52px;
    font-size: 1.35rem;
  }
}
