/* ============================================================
   AtivaMais — Central de Ativações
   Tema claro e vivo, baseado nas cores da logo oficial
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --surface: #F7F7FA;
  --surface-2: #EFEFF4;
  --border: #E3E3EA;
  --text: #1A1A2E;
  --text-muted: #6B6B7A;
  --orange-light: #FF8A00;
  --orange-dark: #FF3D71;
  --purple: #7C3AED;
  --blue: #2E6BFF;
  --gradient: linear-gradient(135deg, #FF8A00 0%, #FF3D71 55%, #7C3AED 100%);
  --green: #16A34A;
  --red: #C0392B;
  --radius: 18px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 20% 0%, rgba(255, 138, 0, 0.07), transparent 45%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.logo-topo { width: auto; height: 64px; }
.brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
}
.topbar a.link-conta {
  font-size: 13px;
  text-decoration: none; border: none;
  padding: 10px 18px; border-radius: 999px;
  background: var(--gradient);
  color: #FFFFFF; font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 61, 113, 0.25);
}

/* ---------- Faixa promocional rolante ---------- */
.banner-faixa {
  background: var(--gradient);
  overflow: hidden;
  white-space: nowrap;
  border-radius: 10px;
  margin-top: 4px;
}
.banner-faixa-texto {
  display: inline-block;
  padding: 10px 0;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  animation: rolar-faixa 18s linear infinite;
  padding-left: 100%;
}
@keyframes rolar-faixa {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .banner-faixa-texto { animation: none; padding-left: 16px; }
}
.hero { text-align: center; padding: 48px 0 32px; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px;
}
.hero h1 .grad {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--text-muted); max-width: 520px; margin: 0 auto; font-size: 16px; }

/* ---------- Card do canal do WhatsApp ---------- */
.canal-whatsapp {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(34,197,94,0.03) 100%);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.canal-whatsapp:hover { border-color: #22c55e; transform: translateY(-1px); }
.canal-whatsapp-icone {
  width: 46px; height: 46px; border-radius: 50%;
  background: #22c55e; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.canal-whatsapp-texto { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.canal-whatsapp-texto strong { font-family: var(--font-display); font-size: 15px; }
.canal-whatsapp-texto span { font-size: 13px; color: var(--text-muted); }
.canal-whatsapp-seta { font-size: 20px; color: #22c55e; flex-shrink: 0; }

.canal-tutoriais {
  background: linear-gradient(135deg, rgba(255,138,0,0.08) 0%, rgba(255,61,113,0.04) 100%);
  border-color: rgba(255,61,113,0.25);
}
.canal-tutoriais:hover { border-color: var(--orange-dark); transform: translateY(-1px); }

/* ---------- Tela de login (conta.html / usada também por admin) ---------- */
.login-screen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(26,26,46,0.06);
}
.login-card img { width: 56px; height: auto; margin-bottom: 14px; }
.login-card h1 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 24px;
}

.tab-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
}
.tab-btn {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 0;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn.active { background: var(--bg); color: var(--text); box-shadow: 0 1px 4px rgba(26,26,46,0.08); }
.tab-pane { display: none; text-align: left; }
.tab-pane.active { display: block; }

.link-esqueci {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 14px 0 0;
  cursor: pointer;
}
.link-esqueci:hover { color: var(--text); text-decoration: underline; }

.link-voltar {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 22px;
}
.link-voltar:hover { color: var(--text); }

/* ---------- Grade de categorias ---------- */
.categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 36px 0;
}
.categoria-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.04);
}
.categoria-card:hover { border-color: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 61, 113, 0.12); }
.categoria-icone {
  width: 52px; height: 52px; margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.categoria-nome { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.categoria-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.em-breve-tag {
  display: inline-block; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--orange-dark);
  border: 1px solid var(--orange-dark); border-radius: 999px;
  padding: 2px 8px; margin-top: 8px;
}

/* ---------- Seção de planos por produto ---------- */
.secao-produto { margin: 48px 0; }
.secao-produto-titulo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 22px; margin-bottom: 4px;
}
.secao-produto-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.planos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.plano-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.04);
}
.plano-nome {
  font-family: var(--font-display); font-size: 16px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
}
.plano-preco {
  font-family: var(--font-display); font-size: 34px; font-weight: 700; margin: 0 0 4px;
}
.plano-validade { font-size: 12.5px; color: var(--text-muted); margin-bottom: 18px; }
.plano-codigos-nota {
  font-size: 12px; color: var(--orange-light); margin-bottom: 16px;
}
.btn-comprar-plano {
  width: 100%; border: none; border-radius: 12px; padding: 14px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: #FFFFFF; background: var(--gradient); cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 61, 113, 0.25);
}
.btn-comprar-plano:hover { filter: brightness(1.06); }

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px;
  margin: 32px 0; font-size: 13px; color: var(--text-muted);
}
.trust-bar span { color: var(--orange-light); margin-right: 4px; }

footer {
  text-align: center; padding: 32px 0 48px; color: var(--text-muted); font-size: 13px;
}
footer a { color: var(--orange-light); text-decoration: none; }
.footer-whatsapp { color: var(--blue); font-weight: 600; text-decoration: none; }
.footer-whatsapp:hover { text-decoration: underline; }

/* ---------- Como funciona ---------- */
.section-title {
  font-family: var(--font-display); font-size: 26px; text-align: center; margin: 56px 0 32px;
}
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.step-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 2px 8px rgba(26,26,46,0.04);
}
.step-number {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gradient);
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-item h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; }
.step-item p { color: var(--text-muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-size: 14px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 18px; color: var(--text-muted); margin-left: 12px; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }

/* ---------- Topo: botões destacados e instalar app ---------- */
.topbar-highlight {
  background: var(--gradient) !important; color: #fff !important; border: none !important;
  font-weight: 700 !important; box-shadow: 0 4px 14px rgba(255, 61, 113, 0.2);
  border-radius: 999px; padding: 10px 18px; font-size: 13px; cursor: pointer;
}
.topbar-highlight:hover { filter: brightness(1.05); }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #22c55e; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(34,197,94,0.35); z-index: 40; transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Modais (checkout) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 400px; padding: 28px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-muted); font-size: 20px; cursor: pointer;
}
.modal h2 { font-family: var(--font-display); font-size: 18px; margin: 0 0 4px; }
.modal .step-label { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

.form-group { margin-bottom: 14px; text-align: left; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: var(--font-body); font-size: 14px;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--orange-light); }

.pix-qr { width: 220px; height: 220px; margin: 0 auto 16px; border-radius: 12px; background: #fff; padding: 10px; border: 1px solid var(--border); }
.pix-qr img { width: 100%; height: 100%; }
.pix-code-box { display: flex; gap: 8px; margin-bottom: 16px; }
.pix-code-box input {
  flex: 1; font-family: var(--font-mono); font-size: 12px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
}
.pix-code-box button {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 13px;
}
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.pix-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-light); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(34,197,94,0.12); color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 16px;
}
.code-box {
  font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.04em;
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: 10px;
  padding: 12px; text-align: center; margin: 8px 0;
}
.expiry-note { font-size: 13px; color: var(--text-muted); text-align: center; }
.error-text { color: #C0392B; font-size: 13px; margin-top: 8px; text-align: center; }

.btn-secondary {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 12px 20px; border-radius: 10px; font-family: var(--font-body); font-weight: 600;
  font-size: 14px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--orange-light); }

.btn-buy { /* alias de compatibilidade — mesmo visual do botão principal */
  width: 100%; border: none; border-radius: 12px; padding: 14px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  color: #FFFFFF; background: var(--gradient); cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 61, 113, 0.25);
}
.btn-buy:hover { filter: brightness(1.06); }

.btn-danger {
  border: none; background: #E74C3C; color: #fff;
  padding: 12px 20px; border-radius: 10px; font-family: var(--font-body);
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-danger:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }

/* ---------- Painéis (Minha Conta / listas) ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(26,26,46,0.04);
}
.panel h2 { font-family: var(--font-display); font-size: 16px; margin: 0 0 4px; }
.panel .panel-desc { color: var(--text-muted); font-size: 13px; margin: 0 0 20px; }
.panel-perigo { border-color: rgba(231,76,60,0.3); }
.panel-perigo h2 { color: #E74C3C; }

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th {
  text-align: left; color: var(--text-muted); font-weight: 600; text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
table.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table .mono { font-family: var(--font-mono); font-size: 12px; }
.empty-state { text-align: center; color: var(--text-muted); font-size: 13px; padding: 32px 0; }
