/* GrowthQuiz — front (dark premium). Escopado em .growthquiz-root. */
.growthquiz-root {
  --gq-bg: #0d0d1a;
  --gq-surface: rgba(255,255,255,.045);
  --gq-border: rgba(255,255,255,.12);
  --gq-accent-1: #6d5efc;
  --gq-accent-2: #8b5cf6;
  --gq-grad: linear-gradient(135deg, var(--gq-accent-1), var(--gq-accent-2));
  --gq-ok: #34d399;
  font-family: 'Sora', system-ui, -apple-system, Arial, sans-serif;
  color: #f5f6fb; max-width: 560px; margin: 0 auto;
}
.growthquiz-root * { box-sizing: border-box; }

/* ---- Card / telas ---- */
.gq-card {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(109,94,252,.20), transparent 55%),
    var(--gq-bg);
  border: 1px solid var(--gq-border); border-radius: 26px;
  padding: 30px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
  animation: gq-card-in .42s cubic-bezier(.22,1,.36,1) both;
}
.gq-card::before { /* brilho superior sutil */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.gq-card h2 { font-size: 25px; line-height: 1.18; margin: 12px 0 12px; letter-spacing: -.03em; font-weight: 800; }
.gq-card p { color: rgba(255,255,255,.78); line-height: 1.6; margin: 0 0 6px; }
.gq-center { text-align: center; }

@keyframes gq-card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---- Badge ---- */
.gq-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(109,94,252,.4); background: rgba(109,94,252,.14);
  color: #d8d9ff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px;
}
.gq-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a9a0ff; box-shadow: 0 0 10px #a9a0ff; }

/* ---- Inputs ---- */
.gq-card input {
  display: block; width: 100%; padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--gq-border, rgba(255,255,255,.12)); background: rgba(255,255,255,.06);
  color: #fff; outline: none; margin: 7px 0; font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.gq-card input::placeholder { color: rgba(255,255,255,.45); }
.gq-card input:focus { border-color: rgba(143,124,255,.85); box-shadow: 0 0 0 4px rgba(143,124,255,.16); background: rgba(255,255,255,.08); }

/* ---- Botões ---- */
.gq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px; margin-top: 14px; border: 0; border-radius: 999px;
  background: var(--gq-grad); background-size: 160% 160%; color: #fff; font-weight: 800; font-size: 15px;
  text-decoration: none; cursor: pointer; letter-spacing: .01em;
  box-shadow: 0 14px 34px rgba(109,94,252,.4);
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .2s, background-position .4s;
}
.gq-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 46px rgba(109,94,252,.5); background-position: 100% 0; }
.gq-btn:active { transform: translateY(0) scale(.98); }
.gq-btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.gq-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gq-nav { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.gq-nav .gq-btn { margin-top: 0; }
.gq-link { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 13px; padding: 8px 4px; transition: color .2s; }
.gq-link:hover { color: #fff; }
.gq-erro { color: #ffb4b4; font-size: 13px; min-height: 18px; margin-top: 4px; }

/* ---- Barra de progresso ---- */
.gq-progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 16px; }
.gq-progress span { display: block; height: 100%; border-radius: 999px; background: var(--gq-grad); transition: width .45s cubic-bezier(.22,1,.36,1); box-shadow: 0 0 14px rgba(139,92,246,.6); }
.gq-step { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a9a0ff; }

/* ---- Opções ---- */
.gq-opcoes { display: grid; gap: 10px; margin-top: 18px; }
.gq-opcao {
  display: flex; align-items: center; text-align: left; padding: 16px 18px; border-radius: 15px; cursor: pointer;
  border: 1px solid var(--gq-border); background: var(--gq-surface);
  color: #fff; font-size: 15px; font-weight: 600;
  transition: border-color .18s, background .18s, transform .12s;
  animation: gq-opt-in .35s ease-out both;
}
.gq-opcoes .gq-opcao:nth-child(1){animation-delay:.04s}
.gq-opcoes .gq-opcao:nth-child(2){animation-delay:.08s}
.gq-opcoes .gq-opcao:nth-child(3){animation-delay:.12s}
.gq-opcoes .gq-opcao:nth-child(4){animation-delay:.16s}
.gq-opcoes .gq-opcao:nth-child(5){animation-delay:.20s}
.gq-opcao::after { content: ""; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); transition: .18s; }
.gq-opcao:hover { border-color: rgba(143,124,255,.6); background: rgba(109,94,252,.12); transform: translateX(2px); }
.gq-opcao.sel { border-color: rgba(143,124,255,.9); background: rgba(109,94,252,.2); }
.gq-opcao.sel::after { background: var(--gq-grad); border-color: transparent; box-shadow: 0 0 0 3px rgba(143,124,255,.2); }
@keyframes gq-opt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Resultados ---- */
.gq-recos { display: grid; gap: 14px; margin: 18px 0; }
.gq-reco { border: 1px solid var(--gq-border); border-radius: 18px; padding: 16px; background: var(--gq-surface); animation: gq-reco-in .5s cubic-bezier(.22,1,.36,1) both; }
.gq-recos .gq-reco:nth-child(1){animation-delay:.05s}
.gq-recos .gq-reco:nth-child(2){animation-delay:.18s}
.gq-recos .gq-reco:nth-child(3){animation-delay:.31s}
.gq-reco-foto { height: 150px; border-radius: 13px; background-size: cover; background-position: center; margin-bottom: 12px; }
.gq-reco-pct { font-weight: 800; color: var(--gq-ok); margin-bottom: 4px; font-size: 14px; }
.gq-reco strong { display: block; font-size: 18px; }
.gq-reco-bairro { color: rgba(255,255,255,.6); font-size: 13px; }
.gq-reco p { font-size: 14px; margin-top: 6px; }
@keyframes gq-reco-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Spinner ---- */
.gq-spinner {
  width: 40px; height: 40px; margin: 6px auto 16px;
  border: 3px solid rgba(255,255,255,.16); border-top-color: var(--gq-accent-2);
  border-radius: 50%; animation: gq-spin .8s linear infinite;
}
@keyframes gq-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .gq-card { padding: 24px 18px; border-radius: 22px; }
  .gq-card h2 { font-size: 22px; }
}

/* Telas de carregamento */
.gq-progress-anim span { width: 0; }
.gq-loading-rich { text-align: center; margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gq-loading-rich strong { font-size: 16px; margin-top: 4px; }
.gq-loading-sub { font-size: 13px; color: rgba(255,255,255,.7); max-width: 380px; }
.gq-loading-rodape { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; }

/* Overlay de bloqueio da página (modo="gate") */
.gq-lock {
  --gq-bg: #0d0d1a; --gq-surface: rgba(255,255,255,.045); --gq-border: rgba(255,255,255,.12);
  --gq-accent-1: #6d5efc; --gq-accent-2: #8b5cf6; --gq-grad: linear-gradient(135deg, #6d5efc, #8b5cf6); --gq-ok: #34d399;
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: rgba(7,7,15,.92); backdrop-filter: blur(14px);
  overflow-y: auto; color: #f5f6fb;
  font-family: 'Sora', system-ui, -apple-system, Arial, sans-serif;
}
.gq-lock * { box-sizing: border-box; }
.gq-lock-inner { width: 100%; max-width: 460px; position: relative; }
.gq-lock .gq-card { animation: gq-card-in .4s cubic-bezier(.22,1,.36,1) both; }
.gq-lock-close { position: absolute; top: -14px; right: -6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: #333; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); z-index: 2; }

/* Quiz em tela cheia (overlay) */
.gq-fs {
  --gq-bg: #0d0d1a; --gq-surface: rgba(255,255,255,.045); --gq-border: rgba(255,255,255,.12);
  --gq-accent-1: #6d5efc; --gq-accent-2: #8b5cf6; --gq-grad: linear-gradient(135deg, #6d5efc, #8b5cf6); --gq-ok: #34d399;
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center; padding: 22px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(109,94,252,.18), transparent 55%),
    #07070f;
  overflow-y: auto; color: #f5f6fb;
  font-family: 'Sora', system-ui, -apple-system, Arial, sans-serif;
}
.gq-fs * { box-sizing: border-box; }
.gq-fs-inner { width: 100%; max-width: 560px; }
.gq-fs-close {
  position: fixed; top: 18px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
  font-size: 16px; cursor: pointer; transition: background .2s; z-index: 1;
}
.gq-fs-close:hover { background: rgba(255,255,255,.14); }

/* Acessibilidade: respeita redução de movimento */
@media (prefers-reduced-motion: reduce) {
  .growthquiz-root *, .growthquiz-root *::before, .growthquiz-root *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
