/* =====================================================================
   SORTE ON — Tema visual alinhado à identidade da marca
   Paleta: fundo quase-preto + gradiente ciano → verde neon (da logo)
   Tipografia: Poppins (display/headings) + Inter (corpo de texto)
   ===================================================================== */

:root {
  --bg:            #0a0d0a;
  --bg-elevado:     #12160f;
  --bg-elevado-2:   #1a2016;
  --borda:          rgba(255,255,255,.08);
  --texto:          #f2f5f0;
  --texto-muted:    #9aa596;

  --accent-a:       #8bc53f;   /* verde neon principal */
  --accent-b:       #c3e86a;   /* verde neon claro (destaque) */
  --gradiente:      linear-gradient(135deg, var(--accent-a) 0%, var(--accent-b) 100%);

  --azul-cta:       #2196f3;
  --laranja:        #ff7a30;
  --roleta-verde:   #163a1a;
  --roleta-preto:   #0a0d0a;

  --aviso:          #d9a441;
  --perigo:         #e5484d;
  --sucesso:        #8bc53f;

  --raio:           14px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--texto);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand, .section-titulo, .display-6, .display-5, .fw-bold {
  font-family: 'Poppins', 'Inter', sans-serif;
}

a { color: var(--accent-a); }
a:hover { color: var(--accent-b); }

.text-muted { color: var(--texto-muted) !important; }
small { color: inherit; }

/* --------- Fundo com glow ambiente (assinatura visual) --------- */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(139,197,63,.14) 0%, rgba(195,232,106,.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.navbar, .hero, footer.site-footer, section, .container {
  position: relative;
  z-index: 1;
}

/* --------- Navbar --------- */
.navbar {
  background: rgba(10,14,20,.85) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--borda);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.nav-link { color: var(--texto-muted) !important; font-weight: 500; }
.nav-link:hover { color: var(--texto) !important; }

@media (max-width: 767px) {
  .site-logo { height: 68px; }
  .site-logo-footer { height: 88px; }
}

/* --------- Hero --------- */
.hero {
  background: transparent;
  color: var(--texto);
  padding: 4.5rem 0 3.5rem;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  animation: subir-suave .6s ease-out;
}
.hero .lead { color: var(--texto-muted); animation: subir-suave .7s ease-out; }
.hero .badge-transparencia { animation: pulso-suave 2.4s ease-in-out infinite, subir-suave .5s ease-out; }

@keyframes subir-suave {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.texto-gradiente {
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.badge-transparencia {
  background: rgba(195,232,106,.12);
  color: var(--accent-b);
  border: 1px solid rgba(195,232,106,.35);
  font-weight: 600;
  font-size: .75rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  letter-spacing: .02em;
  animation: pulso-suave 2.4s ease-in-out infinite;
}

@keyframes pulso-suave {
  0%, 100% { box-shadow: 0 0 0 0 rgba(195,232,106,.25); }
  50% { box-shadow: 0 0 0 6px rgba(195,232,106,0); }
}

/* --------- Botões --------- */
.btn-primary-rifa {
  background: var(--gradiente);
  border: none;
  color: #06110d;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(139,197,63,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary-rifa:hover {
  color: #06110d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(195,232,106,.35);
}

.btn-outline-light {
  border-color: var(--borda);
  color: var(--texto);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--borda);
  color: var(--texto);
}
.btn-outline-dark {
  border-color: var(--borda);
  color: var(--texto);
}
.btn-outline-dark:hover {
  background: var(--gradiente);
  border-color: transparent;
  color: #06110d;
}
.btn-outline-secondary {
  border-color: var(--borda);
  color: var(--texto-muted);
}
.btn-outline-secondary:hover {
  background: var(--bg-elevado-2);
  color: var(--texto);
  border-color: var(--borda);
}

/* --------- Seções --------- */
.section-titulo {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--texto);
}
section.bg-light {
  background: var(--bg-elevado) !important;
}

/* --------- Cards --------- */
.card-info {
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--bg-elevado);
  color: var(--texto);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-info:hover {
  transform: translateY(-3px);
  border-color: rgba(139,197,63,.3);
  box-shadow: 0 8px 32px rgba(139,197,63,.12);
}
.card-info .text-muted { color: var(--texto-muted) !important; }
.card-info a { color: var(--accent-a); }

/* Inputs dentro de cards escuros */
.card-info .form-control,
.card-info .form-select {
  background: var(--bg);
  border-color: var(--borda);
  color: var(--texto);
}
.card-info .form-control:focus,
.card-info .form-select:focus {
  background: var(--bg);
  color: var(--texto);
  border-color: var(--accent-a);
  box-shadow: 0 0 0 .2rem rgba(139,197,63,.2);
}
.card-info .form-control::placeholder { color: #5b6674; }
.card-info .form-label { color: var(--texto-muted); }
.card-info .form-text { color: #6b7684; }
.card-info code { color: var(--accent-b); background: rgba(195,232,106,.08); padding: .2rem .5rem; border-radius: 6px; }

/* --------- Progresso da rifa --------- */
.progress-rifa { height: 16px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress-rifa .progress-bar,
.progress .progress-bar.bg-success {
  background: var(--gradiente) !important;
  color: #06110d;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.progress-rifa .progress-bar::after,
.progress .progress-bar.bg-success::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: brilho-progresso 2.5s ease-in-out infinite;
}
@keyframes brilho-progresso {
  0% { left: -60%; }
  100% { left: 120%; }
}

/* --------- Grid de números --------- */
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.numero-item {
  border-radius: 8px;
  text-align: center;
  padding: .5rem 0;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  border: 2px solid transparent;
  user-select: none;
  transition: transform .1s ease;
}
.numero-disponivel { background: rgba(139,197,63,.10); color: var(--accent-a); }
.numero-disponivel:hover { border-color: var(--accent-a); transform: translateY(-1px); }
.numero-reservado { background: rgba(217,164,65,.12); color: var(--aviso); cursor: not-allowed; }
.numero-pago { background: rgba(255,255,255,.05); color: #6b7684; cursor: not-allowed; }
.numero-bloqueado, .numero-cancelado { background: rgba(229,72,77,.10); color: var(--perigo); cursor: not-allowed; opacity: .7; }
.numero-premiado { background: rgba(195,232,106,.18); color: var(--accent-b); cursor: not-allowed; }
.numero-selecionado {
  background: var(--gradiente) !important;
  color: #06110d !important;
  border-color: var(--accent-b);
}

/* --------- Alerts (ajustados pro tema escuro) --------- */
.alert-info { background: rgba(139,197,63,.10); border-color: rgba(139,197,63,.3); color: #b7f0c6; }
.alert-success { background: rgba(195,232,106,.10); border-color: rgba(195,232,106,.3); color: #e2f5b8; }
.alert-warning { background: rgba(217,164,65,.12); border-color: rgba(217,164,65,.35); color: #f0d9a8; }
.alert-danger { background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.35); color: #f5b8ba; }
.alert-secondary { background: var(--bg-elevado-2); border-color: var(--borda); color: var(--texto-muted); }

/* --------- Badges --------- */
.badge.bg-success { background: var(--accent-b) !important; color: #06110d !important; }
.badge.bg-warning { background: var(--aviso) !important; color: #06110d !important; }
.badge.bg-info { background: var(--accent-a) !important; color: #06110d !important; }
.badge.bg-secondary { background: var(--bg-elevado-2) !important; color: var(--texto-muted) !important; }
.badge.bg-danger { background: var(--perigo) !important; }

/* --------- Logo --------- */
.site-logo { height: 108px; width: auto; filter: drop-shadow(0 0 16px rgba(139,197,63,.45)); }
.site-logo-footer { height: 120px; width: auto; }

/* --------- Footer --------- */
footer.site-footer {
  background: #060809;
  color: var(--texto-muted);
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--borda);
}
footer.site-footer h6 { color: var(--texto); }
footer.site-footer a.link-light { color: var(--texto-muted) !important; }
footer.site-footer a.link-light:hover { color: var(--accent-b) !important; }
footer.site-footer hr { border-color: var(--borda); }

/* --------- Hero (estilo "A sua sorte está ON!") --------- */
.hero-novo {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}
.hero-novo::before {
  content: '';
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(139,197,63,.16) 0%, transparent 70%);
  pointer-events: none;
}
.hero-novo .container { position: relative; z-index: 1; }

.hero-novo h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}

.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  border-radius: var(--raio);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.hero-premios-img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-info-flutuante {
  position: absolute;
  left: 1rem; right: 1rem; bottom: -1.5rem;
  background: var(--bg-elevado);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
@media (max-width: 991px) {
  .hero-info-flutuante { position: static; margin-top: 1rem; }
}

.hero-prova-social {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.5rem;
}
.hero-prova-social .estrelas { color: #ffc107; letter-spacing: 1px; }

/* --------- Banner promocional da roleta --------- */
.banner-roleta-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-elevado);
  border: 1px solid rgba(139,197,63,.3);
  border-radius: var(--raio);
  padding: 1rem 1.25rem;
  box-shadow: 0 0 24px rgba(139,197,63,.12);
}
.banner-roleta-mini {
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(139,197,63,.5));
  animation: girar-mini-lento 14s linear infinite;
}
@keyframes girar-mini-lento {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 575px) {
  .banner-roleta-promo { flex-direction: column; text-align: center; }
}

.hero-features-bar {
  background: var(--bg-elevado);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.5rem;
  margin-top: 3rem;
}
.hero-feature-icone {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(139,197,63,.12);
  border: 1px solid rgba(139,197,63,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
@media (max-width: 575px) {
  .hero-features-bar { padding: 1rem; margin-top: 2rem; }
  .hero-feature-icone { width: 38px; height: 38px; font-size: 1.05rem; }
}

/* --------- Sorteios em destaque (catálogo) --------- */
.card-sorteio {
  background: var(--bg-elevado);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.card-sorteio:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(139,197,63,.1); }
.card-sorteio .card-sorteio-img { height: 160px; object-fit: cover; width: 100%; background: var(--bg-elevado-2); }
.card-sorteio .card-sorteio-tag {
  position: absolute; top: .6rem; left: .6rem;
  font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px;
}
.tag-andamento { background: rgba(139,197,63,.9); color: #06110d; }
.tag-embreve { background: rgba(255,255,255,.12); color: var(--texto-muted); }
.card-sorteio-corpo { padding: 1rem; }
.card-sorteio-corpo h6 { font-weight: 700; margin-bottom: .2rem; }
.card-sorteio.em-breve { opacity: .55; }
.card-sorteio.em-breve .card-sorteio-img { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
@media (max-width: 575px) {
  .card-sorteio .card-sorteio-img { height: 140px; }
  .card-sorteio-corpo { padding: .85rem; }
  .card-sorteio-corpo h6 { font-size: .92rem; }
}

/* --------- Roleta da Sorte (visual premium) --------- */
.roleta-secao {
  --rp-primary: #9EFF00;
  --rp-secondary: #6BEA00;
  --rp-dark: #0A0A0A;
  --rp-dark-card: #111111;
  position: relative;
  padding: 1.5rem 0 4rem;
  min-height: 70vh;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(158,255,0,.15) 0%, rgba(0,0,0,.95) 70%),
    var(--rp-dark);
}

/* Trevo neon gigante ao fundo, bem apagado */
.roleta-secao .roleta-trevo-fundo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  opacity: .08;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 60px var(--rp-primary));
}
@media (max-width: 767px) {
  .roleta-secao .roleta-trevo-fundo { width: 500px; height: 500px; }
}

/* Confetes flutuando */
.roleta-secao::before, .roleta-secao::after {
  content: '';
  position: absolute;
  width: 4px; height: 16px;
  background: var(--rp-primary);
  opacity: .6;
  border-radius: 2px;
  z-index: 0;
  animation: flutuar-confete 6s ease-in-out infinite;
}
.roleta-secao::before { top: 12%; left: 12%; transform: rotate(25deg); box-shadow:
  60px 40px 0 -2px var(--rp-secondary), 140px 90px 0 -3px var(--rp-primary), 40px 220px 0 -1px var(--rp-secondary),
  220px 30px 0 -2px var(--rp-primary), 300px 160px 0 -3px var(--rp-secondary), 380px 60px 0 -2px var(--rp-primary); }
.roleta-secao::after { top: 20%; right: 10%; transform: rotate(-35deg); animation-delay: 1.5s; box-shadow:
  -70px 60px 0 -2px var(--rp-primary), -150px 130px 0 -3px var(--rp-secondary), -50px 260px 0 -1px var(--rp-primary),
  -230px 50px 0 -2px var(--rp-secondary), -320px 180px 0 -2px var(--rp-primary); }
@keyframes flutuar-confete {
  0%, 100% { transform: translateY(0) rotate(25deg); }
  50% { transform: translateY(18px) rotate(35deg); }
}

.roleta-secao > .container { position: relative; z-index: 1; }

.roleta-titulo-img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.roleta-marca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.roleta-trevo-marca {
  display: inline-flex;
  filter: drop-shadow(0 0 14px rgba(158,255,0,.6));
}
.roleta-titulo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
}
.roleta-subtitulo {
  color: var(--texto-muted);
  font-size: .95rem;
  margin-top: .25rem;
}
.roleta-subtitulo-destaque {
  color: var(--rp-primary);
  font-weight: 700;
}

/* --------- Roda --------- */
.roleta-wrap {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .roleta-wrap { width: 480px; height: 480px; }
}
.roleta-disco-svg {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 20px rgba(158,255,0,.5),
    0 0 40px rgba(158,255,0,.3),
    0 0 80px rgba(158,255,0,.2),
    0 0 0 8px #0c0f0c,
    0 0 0 11px var(--rp-primary);
  transition: box-shadow .3s ease;
}
.roleta-disco-svg:hover {
  box-shadow:
    0 0 30px rgba(158,255,0,.65),
    0 0 60px rgba(158,255,0,.4),
    0 0 100px rgba(158,255,0,.25),
    0 0 0 8px #0c0f0c,
    0 0 0 11px var(--rp-primary);
}
.roleta-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
.roleta-led {
  animation: piscar-led 1.6s ease-in-out infinite;
}
@keyframes piscar-led {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px var(--rp-primary)); }
  50% { opacity: .35; filter: drop-shadow(0 0 1px var(--rp-primary)); }
}

/* --------- Ponteiro --------- */
.roleta-ponteiro-gota {
  position: absolute;
  top: -34px; left: 50%;
  width: 46px; height: 46px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--rp-primary), var(--rp-secondary));
  border: 3px solid #eaffb8;
  transform: translateX(-50%) rotate(-45deg);
  transform-origin: center;
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,.5), 0 0 20px rgba(158,255,0,.7);
  animation: pulsar-ponteiro 1.4s ease-in-out infinite;
}
@keyframes pulsar-ponteiro {
  0%, 100% { transform: translateX(-50%) rotate(-45deg) scale(1); }
  50% { transform: translateX(-50%) rotate(-45deg) scale(1.12); }
}
.roleta-ponteiro-trevo {
  transform: rotate(45deg);
  font-size: 1.3rem;
}

/* --------- Botão Girar --------- */
#btn-girar {
  height: 90px;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rp-primary), var(--rp-secondary)) !important;
  border: none !important;
  color: #06110d !important;
  box-shadow:
    0 0 20px rgba(158,255,0,.5),
    0 0 40px rgba(158,255,0,.3),
    0 0 80px rgba(158,255,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
#btn-girar:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(158,255,0,.65),
    0 0 60px rgba(158,255,0,.4),
    0 0 100px rgba(158,255,0,.3);
}
#btn-girar:active:not(:disabled) {
  transform: scale(.97);
}
#btn-girar:disabled { opacity: .5; cursor: not-allowed; }

.cta-fixo-mobile {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1030;
  background: rgba(10,14,20,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--borda);
  padding: .75rem 1rem;
  display: none;
}
@media (max-width: 767px) {
  .cta-fixo-mobile { display: block; }
  body { padding-bottom: 72px; }
}
.text-success { color: var(--accent-a) !important; }
pre { color: var(--texto-muted); }

/* --------- Ganhadores --------- */
.card-ganhador {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-elevado);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1rem 1.2rem;
}
.card-ganhador .avatar-ganhador {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradiente);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #06110d; font-size: 1.2rem;
  flex-shrink: 0;
}

/* --------- Passo a passo colorido --------- */
.passo-numero {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.5rem; color: #fff;
  margin: 0 auto .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.passo-1 .passo-numero { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.passo-2 .passo-numero { background: linear-gradient(135deg, #ff9a3c, var(--laranja)); }
.passo-3 .passo-numero { background: linear-gradient(135deg, #38bdf8, var(--azul-cta)); }
.passo-4 .passo-numero { background: linear-gradient(135deg, #4ade80, var(--accent-a)); }
.passo-icone { font-size: 2rem; }

/* --------- Cotas: filtros e contador --------- */
.filtro-cotas .btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .82rem;
}
.contador-sorteio {
  background: var(--bg-elevado-2);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contador-sorteio .bloco-tempo { text-align: center; }
.contador-sorteio .bloco-tempo strong { font-size: 1.6rem; display: block; color: var(--accent-b); font-family: 'Poppins', sans-serif; }
.contador-sorteio .bloco-tempo span { font-size: .72rem; color: var(--texto-muted); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 480px) {
  .contador-sorteio { gap: .75rem; padding: .85rem 1rem; }
  .contador-sorteio .bloco-tempo strong { font-size: 1.2rem; }
  .contador-sorteio .bloco-tempo span { font-size: .62rem; }
}

/* --------- Botão CTA estilo "comprar cota" (azul, como na referência) --------- */
.btn-comprar-cota {
  background: var(--azul-cta);
  border: none;
  color: #fff;
  font-weight: 700;
}
.btn-comprar-cota:hover { background: #1976d2; color: #fff; }
