:root{
  --bg1:#120026;
  --bg2:#21003f;

  --stroke:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);

  --primary:#7c3aed;
  --accent:#ff4fd8;

  --ok:#30e3a6;
  --danger:#ff3b3b;

  --shadow: 0 25px 80px rgba(0,0,0,.55);

  /* Espaço real do HUD (evita sobreposição do conteúdo) */
  --hudSpace: 128px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hudSpace); }

body{
  margin:0;
  font-family:Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1100px 700px at 20% 15%, rgba(124,58,237,.30), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,79,216,.18), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
  overscroll-behavior-y: none;
}

#bgGlow{
  position:fixed;
  inset:-40px;
  background: radial-gradient(800px 400px at 50% 110%, rgba(124,58,237,.22), transparent 65%);
  filter: blur(18px);
  pointer-events:none;
  opacity:.9;
}

.stage{
  min-height:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: calc(var(--hudSpace) + 18px) 16px 28px;
}

.hud{
  width:min(980px, 94vw);
  position:fixed;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  display:grid;
  gap:10px;
  z-index:50;

  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(10px);
  padding: 10px 12px;
}

.hud__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.hud__left{
  display:flex;
  align-items:baseline;
  gap:12px;
  min-width:0;
}

.brand{
  font-weight:700;
  letter-spacing:.08em;
  font-size:12px;
  opacity:.95;
  white-space:nowrap;
}

.status{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hud__right{ display:flex; justify-content:flex-end; }

.points{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background: rgba(0,0,0,.20);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.points__icon{ filter: drop-shadow(0 0 10px rgba(255,79,216,.35)); }

.progress{
  height:10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid var(--stroke);
  overflow:hidden;
}

.progress__bar{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 22px rgba(124,58,237,.45);
  transition: width .55s cubic-bezier(.2,.8,.2,1);
}

@media (max-width: 420px){
  :root{ --hudSpace: 140px; }
  .hud{ top:10px; }
}

.modal{
  width:min(980px, 94vw);
  display:flex;
  justify-content:center;
}

.modal__box{
  width:min(560px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:22px;
  position:relative;
  backdrop-filter: blur(10px);
}

/* TIPOGRAFIA */
.h1{
  font-size:24px;
  line-height:1.15;
  margin:0 0 8px;
  color: var(--text);
}

.p{
  color:var(--muted);
  margin:0 0 16px;
}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Input com font-size >= 16px evita “zoom” do iOS ao focar */
.input{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
  font-size: 16px;
  line-height: 1.2;
}

.btn{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(255,79,216,.90));
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition: transform .12s ease, filter .2s ease;
  box-shadow: 0 16px 40px rgba(124,58,237,.22);
}

.btn:active{ transform: scale(.99); filter:brightness(1.05); }

.opt{
  width:100%;
  text-align:left;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  transition: transform .12s ease, border-color .2s ease, box-shadow .2s ease;
  color: var(--text); /* garante texto branco nos quizzes */
}

.opt:hover{
  border-color: rgba(255,79,216,.35);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
}

.opt:active{ transform: scale(.995); }

.divider{ height:1px; background: rgba(255,255,255,.08); margin:14px 0; }

.tag{
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
}

/* Cards */
.cards4{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}

.card3d{
  height:140px;
  border-radius:18px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

.card3d .shine{
  position:absolute;
  inset:-30%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 45%);
  transform: rotate(15deg);
  opacity:.65;
}

/* Vídeo */
.videoShell{
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  background: rgba(0,0,0,.18);
  aspect-ratio: 9 / 16;
  transform: translateZ(0);
}
.videoEl{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}

/* Bolinhas piscando */
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  flex: 0 0 auto;
}
.dot--green{
  background: var(--ok);
  box-shadow: 0 0 16px rgba(48,227,166,.55);
}
.dot--red{
  background: var(--danger);
  box-shadow: 0 0 16px rgba(255,59,59,.55);
}
.dot--blink{ animation: blink 1s ease-in-out infinite; }

@keyframes blink{
  0%, 100%{ opacity: .20; transform: scale(.95); filter: brightness(.9); }
  50%{ opacity: 1; transform: scale(1.15); filter: brightness(1.1); }
}

/* Raspadinha: trava pan/zoom no elemento */
#scratchCanvas{ touch-action: none; }

/* Animações e seção de resultado */
.fadeInUp{ animation: fadeInUp .55s ease both; }
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

.centerHero{
  display:grid;
  place-items:center;
  text-align:center;
  padding: 8px 0 2px;
}
.centerHero__title{
  font-weight:900;
  letter-spacing:.02em;
  font-size: 22px;
  line-height: 1.1;
}
.centerHero__sub{
  margin-top: 8px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}

/* “ANÁLISE COMPLETA” com sensação de carregando */
.resultHeader{
  position: relative;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  overflow: hidden;
}
.resultHeader::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(600px 220px at 20% 30%, rgba(255,79,216,.20), transparent 60%),
    radial-gradient(600px 220px at 80% 70%, rgba(124,58,237,.26), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.resultHeader > *{ position: relative; }

.miniProg{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}
.miniProg__bar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124,58,237,.95), rgba(255,79,216,.90));
  transition: width .35s cubic-bezier(.2,.9,.2,1);
  position: relative;
}
.miniProg__bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer{
  0%{ transform: translateX(-100%); opacity:.0; }
  30%{ opacity:.5; }
  100%{ transform: translateX(100%); opacity:0; }
}

/* Listas mais bonitas */
.resultGrid{
  display:grid;
  gap:12px;
  margin-top: 12px;
}
.blockTitle{
  font-weight: 800;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  margin: 2px 0 6px;
}
.resultList{
  display:grid;
  gap:10px;
}
.resultItem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
}
.resultItem__icon{ width: 22px; text-align:center; margin-top: 1px; }
.resultItem__text{ color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.25; }

/* Planos */
.planGrid{ display:grid; gap:12px; margin-top: 10px; }
.planCard{
  position: relative;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}
.planTitle{ font-weight: 900; letter-spacing: .02em; }
.planPrice{ margin-top: 6px; color: rgba(255,255,255,.72); font-size: 13px; }
.planBullets{ margin-top: 10px; display:grid; gap:6px; color: rgba(255,255,255,.78); font-size: 13px; }

.planCard--premium{
  border-color: rgba(255,79,216,.40);
  box-shadow: 0 0 0 4px rgba(255,79,216,.10), 0 30px 90px rgba(124,58,237,.22);
}

.planBadge{
  position:absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(90deg, rgba(255,79,216,.95), rgba(124,58,237,.95));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  animation: badgePulse 1.25s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes badgePulse{
  0%,100%{ transform: translateX(-50%) scale(1); filter: brightness(1); }
  50%{ transform: translateX(-50%) scale(1.04); filter: brightness(1.08); }
}

/* Modal do upsell (popup do Básico) */
.modalOverlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.60);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:70;
  padding:18px;
}
.modalMini{
  width:min(520px, 94vw);
  border-radius:20px;
  border:1px solid var(--stroke);
  background: rgba(20,10,40,.94);
  box-shadow: var(--shadow);
  padding:18px;
}
.modalMini .h1{ font-size: 20px; margin-bottom: 6px; }
.modalMini .p{ margin-bottom: 10px; }

.warnBox{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,59,59,.25);
  background: rgba(255,59,59,.08);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.upsellBenefits{ margin-top: 10px; display: grid; gap: 8px; }
.upsellBenefit{
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.14);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.upsellBenefit__icon{ width: 20px; text-align:center; }

.linkLike{
  color: rgba(255,255,255,.78);
  text-decoration: underline;
  cursor:pointer;
  display:inline-block;
  margin-top:10px;
}
