/* ========================================
   LOTO STATS PREMIUM - ESTILOS PRINCIPAIS
   ======================================== */

/* ========== VARIÁVEIS ========== */
:root {
  /* Cores */
  --primary: #8B5CF6;
  --primary-dark: #7C3AED;
  --primary-light: #A78BFA;
  --secondary: #F59E0B;
  --secondary-dark: #D97706;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Dark Theme */
  --bg-dark: #0F0F1A;
  --bg-card: #1A1A2E;
  --bg-card-hover: #252542;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B0;
  --text-muted: #6B6B80;
  --border-color: #2D2D44;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  --gradient-premium: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input, select {
  font-family: inherit;
  outline: none;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER ========== */
.main-header {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo i {
  color: var(--primary);
  font-size: 1.8rem;
}

.logo .highlight {
  color: var(--primary);
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-premium {
  color: var(--secondary) !important;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-premium {
  background: var(--gradient-premium);
  color: white;
  box-shadow: var(--shadow-md);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
}

/* ========== HERO SECTION ========== */
.hero {
  padding: 140px 0 80px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-image {
  position: relative;
  height: 400px;
}

.floating-balls {
  position: relative;
  width: 100%;
  height: 100%;
}

.ball {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.ball-1 { top: 10%; left: 10%; animation-delay: 0s; }
.ball-2 { top: 20%; right: 20%; animation-delay: 0.5s; }
.ball-3 { top: 50%; left: 30%; animation-delay: 1s; }
.ball-4 { bottom: 30%; right: 10%; animation-delay: 1.5s; }
.ball-5 { bottom: 10%; left: 50%; animation-delay: 2s; }

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

/* ========== SECTIONS ========== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-header h2 i {
  color: var(--primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ========== GERADOR ========== */
.gerador-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  margin: 40px 20px;
}

.gerador-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.gerador-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.option-card {
  background: var(--bg-dark);
  padding: 25px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.option-card:hover,
.option-card.active {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.option-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.option-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.option-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.option-card .badge-free {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--success);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.option-card .badge-premium {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-premium);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.option-card.premium {
  opacity: 0.7;
}

.option-card.premium:not(.unlocked):hover {
  opacity: 1;
}

.gerador-config {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius-lg);
}

.config-panel h3 {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.config-item {
  margin-bottom: 20px;
}

.config-item label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.config-item input[type="number"],
.config-item select {
  width: 100%;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
}

.config-item input:focus,
.config-item select:focus {
  border-color: var(--primary);
}

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

.numero-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.numero-btn:hover {
  border-color: var(--primary);
}

.numero-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
}

.numero-btn.excluded {
  background: var(--danger);
  border-color: var(--danger);
}

.gerador-action {
  margin-top: 30px;
  text-align: center;
}

.btn-large {
  width: 100%;
  padding: 18px;
  font-size: 1.2rem;
}

.limite-info {
  margin-top: 15px;
  padding: 10px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--warning);
}

/* ========== RESULTADO ========== */
.gerador-resultado {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.resultado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.resultado-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resultado-actions {
  display: flex;
  gap: 10px;
}

.dezenas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 30px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  min-height: 150px;
}

.dezena-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.dezena-placeholder i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

.dezena {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  animation: popIn 0.3s ease forwards;
  opacity: 0;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.estatisticas-jogo {
  margin-top: 25px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.estat-item {
  text-align: center;
}

.estat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
}

.estat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* ========== ESTATÍSTICAS ========== */
.estatisticas-section {
  background: var(--bg-card);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.stat-card {
  background: var(--bg-dark);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.stat-card h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.numeros-frequentes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.numero-frequente {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.numero-frequente.quente {
  border-color: var(--danger);
  color: var(--danger);
}

.numero-frequente.frio {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== CTA PREMIUM ========== */
.cta-premium {
  background: var(--gradient-primary);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-beneficios {
  text-align: left;
  display: inline-block;
  margin-bottom: 40px;
}

.cta-beneficios li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.cta-beneficios i {
  color: var(--success);
}

/* ========== FOOTER ========== */
.main-footer {
  background: var(--bg-card);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: white;
}

.pagamento-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagamento-icons img {
  height: 30px;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.pagamento-icons img:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.disclaimer {
  margin-top: 10px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--danger);
}

/* ========== AUTH MODAL ========== */
.modal-auth .auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: var(--bg-dark);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.auth-form .form-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-form .form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.auth-form .form-header p {
  color: var(--text-muted);
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form .form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-form .form-group input {
  width: 100%;
  padding: 14px;
  background: var(--bg-dark);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

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

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.forgot-link {
  color: var(--primary);
}

.form-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.form-divider span {
  background: var(--bg-card);
  padding: 0 15px;
  color: var(--text-muted);
  position: relative;
}

.btn-google {
  background: white;
  color: #333;
}

/* ========== UPGRADE MODAL ========== */
.modal-upgrade .upgrade-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-upgrade .upgrade-header i {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 15px;
}

.modal-upgrade .upgrade-header h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.upgrade-beneficios {
  margin-bottom: 30px;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.beneficio-item i {
  color: var(--success);
  font-size: 1.2rem;
}

.upgrade-oferta {
  text-align: center;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  margin-bottom: 25px;
}

.oferta-preco {
  margin-bottom: 10px;
}

.preco-antigo {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-right: 10px;
}

.preco-atual {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
}

.preco-atual span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.oferta-garantia {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== TOAST ========== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--success);
  color: white;
  padding: 15px 25px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateX(150%);
  transition: var(--transition-normal);
  z-index: 3000;
}

.toast.active {
  transform: translateX(0);
}

/* ========== PREMIUM LOCK ========== */
.premium-only {
  position: relative;
}

.premium-only::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 26, 0.7);
  border-radius: var(--radius-md);
  display: none;
}

.premium-only.locked::after {
  display: block;
}

.premium-only.locked {
  opacity: 0.6;
  pointer-events: none;
}

/* ========== HIDDEN ========== */
.hidden {
  display: none !important;
}