/* ==========================================================================
   LULA SIMULATOR — SISTEMA GLOBAL DE ESTILOS & DESIGN SYSTEM
   ========================================================================== */

/* 1. VARIÁVEIS DE CORES & TEMA CÓSMICO */
:root {
  --bg-dark: #070c18;
  --bg-cosmic-1: #182848;
  --bg-cosmic-2: #101d36;
  --bg-cosmic-3: #070c18;
  --bg-card: rgba(16, 25, 46, 0.82);
  --verde-brasil: #009c3b;
  --verde-neon: #00e676;
  --verde-glow: rgba(0, 230, 118, 0.55);
  --amarelo-brasil: #ffdf00;
  --amarelo-glow: rgba(255, 223, 0, 0.35);
  --azul-brasil: #002776;
  --azul-glow: rgba(56, 189, 248, 0.4);
  --vermelho-alert: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-card: rgba(255, 255, 255, 0.08);
}

/* 2. RESET GLOBAL & FUNDO CÓSMICO COM ESTRELAS CINTILANTES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  background-color: var(--bg-dark);
}

body {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 18%, #182a4d 0%, #0f1c35 42%, #060a14 100%) fixed !important;
  color: var(--text-main);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: pan-y;
  position: relative;
}

/* Camada 1: Estrelas Pequenas e Médias Cintilantes */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 12% 14%, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 28% 36%, rgba(255, 255, 255, 0.85) 100%, transparent),
    radial-gradient(2px 2px at 44% 12%, rgba(255, 223, 0, 0.9) 100%, transparent),
    radial-gradient(1px 1px at 62% 28%, rgba(255, 255, 255, 0.75) 100%, transparent),
    radial-gradient(1.5px 1.5px at 80% 18%, #ffffff 100%, transparent),
    radial-gradient(2px 2px at 90% 42%, rgba(0, 230, 118, 0.85) 100%, transparent),
    radial-gradient(1px 1px at 15% 68%, rgba(255, 255, 255, 0.65) 100%, transparent),
    radial-gradient(2px 2px at 34% 78%, rgba(255, 255, 255, 0.95) 100%, transparent),
    radial-gradient(1px 1px at 52% 62%, rgba(255, 255, 255, 0.75) 100%, transparent),
    radial-gradient(1.5px 1.5px at 72% 84%, rgba(255, 223, 0, 0.85) 100%, transparent),
    radial-gradient(1px 1px at 86% 74%, rgba(255, 255, 255, 0.85) 100%, transparent),
    radial-gradient(2px 2px at 95% 92%, rgba(56, 189, 248, 0.9) 100%, transparent),
    radial-gradient(1px 1px at 6% 94%, rgba(255, 255, 255, 0.75) 100%, transparent);
  background-size: 100vw 100vh;
  animation: cosmicTwinkleSlow 7s ease-in-out infinite alternate;
}

/* Camada 2: Estrelas Cintilantes com Brilho Suave e Ritmo Alternado */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(1.5px 1.5px at 20% 24%, rgba(255, 255, 255, 0.95) 100%, transparent),
    radial-gradient(2px 2px at 38% 48%, rgba(255, 255, 255, 0.9) 100%, transparent),
    radial-gradient(1px 1px at 55% 22%, rgba(255, 255, 255, 0.75) 100%, transparent),
    radial-gradient(2px 2px at 70% 50%, rgba(255, 223, 0, 0.95) 100%, transparent),
    radial-gradient(1px 1px at 84% 32%, rgba(255, 255, 255, 0.7) 100%, transparent),
    radial-gradient(1.5px 1.5px at 10% 78%, rgba(0, 230, 118, 0.9) 100%, transparent),
    radial-gradient(1px 1px at 26% 90%, rgba(255, 255, 255, 0.8) 100%, transparent),
    radial-gradient(2px 2px at 48% 92%, rgba(56, 189, 248, 0.9) 100%, transparent),
    radial-gradient(1px 1px at 64% 72%, rgba(255, 255, 255, 0.7) 100%, transparent),
    radial-gradient(1.5px 1.5px at 78% 62%, rgba(255, 255, 255, 0.95) 100%, transparent),
    radial-gradient(2px 2px at 93% 16%, rgba(255, 223, 0, 0.9) 100%, transparent);
  background-size: 100vw 100vh;
  animation: cosmicTwinkleMedium 10s ease-in-out infinite alternate;
}

@keyframes cosmicTwinkleSlow {
  0% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.98; transform: scale(1.01); }
  100% { opacity: 0.40; transform: scale(0.99); }
}

@keyframes cosmicTwinkleMedium {
  0% { opacity: 0.90; transform: scale(1.01); }
  50% { opacity: 0.30; transform: scale(0.98); }
  100% { opacity: 0.95; transform: scale(1.0); }
}

/* 3. BARRA DE NAVEGAÇÃO SUPERIOR RESPONSIVA */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 14, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid rgba(255, 223, 0, 0.4);
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 223, 0, 0.15);
  user-select: none;
  -webkit-user-select: none;
}

.nav-brand {
  font-family: 'Bangers', cursive;
  font-size: 24px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--amarelo-brasil), var(--verde-brasil));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amarelo-brasil);
  background: rgba(255, 223, 0, 0.15);
  border: 1px solid rgba(255, 223, 0, 0.35);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Botão Hamburger Menu Mobile (Estritamente Oculto no Desktop) */
.nav-toggle-btn {
  display: none !important;
  background: rgba(255, 223, 0, 0.15);
  border: 1.5px solid var(--amarelo-brasil);
  color: var(--amarelo-brasil);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  user-select: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-toggle-btn:hover {
  background: rgba(255, 223, 0, 0.28);
  box-shadow: 0 0 12px rgba(255, 223, 0, 0.35);
}

/* Card de Usuário Mobile dentro do Drawer de Links (Oculto no Desktop) */
.mobile-nav-profile-card {
  display: none !important;
}

@media (max-width: 950px) {
  .nav-toggle-btn {
    display: inline-flex !important;
  }

  .nav-right-group .desktop-user-pill,
  .nav-right-group #btnLogoutProfile {
    display: none !important;
  }

  .mobile-nav-profile-card {
    display: block !important;
    width: 100%;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 223, 0, 0.25);
  }

  .mobile-user-card-content {
    background: rgba(15, 23, 42, 0.90);
    border: 1px solid rgba(255, 223, 0, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  }

  .mobile-user-header {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-user-avatar,
  .mobile-user-avatar-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1e293b;
    border: 1.5px solid var(--amarelo-brasil);
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .mobile-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-user-name {
    font-family: 'Bangers', cursive;
    font-size: 20px;
    color: var(--amarelo-brasil);
    letter-spacing: 0.5px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-user-stats {
    font-size: 11px;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-user-stats b {
    color: var(--verde-neon);
  }

  .mobile-user-buttons {
    display: flex;
    gap: 8px;
  }

  .btn-user-action {
    flex: 1;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .btn-user-change {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid #38bdf8;
    color: #7dd3fc;
  }

  .btn-user-logout {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid #ef4444;
    color: #fca5a5;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(8, 9, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--amarelo-brasil);
    flex-direction: column;
    padding: 14px 18px;
    gap: 8px;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 14.5px;
    border-radius: 8px;
  }
}

/* 4. BOTÕES REUTILIZÁVEIS ULTRA-ARREDONDADOS COM BRILHO NEON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00c853 0%, #00e676 50%, #69f0ae 100%);
  color: #042410;
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 1.5px;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.55), 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px rgba(0, 230, 118, 0.85), 0 12px 32px rgba(0, 0, 0, 0.6);
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(14, 22, 40, 0.85);
  color: var(--amarelo-brasil);
  font-family: 'Bangers', cursive;
  font-size: 22px;
  letter-spacing: 1.5px;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--amarelo-brasil);
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 223, 0, 0.28), 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-secondary:hover {
  background: rgba(255, 223, 0, 0.18);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 223, 0, 0.6), 0 10px 28px rgba(0, 0, 0, 0.5);
  border-color: #fff275;
}

/* CARDS GLOBAIS COM VIDRO CÓSMICO E BORDAS ILUMINADAS */
.card {
  background: rgba(16, 25, 46, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 223, 0, 0.35);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 223, 0, 0.18);
}

.btn-preset-avatar:hover {
  transform: scale(1.15);
  border-color: var(--amarelo-brasil, #ffd700) !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
}

/* 5. ANIMAÇÕES GLOBAIS */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 223, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 223, 0, 0.6), 0 0 50px rgba(0, 230, 118, 0.3);
  }
}

@keyframes popIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shineGold {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 6. CONTAINERS DE ANÚNCIOS INTELIGENTES (ADSTERRA ZERO CLS) */
.ad-banner-container-160x600 {
  width: 160px;
  height: 600px;
  min-width: 160px;
  min-height: 600px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 223, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: strict;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  user-select: auto !important;
}

.ad-banner-container-320x50 {
  width: 320px;
  height: 50px;
  min-width: 320px;
  min-height: 50px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 223, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  contain: strict;
  user-select: auto !important;
}

/* Skyscraper Fixo Desktop Lateral */
.ad-sidebar-desktop {
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 160px;
  height: 600px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 223, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  pointer-events: auto;
  contain: strict;
}

.ad-sidebar-left {
  left: 16px;
}

.ad-sidebar-right {
  right: 16px;
}

/* Banner Fixo Rodapé Mobile */
.ad-mobile-fixed-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 50px;
  z-index: 90;
  background: rgba(8, 9, 20, 0.95);
  border-top: 1px solid var(--amarelo-brasil);
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .ad-mobile-fixed-footer {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 1250px) {
  .ad-sidebar-desktop {
    display: none !important;
  }
}

/* BOTÃO REWARDED / SMARTLINK */
.btn-rewarded-smartlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 50%, #eab308 100%);
  background-size: 200% auto;
  color: #000000;
  font-family: 'Bangers', cursive;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid #ffdf00;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.35);
  transition: all 0.25s ease;
  animation: shineGold 3s infinite linear;
  user-select: none;
  text-decoration: none;
}

.btn-rewarded-smartlink:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(255, 223, 0, 0.6);
}
