/* Custom styling for Bolão Copa do Mundo 2026 */
/* Theme: Seleção Brasileira - Dark Modern Gold & Green */

:root {
  --bg-color: #0f0d0a;
  --bg-gradient: linear-gradient(135deg, #0f0d0a 0%, #1c160e 50%, #0c0a07 100%);
  --card-bg: rgba(28, 22, 14, 0.78);
  --card-border: rgba(120, 88, 38, 0.35);
  --card-border-hover: rgba(245, 158, 11, 0.55);

  --primary-color: #f59e0b; /* Âmbar */
  --primary-glow: rgba(245, 158, 11, 0.4);
  --secondary-color: #f97316; /* Laranja (ações/UI) */
  --blue-accent: #fbbf24; /* Âmbar claro (acento) */
  --win-color: #22c55e;  /* Verde — bilhete certo */
  --loss-color: #ff4d4d; /* Vermelho — bilhete errado */
  --text-main: #f5efe6;
  --text-muted: #b3a392;

  --brazil-glow: 0 0 15px rgba(245, 158, 11, 0.35);
  --brazil-border: rgba(245, 158, 11, 0.6);
  --brazil-bg: rgba(245, 158, 11, 0.05);

  --font-title: 'Outfit', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, rgba(245, 158, 11, 0.10) 0%, rgba(245, 158, 11, 0) 60%),
    linear-gradient(180deg, #14100b 0%, #0c0a07 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- Campo de futebol completo animado no fundo --- */
.pitch-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Linhas do campo (borda externa) */
.pitch-decor .field {
  position: absolute;
  inset: 26px;
  border: 2px solid rgba(245, 158, 11, 0.07);
  border-radius: 12px;
}
/* Linha do meio */
.pitch-decor .midline {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(245, 158, 11, 0.07);
}
/* Círculo central + marca central */
.pitch-decor .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28vmin;
  height: 28vmin;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(245, 158, 11, 0.07);
  border-radius: 50%;
}
.pitch-decor .circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
}
/* Grandes áreas (topo e base) */
.pitch-decor .pbox {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40vmin;
  height: 13vmin;
  border: 2px solid rgba(245, 158, 11, 0.07);
}
.pitch-decor .pbox.top { top: 26px; border-top: none; border-radius: 0 0 10px 10px; }
.pitch-decor .pbox.bottom { bottom: 26px; border-bottom: none; border-radius: 10px 10px 0 0; }

/* Gols fixos nos 4 cantos */
.pitch-decor .goal-net {
  position: absolute;
  font-size: 42px;
  opacity: 0.18;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}
.pitch-decor .g1 { top: 8px;  left: 8px;  }
.pitch-decor .g2 { top: 8px;  right: 8px; transform: scaleX(-1); }
.pitch-decor .g3 { bottom: 8px; left: 8px;  transform: scaleY(-1); }
.pitch-decor .g4 { bottom: 8px; right: 8px; transform: scale(-1, -1); }

/* Bolas batendo aleatoriamente pelo campo */
.pitch-decor .ball {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 40px;
  opacity: 0.16;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}
.pitch-decor .ba { font-size: 46px; animation-name: bounceA; animation-duration: 9s; }
.pitch-decor .bb { font-size: 34px; animation-name: bounceB; animation-duration: 11s; }
.pitch-decor .bc { font-size: 52px; animation-name: bounceC; animation-duration: 8s; opacity: 0.13; }
.pitch-decor .bd { font-size: 30px; animation-name: bounceD; animation-duration: 12s; }
.pitch-decor .be { font-size: 38px; animation-name: bounceA; animation-duration: 7s; animation-delay: -3s; }

@keyframes bounceA {
  0%   { transform: translate(3vw, 8vh) rotate(0deg); }
  25%  { transform: translate(82vw, 22vh) rotate(180deg); }
  50%  { transform: translate(60vw, 76vh) rotate(360deg); }
  75%  { transform: translate(12vw, 50vh) rotate(540deg); }
  100% { transform: translate(3vw, 8vh) rotate(720deg); }
}
@keyframes bounceB {
  0%   { transform: translate(86vw, 6vh) rotate(0deg); }
  30%  { transform: translate(14vw, 32vh) rotate(220deg); }
  60%  { transform: translate(72vw, 62vh) rotate(400deg); }
  85%  { transform: translate(40vw, 86vh) rotate(560deg); }
  100% { transform: translate(86vw, 6vh) rotate(720deg); }
}
@keyframes bounceC {
  0%   { transform: translate(40vw, 86vh) rotate(0deg); }
  25%  { transform: translate(6vw, 42vh) rotate(160deg); }
  55%  { transform: translate(78vw, 14vh) rotate(340deg); }
  80%  { transform: translate(86vw, 70vh) rotate(520deg); }
  100% { transform: translate(40vw, 86vh) rotate(720deg); }
}
@keyframes bounceD {
  0%   { transform: translate(10vw, 80vh) rotate(0deg); }
  35%  { transform: translate(82vw, 84vh) rotate(220deg); }
  65%  { transform: translate(50vw, 10vh) rotate(420deg); }
  100% { transform: translate(10vw, 80vh) rotate(720deg); }
}

/* Conteúdo sempre acima da decoração */
.content-container { position: relative; z-index: 1; }
footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .pitch-decor .ball { animation: none; }
}

/* Header */
header {
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--card-border);
}

/* ============================================================================
   BANNER PALPITEIRA  (importado do Claude Design — "Banner Palpiteira")
   Fundo escuro + textura/decoração + cluster central (escudo + título animado).
   O emblema (icon-login.png) fica POR CIMA do escudo dourado do design.
   ============================================================================ */
.pal-banner {
  --pal-scale: 0.82;
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #070608;
  font-family: 'Saira', var(--font-title), sans-serif;
  isolation: isolate;
}

.pal-bg-base {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 200% at 24% 28%, #160f08 0%, #0c0a08 40%, #08070a 70%, #050406 100%);
}

.pal-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 135% at 50% 52%, rgba(255, 120, 25, 0.12) 0%, rgba(255, 120, 25, 0) 60%);
}

.pal-honeycomb {
  position: absolute;
  left: 0;
  top: 0;
  width: 58%;
  height: 100%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%23ff7a18' stroke-width='1.4'%3E%3Cpath d='M14 1 L42 1 L56 25 L42 49 L14 49 L0 25 Z'/%3E%3Cpath d='M14 49 L42 49 L56 73 L42 97 L14 97 L0 73 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 96px;
  -webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.85) 4%, rgba(0, 0, 0, 0.25) 34%, rgba(0, 0, 0, 0) 64%);
  mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.85) 4%, rgba(0, 0, 0, 0.25) 34%, rgba(0, 0, 0, 0) 64%);
}

.pal-rightdecor {
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 36%, rgba(0, 0, 0, 1) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 36%, rgba(0, 0, 0, 1) 100%);
}

.pal-rightdecor-glow {
  position: absolute;
  right: -30px;
  bottom: -70px;
  width: 420px;
  height: 320px;
  background: radial-gradient(50% 50% at 72% 68%, rgba(255, 125, 28, 0.18) 0%, rgba(255, 125, 28, 0) 70%);
  filter: blur(4px);
}

.pal-rightdecor svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pal-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 180, 90, 0) 0%, rgba(255, 190, 110, 0.16) 50%, rgba(255, 180, 90, 0) 100%);
  animation: pal-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

.pal-cluster {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--pal-scale));
  display: flex;
  align-items: center;
  gap: 48px;
  z-index: 2;
}

/* Escudo: só o emblema do Palpiteira (sem o escudo dourado do design atrás) */
.pal-shield {
  position: relative;
  width: 150px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pal-shield-glow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 118px;
  height: 28px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 130, 25, 0.55), rgba(255, 130, 25, 0) 72%);
  filter: blur(2px);
}

.pal-shield-img {
  position: relative;
  display: block;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 150, 40, 0.45));
}

.pal-textcol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pal-ball {
  animation: pal-ballpulse 3.2s ease-in-out infinite;
  margin-bottom: 1px;
}

.pal-title {
  font-weight: 800;
  font-size: 66px;
  line-height: 0.92;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffe2a0 0%, #f7a92a 44%, #ec7b12 78%, #d9650c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: pal-titleglow 3.2s ease-in-out infinite;
}

.pal-subtitle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 7px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: #f3f0eb;
}

.pal-subtitle .dot {
  color: #f5901c;
  font-size: 13px;
}

.pal-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: pal-borderglow 4s ease-in-out infinite;
  z-index: 3;
}

@keyframes pal-ballpulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 140, 30, 0.65)) drop-shadow(0 0 14px rgba(255, 120, 20, 0.4)); }
  50%      { filter: drop-shadow(0 0 9px rgba(255, 165, 55, 0.95)) drop-shadow(0 0 26px rgba(255, 130, 25, 0.6)); }
}

@keyframes pal-titleglow {
  0%, 100% { text-shadow: 0 0 14px rgba(245, 150, 25, 0.35), 0 0 2px rgba(245, 150, 25, 0.4); }
  50%      { text-shadow: 0 0 26px rgba(245, 160, 40, 0.6), 0 0 2px rgba(245, 150, 25, 0.5); }
}

@keyframes pal-sweep {
  0%   { transform: translateX(-60%) skewX(-18deg); opacity: 0; }
  18%  { opacity: 0.5; }
  40%  { opacity: 0; }
  100% { transform: translateX(2400px) skewX(-18deg); opacity: 0; }
}

@keyframes pal-borderglow {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(214, 150, 55, 0.55), inset 0 0 26px rgba(255, 120, 25, 0.12), 0 0 22px rgba(255, 110, 20, 0.10); }
  50%      { box-shadow: inset 0 0 0 2px rgba(245, 180, 80, 0.8), inset 0 0 34px rgba(255, 135, 30, 0.20), 0 0 34px rgba(255, 120, 25, 0.18); }
}

/* Banner responsivo: escala o cluster e reduz a altura da barra */
@media (max-width: 1024px) {
  .pal-banner { height: 138px; --pal-scale: 0.68; }
}

@media (max-width: 600px) {
  .pal-banner { height: 104px; --pal-scale: 0.48; }
  .pal-honeycomb { display: none; }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 32px;
  animation: bounce 3s infinite ease-in-out;
}

.logo-text h1 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.1;
  color: #fff;
}

.logo-text h1 span {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
}

.logo-text p {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
}

/* User Profile Widget — sobreposto ao banner */
.session-widget {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(7, 6, 8, 0.5);
  backdrop-filter: blur(6px);
}

.user-selector-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-selector-wrapper label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.user-select-dropdown {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-select-dropdown:focus {
  border-color: var(--secondary-color);
}

.user-info-badge {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(94, 66, 28, 0.4) 100%);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  font-size: 20px;
}

.user-stats {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
}

.user-points {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-color);
}

/* Navigation tabs */
.nav-tabs {
  max-width: 1280px;
  width: 100%;
  margin: 20px auto 10px;
  padding: 0 20px;
  display: flex;
  gap: 10px;
}

.tab-btn {
  background: rgba(94, 66, 28, 0.2);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tab-btn:hover {
  background: rgba(94, 66, 28, 0.4);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--secondary-color);
  color: #1a1206;
  border-color: var(--secondary-color);
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.tab-btn.admin-only {
  border-color: rgba(255, 215, 0, 0.3);
}

.tab-btn.admin-only.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* Main Container */
.content-container {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0d2f16;
  border-left: 5px solid var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  font-weight: 600;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: #3c090e;
  border-left-color: #ff3344;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

/* Card generic styling */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease;
}

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

.card-header h2 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 4px;
}

.card-header p {
  color: var(--text-muted);
  font-size: 13px;
}

/* FILTERS BAR */
.filters-bar {
  background: rgba(18, 13, 8, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(94, 66, 28, 0.4);
}

.filter-btn.active {
  background: var(--primary-color);
  color: #1a1206;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-glow);
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* MATCH CARDS GRID */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 0;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 600;
}

/* Match Card design */
.match-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  border-color: var(--card-border-hover);
}

/* Card Header */
.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.match-group-badge {
  background: rgba(94, 66, 28, 0.5);
  color: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Card Teams row */
.match-teams-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.team-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 38%;
  gap: 6px;
}

.team-flag {
  width: 44px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}

.match-card:hover .team-flag {
  transform: scale(1.08);
}

.team-name {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

/* Scores / Input Middle */
.score-inputs-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  width: 24%;
}

.score-num-input {
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: white;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  outline: none;
  font-family: var(--font-title);
  transition: all 0.3s ease;
}

.score-num-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  background: rgba(0,0,0,0.8);
}

.score-num-input:disabled {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.05);
  color: #aaa;
  cursor: not-allowed;
}

.vs-separator {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Inputs de palpite centralizados entre os escudos */
.prediction-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 24%;
}

.pred-score-input {
  width: 46px;
  height: 46px;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  color: white;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  font-family: var(--font-title);
  transition: all 0.2s ease;
  -moz-appearance: textfield;
}

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

.pred-score-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  background: rgba(0,0,0,0.85);
}

.pred-x {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-muted);
}

.prediction-box {
  margin-top: 14px;
}

/* Card Bottom details */
.match-time-info {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.match-deadline {
  font-size: 11px;
  font-weight: 500;
  color: #ff9f1c;
}

.match-deadline.passed {
  color: #ff4d4d;
}

.bet-save-btn {
  background: var(--secondary-color);
  color: #1a1206;
  border: none;
  border-radius: 6px;
  padding: 8px;
  width: 100%;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.bet-save-btn:hover {
  background: #00e65c;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.bet-save-btn:disabled {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Result Overlay */
.match-result-badge {
  text-align: center;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
  border: 1px solid var(--card-border);
}

.result-badge-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.result-real-score {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin: 2px 0;
}

.user-score-points-earned {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.points-earned-15 { background-color: rgba(255, 215, 0, 0.25); border: 1px solid var(--primary-color); color: var(--primary-color); }
.points-earned-7 { background-color: rgba(34, 197, 94, 0.15); border: 1px solid var(--win-color); color: var(--win-color); }
.points-earned-5 { background-color: rgba(245, 158, 11, 0.2); border: 1px solid var(--blue-accent); color: #fcd34d; }
.points-earned-0 { background-color: rgba(255, 77, 77, 0.1); border: 1px solid #ff4d4d; color: #ff8888; }

/* LEADERBOARD TABLE */
.leaderboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  transition: all 0.3s ease;
}

/* Sidebar expansion trigger */
@media (min-width: 992px) {
  .leaderboard-layout.has-sidebar {
    grid-template-columns: 2fr 1fr;
  }
}

.table-responsive {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.leaderboard-table th {
  background: rgba(94, 66, 28, 0.3);
  border-bottom: 2px solid var(--card-border);
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.leaderboard-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  transition: background 0.2s ease;
}

.leaderboard-table tr {
  cursor: pointer;
}

.leaderboard-table tr:hover td {
  background: rgba(94, 66, 28, 0.15);
}

.leaderboard-table tr.current-user-row td {
  background: rgba(255, 215, 0, 0.06);
  border-bottom-color: rgba(255, 215, 0, 0.3);
}

.txt-center {
  text-align: center !important;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,0.05);
}

.rank-1 { background: #ffd700; color: #000; box-shadow: 0 0 10px var(--primary-glow); }
.rank-2 { background: #c0c0c0; color: #000; }
.rank-3 { background: #cd7f32; color: #000; }

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

.participant-avatar {
  font-size: 18px;
  background: rgba(255,255,255,0.05);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--card-border);
}

.participant-info {
  display: flex;
  flex-direction: column;
}

.participant-name {
  font-weight: 700;
  font-size: 14px;
}

.participant-username {
  font-size: 11px;
  color: var(--text-muted);
}

.points-cell {
  font-weight: 800;
  font-size: 16px;
  color: var(--secondary-color);
}

/* USER DETAILS SIDEBAR */
.user-detail-card {
  position: relative;
  align-self: start;
}

.close-detail-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.close-detail-btn:hover {
  color: #fff;
}

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

.detail-avatar {
  font-size: 32px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--primary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-user-meta h3 {
  font-family: var(--font-title);
  font-size: 18px;
}

.detail-user-meta p {
  font-size: 12px;
  color: var(--text-muted);
}

.divider {
  border: 0;
  height: 1px;
  background: var(--card-border);
  margin: 15px 0;
}

.privacy-note {
  font-size: 11px;
  color: #ff9f1c;
  background: rgba(255, 159, 28, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 159, 28, 0.2);
}

.detail-bets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Detail Bet Item */
.detail-bet-item {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-bet-teams {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-bet-scores {
  font-family: var(--font-title);
  font-weight: 800;
  background: rgba(255,255,255,0.05);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.detail-bet-points {
  font-size: 11px;
  font-weight: 700;
}

/* ADMIN PANEL LAYOUT */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .admin-grid {
    grid-template-columns: 1fr 2.2fr;
  }
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-card h3 {
  font-family: var(--font-title);
  font-size: 16px;
  margin-bottom: 8px;
  color: #fff;
  border-left: 3px solid var(--secondary-color);
  padding-left: 8px;
}

.admin-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-block {
  width: 100%;
  display: flex;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1a1206;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-secondary {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #1a1206;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
}

.sync-status-msg {
  font-size: 11px;
  margin-top: 10px;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--card-border);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  font-size: 13px;
}

.form-group input:focus {
  border-color: var(--secondary-color);
}

/* Score rules info */
.points-info-card {
  background: rgba(245, 158, 11, 0.05);
}

.points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}

.p-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
  margin-right: 6px;
}

.p-15 { background: rgba(255,215,0,0.2); border: 1px solid var(--primary-color); color: var(--primary-color); }
.p-7 { background: rgba(34, 197, 94, 0.15); border: 1px solid var(--win-color); color: var(--win-color); }
.p-5 { background: rgba(245, 158, 11,0.15); border: 1px solid var(--blue-accent); color: #fcd34d; }
.p-0 { background: rgba(255,77,77,0.1); border: 1px solid #ff4d4d; color: #ff8888; }

/* Admin Main section */
.admin-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-main-header h2 {
  font-family: var(--font-title);
  font-size: 18px;
}

.admin-matches-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Admin Match Row Layout */
.admin-match-row {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  min-width: 250px;
}

.admin-flag {
  width: 28px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
}

.admin-match-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-score-fields {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-score-fields label {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-score-fields input {
  width: 32px;
  height: 32px;
  background: #000;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: #fff;
  text-align: center;
  font-weight: 800;
  outline: none;
}

.admin-score-fields input:focus {
  border-color: var(--secondary-color);
}

.admin-deadline-field {
  display: flex;
  flex-direction: column;
}

.admin-deadline-field label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.admin-deadline-field input {
  background: #000;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  outline: none;
}

.admin-deadline-field input:focus {
  border-color: var(--secondary-color);
}

.admin-row-save-btn {
  background: var(--blue-accent);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  height: 32px;
}

.admin-row-save-btn:hover {
  background: #3373ff;
}

/* Footer */
footer {
  background: rgba(18, 13, 8, 0.95);
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-decorations {
  font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Responsive Hide Utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .header-container {
    justify-content: center;
    text-align: center;
  }
  
  .logo-area {
    flex-direction: column;
    gap: 5px;
  }
  
  .session-widget {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 0;
    background: rgba(7, 6, 8, 0.85);
  }
  
  .user-selector-wrapper {
    width: 100%;
  }
  
  .user-select-dropdown {
    width: 100%;
  }

  .user-info-badge {
    width: 100%;
    justify-content: center;
  }

  .nav-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .tab-btn {
    flex: 1 1 45%;
    justify-content: center;
    font-size: 13px;
    padding: 8px 12px;
  }

  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-buttons {
    justify-content: center;
  }

  .filter-selects {
    width: 100%;
  }
  
  .select-wrapper select {
    width: 100%;
  }

  .matches-grid {
    grid-template-columns: 1fr;
  }

  .admin-match-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-match-actions {
    justify-content: space-between;
  }
}

/* Login Screen */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(900px 500px at 50% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0) 60%),
    linear-gradient(135deg, #14100b 0%, #0c0a07 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 44px 32px;
  background: linear-gradient(180deg, rgba(42, 32, 18, 0.94) 0%, rgba(20, 15, 9, 0.94) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-top: 3px solid var(--primary-color);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7), 0 0 45px rgba(245, 158, 11, 0.14);
  text-align: center;
}

.login-logo {
  font-size: 50px;
  margin-bottom: 15px;
  animation: bounce 3s infinite ease-in-out;
}

.login-logo-img {
  display: block;
  width: 104px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.55));
  animation: bounce 3s infinite ease-in-out;
}

/* --- Auth: abas Entrar/Cadastrar, consentimento, recuperação --- */
.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(180deg, #f7a92a 0%, #ec7b12 100%);
  color: #1a1206;
}

.auth-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 12px;
  text-align: right;
  cursor: pointer;
  margin: -4px 0 14px;
  padding: 0;
}

.auth-link:hover { text-decoration: underline; }

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 11px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 18px;
  cursor: pointer;
}

.auth-consent input { margin-top: 2px; flex: none; }
.auth-consent a { color: var(--primary-color); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Divisor "ou" + botão do Google */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

.google-signin {
  display: flex;
  justify-content: center;
}

/* Modais de recuperação ficam ACIMA da tela de login (z-index 2000) */
#recover-modal,
#recovery-code-modal { z-index: 2100; }

/* Caixa de atenção do código de recuperação */
.recovery-code-card { text-align: center; }

.recovery-warn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.recovery-warn-icon { font-size: 38px; }
.recovery-warn h3 { color: #f7a92a; font-size: 18px; }

.recovery-code-box {
  font-family: 'Saira', monospace;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 3px;
  color: #ffe2a0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--primary-color);
  border-radius: 10px;
  padding: 16px 10px;
  margin-bottom: 14px;
  user-select: all;
  word-break: break-all;
}

/* Ficha de verificação na recuperação manual (admin) */
.recovery-lookup-info {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recovery-lookup-info span { color: var(--text-muted); }

.login-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 28px;
  color: #fff;
  letter-spacing: 1px;
}

.login-title span {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-glow);
}

.login-subtitle {
  font-size: 12px;
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.login-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #d97706 100%);
  color: #1a1206;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Modal for Change Password */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1500;
}

.modal-card {
  width: 95%;
  max-width: 400px;
  background: rgba(7, 24, 13, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 10px;
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--primary-color);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ODDS Betting System Styles */
.odds-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 8px;
  margin-bottom: 4px;
  text-align: center;
}

.odds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.odd-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  color: var(--text-main);
  padding: 8px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 600;
}

.odd-btn:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--secondary-color);
}

.odd-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.odd-btn.active {
  background: var(--secondary-color);
  color: #1a1206;
  border-color: var(--secondary-color);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.odd-btn-label {
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0.8;
}

.wager-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wager-inputs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wager-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 4px 10px;
  width: 50%;
}

.wager-input-wrapper span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.wager-pts-input {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  padding: 4px 0 4px 6px;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  font-family: var(--font-title);
}

.wager-returns {
  width: 50%;
  text-align: right;
  display: flex;
  flex-direction: column;
}

.wager-returns-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.wager-returns-val {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
}

.wager-actions {
  display: flex;
  gap: 8px;
}

.btn-cancel-bet {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid #ff4d4d;
  color: #ff8888;
}

.btn-cancel-bet:hover:not(:disabled) {
  background: rgba(255, 77, 77, 0.25);
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

/* Admin ODD inputs */
.admin-odds-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.admin-odds-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-odds-wrapper label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.admin-odd-input {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: white;
  padding: 6px;
  font-size: 13px;
  font-weight: 700;
  outline: none;
  text-align: center;
}

/* Floating Betting Slip Button */
.floating-slip-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  background: var(--secondary-color);
  color: #1a1206;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 800;
  font-family: var(--font-title);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(245, 158, 11, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-slip-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.6);
}

.slip-icon {
  font-size: 18px;
}

.slip-badge {
  background: #ff4d4d;
  color: white;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Betting Slip Sliding Drawer */
.slip-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: rgba(10, 20, 15, 0.96);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid var(--card-border);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  box-sizing: border-box;
  box-shadow: -10px 0 30px rgba(0,0,0,0.7);
}

.slip-drawer.active {
  right: 0;
}

.slip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.slip-header h3 {
  margin: 0;
  font-family: var(--font-title);
  color: white;
  font-size: 18px;
  font-weight: 800;
}

.slip-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.slip-close-btn:hover {
  color: #fff;
}

/* Wager items inside slip */
.slip-items-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.slip-items-list::-webkit-scrollbar {
  width: 5px;
}

.slip-items-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.slip-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.slip-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.slip-item-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #ff8888;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.slip-item-remove-btn:hover {
  opacity: 1;
}

.slip-item-teams {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 25px;
}

.slip-item-market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.slip-item-selection {
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.slip-item-odds {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary-color);
}

/* Accordion Market selector */
.market-accordion {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.market-accordion-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.market-accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.market-accordion-header::after {
  content: '▼';
  font-size: 8px;
  transition: transform 0.3s ease;
}

.market-accordion.active .market-accordion-header {
  border-bottom: 1px solid var(--card-border);
  color: var(--primary-color);
  background: rgba(245, 158, 11, 0.03);
}

.market-accordion.active .market-accordion-header::after {
  transform: rotate(180deg);
}

.market-accordion-content {
  display: none;
  padding: 12px;
  background: rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.2s ease;
}

.market-accordion.active .market-accordion-content {
  display: block;
}

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

/* Double column grids inside accordions */
.market-odds-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.market-odds-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* Responsive adjustments for sliding drawer */
@media (max-width: 480px) {
  .slip-drawer {
    width: 100%;
    right: -100%;
  }
}

/* Round grouping headers inside matches grid */
.round-group-header {
  grid-column: 1 / -1;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.2);
  padding-bottom: 6px;
  margin-top: 25px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}
.round-group-header:first-of-type {
  margin-top: 10px;
}

/* ===========================================================================
   PLANOS (assinatura) & UPGRADE DE BOLÃO
   =========================================================================== */

/* --- Toggle mensal/anual --- */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}
.billing-opt {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.billing-opt.active {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: var(--brazil-glow);
}
.billing-save {
  font-size: 11px;
  font-weight: 800;
  color: var(--win-color);
  margin-left: 4px;
}
.billing-opt.active .billing-save { color: #fff; }

/* --- Grid de planos --- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.plan-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--brazil-border);
  box-shadow: var(--brazil-glow);
}
.plan-card.is-current { outline: 2px solid var(--win-color); outline-offset: -2px; }
.plan-ribbon {
  position: absolute;
  top: 14px;
  right: -2px;
  background: var(--primary-color);
  color: #1c160e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 6px 0 0 6px;
}
.plan-head { display: flex; align-items: center; gap: 10px; }
.plan-emoji { font-size: 26px; }
.plan-head h3 { font-family: var(--font-title); font-size: 22px; }
.plan-price { margin: 16px 0 8px; }
.plan-amount { font-size: 34px; font-weight: 800; color: var(--primary-color); }
.plan-period { font-size: 14px; color: var(--text-muted); margin-left: 4px; }
.plan-subprice { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.plan-save { color: var(--win-color); font-weight: 800; }
.plan-features {
  list-style: none;
  padding: 16px 0;
  margin: 8px 0 20px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-main);
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--win-color);
  font-weight: 800;
}
.plan-cta { width: 100%; }
.plan-cta:disabled { opacity: 0.55; cursor: default; }

/* --- Upgrade de bolão (dentro do bolão) --- */
#pool-upgrade-panel { border-top: 1px solid var(--card-border); padding-top: 22px; }
.upgrade-season-note {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--brazil-bg);
  border: 1px solid var(--brazil-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.upgrade-group { margin-bottom: 24px; }
.upgrade-group-head h4 { font-family: var(--font-title); font-size: 17px; margin-bottom: 4px; }
.upgrade-group.premium .upgrade-group-head h4 { color: var(--primary-color); }
.upgrade-group-head p { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-bottom: 14px; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.tier-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-card.premium { border-color: rgba(245, 158, 11, 0.3); }
.tier-card.is-current { outline: 2px solid var(--win-color); outline-offset: -2px; }
.tier-card.is-covered { opacity: 0.45; filter: grayscale(0.4); }
.tier-card.is-covered .tier-off { display: none; }
.tier-card.is-enterprise { border-style: dashed; }
.tier-enterprise-note { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.tier-label { font-weight: 700; font-size: 14px; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tier-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.tier-new { font-size: 19px; font-weight: 800; color: var(--primary-color); }
.tier-off {
  font-size: 10px;
  font-weight: 800;
  color: var(--win-color);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--win-color);
  border-radius: 4px;
  padding: 1px 5px;
}
.tier-cta { width: 100%; padding: 7px 12px; font-size: 12px; margin-top: auto; }
.tier-current-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--win-color);
  margin-top: auto;
}
.tier-covered-tag { color: var(--text-muted); }
.enterprise-active-card { border: 1px solid var(--win-color); }
.enterprise-active-tag { font-size: 15px; font-weight: 800; color: var(--win-color); }

/* --- Perfil --- */
.profile-head-card { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #1c160e;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  flex-shrink: 0;
}
.profile-meta h2 { font-family: var(--font-title); font-size: 22px; display: flex; align-items: center; gap: 8px; }
.profile-meta p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.vip-badge {
  font-size: 11px; font-weight: 800; color: #1c160e;
  background: var(--primary-color); border-radius: 6px; padding: 2px 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value { font-size: 22px; font-weight: 800; color: var(--primary-color); }
.stat-label { font-size: 12px; color: var(--text-muted); }

/* --- Card de upsell (Premium) --- */
.upsell-card {
  background: var(--brazil-bg);
  border: 1px dashed var(--brazil-border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.upsell-card h3 { font-family: var(--font-title); margin-bottom: 6px; }
.upsell-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* --- Time de Coração --- */
.team-picker { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.news-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, transform 0.1s ease;
}
.news-item:hover { border-color: var(--card-border-hover); transform: translateY(-1px); }
.news-title { font-weight: 700; font-size: 14px; line-height: 1.4; }
.news-meta { font-size: 11px; color: var(--primary-color); margin-top: 4px; }
.news-summary { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.45; }

/* --- Sub-abas (usado na aba Bolões) --- */
.subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--card-border);
  flex-wrap: wrap;
}
.subtab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.subtab-btn:hover { color: var(--text-main); }
.subtab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.subtab-content { display: none; }
.subtab-content.active { display: block; animation: fadeIn 0.2s ease; }

/* --- Lista de bolões + detalhe --- */
.pool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
.pool-row.clickable { cursor: pointer; transition: border-color 0.18s ease, transform 0.1s ease; }
.pool-row.clickable:hover { border-color: var(--card-border-hover); transform: translateY(-1px); }
.pool-row.own { border-color: var(--brazil-border); background: var(--brazil-bg); }
.pool-own-tag {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  color: #1c160e; background: var(--primary-color); border-radius: 5px; padding: 2px 6px; vertical-align: middle;
}
.pool-row-go { color: var(--primary-color); font-weight: 800; font-size: 13px; white-space: nowrap; }
.pool-detail-head h2 { font-family: var(--font-title); font-size: 22px; }
.pool-detail-head p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* Painéis internos do bolão */
.pd-content { display: none; }
.pd-content.active { display: block; animation: fadeIn 0.2s ease; }

/* Top 3 cards */
.top3-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.top3-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: rgba(255, 255, 255, 0.03);
  border-radius: 8px; font-size: 14px;
}
.top3-row strong { color: var(--primary-color); }
.pool-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.leaderboard-table .me-row { background: rgba(245, 158, 11, 0.08); }

/* ====================== ABA INÍCIO ====================== */
/* Layout em duas colunas: tabela (esquerda) | próximos jogos (direita) */
.home-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start;
}
.home-col { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
}
.home-card { margin-bottom: 18px; }
.home-col .home-card:last-child { margin-bottom: 0; }
.home-card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.home-card-header h2 {
  font-family: var(--font-title); font-weight: 800; font-size: 18px; margin: 0;
}
.home-provisional-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--primary-color); border: 1px solid var(--primary-color);
  border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.home-see-all {
  background: none; border: none; cursor: pointer; white-space: nowrap;
  color: var(--primary-color); font-size: 12.5px; font-weight: 700; padding: 4px;
}
.home-see-all:hover { text-decoration: underline; }
.home-empty { color: var(--text-muted); font-size: 13px; padding: 14px 4px; text-align: center; }

/* Tabela de classificação (provisória) */
.standings-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.standings-table th {
  color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 6px 8px; text-align: center;
  border-bottom: 1px solid var(--card-border);
}
.standings-table td {
  padding: 7px 8px; text-align: center; border-bottom: 1px solid rgba(120, 88, 38, 0.18);
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table .txt-left { text-align: left; }
.standings-pos {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; font-weight: 700; font-size: 12px;
  border-radius: 5px;
}
/* Zonas: top 4 = Libertadores (verde) · 4 últimos = rebaixamento (vermelho) */
.standings-pos.zone-liberta { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.standings-pos.zone-reb { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.standings-team { display: flex; align-items: center; gap: 8px; }
.standings-team img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.standings-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.standings-pts { font-weight: 800; color: var(--primary-color); }

/* Scroller horizontal dos próximos confrontos */
.home-scroller {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.home-scroller::-webkit-scrollbar { height: 6px; }
.home-scroller::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 999px; }
.home-match-card {
  flex: 0 0 auto; width: 150px; scroll-snap-align: start;
  background: rgba(18, 13, 8, 0.6); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.home-match-round {
  font-size: 10.5px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-match-teams { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.home-match-team { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 52px; }
.home-match-team img { width: 30px; height: 30px; object-fit: contain; }
.home-match-team span { font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; }
.home-match-x { font-size: 11px; font-weight: 800; color: var(--primary-color); }
.home-match-date {
  font-size: 11px; color: var(--text-muted); text-align: center;
  border-top: 1px solid rgba(120, 88, 38, 0.2); padding-top: 6px;
}

/* Pódio do top 3 */
.home-podium { display: flex; gap: 12px; flex-wrap: wrap; }
.home-podium-item {
  flex: 1 1 120px; min-width: 110px; text-align: center;
  background: rgba(18, 13, 8, 0.6); border: 1px solid var(--card-border);
  border-radius: 10px; padding: 14px 10px;
}
.home-podium-item.podium-1 { border-color: var(--primary-color); }
.home-podium-medal { font-size: 26px; line-height: 1; margin-bottom: 6px; }
.home-podium-name {
  font-weight: 700; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.home-podium-pts { color: var(--primary-color); font-weight: 800; font-size: 13px; margin-top: 2px; }
