/* =====================================================================
   MONOPOLIZE FORMATURAS | Funil (páginas 2–4) + Admin
   Reaproveita as variáveis e botões de styles.css (carregar antes).
   ===================================================================== */

/* ---------- Layout base das páginas de funil ---------- */
.funnel-body {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200,161,60,.12), transparent 55%),
    radial-gradient(80% 60% at 80% 110%, rgba(200,161,60,.08), transparent 60%),
    var(--black);
}
.funnel-body::before { /* textura sutil */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(100% 70% at 50% 25%, #000, transparent 80%);
  opacity: .5;
}

.funnel-topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 26px 0 6px;
}
.funnel-main {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px 56px;
}

/* ---------- Card central ---------- */
.funnel-card {
  width: 100%; max-width: 580px;
  background: linear-gradient(165deg, var(--panel), var(--black-3));
  border: 1px solid var(--line); border-radius: 24px;
  padding: 44px 44px 40px;
  box-shadow: 0 50px 90px -34px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04);
  opacity: 0; transform: translateY(26px) scale(.985);
  animation: cardIn .7s var(--ease) forwards;
}
@keyframes cardIn { to { opacity: 1; transform: none; } }
.funnel-card.leaving {
  opacity: 0; transform: translateY(-18px) scale(.99);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.funnel-card-wide { max-width: 660px; }

/* ---------- Barra de progresso ---------- */
.progress {
  display: flex; align-items: center; gap: 0; margin-bottom: 34px;
}
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.progress-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: rgba(255,255,255,.05); color: var(--muted-2);
  border: 1px solid var(--line-soft); transition: all .4s var(--ease);
}
.progress-label { font-size: 11px; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; font-weight: 600; }
.progress-bar { flex: 1; height: 2px; background: var(--line-soft); margin: 0 6px; margin-bottom: 26px; border-radius: 2px; position: relative; overflow: hidden; }
.progress-bar::after { content:""; position:absolute; inset:0; width:0; background: var(--gold-grad); transition: width .6s var(--ease); }
.progress-step.done .progress-dot { background: var(--gold-grad-cta); color: #1a1303; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(255,206,58,.5); }
.progress-step.active .progress-dot { background: rgba(212,175,55,.12); color: var(--gold-bright); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.1); }
.progress-step.active .progress-label, .progress-step.done .progress-label { color: var(--gold-light); }
.progress-bar.filled::after { width: 100%; }

/* ---------- Cabeçalho do card ---------- */
.funnel-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 14px;
}
.funnel-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 10px var(--gold-bright); }
.funnel-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.05rem); line-height: 1.15;
  color: var(--cream); margin-bottom: 12px;
}
.funnel-title .italic { font-style: italic; }
.funnel-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 30px; }
.funnel-sub strong { color: var(--cream); }

/* ---------- Campos (estende .field de styles.css) ---------- */
.funnel-card .field label { color: var(--gold-light); }
.field-ok input { border-color: rgba(110,200,120,.5) !important; }
.field-ok::after { } /* reservado */
.valid-tick {
  position: absolute; right: 16px; top: 41px; width: 20px; height: 20px;
  opacity: 0; transform: scale(.6); transition: all .3s var(--ease);
  stroke: #7ed09a; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.field { position: relative; }
.field.ok .valid-tick { opacity: 1; transform: scale(1); }

/* ---------- Grupo de escolhas (página perfil) ---------- */
.choice-group { display: grid; gap: 12px; margin-bottom: 8px; }
.choice-group.cols-2 { grid-template-columns: 1fr 1fr; }
.choice {
  position: relative; cursor: pointer;
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(0,0,0,.32); border: 1.5px solid var(--line-soft);
  transition: all .28s var(--ease); user-select: none;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--muted-2); transition: all .28s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.choice .mark svg { width: 12px; height: 12px; stroke: #1a1303; fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.choice .ctext { font-size: 15px; color: var(--text); font-weight: 500; }
.choice:hover { border-color: var(--line); background: rgba(212,175,55,.04); transform: translateY(-2px); }
.choice:active { transform: scale(.985); }
.choice.selected { border-color: var(--gold); background: rgba(212,175,55,.08); box-shadow: 0 8px 22px -12px rgba(212,175,55,.5); }
.choice.selected .mark { background: var(--gold-grad-cta); border-color: transparent; }
.choice.selected .mark svg { opacity: 1; }
.choice.selected .ctext { color: var(--cream); }

.fieldset { margin-bottom: 26px; }
.fieldset > legend, .q-label {
  display: block; font-family: var(--font-display); font-size: 1.12rem;
  color: var(--cream); margin-bottom: 14px; font-weight: 600;
}
.q-num { color: var(--gold); font-family: var(--font-sans); font-weight: 700; font-size: .85em; margin-right: 8px; }
.conditional { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s, margin .35s; opacity: 0; margin-top: 0; }
.conditional.open { max-height: 140px; opacity: 1; margin-top: 14px; }

/* ---------- Rodapé do card ---------- */
.funnel-actions { margin-top: 26px; }
.funnel-foot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--muted-2); margin-top: 16px; text-align: center;
}
.funnel-foot svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.funnel-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 18px; transition: color .3s, gap .3s; }
.funnel-back:hover { color: var(--gold-light); gap: 9px; }
.trust-row { display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-top:22px; }
.trust-row span { font-size: 11.5px; color: var(--muted-2); display:inline-flex; align-items:center; gap:6px; }
.trust-row svg { width: 14px; height: 14px; stroke: var(--gold); fill:none; stroke-width:2; }

.form-error-box {
  background: rgba(224,83,61,.1); border: 1px solid rgba(224,83,61,.4);
  color: #f0a594; font-size: 13.5px; border-radius: 12px; padding: 12px 16px;
  margin-bottom: 18px; display: none;
}
.form-error-box.show { display: block; }

/* ===================================================================
   PÁGINA 4 — OBRIGADO
   =================================================================== */
.thanks-card { max-width: 720px; text-align: center; }
.thanks-badge {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--gold-grad-cta); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 40px -12px rgba(255,206,58,.6); animation: pop .6s var(--ease) .2s both;
}
.thanks-badge svg { width: 38px; height: 38px; stroke: #1a1303; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.video-frame {
  position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #0a121f; margin: 28px 0;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .vid-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--muted-2); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
}
.video-frame .vid-placeholder .pbtn { width: 64px; height: 64px; border-radius: 50%; background: var(--gold-grad-cta); display:flex; align-items:center; justify-content:center; }
.video-frame .vid-placeholder .pbtn svg { width: 26px; height: 26px; fill: #1a1303; margin-left: 3px; }
.steps-next { display: grid; gap: 14px; text-align: left; margin: 30px 0; }
.step-next { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(255,255,255,.015); }
.step-next .n { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: rgba(212,175,55,.12); border: 1px solid var(--line); color: var(--gold-bright); font-family: var(--font-display); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.step-next h4 { font-size: 15px; color: var(--cream); margin-bottom: 3px; font-weight: 600; }
.step-next p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #1da851); color: #06270f; }
.btn-whatsapp:hover { box-shadow: 0 16px 40px -12px rgba(37,211,102,.6); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ===================================================================
   PÁGINA 1 — CTA FINAL (substitui o form inline)
   =================================================================== */
.final-cta { max-width: 720px; margin: 0 auto; text-align: center; }
.final-cta .form-bullets { max-width: 480px; margin: 28px auto 30px; text-align: left; }

/* ===================================================================
   PAINEL ADMIN
   =================================================================== */
.admin-body { background: var(--black); min-height: 100vh; color: var(--text); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login .funnel-card { max-width: 420px; }
.admin-shell { max-width: 1280px; margin: 0 auto; padding: 24px 22px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.admin-head h1 { font-family: var(--font-display); font-size: 1.5rem; color: var(--cream); display:flex; align-items:center; gap:12px; }
.admin-head h1 img { width: 38px; height: 38px; border-radius: 6px; }
.admin-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.astat { background: linear-gradient(160deg, var(--panel), var(--black-3)); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.astat .num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.astat .lbl { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: .03em; }
.admin-search { background: rgba(0,0,0,.4); border: 1px solid var(--line-soft); border-radius: 100px; padding: 11px 20px; color: var(--text); font-size: 14px; min-width: 240px; }
.admin-search:focus { outline: none; border-color: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.012); }
table.leads { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 1000px; }
table.leads th { text-align: left; padding: 14px 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); background: rgba(0,0,0,.3); position: sticky; top: 0; font-weight: 700; white-space: nowrap; }
table.leads td { padding: 13px 16px; border-top: 1px solid var(--line-soft); color: var(--text); vertical-align: top; }
table.leads tr:hover td { background: rgba(212,175,55,.03); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }
.pill-green { background: rgba(110,200,120,.14); color: #8fdca6; }
.pill-amber { background: rgba(212,175,55,.14); color: var(--gold-light); }
.pill-red { background: rgba(224,83,61,.16); color: #f0a594; }
.pill-gray { background: rgba(255,255,255,.06); color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--muted); }
.row-suspicious td { background: rgba(224,83,61,.05) !important; }
.del-btn { background: rgba(224,83,61,.12); color: #f0a594; border: 1px solid rgba(224,83,61,.3); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all .25s; }
.del-btn:hover { background: rgba(224,83,61,.22); }
.admin-empty { text-align: center; padding: 60px 20px; color: var(--muted-2); }
.admin-note { font-size: 12px; color: var(--muted-2); margin-top: 18px; line-height: 1.6; }

@media (max-width: 760px) {
  .funnel-card { padding: 32px 24px 30px; }
  .choice-group.cols-2 { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .progress-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .funnel-card { animation: none; opacity: 1; transform: none; }
  * { animation-duration: .001ms !important; }
}
