/* ============================================================
   UniTV Store — Design tokens
   Paleta tirada do gradiente da logo (âmbar > vermelho > azul)
   ============================================================ */
:root {
  --bg: #0a0e18;
  --surface: #121a2c;
  --surface-2: #1a2440;
  --border: #232e4a;
  --text: #eef1f8;
  --text-muted: #8d96ac;
  --amber: #f2a93b;
  --red: #e23744;
  --blue: #2e4a9e;
  --green: #22c55e;
  --gradient: linear-gradient(135deg, #f2a93b 0%, #e23744 48%, #2e4a9e 100%);
  --radius: 18px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }

/* Utilitário geral pra esconder elementos (login, painel, mensagens de erro) */
.hidden { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(242, 169, 59, 0.10), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(46, 74, 158, 0.16), 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 {
  width: 40px;
  height: 40px;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.topbar a.admin-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.topbar a.admin-link:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 24px;
}

.hero-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient);
  animation: spin 8s linear infinite;
}
.hero-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-reverse 8s linear infinite;
}
.hero-ring-inner img { width: 56px; height: 56px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-ring, .hero-ring-inner { animation: none; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  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: 480px;
  margin: 0 auto;
  font-size: 16px;
}

/* ---------- Plan card ---------- */
/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-top: 28px;
}
.trust-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-ico { font-size: 14px; }

/* ---------- Stock badge (urgência) ---------- */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 55, 68, 0.1);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.stock-badge.ok { background: rgba(34, 197, 94, 0.1); color: var(--green); }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

/* ---------- Section title (compartilhado) ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  text-align: center;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}

/* ---------- Como funciona ---------- */
.how-it-works { padding: 20px 0 64px; }
.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;
}
.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0e18;
  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 { padding: 0 0 64px; }
.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;
  flex-shrink: 0;
}
.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;
}

/* ---------- Footer / WhatsApp ---------- */
footer {
  text-align: center;
  padding: 24px 0 48px;
}
footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 10px;
}
.footer-whatsapp {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.footer-whatsapp:hover { text-decoration: underline; }

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #22c55e;
  color: #0a0e18;
  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); }

.plan-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0 80px;
}

.plan-card {
  position: relative;
  z-index: 45;
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.plan-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 20px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}
.plan-price small {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-validity {
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 28px;
}

.btn-buy {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #0a0e18;
  background: var(--gradient);
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.btn-buy:hover { filter: brightness(1.08); }
.btn-buy:active { transform: scale(0.98); }
.btn-buy:disabled { opacity: 0.6; cursor: not-allowed; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  text-align: left;
  font-size: 14px;
  color: var(--text-muted);
}
.plan-features li { padding: 6px 0; display: flex; gap: 8px; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ---------- Modal (checkout PIX) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.hidden { display: none; }

.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;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.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 {
  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 {
  outline: none;
  border-color: var(--amber);
}

.pix-qr {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.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-code-box button:hover { border-color: var(--amber); }

.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(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Success state (código entregue) ---------- */
.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: 20px;
  letter-spacing: 0.05em;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin: 16px 0;
  word-break: break-all;
}
.expiry-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.error-text {
  color: var(--red);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}
