/* Reset e Variáveis - Paleta Premium Bingo */
:root {
  /* Cores principais - Inspiradas em cassinos clássicos e bingo tradicional */
  --bingo-red: #DC143C;
  --bingo-red-dark: #B31230;
  --bingo-red-light: #FF6B8A;
  
  --bingo-blue: #1E3A8A;
  --bingo-blue-dark: #172554;
  --bingo-blue-light: #3B82F6;
  
  --bingo-gold: #FFD700;
  --bingo-gold-dark: #DAA520;
  --bingo-gold-light: #FFF4C4;
  
  --bingo-green: #059669;
  --bingo-green-dark: #047857;
  --bingo-green-light: #34D399;
  
  --bingo-purple: #7C3AED;
  --bingo-purple-dark: #5B21B6;
  --bingo-purple-light: #A78BFA;
  
  /* Cores de status */
  --status-active: #10B981;
  --status-waiting: #F59E0B;
  --status-paused: #EF4444;
  --status-finished: #6B7280;
  
  /* Cores neutras */
  --dark-900: #0F172A;
  --dark-800: #1E293B;
  --dark-700: #334155;
  --dark-600: #475569;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  
  /* Gradientes */
  --gradient-main: linear-gradient(135deg, #DC143C 0%, #7C3AED 50%, #1E3A8A 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-winner: linear-gradient(135deg, #FFD700 0%, #FF8C00 50%, #FFD700 100%);
  --gradient-card: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  
  /* Sombras refinadas */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.24);
  --shadow-glow-red: 0 0 30px rgba(220, 20, 60, 0.4);
  --shadow-glow-gold: 0 0 40px rgba(255, 215, 0, 0.6);
  --shadow-glow-blue: 0 0 30px rgba(30, 58, 138, 0.4);
  
  /* Bordas */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  
  /* =========================================================
     ALIASES / COMPATIBILIDADE (evita var() inexistente)
     - Alguns trechos do CSS usam --primary/--border/--light/etc.
     - Sem isso, o browser descarta a propriedade (efeito “sumiu”).
     ========================================================= */
  --primary: var(--bingo-red);
  --primary-dark: var(--bingo-red-dark);
  --secondary: var(--bingo-blue);

  --success: var(--bingo-green);
  --warning: var(--status-waiting);
  --danger: var(--status-paused);

  --light: var(--gray-100);
  --border: var(--gray-300);
  --dark: var(--dark-900);

  /* alguns blocos usam var(--shadow) */
  --shadow: var(--shadow-md);
}

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

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-main);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--dark-900);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Padrão de fundo decorativo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(220, 20, 60, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Navbar Premium */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--bingo-gold);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(220, 20, 60, 0.2);
}

.user-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.user-balance {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark-900);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 800;
  border: 2px solid var(--bingo-gold-dark);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.purchase-summary {
  margin: 10px 0 6px;
  padding: 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tx-amount {
  font-weight: 900;
}

.tx-amount.tx-prize {
  color: var(--success);
}

.tx-amount.tx-deposit {
  color: var(--secondary);
}

.tx-amount.tx-purchase {
  color: var(--primary);
}

.tx-amount.tx-withdraw {
  color: var(--danger);
}

.badge {
  background: var(--gradient-gold);
  color: var(--dark-900);
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: var(--shadow-glow-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--bingo-gold-dark);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0%, 100% { box-shadow: var(--shadow-glow-gold); }
  50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.8); }
}

/* Botões Premium */
button, .btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
}

.alert-error {
  background: rgba(220, 20, 60, 0.12);
  border: 1px solid rgba(220, 20, 60, 0.28);
  color: var(--primary-dark);
}

.alert-success {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.28);
  color: var(--bingo-green-dark);
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--bingo-red);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow-red);
}

.btn-primary:hover {
  background: var(--bingo-red-dark);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(220, 20, 60, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bingo-blue);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn-secondary:hover {
  background: var(--bingo-blue-dark);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(30, 58, 138, 0.6);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--bingo-green);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  background: var(--bingo-green-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-warning {
  background: var(--status-waiting);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-warning:hover {
  background: #D97706;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--status-paused);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-danger:hover {
  background: #DC2626;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-logout {
  background: transparent;
  color: var(--bingo-red);
  border: 2px solid var(--bingo-red);
  padding: 0.6rem 1.2rem;
  font-weight: 600;
}

.btn-logout:hover {
  background: var(--bingo-red);
  color: white;
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
}

/* Página de Autenticação */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-box {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--bingo-gold);
}

.auth-box h1 {
  text-align: center;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--dark-800);
  font-weight: 700;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--dark-700);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: var(--bingo-red);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 38px;
  cursor: pointer;
  color: var(--dark-600);
  font-size: 1.2rem;
  user-select: none;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--bingo-red);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--dark-600);
}

.auth-footer a {
  color: var(--bingo-red);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: var(--bingo-red-dark);
  text-decoration: underline;
}

.alert {
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert-error {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  color: var(--status-paused);
  border: 2px solid var(--status-paused);
  box-shadow: var(--shadow-sm);
}

/* Home - Grid de Sorteios */
.welcome-section {
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.draws-section {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.draws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.draw-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Destaque para sorteios vencidos pelo usuário */
.draw-card.draw-card-winner {
  background: linear-gradient(135deg, var(--bingo-gold-light) 0%, #ffffff 55%, #f8fafc 100%);
  border-color: var(--bingo-gold);
}

.draw-card.draw-card-winner:hover {
  border-color: var(--bingo-gold-dark);
}

.draw-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.draw-card h3 {
  margin-bottom: 1rem;
}

.draw-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-waiting {
  background: #e3f2fd;
  color: #1976d2;
}

.status-active {
  background: #e8f5e9;
  color: #388e3c;
}

.status-paused {
  background: #fff3e0;
  color: #f57c00;
}

.status-finished {
  background: #fce4ec;
  color: #c2185b;
}

/* Página de Jogo - aplicado apenas quando body tem classe .play-page */
body.play-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.play-page .main-content {
  flex: 1 0 auto;
  min-height: unset;
}

body.play-page .footer {
  margin-top: auto;
}

.play-container {
  background: #f8fafc;
  padding: 1.5rem;
  max-width: 100%;
  min-height: unset;
  height: auto;
  overflow: visible;
}

@media (max-height: 800px) {
  .play-container {
    padding: 1rem;
    min-height: unset;
    height: auto;
  }

  body.play-page .page-header {
    margin-bottom: 16px;
  }

  .game-layout {
    min-height: unset;
  }
}

@media (max-height: 700px) {
  .play-container {
    padding: 0.75rem;
    height: auto;
  }

  .game-layout {
    height: auto;
  }

  .numero-atual {
    height: 80px;
  }

  .numero-atual strong {
    font-size: 1.6rem;
  }
}

@media (max-height: 600px) {
  .navbar {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }

  .play-container {
    padding: 0.5rem;
    height: auto;
  }

  body.play-page .page-header {
    margin-bottom: 6px;
  }

  body.play-page .page-title {
    font-size: 1.2rem;
    color: #8e2fb9;
    margin-right: 0;
  }

  .game-layout {
    height: auto;
    gap: 8px;
  }

  .numero-atual {
    height: 70px;
  }

  .numero-atual span {
    font-size: 0.75rem;
  }

  .numero-atual strong {
    font-size: 1.4rem;
  }

  .ultimos-section {
    padding: 4px;
  }

  .ultimos-title {
    font-size: 0.6rem;
    margin-bottom: 3px;
  }

  .ultimos-numeros {
    gap: 2px;
  }

  .ultimos-numeros span {
    font-size: 0.65rem;
    padding: 3px 0;
  }

  .controls-card {
    gap: 0.4rem;
  }

  .controls-card button {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
  }

  .cartela {
    padding: 8px;
  }

  .cartela-header {
    margin-bottom: 6px;
    padding-bottom: 6px;
  }

  .cartela-header h4 {
    font-size: 0.95rem;
  }
}

/* Header com título centralizado */
body.play-page .page-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

body.play-page .btn-voltar {
  background: #ffffff;
  border: 3px solid var(--primary);
  color: #8e2fb9;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s;
  display: inline-block;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.play-page .btn-voltar:hover {
  background: var(--primary);
  color: #8e2fb9;
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

body.play-page .page-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #8e2fb9;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.play-page .header-spacer {
  width: 120px;
}

/* Grid Principal (cartelas grandes, info compacta) */
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  min-height: auto;
}

/* Área de Cartelas */
.cartelas-area {
  min-height: 600px;
  overflow: visible;
}

.cartelas-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
  min-height: unset;
  align-items: start;
}

/* 1 cartela */
.cartelas-wrapper.uma {
  grid-template-columns: 1fr;
}

/* 2 cartelas */
.cartelas-wrapper.duas {
  grid-template-columns: 1fr 1fr;
}

/* Cartela individual */
.cartela {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  min-height: auto;
  border: 3px solid var(--bingo-gold);
  box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cartela:hover {
  box-shadow: var(--shadow-xl), 0 0 50px rgba(255, 215, 0, 0.8);
  transform: translateY(-5px);
  border-color: var(--bingo-gold-dark);
}

.cartela-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--bingo-gold);
}

.cartela-header h4 {
  margin: 0;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2rem;
  font-weight: 900;
}

/* Info área (compacta) */
.info-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.numero-atual {
  background: var(--gradient-dark);
  color: var(--bingo-gold);
  border-radius: var(--border-radius-lg);
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
  border: 3px solid var(--bingo-gold);
}

.numero-atual span {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--bingo-gold-light);
}

.numero-atual strong {
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
  color: var(--bingo-gold);
}

.ultimos-section {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-md);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gray-200);
}

.ultimos-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--dark-700);
  text-align: center;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ultimos-numeros {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.ultimos-numeros span {
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  padding: 10px 0;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark-700);
  border: 2px solid var(--gray-300);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.ultimos-numeros span.latest {
  background: var(--gradient-gold);
  color: var(--dark-900);
  font-weight: 900;
  border-color: var(--bingo-gold-dark);
  box-shadow: var(--shadow-glow-gold);
  transform: scale(1.1);
  animation: pulse-latest 2s ease-in-out infinite;
}

@keyframes pulse-latest {
  0%, 100% { 
    box-shadow: var(--shadow-glow-gold);
  }
  50% { 
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
  }
}

.main-panel, .side-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.current-number-section {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 10px;
}

.current-number-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  border-radius: 10px;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: 2px;
  text-align: center;
}

.number-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.number-display .letter {
  font-size: 4rem;
  color: #FFD700;
}

.number-display .number {
  font-size: 5rem;
}

/* Cartela de Bingo */
.bingo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  flex: 1;
  border: 3px solid var(--bingo-gold);
}

.bingo-table th {
  background: var(--gradient-main);
  color: white;
  padding: 14px;
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom: 3px solid var(--bingo-gold);
}

.bingo-table td {
  padding: 14px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  border: 2px solid var(--gray-200);
  color: var(--dark-900);
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.bingo-table td:hover:not(.free):not(.marked) {
  background: var(--gray-100);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.bingo-table td.marked {
  background: var(--bingo-green);
  color: white;
  transform: scale(0.95);
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.3), var(--shadow-md);
  border-color: var(--bingo-green-dark);
  font-weight: 900;
}

.bingo-table td.free {
  background: var(--gradient-gold);
  color: var(--dark-900);
  cursor: default;
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
  border-color: var(--bingo-gold-dark);
  box-shadow: var(--shadow-glow-gold);
}

/* Símbolo FREE (centro da cartela) */
.free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.free-badge::before {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(15, 23, 42, 0.18);
}

.free-badge::after {
  content: '';
  position: absolute;
  bottom: -7px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid rgba(255, 255, 255, 0.45);
  filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.18));
}

.free-badge-text {
  position: relative;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--dark-900);
  font-size: 0.85rem;
}

/* Espaço de respiro antes do footer na play page */
body.play-page .controls-card {
  margin-bottom: 24px;
}

/* Números que resultaram no BINGO */
.bingo-table td.bingo-number {
  background: var(--gradient-winner) !important;
  color: var(--dark-900) !important;
  font-weight: 900 !important;
  animation: bingo-number-pulse 1.5s ease-in-out infinite !important;
  box-shadow: var(--shadow-glow-gold) !important;
  position: relative;
  z-index: 10;
  border-color: var(--bingo-gold-dark) !important;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5) !important;
}

@keyframes bingo-number-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-glow-gold);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 50px rgba(255, 215, 0, 1);
  }
}

/* Números Sorteados */
.drawn-section {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 10px;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.drawn-number {
  background: white;
  padding: 0.5rem;
  text-align: center;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--border);
}

.drawn-number.latest {
  background: var(--primary);
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Instruções */
.instructions {
  background: #e3f2fd;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--secondary);
}

.instructions h4 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

.instructions ul {
  list-style: none;
}

.instructions li {
  margin-bottom: 0.5rem;
}

/* Página Admin */
.admin-container {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s ease;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

/* Botão voltar do admin (mantém consistência com play page) */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(16, 32, 141, 0.715);
  color: rgba(36, 34, 180, 0.741);
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.22);
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 1200px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.control-panel, .numbers-panel, .cards-panel {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 10px;
}

/* Board de números (Admin e Jogo) */
.numbers-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
}

.number-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.column-header {
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 8px;
  border-radius: var(--border-radius-md);
  background: var(--gradient-dark);
  color: var(--bingo-gold);
  border: 2px solid rgba(255, 215, 0, 0.35);
  box-shadow: var(--shadow-sm);
}

.number-cell,
.number-cell-small {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 10px;
  background: white;
  border: 2px solid var(--gray-200);
  font-weight: 800;
  color: var(--dark-800);
  user-select: none;
}

.number-cell.drawn,
.number-cell-small.drawn {
  background: var(--gradient-gold);
  border-color: var(--bingo-gold-dark);
  color: var(--dark-900);
}

.number-cell.highlight,
.number-cell-small.highlight {
  transform: scale(1.06);
  box-shadow: var(--shadow-glow-gold);
  transition: transform 0.2s ease;
}

@media (max-width: 480px) {
  .numbers-board {
    gap: 8px;
  }

  .number-cell,
  .number-cell-small {
    height: 32px;
    font-size: 0.9rem;
  }
}

/* Vencedores (Admin) */
.winner-cards-section {
  margin-bottom: 1.5rem;
}

#winner-cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.winner-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.winner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.winner-header h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--dark-900);
}

.badge-winner {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--border-radius-full);
  background: var(--gradient-winner);
  color: var(--dark-900);
  font-weight: 900;
  font-size: 0.75rem;
  border: 2px solid rgba(255, 215, 0, 0.45);
}

.winner-info p {
  margin: 0.25rem 0;
  color: var(--dark-700);
  font-weight: 600;
}

.winner-card-display {
  margin-top: 12px;
}

.bingo-card-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
}

.bingo-card-table th {
  background: var(--gradient-dark);
  color: var(--bingo-gold);
  font-weight: 900;
  padding: 10px 0;
  border: 1px solid rgba(255, 215, 0, 0.25);
}

.bingo-card-table td {
  text-align: center;
  padding: 10px 0;
  border: 1px solid var(--gray-200);
  font-weight: 800;
  background: white;
}

.bingo-card-table .free-cell {
  background: var(--gradient-gold);
  color: var(--dark-900);
}

.bingo-card-table .marked-cell {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

.bingo-card-table .winning-cell {
  background: var(--gradient-winner);
  border-color: rgba(255, 215, 0, 0.65);
}

/* Próximas do bingo (Admin) */
.near-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 0.9rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.near-card.very-close {
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: var(--shadow-glow-gold);
}

.near-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.badge-missing {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--border-radius-full);
  background: rgba(245, 158, 11, 0.2);
  border: 2px solid rgba(245, 158, 11, 0.35);
  color: var(--dark-900);
  font-weight: 900;
  font-size: 0.75rem;
}

.near-card-info {
  color: var(--dark-700);
  font-weight: 600;
  font-size: 0.9rem;
}

.control-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-number-display {
  background: var(--gradient-dark);
  color: var(--bingo-gold);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  font-size: 3.5rem;
  font-weight: 900;
  margin: 1rem 0;
  box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
  border: 3px solid var(--bingo-gold);
  text-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

.admin-number-display p {
  margin: 0;
  color: var(--bingo-gold);
}

.total-info {
  text-align: center;
  font-weight: 700;
  color: var(--dark-800);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.numbers-history {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.drawn-num {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: 2px solid var(--primary);
  font-weight: 600;
}

.near-bingo-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff3e0;
  border-radius: 8px;
  border-left: 4px solid var(--warning);
}

/* Footer */
.footer {
  background: rgba(255,255,255,0.1);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  backdrop-filter: blur(10px);
}

/* Remove estilos antigos conflitantes */
.numbers-top-section,
.cards-section-full,
.game-layout-desktop,
.side-info-panel,
.main-cards-area,
.cards-header-main,
.cards-grid-adaptive {
  display: none !important;
}

/* Controles - Compacto */
.controls-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid #e2e8f0;
}

.controls-card button {
  font-size: 0.95rem;
  padding: 12px 16px;
  white-space: nowrap;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
}

.controls-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Correções gerais para página de jogo */
body.play-page {
  overflow-x: hidden;
}

.play-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Header mais enxuto */
body.play-page .page-header {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

/* Grid principal sem overflow lateral */
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  min-height: auto;
}

/* Wrapper de cartelas flexível (1, 2 ou 3+) */
.cartelas-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
  min-height: unset;
  align-items: start;
}

.cartelas-wrapper.uma,
.cartelas-wrapper.duas,
.cartelas-wrapper.tres {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cartela mais compacta */
.cartela {
  padding: 14px;
  min-height: auto;
  border: 2px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Cabeçalho da cartela */
.cartela-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.cartela-header h4 {
  font-size: 1.1rem;
}

/* Tabela de bingo mais enxuta */
.bingo-table th {
  padding: 12px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  font-weight: bold;
  text-align: center;
}

.bingo-table td {
  padding: 12px;
  font-size: 1.05rem;
  border-width: 1px;
  transform: none;
}

.bingo-table td:hover:not(.free):not(.marked) {
  transform: none;
}

/* Painel lateral mais compacto */
.info-area {
  gap: 12px;
}

.numero-atual {
  height: 110px;
}

.numero-atual span {
  font-size: 0.9rem;
}

.numero-atual strong {
  font-size: 2.3rem;
}

/* ===== Modal de Compra de Cartelas ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease-out;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--dark-600);
  transition: color 0.2s;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--bingo-red);
}

.card-purchase-modal h2 {
  color: var(--dark-900);
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.card-purchase-modal p {
  color: var(--dark-600);
  margin-bottom: 1.5rem;
}

.card-quantity-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-option {
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.quantity-option:hover {
  border-color: var(--bingo-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quantity-option.selected {
  border-color: var(--bingo-blue);
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  box-shadow: var(--shadow-md);
}

.quantity-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--bingo-blue);
  margin-bottom: 0.25rem;
}

.quantity-label {
  font-size: 1rem;
  color: var(--dark-600);
  font-weight: 500;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  width: 100%;
}

/* Modal de Resultado do Jogo */
.result-modal {
  max-width: 600px;
  text-align: center;
  background: var(--gradient-dark);
  color: white;
}

.result-modal .modal-body {
  padding: 2rem 0;
}

.result-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: bounce 1s infinite;
}

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

.result-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--bingo-gold);
}

.result-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.winner-card-info {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
}

.winner-card-info strong {
  color: var(--bingo-gold);
}

.winner-animation {
  position: relative;
}

.loser-animation {
  position: relative;
}

.confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
  0% {
    top: -10%;
    opacity: 1;
  }
  100% {
    top: 110%;
    opacity: 0.5;
  }
}

/* Últimas bolas menores */
.ultimos-section {
  padding: 10px;
}

.ultimos-title {
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.ultimos-numeros {
  gap: 4px;
}

.ultimos-numeros span {
  padding: 8px 0;
  font-size: 0.9rem;
}

/* Controles compactos */
.controls-card {
  gap: 8px;
}

.controls-card button {
  padding: 10px 12px;
  font-size: 0.9rem;
}

/* Ajustes para 3+ cartelas caberem na tela */
@media (min-width: 1025px) {
  .cartelas-wrapper.tres {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .cartelas-wrapper.tres .bingo-table th {
    font-size: 1.1rem;
    padding: 10px;
  }

  .cartelas-wrapper.tres .bingo-table td {
    font-size: 1rem;
    padding: 10px;
  }
}

/* Tablets: evitar overflow e manter proporção */
@media (max-width: 1024px) {
  .play-container {
    padding: 1rem;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 10px;
  }
  .cartelas-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* =========================================================
   FIX MOBILE/TABLET (<= 1024px)
   - Navbar menos espaçosa
   - Título centralizado sem gambiarra de margin
   - Remove alturas fixas que causam footer sobre as cartelas
   ========================================================= */

/* 1) Navbar mais compacta em tablet/mobile */
@media (max-width: 1024px) {
  .navbar {
    padding: 0.55rem 0;
    margin-bottom: 1rem;
  }

  .navbar .container {
    padding: 0 12px;
  }

  .logo {
    font-size: 1.35rem;
  }

  .user-info {
    gap: 0.75rem;
  }

  .btn-logout {
    padding: 0.45rem 0.9rem;
  }
}

/* 2) Play page: permitir scroll natural e impedir “transbordo” por alturas fixas */
@media (max-width: 1024px) {
  body.play-page,
  body.play-page html {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
  }

  body.play-page .main-content {
    min-height: unset !important;
  }

  /* IMPORTANTÍSSIMO: remove os height/min-height “travados” que fazem o conteúdo passar por baixo do footer */
  body.play-page .play-container {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
  }

  body.play-page .game-layout {
    height: auto !important;
    min-height: unset !important;
  }

  body.play-page .cartelas-area {
    min-height: unset !important;
  }

  body.play-page .cartelas-wrapper {
    min-height: unset !important;
  }

  /* Footer sempre no fluxo normal, sem sobrepor */
  body.play-page .footer {
    position: static !important;
    margin-top: 24px;
  }
}

/* 3) Header do jogo: título centralizado, botão volta não “rouba” o centro */
body.play-page .page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* esquerda | título | direita (spacer) */
  align-items: center;
  column-gap: 10px;
}

body.play-page .btn-voltar {
  justify-self: start;
}

body.play-page .page-title {
  justify-self: center;
  text-align: center;
  margin: 0;
  width: auto;
}

body.play-page .header-spacer {
  justify-self: end;
  width: auto; /* deixa de ser fixo */
  min-width: 120px; /* “equilibra” o botão da esquerda no desktop */
}

/* 4) Tablets/medium: painel de info sobe, layout em coluna */
@media (max-width: 1024px) {
  body.play-page .game-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  body.play-page .info-area {
    order: -1;
  }

  body.play-page .header-spacer {
    min-width: 100px; /* acompanha o botão menor */
  }
}

/* 5) Mobile: botão menor e spacer proporcional, mantendo título central */
@media (max-width: 600px) {
  body.play-page .btn-voltar {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  body.play-page .page-title {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  body.play-page .header-spacer {
    min-width: 88px; /* “espelha” aprox. o botão voltar */
  }
}

@media (max-width: 480px) {
  body.play-page .btn-voltar {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  body.play-page .page-title {
    font-size: 1.1rem;
  }

  body.play-page .header-spacer {
    min-width: 76px;
  }
}

/* ===============================================
   Cards Grid (Admin - View All Cards)
   =============================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card-item {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  padding: 0.85rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-item.winner-card-item {
  background: linear-gradient(135deg, #fffbea 0%, #fff7d1 100%);
  border: 2px solid var(--bingo-gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.card-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.1rem;
  font-size: 1rem;
}

.card-item-info {
  color: var(--dark-600);
  margin-bottom: 0.15rem;
}

.card-item-stats {
  font-size: 0.85rem;
  color: var(--dark-600);
  padding-top: 0.5rem;
  border-top: 1px solid var(--gray-200);
}

.winner-badge {
  background: var(--gradient-gold);
  color: var(--dark-900);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

#all-cards-list {
  display: none;
}

/* =========================================================
   Create Draw (Admin) - estilos e responsividade
   - classes usadas em views/admin/create-draw.ejs
   ========================================================= */

.create-draw-container {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.5s ease;
}

.draw-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.create-draw-container .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.create-draw-container .page-header h1 {
  margin: 0;
}

.form-section {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(203, 213, 225, 0.7);
}

.form-section h3 {
  margin-bottom: 1rem;
  color: var(--dark-900);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .create-draw-container {
    padding: 1.25rem;
  }

  .form-section {
    padding: 1.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary,
  .form-actions .btn-danger,
  .form-actions .btn-success,
  .form-actions button {
    width: 100%;
  }
}

/* =========================================================
   Responsividade Global (todas as páginas)
   ========================================================= */

@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .user-info {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .welcome-section h1 {
    font-size: 2rem;
  }

  .draws-section {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  button, .btn-primary, .btn-secondary, .btn-success, .btn-warning, .btn-danger {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
  }

  .auth-container {
    padding: 12px;
  }

  .auth-box {
    padding: 1.5rem;
  }

  .welcome-section h1 {
    font-size: 1.6rem;
  }

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

  .draw-card {
    padding: 1.1rem;
  }
}

/* =========================================================
   Tabelas responsivas (movimentações / admin)
   ========================================================= */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table {
  width: 100%;
}

.responsive-table th,
.responsive-table td {
  vertical-align: top;
}

@media (max-width: 600px) {
  .responsive-table thead {
    display: none;
  }

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

  .responsive-table tr {
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(203, 213, 225, 0.7);
    border-radius: var(--border-radius-lg);
    margin: 12px 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }

  .responsive-table td {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border: none !important;
    text-align: left !important;
    word-break: break-word;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 900;
    color: var(--dark-700);
  }

  /* Última linha sem “bordas” visuais extras */
  .responsive-table tr td:last-child {
    padding-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .responsive-table td {
    grid-template-columns: 110px 1fr;
  }
}
