/* iaSorte - Estilos customizados */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;

  /* Theme tokens */
  --bg-body: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-hover: #334155;
  --bg-elevated: rgba(30, 41, 59, 0.8);
  --bg-sunken: rgba(15, 23, 42, 0.5);
  --bg-sunken-deep: rgba(15, 23, 42, 0.8);
  --bg-sunken-light: rgba(15, 23, 42, 0.4);
  --bg-sunken-subtle: rgba(15, 23, 42, 0.3);
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-lighter: rgba(30, 41, 59, 0.5);
  --bg-card-strong: rgba(30, 41, 59, 0.6);
  --bg-card-solid: rgba(30, 41, 59, 0.95);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-muted: #475569;
  --text-heading: #f1f5f9;
  --text-light: #cbd5e1;
  --text-link: #818cf8;
  --text-link-hover: #a5b4fc;

  --border-primary: rgba(99, 102, 241, 0.15);
  --border-secondary: rgba(99, 102, 241, 0.1);
  --border-subtle: rgba(99, 102, 241, 0.06);
  --border-medium: rgba(99, 102, 241, 0.2);
  --border-strong: rgba(99, 102, 241, 0.3);
  --border-hover: rgba(99, 102, 241, 0.4);
  --border-divider: rgba(99, 102, 241, 0.08);

  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(99, 102, 241, 0.15);

  --input-bg: rgba(15, 23, 42, 0.6);
  --input-bg-focus: rgba(15, 23, 42, 0.8);
  --input-border: rgba(99, 102, 241, 0.15);
  --input-text: #e2e8f0;
  --input-placeholder: #475569;

  --sidebar-bg: #1e293b;
  --sidebar-border: rgba(99, 102, 241, 0.1);

  --modal-bg: #1e293b;
  --modal-overlay: rgba(0, 0, 0, 0.7);

  --chart-grid: rgba(99, 102, 241, 0.08);
  --chart-text: #94a3b8;

  --score-bar-bg: #1e293b;
  --scrollbar-thumb: #4f46e5;

  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  --card-shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 0, 0, 0.2);

  --accent-bg: rgba(99, 102, 241, 0.1);
  --accent-bg-hover: rgba(99, 102, 241, 0.2);
  --accent-bg-subtle: rgba(99, 102, 241, 0.05);
  --accent-bg-strong: rgba(99, 102, 241, 0.15);

  --summary-bg: rgba(30, 27, 75, 0.4);
  --hero-gradient: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.12) 40%, rgba(236,72,153,0.05) 100%);
  --welcome-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(15, 23, 42, 0) 100%);

  /* Accent colors for inline styles */
  --accent-gold: #fbbf24;
  --accent-green: #34d399;
  --accent-green-icon: #4ade80;
  --accent-purple: #c084fc;
  --accent-blue: #38bdf8;
  --accent-indigo-light: #a5b4fc;
  --accent-red: #f87171;
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-sunken: #f1f5f9;
  --bg-sunken-deep: #e2e8f0;
  --bg-sunken-light: #f1f5f9;
  --bg-sunken-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-lighter: #ffffff;
  --bg-card-strong: #ffffff;
  --bg-card-solid: #f8fafc;

  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-muted: #cbd5e1;
  --text-heading: #0f172a;
  --text-light: #475569;
  --text-link: #4f46e5;
  --text-link-hover: #6366f1;

  --border-primary: rgba(99, 102, 241, 0.18);
  --border-secondary: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-medium: rgba(99, 102, 241, 0.25);
  --border-strong: rgba(99, 102, 241, 0.35);
  --border-hover: rgba(99, 102, 241, 0.45);
  --border-divider: #e2e8f0;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(99, 102, 241, 0.15);

  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --input-border: #d1d5db;
  --input-text: #1e293b;
  --input-placeholder: #9ca3af;

  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;

  --modal-bg: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.4);

  --chart-grid: rgba(0, 0, 0, 0.06);
  --chart-text: #64748b;

  --score-bar-bg: #e2e8f0;
  --scrollbar-thumb: #cbd5e1;

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.1);

  --accent-bg: rgba(99, 102, 241, 0.08);
  --accent-bg-hover: rgba(99, 102, 241, 0.15);
  --accent-bg-subtle: rgba(99, 102, 241, 0.04);
  --accent-bg-strong: rgba(99, 102, 241, 0.12);

  --summary-bg: rgba(238, 242, 255, 0.6);
  --hero-gradient: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.05) 40%, rgba(248,250,252,0) 100%);
  --welcome-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 50%, rgba(248, 250, 252, 0) 100%);

  --accent-gold: #d97706;
  --accent-green: #059669;
  --accent-green-icon: #16a34a;
  --accent-purple: #7c3aed;
  --accent-blue: #0284c7;
  --accent-indigo-light: #4f46e5;
  --accent-red: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.6); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out; }
.animate-fade-in-delay { animation: fadeIn 0.6s ease-out 0.2s both; }
.animate-fade-in-delay2 { animation: fadeIn 0.6s ease-out 0.4s both; }
.animate-pulse-glow { animation: pulse-glow 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Gradientes */
.gradient-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.gradient-hero { background: linear-gradient(135deg, var(--bg-body) 0%, #1e1b4b 50%, var(--bg-body) 100%); }
.gradient-card { background: linear-gradient(145deg, var(--bg-surface), var(--bg-body)); }

/* Glass effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

/* Number balls */
.number-ball {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  margin: 3px;
  transition: transform 0.2s;
}

.number-ball:hover {
  transform: scale(1.15);
}

.number-ball.hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.number-ball.cold {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.number-ball.selected {
  background: linear-gradient(135deg, #10b981, #34d399);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.number-ball.trevo-ball {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.number-ball.mes-ball {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
  font-size: 11px;
  width: auto;
  min-width: 32px;
  padding: 0 6px;
}

.trevo-separator {
  color: var(--text-tertiary);
  font-weight: 700;
  font-size: 16px;
  margin: 0 4px;
}

/* Score bar */
.score-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--score-bar-bg);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

/* Sidebar */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  transition: transform 0.3s;
}

.sidebar-hidden { transform: translateX(-100%); }

.main-content {
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.3s;
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

/* Loading spinner */
.spinner {
  border: 3px solid var(--border-medium);
  border-top: 3px solid #6366f1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin-slow 1s linear infinite;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  animation: fadeIn 0.3s;
  font-weight: 500;
}

.toast-success { background: #10b981; color: white; }
.toast-error { background: #ef4444; color: white; }
.toast-info { background: #6366f1; color: white; }

/* Pricing card highlight */
.pricing-popular {
  border: 2px solid #6366f1;
  transform: scale(1.05);
  position: relative;
}

.pricing-popular::before {
  content: 'MAIS POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== FASE 3: Abas, gráficos e componentes avançados ===== */

/* Sistema de abas */
.tab-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.tab-nav::-webkit-scrollbar { height: 4px; }
.tab-nav::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
  color: var(--text-link-hover);
  border-bottom-color: #6366f1;
}

.tab-content { display: none; animation: fadeIn 0.3s ease-out; }
.tab-content.active { display: block; }

/* Contêiner de gráfico */
.chart-container {
  position: relative;
  width: 100%;
  background: var(--bg-sunken);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-secondary);
}

.chart-container canvas {
  max-width: 100%;
}

/* Heatmap do volante */
.volante-grid {
  display: grid;
  gap: 6px;
  justify-content: center;
}

.volante-cell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
  transition: transform 0.2s;
  cursor: default;
}

.volante-cell:hover { transform: scale(1.2); }

/* Card de estatística */
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s;
}

.stat-card:hover {
  border-color: var(--border-hover);
}

/* Sparkline (mini gráfico) */
.sparkline-container {
  height: 40px;
  width: 100%;
}

/* Seção de análise */
.analysis-section {
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.analysis-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-link-hover);
}

/* Tabela estilizada */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.styled-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-primary);
}

.styled-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.styled-table tr:hover td {
  background: var(--accent-bg-subtle);
}

/* Paginação */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s;
}

.pagination button:hover { border-color: #6366f1; color: var(--text-primary); }
.pagination button.active { background: #6366f1; color: white; border-color: #6366f1; }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* Badge de plano necessário */
.plan-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.plan-badge.pro { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.plan-badge.premium { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* Aviso de plano insuficiente */
.plan-gate {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.plan-gate h3 { color: var(--text-primary); margin-bottom: 8px; }

.plan-gate .upgrade-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.plan-gate .upgrade-btn:hover { opacity: 0.9; }

/* Estratégia seletor */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.strategy-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border-primary);
  background: var(--bg-sunken);
  cursor: pointer;
  transition: all 0.2s;
}

.strategy-card:hover { border-color: var(--border-hover); }
.strategy-card.active { border-color: #6366f1; background: var(--accent-bg); }

.strategy-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.strategy-card p { font-size: 12px; color: var(--text-secondary); }

/* Jogo gerado */
.game-card {
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.game-card .game-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Formulário de backtest */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-medium);
  background: var(--bg-sunken);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #6366f1;
}

.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Responsivo para gráficos */
@media (max-width: 768px) {
  .tab-btn { padding: 8px 12px; font-size: 12px; }
  .chart-container { padding: 10px; }
  .strategy-grid { grid-template-columns: 1fr; }
  .volante-cell { width: 32px; height: 32px; font-size: 10px; }
}

/* ===== DASHBOARD PREMIUM ===== */

/* Welcome section */
.dashboard-welcome {
  background: var(--welcome-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
}

.dashboard-welcome::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Plan badges */
.plan-badge-free { background: rgba(100, 116, 139, 0.2); color: var(--text-secondary); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.plan-badge-basic { background: rgba(59, 130, 246, 0.2); color: #60a5fa; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.plan-badge-pro { background: rgba(139, 92, 246, 0.2); color: #a78bfa; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.plan-badge-premium { background: rgba(245, 158, 11, 0.2); color: #fbbf24; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* Hot number with gradient */
.hot-number-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  margin: 3px;
  transition: transform 0.2s;
  position: relative;
}

.hot-number-ball:hover { transform: scale(1.15); }

.hot-number-ball.heat-1 { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
.hot-number-ball.heat-2 { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 0 10px rgba(249, 115, 22, 0.3); }
.hot-number-ball.heat-3 { background: linear-gradient(135deg, #eab308, #ca8a04); box-shadow: 0 0 8px rgba(234, 179, 8, 0.2); }

/* Frequency bar */
.freq-bar-wrap {
  height: 6px;
  background: var(--glass-bg);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.freq-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transition: width 1s ease;
}

/* Countdown badge */
.countdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-divider);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.countdown-item:hover { border-color: var(--border-medium); }

.countdown-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.countdown-badge.today { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.countdown-badge.tomorrow { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.countdown-badge.soon { background: rgba(100, 116, 139, 0.15); color: var(--text-secondary); }

/* Quick action buttons */
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-secondary);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s;
  cursor: pointer;
}

.quick-action-btn:hover {
  border-color: var(--border-hover);
  background: var(--accent-bg);
  transform: translateY(-2px);
}

.quick-action-btn .qa-icon {
  font-size: 28px;
  line-height: 1;
}

.quick-action-btn .qa-label {
  font-size: 13px;
  font-weight: 500;
}

/* Activity item */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-dot.info { background: #6366f1; }
.activity-dot.success { background: #10b981; }
.activity-dot.warning { background: #f59e0b; }

/* Section header */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-section-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.dash-section-header a {
  font-size: 13px;
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s;
}

.dash-section-header a:hover { color: var(--text-link-hover); }

/* Bolao mini card */
.bolao-mini {
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.bolao-mini:hover {
  border-color: var(--border-strong);
  background: var(--accent-bg-subtle);
}

/* Stat card mini for 6 grid */
.stat-card-mini {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}

.stat-card-mini:hover { border-color: var(--border-strong); }

/* CTA empty state */
.empty-cta {
  text-align: center;
  padding: 24px;
  background: var(--accent-bg-subtle);
  border: 1px dashed var(--border-medium);
  border-radius: 12px;
}

.empty-cta a {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.2s;
}

.empty-cta a:hover { opacity: 0.9; }

/* ===== Lottery Result Cards (Dashboard) ===== */
.lottery-result-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lottery-result-card:hover {
  transform: translateY(-3px);
  border-color: var(--lc, #6366f1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 16px rgba(0, 0, 0, 0.2);
}

.lottery-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--lg, linear-gradient(135deg, #6366f1, #4f46e5));
  border-radius: 4px 0 0 4px;
}

.lottery-card-body {
  padding: 20px 20px 20px 24px;
}

.lottery-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  flex-shrink: 0;
}

.lottery-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.number-ball.ball-sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

/* ===== Results Page ===== */
.lottery-tab {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.lottery-tab:hover { opacity: 0.85; transform: translateY(-1px); }
.lottery-tab.active { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.result-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-primary);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}
.result-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-solid);
}

.result-card-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.result-card-content { padding: 16px 16px 16px 20px; }

.result-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}
.result-draw-number { font-size: 16px; font-weight: 800; }
.result-draw-date { font-size: 11px; color: var(--text-tertiary); }

.number-ball.result-ball {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.draw-label {
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
}

.result-card-meta {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.result-acumulou {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-light);
  padding: 3px 10px;
  background: var(--bg-sunken);
  border-radius: 6px;
}
.result-tag.accumulated { background: rgba(245, 158, 11, 0.15); color: #fbbf24; font-weight: 600; }
.result-tag.winner-tag { background: rgba(16, 185, 129, 0.12); color: #34d399; font-weight: 500; }
.result-tag.team-tag { background: rgba(18, 184, 80, 0.12); color: #34d399; font-weight: 600; }
.result-tag.mes-tag { background: rgba(203, 133, 18, 0.15); color: #fbbf24; font-weight: 600; font-size: 12px; }

.prize-table { width: 100%; border-collapse: collapse; }
.prize-table th { text-align: left; font-size: 10px; color: var(--text-tertiary); padding: 6px 8px; border-bottom: 1px solid var(--border-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.prize-table td { padding: 5px 8px; border-bottom: 1px solid var(--border-subtle); }
.prize-table tr:last-child td { border-bottom: none; }

.result-stat-card {
  background: var(--bg-card-strong);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 16px;
}

.results-search-input {
  background: var(--input-bg-focus);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 8px 12px 8px 34px;
  color: var(--text-primary);
  font-size: 13px;
  width: 220px;
  transition: border-color 0.2s;
  outline: none;
}
.results-search-input:focus { border-color: #6366f1; }
.results-search-input::placeholder { color: var(--text-tertiary); }

.results-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
}

.results-export-btn {
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  color: var(--text-link);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.results-export-btn:hover { background: var(--accent-bg-hover); border-color: #6366f1; }

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Refresh button */
.refresh-btn {
  background: none;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}

.refresh-btn:hover { border-color: #6366f1; color: var(--text-primary); }

/* ===== ANALYSIS PAGE IMPROVEMENTS ===== */

/* Summary panel */
.analysis-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .analysis-summary { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .analysis-summary { grid-template-columns: 1fr; } }

.summary-card {
  background: var(--summary-bg);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.3s;
}
.summary-card:hover { border-color: var(--border-hover); }
.summary-card .sc-icon { font-size: 20px; margin-bottom: 6px; color: #6366f1; }
.summary-card .sc-value { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.summary-card .sc-label { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

/* Enhanced tabs */
.tab-nav-enhanced {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-secondary);
  scrollbar-width: thin;
}
.tab-btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-tertiary);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  min-width: 80px;
}
.tab-btn-icon i { font-size: 16px; }
.tab-btn-icon:hover { color: var(--text-light); }
.tab-btn-icon.active { color: var(--text-link); border-bottom-color: #6366f1; }
.tab-btn-icon .plan-badge { font-size: 8px; padding: 1px 4px; margin-left: 2px; }
.tab-btn-icon.locked { opacity: 0.5; cursor: not-allowed; }
.tab-btn-icon.locked:hover { color: var(--text-tertiary); }
.tab-btn-icon.locked i { color: var(--text-secondary); }
.plan-badge.basic { background: #3b82f6; color: white; }

/* Period filter */
.period-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.period-filter .pf-label { font-size: 12px; color: var(--text-tertiary); margin-right: 4px; }
.period-btn {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.period-btn:hover { border-color: #6366f1; color: var(--text-primary); }
.period-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }

/* Tab transition */
.tab-content { opacity: 0; transition: opacity 0.25s ease; }
.tab-content.active { opacity: 1; }

/* Sub-tab navigation */
.sub-tab-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg-sunken);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.sub-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.sub-tab-btn i { font-size: 13px; }
.sub-tab-btn:hover { color: var(--text-primary); background: var(--accent-bg); }
.sub-tab-btn.active {
  background: var(--accent-bg-strong);
  color: var(--text-link);
  font-weight: 600;
}
.sub-tab-btn .plan-badge { font-size: 8px; padding: 1px 4px; }
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }

/* Overdue alert */
.overdue-alert {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: rgba(239, 68, 68, 0.3); }
  50% { border-color: rgba(239, 68, 68, 0.6); }
}
.overdue-alert .oa-title { color: #f87171; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.overdue-alert .oa-desc { color: #fbbf24; font-size: 12px; margin-bottom: 10px; }

/* Export actions */
.export-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn-export {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--accent-bg);
  color: var(--text-link-hover);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-export:hover { background: var(--accent-bg-hover); border-color: #6366f1; }

/* Game confidence */
.game-confidence {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.game-confidence .conf-bar {
  height: 3px;
  background: var(--accent-bg-hover);
  border-radius: 2px;
  margin-top: 3px;
  overflow: hidden;
}
.game-confidence .conf-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transition: width 0.5s;
}

/* Strategy card icons */
.strategy-card i { font-size: 20px; color: #6366f1; margin-bottom: 6px; }
.strategy-card.active i { color: var(--text-link-hover); }

/* Better loading state */
.loading-state {
  text-align: center;
  padding: 40px 20px;
}
.loading-state .spinner { margin: 0 auto 12px; }
.loading-state p { color: var(--text-tertiary); font-size: 13px; }

/* Better error state */
.error-state {
  text-align: center;
  padding: 40px 20px;
}
.error-state i { font-size: 32px; color: #ef4444; margin-bottom: 12px; }
.error-state p { color: #f87171; margin-bottom: 12px; }
.error-state button {
  padding: 8px 20px;
  background: var(--accent-bg-hover);
  border: 1px solid #6366f1;
  border-radius: 8px;
  color: var(--text-link-hover);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.error-state button:hover { background: var(--accent-bg-hover); }

/* ---- Account Page ---- */

/* Header with gradient */
.account-header {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.account-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.15) 50%, rgba(99,102,241,0.08) 100%);
  border: 1px solid var(--border-medium);
  border-radius: 1rem;
}
.account-header-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
}
.account-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* Tabs */
.account-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}
.account-tab {
  flex: 1;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  color: var(--text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.375rem;
}
.account-tab:hover { color: var(--text-light); background: var(--accent-bg); }
.account-tab.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.3); }
.account-tab-icon { font-size: 1rem; }
@media (max-width: 640px) { .account-tab-label { display: none; } .account-tab-icon { font-size: 1.25rem; } }

/* Cards */
.account-card {
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-primary);
  border-radius: 0.875rem;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.account-card:hover { border-color: var(--border-medium); }
.account-card-danger { border-color: rgba(239,68,68,0.2); }
.account-card-danger:hover { border-color: rgba(239,68,68,0.35); }

.account-card-header {
  display: flex; align-items: center; gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.account-card-icon {
  width: 32px; height: 32px;
  border-radius: 0.5rem;
  background: var(--accent-bg-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9375rem; flex-shrink: 0;
}
.account-card-danger .account-card-icon { background: rgba(239,68,68,0.12); }
.account-card-title { font-size: 0.9375rem; font-weight: 600; }

/* Form */
.account-field { display: flex; flex-direction: column; }
.account-label {
  font-size: 0.75rem; color: var(--text-secondary);
  margin-bottom: 0.375rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.account-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s;
}
.account-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: var(--input-bg-focus);
}
.account-input::placeholder { color: var(--text-muted); }
select.account-input { cursor: pointer; }

/* Buttons */
.account-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.account-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.account-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.account-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-link-hover); font-size: 0.8125rem; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.account-btn-secondary:hover { background: var(--accent-bg-hover); border-color: var(--border-hover); }

.account-btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.5rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 0.5rem;
  color: #fca5a5; font-size: 0.875rem; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: all 0.2s;
}
.account-btn-danger:hover { background: rgba(239,68,68,0.2); border-color: rgba(239,68,68,0.4); color: #fecaca; }

.account-btn-success {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  pointer-events: none; opacity: 0.8;
}

.account-btn-xs {
  padding: 0.25rem 0.625rem;
  background: var(--accent-bg-strong);
  border: 1px solid var(--border-medium);
  border-radius: 0.375rem;
  color: var(--text-link-hover); font-size: 0.6875rem; font-weight: 500;
  font-family: inherit; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.account-btn-xs:hover { background: var(--accent-bg-hover); }

/* Info rows */
.account-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.account-info-row:last-child { border-bottom: none; }
.account-info-label { font-size: 0.8125rem; color: var(--text-tertiary); }
.account-info-value { font-size: 0.8125rem; color: var(--text-primary); font-weight: 500; }

/* Plan badge */
.account-plan-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  border-radius: 2rem;
  font-size: 0.8125rem; font-weight: 600; color: #fff;
}
.account-plan-badge.large { font-size: 1.125rem; padding: 0.375rem 1.25rem; }

/* Status badges */
.account-status-badge {
  display: inline-block; padding: 0.2rem 0.625rem;
  border-radius: 0.375rem; font-size: 0.6875rem; font-weight: 600;
}
.account-status-badge.success { background: rgba(34,197,94,0.15); color: #4ade80; }
.account-status-badge.warning { background: rgba(234,179,8,0.15); color: #facc15; }
.account-status-badge.error { background: rgba(239,68,68,0.15); color: #f87171; }

/* Empty state */
.account-empty {
  text-align: center; padding: 2rem;
  color: var(--text-tertiary); font-size: 0.875rem;
}

/* Toggle switch */
.account-toggle {
  position: relative;
  display: inline-block;
  width: 36px; height: 20px;
}
.account-toggle input { opacity: 0; width: 0; height: 0; }
.account-toggle-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(71,85,105,0.5);
  border-radius: 20px;
  transition: 0.2s;
}
.account-toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px; width: 14px;
  left: 3px; bottom: 3px;
  background: #94a3b8;
  border-radius: 50%;
  transition: 0.2s;
}
.account-toggle input:checked + .account-toggle-slider { background: var(--primary); }
.account-toggle input:checked + .account-toggle-slider::before { transform: translateX(16px); background: #fff; }

/* Pref table */
.account-pref-table {
  width: 100%;
  border-collapse: collapse;
}
.account-pref-table th, .account-pref-table td {
  padding: 0.75rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.account-pref-table th { font-size: 0.75rem; color: var(--text-tertiary); font-weight: 500; }
.account-pref-table td:not(:first-child) { text-align: center; }
.account-channel-head {
  display: flex; flex-direction: column; align-items: center; gap: 0.125rem;
  font-size: 0.75rem;
}

/* Notification items */
.account-notif {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.15s;
}
.account-notif.unread { background: var(--accent-bg-subtle); border-left: 3px solid var(--primary); }
.account-notif.read { opacity: 0.6; }
.account-notif:hover { background: var(--accent-bg); }

/* ===== DASHBOARD V2 ===== */

/* Loader */
.dash-loader {
  width: 48px; height: 48px;
  border: 3px solid var(--border-primary);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  margin: 0 auto;
}
.dash-mini-loader {
  width: 24px; height: 24px;
  border: 2px solid var(--border-primary);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  margin: 0 auto;
}

/* Hero */
.dash-hero {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dash-hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 1.25rem;
}
.dash-hero-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.dash-hero-left {}
.dash-greeting { font-size: 0.875rem; color: var(--text-link); font-weight: 500; margin-bottom: 0.25rem; }
.dash-user-name { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.dash-subtitle { font-size: 0.875rem; color: var(--text-tertiary); }

.dash-hero-right {}
.dash-plan-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
}
.dash-plan-icon { font-size: 1.75rem; }
.dash-plan-label { font-size: 0.6875rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-plan-name { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.dash-plan-expiry { font-size: 0.6875rem; color: var(--text-tertiary); }
.dash-upgrade-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 0.5rem;
  color: #fff; font-size: 0.75rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: all 0.2s;
}
.dash-upgrade-btn:hover { filter: brightness(1.1); }

/* Today alert */
.dash-today-alert {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(90deg, rgba(16,185,129,0.12), rgba(34,197,94,0.08));
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 0.875rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dash-today-icon { font-size: 1.5rem; }
.dash-today-text { flex: 1; font-size: 0.9rem; color: #d1fae5; }
.dash-today-text strong { color: #4ade80; }
.dash-today-btn {
  padding: 0.5rem 1rem;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 0.5rem;
  color: #4ade80; font-size: 0.8125rem; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.dash-today-btn:hover { background: rgba(34,197,94,0.25); }

/* Special draw banner (Mega da Virada, Quina de São João, etc.) */
.dash-special-banner {
  position: relative;
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--bg-card-lighter);
  border: 1px solid var(--special-color, #6366f1);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  flex-wrap: wrap;
}
.dash-special-banner::before {
  content: ''; position: absolute; inset: 0;
  background: var(--special-grad, linear-gradient(135deg,#6366f1,#8b5cf6));
  opacity: 0.10; z-index: 0;
}
.dash-special-banner > * { position: relative; z-index: 1; }
.dash-special-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.dash-special-info { flex: 1; min-width: 180px; }
.dash-special-tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--special-color, #6366f1); margin-bottom: 0.2rem;
}
.dash-special-name { font-size: 1.15rem; font-weight: 800; line-height: 1.1; margin: 0; }
.dash-special-prize { font-size: 0.8rem; color: var(--text-tertiary); margin: 0.25rem 0 0; }
.dash-special-prize strong { color: var(--text-primary); font-weight: 700; }
.dash-special-countdown { display: flex; gap: 0.4rem; flex-shrink: 0; }
.dash-cd-cell {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-secondary);
  border-radius: 10px; padding: 0.4rem 0.55rem; min-width: 46px;
}
.dash-cd-num { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.dash-cd-lbl { font-size: 0.6rem; color: var(--text-tertiary); text-transform: uppercase; margin-top: 2px; }
.dash-special-today { font-size: 1.1rem; font-weight: 800; color: var(--special-color, #6366f1); }
.dash-special-btn {
  flex-shrink: 0; padding: 0.6rem 1.1rem;
  background: var(--special-grad, linear-gradient(135deg,#6366f1,#8b5cf6));
  color: #fff; font-size: 0.85rem; font-weight: 700;
  border-radius: 10px; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dash-special-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
@media (max-width: 760px) {
  .dash-special-banner { gap: 0.85rem; }
  .dash-special-countdown { width: 100%; justify-content: flex-start; }
  .dash-special-btn { width: 100%; text-align: center; }
}

/* News card (loterias) */
.dash-news-list { display: flex; flex-direction: column; }
.dash-news-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.6rem 0.4rem; border-radius: 0.5rem;
  text-decoration: none; transition: background 0.18s;
}
.dash-news-item:hover { background: rgba(148,163,184,0.08); }
.dash-news-item + .dash-news-item { border-top: 1px solid var(--border-secondary); }
.dash-news-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 0.4rem; flex-shrink: 0; }
.dash-news-body { flex: 1; min-width: 0; }
.dash-news-title {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); line-height: 1.3;
  margin: 0 0 0.15rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dash-news-meta { font-size: 0.6875rem; color: var(--text-tertiary); margin: 0; }
.dash-news-ext { opacity: 0.7; }

/* Stats row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1024px) { .dash-stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .dash-stats-row { grid-template-columns: repeat(2, 1fr); } }
.dash-stat {
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-secondary);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  transition: all 0.2s;
}
.dash-stat:hover { border-color: var(--border-medium); }
.dash-stat-icon {
  width: 44px; height: 44px;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.dash-stat-info {}
.dash-stat-value { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.dash-stat-label { font-size: 0.75rem; color: var(--text-tertiary); }

/* Main grid */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
}
@media (max-width: 1024px) { .dash-main-grid { grid-template-columns: 1fr; } }
.dash-left-col {}
.dash-right-col { display: flex; flex-direction: column; gap: 1rem; }

/* Section */
.dash-section { margin-bottom: 1.5rem; }
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.dash-section-header h2 {
  font-size: 1.125rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.5rem;
}
.dash-section-icon { font-size: 1.125rem; }
.dash-section-header a {
  font-size: 0.8125rem; color: var(--text-link);
  text-decoration: none; transition: color 0.2s;
}
.dash-section-header a:hover { color: var(--text-link-hover); }

/* Results grid */
.dash-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Result card */
.dash-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s;
}
.dash-result-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.dash-result-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.dash-result-brand { display: flex; align-items: center; gap: 0.625rem; }
.dash-result-icon {
  width: 32px; height: 32px;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: #fff;
}
.dash-result-name { font-size: 0.9375rem; font-weight: 700; }
.dash-result-number { font-size: 0.6875rem; color: var(--text-tertiary); }
.dash-result-time { font-size: 0.6875rem; color: var(--text-tertiary); }
.dash-result-numbers { margin-bottom: 0.5rem; }
.dash-result-row { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; margin-bottom: 0.25rem; }
.dash-result-label { font-size: 0.625rem; color: var(--text-tertiary); font-weight: 600; margin-right: 0.25rem; min-width: 16px; }
.dash-ball {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; color: #fff;
}
.dash-ball-sm { width: 22px; height: 22px; font-size: 0.575rem; }
.dash-result-extra { margin-top: 0.5rem; font-size: 0.75rem; }
.dash-extra-label { color: var(--text-tertiary); margin-right: 0.25rem; }
.dash-trevo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  font-size: 0.625rem; font-weight: 700; color: #fff;
  margin-left: 0.125rem;
}
.dash-result-footer { margin-top: 0.625rem; text-align: right; }
.dash-result-action { font-size: 0.75rem; font-weight: 600; }

/* Quick grid */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
@media (max-width: 768px) { .dash-quick-grid { grid-template-columns: repeat(2, 1fr); } }
.dash-quick-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-divider);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-decoration: none; color: var(--text-primary);
  transition: all 0.2s;
}
.dash-quick-card:hover { border-color: var(--border-medium); background: var(--accent-bg-subtle); transform: translateY(-2px); }
.dash-quick-icon {
  width: 40px; height: 40px;
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; color: #fff;
}
.dash-quick-card span { font-size: 0.75rem; font-weight: 500; text-align: center; }

/* Right column cards */
.dash-card {
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-secondary);
  border-radius: 0.875rem;
  padding: 1.25rem;
}
.dash-card-title {
  font-size: 0.9375rem; font-weight: 700;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.dash-card-title span { font-size: 1rem; }
.dash-card-subtitle { font-size: 0.6875rem; color: var(--text-tertiary); margin-top: -0.625rem; margin-bottom: 0.875rem; }
.dash-card-loading { text-align: center; padding: 1.5rem 0; }
.dash-card-empty { text-align: center; padding: 1rem 0; color: var(--text-tertiary); font-size: 0.8125rem; }
.dash-card-empty a { display: inline-block; margin-top: 0.5rem; color: var(--text-link); text-decoration: none; font-weight: 500; }
.dash-card-empty a:hover { color: var(--text-link-hover); }
.dash-card-empty-text { text-align: center; color: var(--text-tertiary); font-size: 0.8125rem; padding: 0.5rem 0; }
.dash-card-link { display: block; text-align: center; margin-top: 0.75rem; font-size: 0.75rem; color: var(--text-link); text-decoration: none; }
.dash-card-link:hover { color: var(--text-link-hover); }

/* Draws list */
.dash-draws-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-draw-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
}
.dash-draw-item:hover { background: var(--accent-bg); border-color: var(--border-primary); }
.dash-draw-left { display: flex; align-items: center; gap: 0.625rem; }
.dash-draw-icon {
  width: 26px; height: 26px;
  border-radius: 0.375rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #fff;
}
.dash-draw-name { font-size: 0.8125rem; font-weight: 600; }
.dash-draw-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem; font-weight: 600;
}
.dash-draw-badge.today { background: rgba(16,185,129,0.2); color: #4ade80; }
.dash-draw-badge.tomorrow { background: rgba(59,130,246,0.15); color: #60a5fa; }
.dash-draw-badge.soon { background: rgba(100,116,139,0.12); color: var(--text-secondary); }

/* Hot numbers */
.dash-hot-balls { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1rem; }
.dash-hot-ball {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.dash-hot-ball.top { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 0 8px rgba(239,68,68,0.3); }
.dash-hot-bars { display: flex; flex-direction: column; gap: 0.375rem; }
.dash-hot-row { display: flex; align-items: center; gap: 0.5rem; }
.dash-hot-num { font-size: 0.6875rem; font-weight: 700; color: var(--text-secondary); width: 20px; text-align: right; font-feature-settings: "tnum"; }
.dash-hot-bar { flex: 1; height: 6px; background: var(--input-bg); border-radius: 3px; overflow: hidden; }
.dash-hot-fill { height: 100%; background: linear-gradient(90deg, #ef4444, #f59e0b); border-radius: 3px; transition: width 0.8s ease; }
.dash-hot-count { font-size: 0.625rem; color: var(--text-tertiary); width: 28px; }

/* Boloes list */
.dash-boloes-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-bolao-item {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
}
.dash-bolao-item:hover { background: var(--accent-bg); border-color: var(--border-primary); }
.dash-bolao-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.dash-bolao-name { font-size: 0.8125rem; font-weight: 600; }
.dash-bolao-lottery { font-size: 0.6875rem; font-weight: 600; }
.dash-bolao-progress { display: flex; align-items: center; gap: 0.5rem; }
.dash-bolao-bar { flex: 1; height: 4px; background: var(--accent-bg-strong); border-radius: 2px; overflow: hidden; }
.dash-bolao-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 2px; }
.dash-bolao-count { font-size: 0.625rem; color: var(--text-tertiary); }

/* Activity list */
.dash-activity-list { display: flex; flex-direction: column; gap: 0.25rem; }
.dash-activity-item { display: flex; align-items: flex-start; gap: 0.625rem; padding: 0.5rem 0; }
.dash-activity-dot { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; margin-top: 6px; flex-shrink: 0; }
.dash-activity-content { flex: 1; min-width: 0; }
.dash-activity-title { font-size: 0.8125rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-activity-time { font-size: 0.6875rem; color: var(--text-tertiary); }

/* Error state */
.dash-error {
  text-align: center;
  padding: 4rem 2rem;
}
.dash-error p { font-size: 1.125rem; color: #f87171; margin-bottom: 0.5rem; }
.dash-error-msg { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.dash-retry-btn {
  padding: 0.625rem 1.5rem;
  background: var(--accent-bg-strong);
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  color: var(--text-link-hover); font-size: 0.875rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.dash-retry-btn:hover { background: var(--accent-bg-hover); }

/* Empty state */
.dash-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  background: var(--bg-sunken-subtle);
  border: 1px dashed var(--border-primary);
  border-radius: 0.75rem;
}

@media (max-width: 640px) {
  .dash-hero-content { padding: 1.5rem; }
  .dash-user-name { font-size: 1.375rem; }
  .dash-plan-card { padding: 0.75rem 1rem; }
  .dash-stat { padding: 0.875rem 1rem; }
  .dash-stat-icon { width: 36px; height: 36px; font-size: 1rem; }
  .dash-stat-value { font-size: 1.125rem; }
}

/* ===== BOLÕES V2 ===== */

/* Loader */
.bolao-loader {
  width: 48px; height: 48px;
  border: 3px solid var(--border-primary);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  margin: 0 auto;
}
.bolao-mini-loader {
  width: 20px; height: 20px;
  border: 2px solid var(--border-primary);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  display: inline-block;
}
.bolao-btn-loader {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-slow 0.8s linear infinite;
  display: inline-block;
}

/* Hero */
.bolao-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.bolao-hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-gradient);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
}
.bolao-hero-content {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bolao-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.25rem; }
.bolao-subtitle { font-size: 0.9375rem; color: var(--text-secondary); }
.bolao-create-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.625rem;
  color: #fff; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-create-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.bolao-create-btn span { font-size: 1.25rem; }

/* Stats */
.bolao-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) { .bolao-stats { grid-template-columns: repeat(2, 1fr); } }
.bolao-stat-card {
  display: flex; align-items: center; gap: 0.875rem;
  background: var(--bg-card-strong);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.bolao-stat-card:hover { border-color: var(--border-medium); }
.bolao-stat-icon {
  width: 40px; height: 40px;
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}
.bolao-stat-info { display: flex; flex-direction: column; }
.bolao-stat-value { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.bolao-stat-label { font-size: 0.75rem; color: var(--text-tertiary); }

/* Toolbar */
.bolao-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.bolao-tabs { display: flex; gap: 0.25rem; }
.bolao-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  color: var(--text-secondary); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-tab:hover { border-color: var(--border-medium); color: var(--text-primary); }
.bolao-tab.active { background: var(--accent-bg-strong); border-color: #6366f1; color: var(--text-link-hover); }
.bolao-tab-icon { font-size: 1rem; }
.bolao-tab-count {
  padding: 0.125rem 0.5rem;
  background: var(--accent-bg-hover);
  border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 600;
}
.bolao-filters { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.bolao-search-wrap { position: relative; }
.bolao-search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.875rem; opacity: 0.5; }
.bolao-search {
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary); font-size: 0.875rem;
  width: 200px; transition: border-color 0.2s;
  font-family: inherit;
}
.bolao-search:focus { outline: none; border-color: #6366f1; }
.bolao-filter-select {
  padding: 0.5rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary); font-size: 0.875rem;
  cursor: pointer; font-family: inherit;
}

/* Grid de bolões */
.bolao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* Card de bolão */
.bolao-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  border-radius: 0.875rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s;
}
.bolao-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.bolao-card-accent {
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: 4px 0 0 4px;
}
.bolao-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.25rem 0.5rem 1.5rem;
}
.bolao-card-lottery {
  width: 32px; height: 32px;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: #fff;
}
.bolao-card-status {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem; font-weight: 600;
}
.bolao-card-body { padding: 0 1.25rem 1.25rem 1.5rem; }
.bolao-card-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.25rem; }
.bolao-card-lottery-name { font-size: 0.8125rem; color: var(--text-link); margin-bottom: 0.875rem; }
.bolao-card-participants { margin-bottom: 0.875rem; }
.bolao-card-participants-info {
  display: flex; justify-content: space-between;
  font-size: 0.75rem; color: var(--text-tertiary);
  margin-bottom: 0.375rem;
}
.bolao-card-participants-bar {
  height: 6px;
  background: var(--input-bg);
  border-radius: 3px;
  overflow: hidden;
}
.bolao-card-participants-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.bolao-card-almost-full {
  display: block;
  font-size: 0.6875rem; color: #f59e0b;
  margin-top: 0.25rem;
}
.bolao-card-meta {
  display: flex; gap: 1rem;
  margin-bottom: 0.875rem;
}
.bolao-card-meta-item {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; color: var(--text-secondary);
}
.bolao-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-divider);
}
.bolao-card-creator {
  display: flex; align-items: center; gap: 0.5rem;
}
.bolao-card-creator-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 600; color: #fff;
}
.bolao-card-creator-name { font-size: 0.75rem; color: var(--text-secondary); }
.bolao-card-owner-badge {
  padding: 0.125rem 0.375rem;
  background: var(--accent-bg-strong);
  border-radius: 0.25rem;
  font-size: 0.625rem; color: var(--text-link); font-weight: 600;
}
.bolao-card-join-btn {
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.375rem;
  color: #fff; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-card-join-btn:hover { filter: brightness(1.1); }
.bolao-card-arrow { font-size: 1.125rem; color: var(--text-tertiary); }

/* Empty state */
.bolao-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-sunken-subtle);
  border: 1px dashed var(--border-medium);
  border-radius: 0.875rem;
}
.bolao-empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.6; }
.bolao-empty p { color: var(--text-secondary); margin-bottom: 1rem; }
.bolao-empty-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}

/* Error state */
.bolao-error {
  text-align: center;
  padding: 3rem 2rem;
}
.bolao-error-icon { font-size: 3rem; margin-bottom: 1rem; }
.bolao-error p { font-size: 1.125rem; color: #f87171; margin-bottom: 0.5rem; }
.bolao-error-msg { font-size: 0.875rem; color: var(--text-secondary); display: block; margin-bottom: 1.5rem; }
.bolao-retry-btn {
  padding: 0.625rem 1.5rem;
  background: var(--accent-bg-strong);
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  color: var(--text-link-hover); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit; text-decoration: none;
  display: inline-block;
}
.bolao-retry-btn:hover { background: var(--accent-bg-hover); }

/* Modal */
.bolao-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}
.bolao-modal-overlay {
  position: absolute; inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
}
.bolao-modal-content {
  position: relative;
  background: var(--modal-bg);
  border: 1px solid var(--border-medium);
  border-radius: 1rem;
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
}
.bolao-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-secondary);
}
.bolao-modal-header h2 { font-size: 1.25rem; font-weight: 700; }
.bolao-modal-close {
  width: 32px; height: 32px;
  background: var(--accent-bg);
  border: none; border-radius: 0.5rem;
  color: var(--text-secondary); font-size: 1.25rem;
  cursor: pointer; transition: all 0.2s;
}
.bolao-modal-close:hover { background: rgba(239,68,68,0.15); color: #f87171; }
.bolao-modal-body { padding: 1.5rem; }

/* Form */
.bolao-form {}
.bolao-form-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.bolao-form-step {
  display: flex; align-items: center; gap: 0.375rem;
  color: var(--text-tertiary);
}
.bolao-form-step.active { color: var(--text-link-hover); }
.bolao-form-step.completed { color: #10b981; }
.bolao-form-step-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-bg-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
}
.bolao-form-step.active .bolao-form-step-num { background: #6366f1; color: #fff; }
.bolao-form-step.completed .bolao-form-step-num { background: #10b981; color: #fff; }
.bolao-form-step-label { font-size: 0.8125rem; font-weight: 500; }
.bolao-form-step-line { width: 40px; height: 2px; background: var(--accent-bg-hover); }
.bolao-form-section {}
.bolao-form-group { margin-bottom: 1rem; }
.bolao-form-label {
  display: block;
  font-size: 0.8125rem; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 0.375rem;
}
.bolao-form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary); font-size: 0.9375rem;
  font-family: inherit; transition: all 0.2s;
}
.bolao-form-input:focus { outline: none; border-color: #6366f1; background: var(--input-bg-focus); }
.bolao-form-hint { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.25rem; display: block; }
.bolao-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bolao-form-number-wrap {
  display: flex; align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  overflow: hidden;
}
.bolao-number-btn {
  width: 36px; height: 36px;
  background: var(--accent-bg);
  border: none;
  color: var(--text-link-hover); font-size: 1.125rem;
  cursor: pointer; transition: background 0.2s;
}
.bolao-number-btn:hover { background: var(--accent-bg-hover); }
.bolao-form-number {
  width: 60px; text-align: center;
  background: transparent;
  border: none;
  color: var(--text-primary); font-size: 0.9375rem; font-weight: 600;
  font-family: inherit;
}
.bolao-form-number:focus { outline: none; }
.bolao-form-actions {
  display: flex; justify-content: flex-end; gap: 0.75rem;
  margin-top: 1.5rem;
}
.bolao-form-btn-secondary {
  padding: 0.625rem 1.25rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-link-hover); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-form-btn-secondary:hover { background: var(--accent-bg-hover); }
.bolao-form-btn-primary {
  padding: 0.625rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  display: flex; align-items: center; gap: 0.5rem;
}
.bolao-form-btn-primary:hover { filter: brightness(1.1); }
.bolao-form-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

/* Lottery grid */
.bolao-lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
.bolao-lottery-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  cursor: pointer; transition: all 0.2s;
}
.bolao-lottery-option:hover { border-color: var(--border-medium); }
.bolao-lottery-option.selected { border-color: #6366f1; background: var(--accent-bg); }
.bolao-lottery-option input { display: none; }
.bolao-lottery-icon {
  width: 24px; height: 24px;
  border-radius: 0.375rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.bolao-lottery-name { font-size: 0.8125rem; font-weight: 500; }

/* Toggle */
.bolao-form-toggle-group { margin: 1rem 0; }
.bolao-form-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
}
.bolao-form-toggle-info { display: flex; align-items: center; gap: 0.75rem; }
.bolao-form-toggle-icon { font-size: 1.25rem; }
.bolao-form-toggle-title { font-size: 0.9375rem; font-weight: 600; display: block; }
.bolao-form-toggle-desc { font-size: 0.75rem; color: var(--text-tertiary); }
.bolao-switch {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.bolao-switch input { opacity: 0; width: 0; height: 0; }
.bolao-switch-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(71,85,105,0.5);
  border-radius: 24px;
  transition: 0.2s;
}
.bolao-switch-slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background: #94a3b8;
  border-radius: 50%;
  transition: 0.2s;
}
.bolao-switch input:checked + .bolao-switch-slider { background: #6366f1; }
.bolao-switch input:checked + .bolao-switch-slider::before { transform: translateX(20px); background: #fff; }

/* ===== BOLÃO DETAIL ===== */

.bolao-back-link {
  display: inline-block;
  color: var(--text-link); font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.bolao-back-link:hover { color: var(--text-link-hover); }

/* Detail Hero */
.bolao-detail-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}
.bolao-detail-hero-bg {
  position: absolute; inset: 0;
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
}
.bolao-detail-hero-content {
  position: relative;
  display: flex; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.bolao-detail-hero-left { flex: 1; min-width: 280px; }
.bolao-detail-lottery-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  margin-bottom: 0.75rem;
}
.bolao-detail-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.bolao-detail-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.bolao-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.bolao-detail-meta-item { font-size: 0.8125rem; color: var(--text-light); }
.bolao-detail-hero-right { text-align: right; }
.bolao-detail-status {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 1rem;
}
.bolao-invite-box {
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
}
.bolao-invite-label { font-size: 0.75rem; color: var(--text-tertiary); display: block; margin-bottom: 0.375rem; }
.bolao-invite-code-wrap { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.bolao-invite-code {
  font-size: 1.25rem; font-weight: 700; color: var(--text-link);
  letter-spacing: 0.1em;
}
.bolao-invite-copy {
  width: 32px; height: 32px;
  background: var(--accent-bg);
  border: none; border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer; transition: background 0.2s;
}
.bolao-invite-copy:hover { background: var(--accent-bg-hover); }
.bolao-share-btns { display: flex; gap: 0.5rem; }
.bolao-share-btn {
  flex: 1;
  padding: 0.375rem 0.625rem;
  border: none; border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 600; color: #fff;
  cursor: pointer; transition: filter 0.2s;
  font-family: inherit;
}
.bolao-share-btn:hover { filter: brightness(1.1); }
.bolao-share-whatsapp { background: #25D366; }
.bolao-share-telegram { background: #0088cc; }

/* Progress bar */
.bolao-progress-section { position: relative; margin-top: 1rem; }
.bolao-progress-header {
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.bolao-progress-count { font-weight: 600; color: var(--text-primary); }
.bolao-progress-bar {
  height: 8px;
  background: var(--input-bg);
  border-radius: 4px;
  overflow: hidden;
}
.bolao-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.bolao-progress-warning { font-size: 0.75rem; color: #f59e0b; margin-top: 0.25rem; display: block; }

/* Detail Tabs */
.bolao-detail-tabs {
  display: flex; gap: 0.25rem;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-secondary);
}
.bolao-detail-tab {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-tertiary); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.bolao-detail-tab:hover { color: var(--text-light); }
.bolao-detail-tab.active { color: var(--text-link-hover); border-bottom-color: #6366f1; }
.bolao-detail-tab-icon { font-size: 1rem; }
.bolao-detail-tab-badge {
  padding: 0.125rem 0.5rem;
  background: var(--accent-bg-strong);
  border-radius: 0.375rem;
  font-size: 0.6875rem; font-weight: 600;
}
.bolao-tab-content { animation: fadeIn 0.3s ease; }

/* Section */
.bolao-section {
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-secondary);
  border-radius: 0.875rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.bolao-section-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 1rem; }
.bolao-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}

/* Add games */
.bolao-add-games { margin-bottom: 1.5rem; }
.bolao-add-tabs {
  display: flex; gap: 0.25rem;
  margin-bottom: 1rem;
}
.bolao-add-tab {
  padding: 0.5rem 1rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 0.375rem;
  color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-add-tab:hover { border-color: var(--border-medium); }
.bolao-add-tab.active { background: var(--accent-bg-strong); border-color: #6366f1; color: var(--text-link-hover); }
.bolao-add-panel {
  padding: 1rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
}
.bolao-add-hint { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 0.5rem; }
.bolao-add-btn {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.375rem;
  color: #fff; font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-add-btn:hover { filter: brightness(1.1); }
.bolao-add-btn:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }
.bolao-manual-input-wrap { display: flex; gap: 0.5rem; }
.bolao-manual-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.375rem;
  color: var(--text-primary); font-size: 0.875rem;
  font-family: inherit;
}
.bolao-manual-input:focus { outline: none; border-color: #6366f1; }

/* Volante */
.bolao-volante-info {
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.bolao-volante-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.375rem;
  margin-bottom: 1rem;
}
@media (max-width: 640px) { .bolao-volante-grid { grid-template-columns: repeat(6, 1fr); } }
.bolao-volante-num {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--border-primary);
  color: var(--text-light); font-size: 0.8125rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-volante-num:hover { border-color: var(--border-hover); }
.bolao-volante-num.selected {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 12px rgba(99,102,241,0.4);
}
.bolao-volante-actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.bolao-volante-clear, .bolao-volante-random {
  padding: 0.5rem 1rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.375rem;
  color: var(--text-link-hover); font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-volante-clear:hover, .bolao-volante-random:hover { background: var(--accent-bg-hover); }

/* IA strategies */
.bolao-ia-strategies {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 0.25rem;
}
@media (max-width: 1024px) { .bolao-ia-strategies { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .bolao-ia-strategies { grid-template-columns: repeat(2, 1fr); max-height: 280px; } }
@media (max-width: 480px) { .bolao-ia-strategies { grid-template-columns: 1fr; max-height: 240px; } }
.bolao-ia-strategy {
  display: block;
  padding: 0.625rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  cursor: pointer; transition: all 0.2s;
  min-height: 70px;
}
.bolao-ia-strategy:hover { border-color: var(--border-medium); }
.bolao-ia-strategy.selected { border-color: #6366f1; background: var(--accent-bg); }
.bolao-ia-strategy input { display: none; }
.bolao-ia-strategy-content { display: flex; flex-direction: column; align-items: center; gap: 0.125rem; text-align: center; }
.bolao-ia-strategy-icon { font-size: 1.25rem; }
.bolao-ia-strategy-name { font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
.bolao-ia-strategy-desc { font-size: 0.625rem; color: var(--text-tertiary); line-height: 1.2; }
.bolao-ia-strategy.locked {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
}
.bolao-ia-strategy.locked:hover { border-color: var(--border-secondary); }
.bolao-ia-strategy.locked .bolao-ia-strategy-content { filter: grayscale(0.3); }
.bolao-ia-lock {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.875rem;
}
.bolao-plan-badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 0.375rem;
  vertical-align: middle;
}
.bolao-plan-badge.pro {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.bolao-plan-badge.premium {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}
.bolao-ia-strategy-name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Custom strategy config */
.bolao-custom-config {
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.bolao-custom-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.bolao-custom-section {
  margin-bottom: 0.75rem;
}
.bolao-custom-section-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
  font-weight: 500;
}
.bolao-custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 640px) { .bolao-custom-grid { grid-template-columns: 1fr; } }
.bolao-custom-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bolao-custom-item label {
  font-size: 0.6875rem;
  color: var(--text-light);
}
.bolao-custom-item input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--accent-bg-hover);
  border-radius: 2px;
  -webkit-appearance: none;
}
.bolao-custom-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #6366f1;
  border-radius: 50%;
  cursor: pointer;
}
.bolao-custom-value {
  font-size: 0.6875rem;
  color: #6366f1;
  font-weight: 600;
}
.bolao-custom-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bolao-custom-check {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: var(--text-light);
  cursor: pointer;
}
.bolao-custom-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #6366f1;
}
.bolao-custom-select {
  width: 100%;
  padding: 0.375rem 0.5rem;
  background: var(--input-bg-focus);
  border: 1px solid var(--border-medium);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: inherit;
}
.bolao-custom-select:focus {
  outline: none;
  border-color: #6366f1;
}
.bolao-custom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
@media (max-width: 768px) { .bolao-custom-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bolao-custom-row { grid-template-columns: 1fr; } }
.bolao-custom-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.bolao-custom-field label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}
.bolao-custom-input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  background: var(--input-bg-focus);
  border: 1px solid var(--border-medium);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: inherit;
}
.bolao-custom-input:focus {
  outline: none;
  border-color: #6366f1;
}

/* Estratégias Salvas */
.bolao-saved-strategies {
  background: var(--input-bg);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.bolao-saved-strategy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 0.375rem;
  margin-bottom: 0.375rem;
}
.bolao-saved-strategy-card:last-child { margin-bottom: 0; }
.bolao-saved-strategy-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  overflow: hidden;
}
.bolao-saved-strategy-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.bolao-saved-strategy-desc {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bolao-saved-strategy-btn {
  padding: 0.25rem 0.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 0.25rem;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.bolao-saved-strategy-btn:hover { filter: brightness(1.1); }

.bolao-ia-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.bolao-ia-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.bolao-ia-select {
  padding: 0.375rem 0.625rem;
  background: var(--input-bg-focus);
  border: 1px solid var(--border-strong);
  border-radius: 0.375rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: inherit;
}
.bolao-ia-select:focus {
  outline: none;
  border-color: #6366f1;
}

.bolao-ia-quantity {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem; color: var(--text-secondary);
}
.bolao-ia-generate-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.bolao-ia-generate-btn:hover { filter: brightness(1.1); }
.bolao-ia-generate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Games list */
.bolao-games-section {}
.bolao-games-actions {}
.bolao-games-export {
  padding: 0.375rem 0.75rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.375rem;
  color: var(--text-link-hover); font-size: 0.75rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-games-export:hover { background: var(--accent-bg-hover); }
.bolao-games-empty {
  text-align: center;
  padding: 2rem;
}
.bolao-games-empty-icon { font-size: 2.5rem; opacity: 0.5; margin-bottom: 0.5rem; }
.bolao-games-empty p { color: var(--text-secondary); }
.bolao-games-empty-hint { font-size: 0.8125rem; color: var(--text-tertiary); }
.bolao-games-group { margin-bottom: 1rem; }
.bolao-games-group-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.8125rem; color: var(--text-secondary);
}
.bolao-games-group-count { font-size: 0.75rem; }
.bolao-games-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.bolao-game-card {
  background: var(--bg-sunken);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: border-color 0.2s;
}
.bolao-game-card:hover { border-color: var(--border-medium); }
.bolao-game-card.bolao-game-jackpot { border-color: #10b981; background: rgba(16,185,129,0.08); }
.bolao-game-card.bolao-game-near { border-color: #f59e0b; background: rgba(245,158,11,0.08); }
.bolao-game-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.5rem;
}
.bolao-game-num { font-size: 0.75rem; color: var(--text-tertiary); }
.bolao-game-hits { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.bolao-game-hits.highlight { color: #10b981; }
.bolao-game-numbers { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.bolao-game-ball {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; color: #fff;
}

/* Participants */
.bolao-participants-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.bolao-quota-info { font-size: 0.875rem; color: var(--text-secondary); }
.bolao-quota-info strong { color: #10b981; }
.bolao-participants-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bolao-participant {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
}
.bolao-participant.creator { border-color: rgba(245,158,11,0.25); }
.bolao-participant-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9375rem; font-weight: 700; color: #fff;
}
.bolao-participant-info { flex: 1; min-width: 0; }
.bolao-participant-name { font-size: 0.9375rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bolao-participant-badge {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem; font-weight: 600;
}
.bolao-participant-badge.creator { background: rgba(245,158,11,0.15); color: #fbbf24; }
.bolao-participant-email { font-size: 0.75rem; color: var(--text-tertiary); display: block; }
.bolao-participant-quotas { text-align: center; }
.bolao-participant-quota-count { font-size: 1.125rem; font-weight: 700; display: block; }
.bolao-participant-quota-label { font-size: 0.6875rem; color: var(--text-tertiary); }
.bolao-participant-paid {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 600;
}
.bolao-participant-paid.yes { background: rgba(16,185,129,0.15); color: #34d399; }
.bolao-participant-paid.no { background: rgba(245,158,11,0.15); color: #fbbf24; }
.bolao-participant-actions { margin-top: 1rem; text-align: center; }
.bolao-action-btn {
  padding: 0.625rem 1.5rem;
  border: none; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-action-btn.primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.bolao-action-btn.primary:hover { filter: brightness(1.1); }
.bolao-action-btn.danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
}
.bolao-action-btn.danger:hover { background: rgba(239,68,68,0.2); color: #fecaca; }

/* Check result */
.bolao-check-form {
  display: flex; gap: 0.75rem; align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.bolao-check-input-wrap { flex: 1; min-width: 200px; }
.bolao-check-input-wrap label { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.375rem; }
.bolao-check-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary); font-size: 0.9375rem;
  font-family: inherit;
}
.bolao-check-input:focus { outline: none; border-color: #6366f1; }
.bolao-check-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  display: flex; align-items: center; gap: 0.5rem;
}
.bolao-check-btn:hover { filter: brightness(1.1); }
.bolao-check-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.bolao-check-loading { text-align: center; padding: 2rem; color: var(--text-secondary); }
.bolao-check-loading p { margin-top: 0.5rem; font-size: 0.875rem; }
.bolao-check-error {
  text-align: center;
  padding: 1.5rem;
  color: #f87171;
  background: rgba(239,68,68,0.08);
  border-radius: 0.5rem;
}
.bolao-check-result {}
.bolao-check-drawn {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.bolao-check-drawn h4 { font-size: 0.875rem; color: #34d399; margin-bottom: 0.75rem; }
.bolao-check-drawn-numbers { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.bolao-drawn-ball {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; color: #fff;
}
.bolao-check-summary {
  display: flex; gap: 1rem;
  margin-bottom: 1rem;
}
.bolao-check-summary-item {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: var(--bg-card-lighter);
  border-radius: 0.5rem;
}
.bolao-check-summary-item.highlight { background: rgba(16,185,129,0.1); }
.bolao-check-summary-value { font-size: 1.5rem; font-weight: 800; display: block; }
.bolao-check-summary-item.highlight .bolao-check-summary-value { color: #34d399; }
.bolao-check-summary-label { font-size: 0.75rem; color: var(--text-tertiary); }
.bolao-check-games h4 { font-size: 0.9375rem; margin-bottom: 0.75rem; }
.bolao-check-game {
  padding: 0.75rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}
.bolao-check-game.winner { border-color: #10b981; background: rgba(16,185,129,0.08); }
.bolao-check-game.near { border-color: #f59e0b; background: rgba(245,158,11,0.08); }
.bolao-check-game-header {
  display: flex; justify-content: space-between;
  font-size: 0.8125rem; color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.bolao-check-game-hits { font-weight: 600; }
.bolao-check-game-hits.winner { color: #10b981; }
.bolao-check-game-hits.near { color: #f59e0b; }
.bolao-check-game-numbers { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.bolao-check-ball {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-bg-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 600; color: var(--text-secondary);
}
.bolao-check-ball.hit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

/* Chat */
.bolao-chat-section {}
.bolao-chat-container {}
.bolao-chat-messages {
  height: 350px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.bolao-chat-loading, .bolao-chat-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%;
  text-align: center; color: var(--text-tertiary);
}
.bolao-chat-loading p, .bolao-chat-empty p { margin-top: 0.5rem; font-size: 0.875rem; }
.bolao-chat-empty-hint { font-size: 0.75rem; }
.bolao-chat-error { text-align: center; color: #f87171; padding: 1rem; }
.bolao-chat-message {
  display: flex; gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.bolao-chat-message.mine { flex-direction: row-reverse; }
.bolao-chat-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.bolao-chat-bubble {
  max-width: 70%;
  padding: 0.625rem 0.875rem;
  background: var(--glass-bg);
  border-radius: 0.75rem;
}
.bolao-chat-message.mine .bolao-chat-bubble {
  background: var(--accent-bg-hover);
  border-radius: 0.75rem 0.75rem 0.25rem 0.75rem;
}
.bolao-chat-author { font-size: 0.75rem; font-weight: 600; color: var(--text-link); display: block; margin-bottom: 0.25rem; }
.bolao-chat-text { font-size: 0.875rem; color: var(--text-primary); word-wrap: break-word; margin: 0; }
.bolao-chat-time { font-size: 0.625rem; color: var(--text-tertiary); display: block; text-align: right; margin-top: 0.25rem; }
.bolao-chat-input-wrap { display: flex; gap: 0.5rem; }
.bolao-chat-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary); font-size: 0.875rem;
  font-family: inherit;
}
.bolao-chat-input:focus { outline: none; border-color: #6366f1; }
.bolao-chat-send {
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.bolao-chat-send:hover { filter: brightness(1.1); }
.bolao-chat-not-participant {
  text-align: center;
  padding: 1rem;
  background: rgba(245,158,11,0.08);
  border-radius: 0.5rem;
  color: #fbbf24; font-size: 0.875rem;
}

/* Config */
.bolao-config-form {}
.bolao-config-group { margin-bottom: 1rem; }
.bolao-config-group label { display: block; font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.375rem; }
.bolao-config-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bolao-config-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken-light);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.bolao-config-save {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.bolao-config-save:hover { filter: brightness(1.1); }
.bolao-config-save:disabled { opacity: 0.5; cursor: not-allowed; }
.bolao-danger-zone {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(239,68,68,0.15);
}
.bolao-danger-zone h4 { color: #f87171; font-size: 0.9375rem; margin-bottom: 1rem; }
.bolao-danger-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%;
  padding: 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 0.5rem;
  color: #fca5a5; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  font-family: inherit; text-align: left;
}
.bolao-danger-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); }
.bolao-danger-desc { font-size: 0.75rem; color: #f87171; font-weight: 400; margin-top: 0.25rem; }
.bolao-danger-closed { color: var(--text-tertiary); font-size: 0.875rem; }

/* ===============================================
   PLANS PAGE - REDESIGN COMPLETO
   =============================================== */

.plans-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.plans-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.plans-loading .spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-medium);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.plans-error {
  text-align: center;
  padding: 3rem;
  color: #f87171;
}
.plans-error button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Header */
.plans-header {
  text-align: center;
  padding: 2rem 0 3rem;
}
.plans-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #a78bfa, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.plans-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.plans-trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.05));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50px;
  color: #34d399;
  font-weight: 600;
  font-size: 0.9375rem;
}
.plans-trial-icon { font-size: 1.25rem; }

/* Grid de cards */
.plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.plans-grid .plan-card {
  flex: 0 1 280px;
  max-width: 320px;
}
@media (max-width: 640px) {
  .plans-grid .plan-card { flex: 1 1 100%; max-width: 100%; }
  .plans-title { font-size: 1.75rem; }
}

/* Plan Card */
.plan-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.plan-card-popular {
  border-color: rgba(139,92,246,0.5);
  background: linear-gradient(180deg, rgba(139,92,246,0.1), rgba(15,23,42,0.95));
}
.plan-card-popular:hover {
  border-color: rgba(139,92,246,0.7);
  box-shadow: 0 20px 40px rgba(139,92,246,0.15);
}
.plan-card-current {
  border-color: rgba(16,185,129,0.5);
}

.plan-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.plan-current-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.plan-header {
  text-align: center;
  padding: 1.5rem 1rem;
  margin: -1.5rem -1.5rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
}
.plan-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}
.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.25rem;
}
.plan-highlight {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.plan-price {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-secondary);
}
.plan-price-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #f1f5f9;
}
.plan-price-period {
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-left: 0.25rem;
}
.plan-price-free {
  font-size: 2rem;
  font-weight: 700;
  color: #10b981;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--text-light);
}
.plan-feature-icon {
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
}
.plan-feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.plan-feature-detail {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}
.plan-feature-highlight {
  color: #a78bfa;
  font-weight: 600;
}
.plan-feature-disabled {
  color: var(--text-muted);
}
.plan-feature-disabled .plan-feature-icon { color: #ef4444; opacity: 0.7; }

.plan-action {
  margin-top: auto;
}
.plan-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.plan-btn-upgrade {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
}
.plan-btn-upgrade:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,102,241,0.3);
}
.plan-btn-popular {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.plan-btn-popular:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 8px 20px rgba(139,92,246,0.3);
}
.plan-btn-current {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  cursor: default;
  border: 1px solid rgba(16,185,129,0.3);
}
.plan-btn-downgrade {
  background: rgba(100,116,139,0.15);
  color: var(--text-secondary);
  border: 1px solid rgba(100,116,139,0.3);
}
.plan-btn-downgrade:hover {
  background: rgba(100,116,139,0.25);
}

/* Compare Section */
.plans-compare-section {
  margin-top: 4rem;
}
.plans-compare-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2rem;
}
.plans-compare-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-primary);
}
.plans-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.plans-compare-table th,
.plans-compare-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border-secondary);
}
.plans-compare-table th {
  background: var(--bg-sunken);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.plans-compare-table th.current {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}
.plans-compare-table th:first-child {
  text-align: left;
}
.plans-compare-table td:first-child {
  text-align: left;
  color: var(--text-light);
  font-weight: 500;
}
.plans-compare-table td.current {
  background: rgba(16,185,129,0.05);
}
.plans-compare-table .feature-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.plans-compare-table .check { color: #10b981; }
.plans-compare-table .check-icon { font-size: 1.25rem; font-weight: 700; }
.plans-compare-table .dash { color: var(--text-muted); }
.plans-compare-table .dash-icon { font-size: 1rem; }
.plans-compare-table .badge-pro {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: rgba(139,92,246,0.2);
  color: #a78bfa;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.plans-compare-table .badge-premium {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.plans-compare-table tr.row-pro td:first-child { color: #a78bfa; }
.plans-compare-table tr.row-premium td:first-child { color: #fbbf24; }
.plans-compare-table tbody tr:hover {
  background: var(--accent-bg-subtle);
}

/* FAQ Section */
.plans-faq {
  margin: 4rem 0 2rem;
}
.plans-faq-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 2rem;
}
.plans-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .plans-faq-grid { grid-template-columns: 1fr; }
}
.plans-faq-item {
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1.5rem;
}
.plans-faq-item h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.plans-faq-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Modal */
.plans-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.plans-modal.hidden { display: none; }
.plans-modal-overlay {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay);
  backdrop-filter: blur(4px);
}
.plans-modal-content {
  position: relative;
  background: linear-gradient(180deg, var(--modal-bg), var(--bg-body));
  border: 1px solid var(--border-medium);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* Checkout */
.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.checkout-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
}
.checkout-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-tertiary);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
.checkout-close:hover { color: var(--text-secondary); }

.checkout-plan {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.checkout-plan-icon { font-size: 2rem; }
.checkout-plan-info { display: flex; flex-direction: column; }
.checkout-plan-name { font-weight: 700; color: #f1f5f9; font-size: 1.125rem; }
.checkout-plan-price { color: #a78bfa; font-weight: 600; }

.checkout-discount {
  text-align: center;
  color: #10b981;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(16,185,129,0.1);
  border-radius: 0.5rem;
}
.checkout-discount.hidden { display: none; }

.checkout-coupon {
  margin-bottom: 1.5rem;
}
.checkout-coupon label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.checkout-coupon-input {
  display: flex;
  gap: 0.5rem;
}
.checkout-coupon-input input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--input-bg-focus);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  text-transform: uppercase;
}
.checkout-coupon-input input::placeholder { color: var(--text-muted); text-transform: none; }
.checkout-coupon-input button {
  padding: 0.75rem 1.25rem;
  background: var(--accent-bg-hover);
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  color: #a78bfa;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.checkout-coupon-input button:hover {
  background: var(--accent-bg-hover);
}
.checkout-coupon-msg {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}
.checkout-coupon-msg.success { color: #10b981; }
.checkout-coupon-msg.error { color: #f87171; }
.checkout-coupon-msg.hidden { display: none; }

.checkout-methods-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.checkout-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.75rem;
  font-family: inherit;
  text-align: left;
}
.checkout-method:hover {
  background: var(--accent-bg);
  border-color: var(--border-strong);
}
.checkout-method-icon { font-size: 1.5rem; }
.checkout-method-info { flex: 1; display: flex; flex-direction: column; }
.checkout-method-name { font-weight: 600; font-size: 1rem; }
.checkout-method-desc { font-size: 0.8125rem; color: var(--text-tertiary); }
.checkout-method-arrow { color: var(--text-tertiary); font-size: 1.25rem; }
.checkout-method-trial { font-size: 0.75rem; color: #10b981; font-weight: 500; }
.checkout-method-recommended {
  border: 2px solid #10b981;
  background: rgba(16, 185, 129, 0.1);
}
.checkout-method-recommended:hover {
  background: rgba(16, 185, 129, 0.15);
}

.checkout-trial-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.checkout-trial-highlight .trial-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.checkout-trial-highlight p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.checkout-trial-info {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}
.checkout-trial-info .trial-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}
.checkout-trial-info p {
  color: #10b981;
  font-size: 0.875rem;
}

.checkout-security {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  margin-top: 1.5rem;
}

.checkout-loading {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}
.checkout-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-medium);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.checkout-pix-info {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.checkout-pix-discount { color: #10b981; font-size: 0.9375rem; }
.checkout-pix-qr {
  text-align: center;
  margin-bottom: 1.5rem;
}
.checkout-pix-qr img {
  max-width: 200px;
  border-radius: 0.75rem;
  background: white;
  padding: 0.5rem;
}
.checkout-pix-code label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.checkout-pix-code-box {
  background: var(--input-bg-focus);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  word-break: break-all;
  max-height: 80px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}
.checkout-pix-copy {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-bg-strong);
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  color: #a78bfa;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.checkout-pix-copy:hover {
  background: var(--accent-bg-hover);
}

.checkout-sandbox {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 0.75rem;
  text-align: center;
}
.checkout-sandbox-title {
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.checkout-sandbox-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.checkout-sandbox-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 0.5rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.checkout-sandbox-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,0.3);
}
.checkout-sandbox-btn-full {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
}
.checkout-sandbox-info {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.checkout-cancel {
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid rgba(100,116,139,0.3);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkout-cancel:hover { background: rgba(100,116,139,0.1); }

.checkout-waiting {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}
.checkout-error {
  text-align: center;
  padding: 2rem;
  color: #f87171;
}
.checkout-error button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}

/* ===============================================
   MEUS JOGOS PAGE
   =============================================== */

.mj-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));
  border: 1px solid var(--border-medium);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.mj-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}
.mj-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Stats */
.mj-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1024px) { .mj-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mj-stats { grid-template-columns: repeat(2, 1fr); } }

.mj-stat-card {
  background: var(--bg-card-strong);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
}
.mj-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-link-hover);
}
.mj-stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Tabs */
.mj-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.mj-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.mj-tab:hover { color: var(--text-primary); }
.mj-tab.active { color: var(--text-link-hover); border-bottom-color: #6366f1; }
.mj-tab-badge {
  background: var(--accent-bg-hover);
  color: var(--text-link-hover);
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

/* Section */
.mj-section {
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-secondary);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Filters */
.mj-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.mj-filters select {
  padding: 0.625rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  min-width: 180px;
}
.mj-filters select:focus {
  outline: none;
  border-color: #6366f1;
}

/* Empty state */
.mj-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}
.mj-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.mj-empty h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Games grid */
.mj-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

/* Game card */
.mj-game-card {
  background: var(--input-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: border-color 0.2s;
}
.mj-game-card:hover { border-color: var(--border-strong); }

.mj-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.mj-game-lottery {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}
.mj-game-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mj-game-source {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.mj-game-hits {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  background: rgba(100,116,139,0.2);
  border-radius: 10px;
  color: var(--text-secondary);
}
.mj-game-hits.good {
  background: rgba(16,185,129,0.2);
  color: #34d399;
}

.mj-game-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
}

.mj-game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-secondary);
}
.mj-game-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.mj-game-actions { display: flex; gap: 0.5rem; }
.mj-game-btn {
  width: 32px;
  height: 32px;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 0.875rem;
}
.mj-game-btn.delete {
  background: rgba(239,68,68,0.1);
  color: #f87171;
}
.mj-game-btn.delete:hover {
  background: rgba(239,68,68,0.2);
}

/* Super Sete - Display por colunas */
.mj-supersete-display {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
.mj-supersete-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.mj-supersete-col-label {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* +Milionária - Trevos */
.mj-trevos-display {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-medium);
}
.mj-trevos-label {
  font-size: 1rem;
  margin-right: 0.25rem;
}
.mj-trevo-ball {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Timemania - Time do Coração */
.mj-time-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(18, 184, 80, 0.1);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: #34d399;
}
.mj-time-icon {
  font-size: 1rem;
}

/* Dia de Sorte - Mês da Sorte */
.mj-mes-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(203, 133, 18, 0.1);
  border-radius: 0.5rem;
  font-size: 0.8rem;
  color: #f59e0b;
}
.mj-mes-icon {
  font-size: 1rem;
}

/* Criar Jogo Tab */
.mj-lottery-selector { margin-bottom: 1.5rem; }
.mj-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.mj-lottery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mj-lottery-btn {
  padding: 0.625rem 1rem;
  background: var(--input-bg);
  border: 2px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.mj-lottery-btn:hover {
  border-color: var(--lottery-color, #6366f1);
  color: var(--text-primary);
}
.mj-lottery-btn.selected {
  background: var(--lottery-color, #6366f1);
  border-color: var(--lottery-color, #6366f1);
  color: white;
}

.mj-lottery-info {
  text-align: center;
  padding: 1rem;
  background: var(--accent-bg);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-link-hover);
  font-size: 0.875rem;
}

.mj-counter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.mj-counter-current {
  font-size: 2rem;
  font-weight: 800;
  color: #6366f1;
}
.mj-counter-sep { color: var(--text-tertiary); }
.mj-counter-min {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.mj-counter-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-left: 0.5rem;
}

/* Volante */
.mj-volante-container {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}
.mj-volante-grid {
  display: grid;
  gap: 0.5rem;
  justify-content: center;
}
.mj-volante-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.mj-volante-num:hover {
  border-color: #6366f1;
  transform: scale(1.1);
}
.mj-volante-num.selected {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 15px rgba(99,102,241,0.4);
}

/* Special Options Section */
.mj-special-section {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--accent-bg-subtle);
  border: 1px solid var(--border-primary);
  border-radius: 0.75rem;
}
.mj-special-section .mj-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-link-hover);
}
.mj-special-section .mj-label i {
  color: #6366f1;
}

/* Month Grid (Dia de Sorte) */
.mj-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.mj-month-btn {
  padding: 0.625rem 0.5rem;
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mj-month-btn:hover {
  border-color: #6366f1;
  color: var(--text-primary);
}
.mj-month-btn.selected {
  background: linear-gradient(135deg, #cb8512, #f59e0b);
  border-color: transparent;
  color: white;
  font-weight: 600;
}

/* Trevo Grid (+Milionária) */
.mj-trevo-counter {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.mj-trevo-counter span {
  color: #22c55e;
  font-weight: 700;
  font-size: 1.125rem;
}
.mj-trevo-grid {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mj-trevo-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.mj-trevo-btn:hover {
  border-color: #22c55e;
  color: var(--text-primary);
  transform: scale(1.1);
}
.mj-trevo-btn.selected {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* Super Sete - Volante por Colunas */
.mj-supersete-container {
  margin: 1.5rem 0;
}
.mj-supersete-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mj-supersete-column {
  background: var(--bg-sunken);
  border: 1px solid rgba(168, 207, 69, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  min-width: 60px;
}
.mj-supersete-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a8cf45;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(168, 207, 69, 0.2);
}
.mj-supersete-numbers {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mj-supersete-num {
  width: 44px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  border: 1px solid rgba(168, 207, 69, 0.2);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.mj-supersete-num:hover {
  border-color: #a8cf45;
  color: var(--text-primary);
  background: rgba(168, 207, 69, 0.1);
}
.mj-supersete-num.selected {
  background: linear-gradient(135deg, #a8cf45, #84cc16);
  border-color: transparent;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(168, 207, 69, 0.4);
  border-color: transparent;
  color: white;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.mj-volante-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mj-btn-primary, .mj-btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}
.mj-btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
}
.mj-btn-primary:hover { opacity: 0.9; }
.mj-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.mj-btn-secondary {
  background: var(--accent-bg-strong);
  color: var(--text-link-hover);
  border: 1px solid var(--border-medium);
}
.mj-btn-secondary:hover { background: var(--accent-bg-hover); }

.mj-notes { max-width: 400px; margin: 0 auto; }
.mj-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.mj-input:focus { outline: none; border-color: #6366f1; }

/* Conferir Tab */
.mj-conferir-form { }
.mj-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) { .mj-form-row { grid-template-columns: 1fr; } }
.mj-form-group { }
.mj-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.mj-select:focus { outline: none; border-color: #6366f1; }
.mj-select:disabled { opacity: 0.5; }

.mj-conferir-games { }
.mj-conferir-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.mj-checkbox-all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
}
.mj-checkbox-all input { width: 18px; height: 18px; cursor: pointer; }

.mj-conferir-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}
.mj-conferir-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken-light);
  border-radius: 0.5rem;
}
.mj-checkbox { flex-shrink: 0; }
.mj-checkbox input { width: 18px; height: 18px; cursor: pointer; }
.mj-conferir-numbers { flex: 1; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.mj-conferir-strategy { font-size: 0.75rem; color: var(--text-tertiary); min-width: 80px; text-align: right; }

/* Conferir Results */
.mj-conferir-results {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}
.mj-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.mj-drawn-numbers {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.mj-drawn-label { color: var(--text-secondary); font-size: 0.875rem; }
.mj-drawn-balls { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.mj-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mj-result-card {
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
}
.mj-result-card.good {
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.05);
}
.mj-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.mj-result-rank {
  font-weight: 700;
  color: var(--text-tertiary);
}
.mj-result-hits {
  font-weight: 700;
  color: var(--text-link-hover);
}
.mj-result-card.good .mj-result-hits { color: #34d399; }
.mj-result-numbers { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.number-ball.hit {
  background: linear-gradient(135deg, #10b981, #34d399) !important;
  box-shadow: 0 0 12px rgba(16,185,129,0.5);
}

.mj-results-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent-bg);
  border-radius: 0.5rem;
  text-align: center;
  color: var(--text-link-hover);
}

/* Under Construction */
.mj-under-construction {
  text-align: center;
  padding: 4rem 2rem;
}
.mj-uc-icon {
  font-size: 4rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}
.mj-under-construction h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.mj-under-construction p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 0.5rem;
}
.mj-uc-hint {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}
.mj-uc-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.mj-uc-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
}
.mj-uc-feature i {
  font-size: 1.5rem;
  color: #6366f1;
}
.mj-uc-feature span { font-size: 0.875rem; }

/* Plan Gate */
.mj-plan-gate {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.mj-gate-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(251, 191, 36, 0.1));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fbbf24;
}
.mj-plan-gate h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.mj-plan-gate p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
}
.mj-gate-hint {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem !important;
}
.mj-gate-hint strong {
  color: #a78bfa;
}

/* Responsive */
@media (max-width: 768px) {
  .mj-volante-num { width: 38px; height: 38px; font-size: 0.75rem; }
  .mj-volante-actions { flex-direction: column; }
  .mj-volante-actions button { width: 100%; justify-content: center; }
}

/* ===== BOLÃO EM CONSTRUÇÃO ===== */
.bolao-under-construction {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
  background: var(--bg-card-lighter);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
}
.bolao-uc-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.bolao-under-construction h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.bolao-under-construction p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.bolao-uc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.bolao-uc-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--accent-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
}
.bolao-uc-feature-icon {
  font-size: 1.5rem;
}
.bolao-uc-feature span:last-child {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}
.bolao-uc-hint {
  font-size: 0.875rem;
  color: #6366f1;
  font-weight: 500;
}
@media (max-width: 480px) {
  .bolao-uc-features { grid-template-columns: 1fr; }
}

/* ===== BOLÃO MELHORIAS v2 ===== */

/* Tab dot indicator */
.bolao-detail-tab-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-left: 0.25rem;
}

/* Section subtitle */
.bolao-section-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 1.5rem 0 0.75rem;
}

/* ===== FINANCEIRO TAB ===== */
.bolao-financeiro-summary {
  margin-bottom: 1.5rem;
}
.bolao-financeiro-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  color: var(--text-secondary);
}
.bolao-financeiro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.bolao-financeiro-card {
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bolao-financeiro-card.expected { border-color: rgba(59,130,246,0.3); }
.bolao-financeiro-card.received { border-color: rgba(16,185,129,0.3); }
.bolao-financeiro-card.pending { border-color: rgba(245,158,11,0.3); }
.bolao-financeiro-card.complete { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.08); }
.bolao-financeiro-icon { font-size: 1.5rem; }
.bolao-financeiro-data { display: flex; flex-direction: column; }
.bolao-financeiro-value { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); }
.bolao-financeiro-label { font-size: 0.75rem; color: var(--text-tertiary); }

/* Payment list */
.bolao-payment-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bolao-payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.bolao-payment-item.paid { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.2); }
.bolao-payment-item.pending { border-color: rgba(245,158,11,0.2); }
.bolao-payment-user { display: flex; align-items: center; gap: 0.75rem; }
.bolao-payment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.875rem;
}
.bolao-payment-info { display: flex; flex-direction: column; }
.bolao-payment-name { font-weight: 600; color: var(--text-primary); font-size: 0.875rem; }
.bolao-payment-quotas { font-size: 0.75rem; color: var(--text-tertiary); }
.bolao-payment-status { display: flex; align-items: center; gap: 0.5rem; }
.bolao-payment-badge {
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem; font-weight: 600;
}
.bolao-payment-badge.paid { background: rgba(16,185,129,0.15); color: #34d399; }
.bolao-payment-badge.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.bolao-payment-btn {
  width: 32px; height: 32px;
  border: none; border-radius: 0.375rem;
  font-size: 1rem;
  cursor: pointer; transition: all 0.2s;
}
.bolao-payment-btn.confirm { background: rgba(16,185,129,0.15); }
.bolao-payment-btn.confirm:hover { background: rgba(16,185,129,0.3); }
.bolao-payment-btn.revert { background: rgba(239,68,68,0.15); }
.bolao-payment-btn.revert:hover { background: rgba(239,68,68,0.3); }

/* Payment history */
.bolao-payment-history { margin-top: 1.5rem; }
.bolao-history-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-divider);
  font-size: 0.8125rem;
}
.bolao-history-info { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.bolao-history-action { color: var(--text-secondary); }
.bolao-history-participant { font-weight: 600; color: var(--text-primary); }
.bolao-history-amount { color: #10b981; }
.bolao-history-meta { text-align: right; color: var(--text-tertiary); font-size: 0.75rem; }
.bolao-history-notes { display: block; font-style: italic; margin-top: 0.25rem; }

/* ===== BILHETE TAB ===== */
.bolao-ticket-upload { margin-bottom: 1.5rem; }
.bolao-ticket-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.bolao-ticket-dropzone:hover {
  border-color: var(--border-hover);
  background: var(--accent-bg-subtle);
}
.bolao-ticket-dropzone-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.bolao-ticket-dropzone-content p { color: var(--text-secondary); margin-bottom: 0.25rem; }
.bolao-ticket-dropzone-hint { font-size: 0.75rem; color: var(--text-tertiary); }

.bolao-ticket-preview {
  border-radius: 0.75rem;
  overflow: hidden;
}
.bolao-ticket-preview.empty {
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  padding: 2rem;
  text-align: center;
}
.bolao-ticket-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  font-size: 0.875rem;
}
.bolao-ticket-status.uploaded { background: rgba(16,185,129,0.1); color: #34d399; }
.bolao-ticket-status.pending { flex-direction: column; gap: 0.25rem; }
.bolao-ticket-date { font-size: 0.75rem; color: var(--text-tertiary); }
.bolao-ticket-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  cursor: zoom-in;
  background: #0f172a;
}
.bolao-ticket-remove {
  width: 100%;
  padding: 0.625rem;
  background: rgba(239,68,68,0.1);
  border: none;
  color: #f87171;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.bolao-ticket-remove:hover { background: rgba(239,68,68,0.2); }
.bolao-ticket-pending-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.bolao-ticket-pending-hint { font-size: 0.8125rem; color: var(--text-tertiary); margin-top: 0.25rem; }

/* Ticket modal */
.bolao-ticket-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  padding: 0;
  background: transparent;
  border: none;
}
.bolao-ticket-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

/* ===== PREMIO TAB ===== */
.bolao-prize-form {
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-secondary);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.bolao-prize-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.bolao-prize-input-wrap {
  margin-bottom: 1rem;
}
.bolao-prize-input-wrap label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0.375rem;
}
.bolao-prize-input {
  width: 100%;
  max-width: 200px;
  padding: 0.625rem 0.875rem;
  background: var(--input-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
}
.bolao-prize-input:focus {
  outline: none;
  border-color: #6366f1;
}
.bolao-prize-btn {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
  font-family: inherit;
}
.bolao-prize-btn:hover { filter: brightness(1.1); }
.bolao-prize-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Prize preview */
.bolao-prize-preview {
  background: var(--accent-bg);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.bolao-prize-preview h4 {
  font-size: 0.875rem;
  color: var(--text-link-hover);
  margin-bottom: 0.75rem;
}
.bolao-prize-preview-list { display: flex; flex-direction: column; gap: 0.375rem; }
.bolao-prize-preview-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Prize registered */
.bolao-prize-registered { }
.bolao-prize-total {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,185,129,0.08));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.bolao-prize-label {
  display: block;
  font-size: 0.8125rem;
  color: #34d399;
  margin-bottom: 0.25rem;
}
.bolao-prize-value {
  font-size: 2rem;
  font-weight: 800;
  color: #10b981;
}
.bolao-prize-distribution h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.bolao-prize-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bolao-prize-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken-light);
  border: 1px solid var(--border-divider);
  border-radius: 0.5rem;
}
.bolao-prize-item.paid {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.2);
}
.bolao-prize-user { display: flex; align-items: center; gap: 0.75rem; }
.bolao-prize-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.875rem;
}
.bolao-prize-user-info { display: flex; flex-direction: column; }
.bolao-prize-name { font-weight: 600; color: var(--text-primary); font-size: 0.875rem; }
.bolao-prize-quotas { font-size: 0.75rem; color: var(--text-tertiary); }
.bolao-prize-share { display: flex; align-items: center; gap: 0.5rem; }
.bolao-prize-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
}
.bolao-prize-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
}
.bolao-prize-badge.paid { background: rgba(16,185,129,0.15); color: #34d399; }
.bolao-prize-badge.pending { background: rgba(245,158,11,0.15); color: #fbbf24; }
.bolao-prize-action {
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.bolao-prize-action.confirm {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}
.bolao-prize-action.confirm:hover { background: rgba(16,185,129,0.3); }
.bolao-prize-action.revert {
  background: rgba(239,68,68,0.15);
  color: #f87171;
}
.bolao-prize-action.revert:hover { background: rgba(239,68,68,0.3); }

/* Prize empty */
.bolao-prize-empty {
  text-align: center;
  padding: 2rem;
}
.bolao-prize-empty-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.bolao-prize-empty p { color: var(--text-secondary); margin-bottom: 0.25rem; }
.bolao-prize-empty-hint { font-size: 0.8125rem; color: var(--text-tertiary); }

/* ===== TERMOS MODAL ===== */
.bolao-terms-modal-content {
  max-width: 600px;
  max-height: 80vh;
}
.bolao-terms-text {
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-secondary);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.bolao-terms-accept { margin-bottom: 1.25rem; }
.bolao-terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.bolao-terms-checkbox input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
}
.bolao-terms-checkbox span {
  font-size: 0.875rem;
  color: var(--text-primary);
}
.bolao-terms-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ===== RESPONSIVE BOLAO MELHORIAS ===== */
@media (max-width: 768px) {
  .bolao-financeiro-cards { grid-template-columns: repeat(2, 1fr); }
  .bolao-payment-item { flex-wrap: wrap; gap: 0.75rem; }
  .bolao-payment-status { width: 100%; justify-content: flex-end; }
  .bolao-prize-item { flex-wrap: wrap; gap: 0.75rem; }
  .bolao-prize-share { width: 100%; justify-content: flex-end; }
  .bolao-terms-actions { flex-direction: column; }
  .bolao-terms-actions button { width: 100%; }
}

/* ===== AUTH PAGES (Forgot/Reset Password) ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b0f1a 0%, #1e1b4b 50%, #0b0f1a 100%);
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--input-bg-focus);
  border: 1px solid var(--border-primary);
  border-radius: 1.25rem;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-description {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.auth-card .form-group {
  margin-bottom: 1rem;
}

.auth-card .form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.auth-card .form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: var(--input-bg-focus);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.auth-card .form-group input:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.auth-btn {
  width: 100%;
  padding: 0.875rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.35);
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-error {
  color: #f87171;
  font-size: 0.8rem;
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239,68,68,0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(239,68,68,0.2);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--text-link);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--text-link-hover);
}

.auth-success {
  text-align: center;
  padding: 1rem 0;
}

.auth-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auth-success h3 {
  color: #34d399;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.auth-success p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-success-note {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.auth-loading {
  text-align: center;
  padding: 2rem 0;
}

.auth-loading p {
  color: var(--text-secondary);
  margin-top: 1rem;
}

.auth-error-box {
  text-align: center;
  padding: 1rem 0;
}

.auth-error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auth-error-box h3 {
  color: #f87171;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.auth-error-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* ==================== DESDOBRAMENTO ==================== */

.desdobr-mode-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.desdobr-mode-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.desdobr-mode-btn.active {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
}

.desdobr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 800px;
}

.desdobr-grid .number-ball {
  cursor: pointer;
  transition: all 0.15s;
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.desdobr-grid .number-ball:hover {
  transform: scale(1.1);
  border-color: #f59e0b;
}
.desdobr-grid .number-ball.selected {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-color: #f59e0b;
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.desdobr-universe-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg,
    rgba(245, 158, 11, calc(var(--intensity) * 0.008)),
    rgba(239, 68, 68, calc(var(--intensity) * 0.005))
  );
  border: 1px solid rgba(245, 158, 11, calc(var(--intensity) * 0.01 + 0.1));
  transition: all 0.2s;
}
.desdobr-universe-num:hover {
  transform: scale(1.05);
}

.desdobr-heat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  transition: transform 0.15s;
}
.desdobr-heat-cell:hover {
  transform: scale(1.15);
  z-index: 1;
}

@media (max-width: 768px) {
  .desdobr-grid .number-ball {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }
  .desdobr-universe-num {
    width: 42px;
    height: 42px;
  }
  .desdobr-heat-cell {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
}

/* ===== LIGHT THEME - TAILWIND OVERRIDES ===== */
[data-theme="light"] .bg-slate-800 { background-color: #f1f5f9 !important; }
[data-theme="light"] .bg-slate-900 { background-color: #f8fafc !important; }
[data-theme="light"] .bg-slate-800\/60 { background-color: rgba(241,245,249,0.6) !important; }
[data-theme="light"] .bg-slate-700\/50 { background-color: rgba(241,245,249,0.5) !important; }
[data-theme="light"] .bg-slate-700 { background-color: #f1f5f9 !important; }
[data-theme="light"] .bg-indigo-600\/20 { background-color: rgba(79,70,229,0.12) !important; }
[data-theme="light"] .bg-slate-800\/50 { background-color: rgba(241,245,249,0.5) !important; }
[data-theme="light"] .bg-black\/70 { background-color: rgba(0,0,0,0.4) !important; }
[data-theme="light"] .bg-green-500\/20 { background-color: rgba(5,150,105,0.12) !important; }
[data-theme="light"] .bg-red-900\/50 { background-color: rgba(254,226,226,0.5) !important; }

[data-theme="light"] .text-slate-300 { color: #475569 !important; }
[data-theme="light"] .text-slate-400 { color: #64748b !important; }
[data-theme="light"] .text-slate-500 { color: #94a3b8 !important; }
[data-theme="light"] .text-slate-600 { color: #475569 !important; }
[data-theme="light"] .text-white { color: #1e293b !important; }
[data-theme="light"] .text-slate-100 { color: #1e293b !important; }
[data-theme="light"] .text-slate-200 { color: #334155 !important; }
[data-theme="light"] .text-indigo-400 { color: #4f46e5 !important; }
[data-theme="light"] .text-indigo-300 { color: #6366f1 !important; }
[data-theme="light"] .text-green-400 { color: #059669 !important; }
[data-theme="light"] .text-green-300 { color: #059669 !important; }
[data-theme="light"] .text-red-400 { color: #dc2626 !important; }
[data-theme="light"] .text-red-300 { color: #dc2626 !important; }
[data-theme="light"] .text-amber-400 { color: #d97706 !important; }
[data-theme="light"] .text-yellow-400 { color: #d97706 !important; }
[data-theme="light"] .text-purple-400 { color: #7c3aed !important; }
[data-theme="light"] .text-purple-300 { color: #7c3aed !important; }
/* Restore white text on gradient/colored backgrounds */
[data-theme="light"] .bg-gradient-to-r.text-white,
[data-theme="light"] .bg-gradient-to-br.text-white,
[data-theme="light"] .bg-indigo-600.text-white,
[data-theme="light"] [class*="bg-gradient-to"].text-white { color: #fff !important; }

[data-theme="light"] .border-slate-700 { border-color: #e2e8f0 !important; }
[data-theme="light"] .border-slate-700\/50 { border-color: rgba(226,232,240,0.5) !important; }
[data-theme="light"] .border-slate-800 { border-color: #e2e8f0 !important; }
[data-theme="light"] .border-indigo-500\/20 { border-color: rgba(99,102,241,0.18) !important; }
[data-theme="light"] .border-indigo-500\/10 { border-color: rgba(99,102,241,0.1) !important; }

[data-theme="light"] .hover\:bg-slate-700\/50:hover { background-color: rgba(241,245,249,0.7) !important; }
[data-theme="light"] .hover\:bg-slate-800\/50:hover { background-color: rgba(241,245,249,0.5) !important; }
[data-theme="light"] .hover\:bg-green-700:hover { background-color: #059669 !important; }
[data-theme="light"] .border-green-500\/30 { border-color: rgba(5,150,105,0.25) !important; }
[data-theme="light"] .hover\:bg-slate-700:hover { background-color: #f1f5f9 !important; }
[data-theme="light"] .hover\:bg-red-900\/50:hover { background-color: rgba(254,226,226,0.5) !important; }
[data-theme="light"] .hover\:border-red-500\/50:hover { border-color: rgba(239,68,68,0.5) !important; }
[data-theme="light"] .hover\:text-red-400:hover { color: #dc2626 !important; }
[data-theme="light"] .hover\:text-white:hover { color: #1e293b !important; }
[data-theme="light"] .hover\:text-indigo-300:hover { color: #6366f1 !important; }

/* Light theme general enhancements */
[data-theme="light"] .sidebar {
  box-shadow: 2px 0 8px rgba(0,0,0,0.05);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .analysis-section,
[data-theme="light"] .account-card,
[data-theme="light"] .bolao-card,
[data-theme="light"] .bolao-section,
[data-theme="light"] .dash-card,
[data-theme="light"] .dash-result-card,
[data-theme="light"] .dash-stat,
[data-theme="light"] .result-card,
[data-theme="light"] .lottery-result-card,
[data-theme="light"] .game-card,
[data-theme="light"] .strategy-card,
[data-theme="light"] .countdown-item,
[data-theme="light"] .bolao-stat-card,
[data-theme="light"] .result-stat-card,
[data-theme="light"] .summary-card,
[data-theme="light"] .quick-action-btn,
[data-theme="light"] .bolao-mini,
[data-theme="light"] .stat-card-mini,
[data-theme="light"] .dash-quick-card {
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .lottery-result-card:hover,
[data-theme="light"] .result-card:hover,
[data-theme="light"] .bolao-card:hover,
[data-theme="light"] .dash-result-card:hover {
  box-shadow: var(--card-shadow-strong);
}

[data-theme="light"] .bolao-modal-content,
[data-theme="light"] .bolao-modal-overlay {
  backdrop-filter: blur(6px);
}

/* Glass effect in light mode */
[data-theme="light"] .glass {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Form inputs in light mode */
[data-theme="light"] .form-input,
[data-theme="light"] .account-input,
[data-theme="light"] .bolao-form-input,
[data-theme="light"] .bolao-search,
[data-theme="light"] .bolao-filter-select,
[data-theme="light"] .results-search-input {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

[data-theme="light"] select option {
  background: #ffffff;
  color: #1e293b;
}

/* ===== LIGHT THEME - PLANS & CHECKOUT ===== */

/* Plan cards */
[data-theme="light"] .plan-card {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
[data-theme="light"] .plan-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
[data-theme="light"] .plan-card-popular {
  background: linear-gradient(180deg, rgba(139,92,246,0.05), #ffffff);
}
[data-theme="light"] .plan-name {
  color: #1e293b;
}
[data-theme="light"] .plan-price-value {
  color: #1e293b;
}
[data-theme="light"] .plan-price-free {
  color: #059669;
}
[data-theme="light"] .plan-feature-highlight {
  color: #7c3aed;
}
[data-theme="light"] .plan-feature-disabled .plan-feature-icon {
  color: #dc2626;
}
[data-theme="light"] .plan-btn-current {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border-color: rgba(16,185,129,0.3);
}
[data-theme="light"] .plan-btn-downgrade {
  background: rgba(100,116,139,0.08);
  border-color: rgba(100,116,139,0.2);
}
[data-theme="light"] .plan-btn-downgrade:hover {
  background: rgba(100,116,139,0.15);
}

/* Plans sections */
[data-theme="light"] .plans-compare-title,
[data-theme="light"] .plans-faq-title {
  color: #1e293b;
}
[data-theme="light"] .plans-compare-table-wrap {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .plans-compare-table th.current {
  background: rgba(16,185,129,0.1);
  color: #059669;
}
[data-theme="light"] .plans-compare-table td.current {
  background: rgba(16,185,129,0.04);
}
[data-theme="light"] .plans-compare-table .check {
  color: #059669;
}
[data-theme="light"] .plans-compare-table .badge-pro {
  background: rgba(139,92,246,0.12);
  color: #7c3aed;
}
[data-theme="light"] .plans-compare-table .badge-premium {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}
[data-theme="light"] .plans-compare-table tr.row-pro td:first-child {
  color: #7c3aed;
}
[data-theme="light"] .plans-compare-table tr.row-premium td:first-child {
  color: #d97706;
}
[data-theme="light"] .plans-faq-item {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme="light"] .plans-trial-badge {
  color: #059669;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.04));
  border-color: rgba(16,185,129,0.25);
}

/* Checkout modal */
[data-theme="light"] .plans-modal-content {
  background: #ffffff;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
[data-theme="light"] .checkout-header h2 {
  color: #1e293b;
}
[data-theme="light"] .checkout-plan-name {
  color: #1e293b;
}
[data-theme="light"] .checkout-plan-price {
  color: #7c3aed;
}
[data-theme="light"] .checkout-discount {
  color: #059669;
  background: rgba(16,185,129,0.08);
}
[data-theme="light"] .checkout-coupon-msg.success {
  color: #059669;
}
[data-theme="light"] .checkout-coupon-msg.error {
  color: #dc2626;
}
[data-theme="light"] .checkout-coupon-input button {
  color: #6366f1;
}
[data-theme="light"] .checkout-method-trial {
  color: #059669;
}
[data-theme="light"] .checkout-method-recommended {
  border-color: #10b981;
  background: rgba(16,185,129,0.06);
}
[data-theme="light"] .checkout-method-recommended:hover {
  background: rgba(16,185,129,0.1);
}
[data-theme="light"] .checkout-trial-highlight {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(16,185,129,0.03));
  border-color: rgba(16,185,129,0.25);
}
[data-theme="light"] .checkout-trial-info {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.15);
}
[data-theme="light"] .checkout-trial-info p {
  color: #059669;
}
[data-theme="light"] .checkout-pix-discount {
  color: #059669;
}
[data-theme="light"] .checkout-pix-copy {
  color: #6366f1;
}
[data-theme="light"] .checkout-sandbox {
  background: rgba(245,158,11,0.06);
  border-color: rgba(245,158,11,0.2);
}
[data-theme="light"] .checkout-sandbox-title {
  color: #d97706;
}
[data-theme="light"] .checkout-error {
  color: #dc2626;
}
[data-theme="light"] .checkout-loading .spinner {
  border-top-color: #4f46e5;
}

/* ===== LIGHT THEME - MEUS JOGOS ===== */
[data-theme="light"] .mj-title {
  color: #1e293b;
}
[data-theme="light"] .mj-stat-card,
[data-theme="light"] .mj-section,
[data-theme="light"] .mj-game-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
[data-theme="light"] .mj-game-hits.good {
  background: rgba(16,185,129,0.12);
  color: #059669;
}
[data-theme="light"] .mj-time-display {
  color: #059669;
}
[data-theme="light"] .mj-mes-display {
  color: #d97706;
}
[data-theme="light"] .mj-game-btn.delete {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
}
[data-theme="light"] .mj-game-btn.delete:hover {
  background: rgba(239,68,68,0.15);
}

/* ===== LIGHT THEME - BOLÃO ===== */
[data-theme="light"] .bolao-ticket-image {
  background: #f1f5f9;
}
[data-theme="light"] .bolao-ticket-remove {
  color: #dc2626;
}
