:root {
  --bg: #0b1020;
  --bg-soft: #121a33;
  --card: #151d38;
  --card-2: #1b2547;
  --line: #263155;
  --text: #eaf0ff;
  --muted: #9aa8cc;
  --brand: #4f7cff;
  --brand-2: #34d4b7;
  --accent: #ffd166;
  --danger: #ff6b6b;
  --ok: #2fd08a;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(79, 124, 255, 0.18), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(52, 212, 183, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.7);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; }
.brand .dot { width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: grid; place-items: center; font-size: 16px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, filter .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #06122b; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: 76px 0 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--brand-2); background: rgba(52, 212, 183, .1); border: 1px solid rgba(52, 212, 183, .25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; font-weight: 800; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.trust div { font-size: 14px; color: var(--muted); }
.trust b { color: var(--text); font-size: 22px; display: block; }

/* Logos / features */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.feature .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: rgba(79,124,255,.12); border: 1px solid rgba(79,124,255,.25); margin-bottom: 16px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #06122b; font-weight: 800; display: grid; place-items: center; }
.step h3 { margin: 8px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column;
  position: relative;
}
.plan.destaque { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-6px); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #06122b; font-weight: 800; font-size: 12px;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .4px; }
.plan h3 { margin: 0 0 6px; font-size: 22px; }
.plan .desc { color: var(--muted); font-size: 14px; min-height: 40px; margin-bottom: 14px; }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan .per { color: var(--brand-2); font-size: 13px; font-weight: 600; margin: 4px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; }
.plan ul li { font-size: 15px; color: var(--text); display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-2); font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 16px; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, rgba(79,124,255,.16), rgba(52,212,183,.14));
  border: 1px solid var(--line); border-radius: 24px; padding: 46px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ------- Checkout ------- */
.checkout-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; padding: 40px 0 80px; align-items: start; }
.panel { background: linear-gradient(180deg, var(--card), var(--card-2)); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.panel h2 { margin: 0 0 6px; font-size: 22px; }
.panel .sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 14px; border-radius: 11px; background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--text); font-size: 15px; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tabs { display: flex; gap: 10px; margin-bottom: 22px; }
.tab { flex: 1; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft);
  cursor: pointer; font-weight: 700; text-align: center; color: var(--muted); transition: .2s; }
.tab.active { border-color: var(--brand); color: var(--text); background: rgba(79,124,255,.1); }

.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.summary .line:last-of-type { border: none; }
.summary .total { font-size: 26px; font-weight: 800; }
.pkg-pick { display: grid; gap: 10px; margin-bottom: 20px; }
.pkg-opt { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft); cursor: pointer; }
.pkg-opt.active { border-color: var(--brand); background: rgba(79,124,255,.1); }
.pkg-opt .n { font-weight: 700; }
.pkg-opt .p { font-weight: 800; }

.pix-box { text-align: center; }
.pix-box img { width: 220px; height: 220px; background: #fff; border-radius: 14px; padding: 10px; }
.copiacola { display: flex; gap: 8px; margin-top: 14px; }
.copiacola input { flex: 1; padding: 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); font-size: 12px; }

.alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert.err { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.35); color: #ffc9c9; }
.alert.ok { background: rgba(47,208,138,.12); border: 1px solid rgba(47,208,138,.35); color: #b6f4d6; }
.alert.info { background: rgba(79,124,255,.12); border: 1px solid rgba(79,124,255,.35); color: #cdd9ff; }

.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%;
  display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge-test { display:inline-block; font-size:12px; font-weight:700; color:var(--accent);
  background:rgba(255,209,102,.12); border:1px solid rgba(255,209,102,.3); padding:5px 12px; border-radius:999px; margin-bottom:18px; }

@media (max-width: 900px) {
  .grid-3, .grid-4, .steps, .pricing { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .plan.destaque { transform: none; }
}

/* ===================== Campos do Mercado Pago (Secure Fields) ===================== */
.mp-field {
  height: 47px;
  padding: 13px 14px;
  border-radius: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.pay-head {
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 15px;
}

/* ===================== Benefícios do plano ===================== */
.benef { list-style: none; padding: 0; margin: 16px 0 0; }
.benef li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14px;
  color: var(--muted);
}
.benef li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-weight: 700;
}

/* ===================== Painel admin ===================== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.stat .k { font-size: 26px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat.alerta { border-color: var(--accent); }
.stat.alerta .k { color: var(--accent); }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--brand); text-decoration: none; }
.admin-table a:hover { text-decoration: underline; }

.sel-contato {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.sel-contato.pendente  { border-color: var(--accent); color: var(--accent); }
.sel-contato.contatado { border-color: var(--brand); color: var(--brand); }
.sel-contato.liberado  { border-color: var(--ok); color: var(--ok); }
