/* ============================================================
   Zsindical IA — app.css (tema vermelho/neon + preto, sem runtime)
   ============================================================ */
:root {
  --bg: #070709;
  --bg2: #0c0c11;
  --card: #101017;
  --card2: #14141d;
  --line: rgba(255, 31, 60, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --red: #ff1f3c;
  --red2: #ff5468;
  --red-dim: rgba(255, 31, 60, 0.12);
  --text: #f5f3f6;
  --muted: #a09aa8;
  --muted2: #6f6a79;
  --ok: #2fd47e;
  --warn: #ffb020;
  --radius: 14px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(255, 31, 60, 0.14), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(255, 31, 60, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.4em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--red2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, pre { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 560px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; } .mt4 { margin-top: 44px; }
.mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

/* ---------- nav ---------- */
.nav { border-bottom: 1px solid var(--line-soft); background: rgba(7, 7, 9, 0.75); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .accent { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.nav-links a.active { color: var(--text); background: var(--red-dim); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 11px; border: 1px solid transparent;
  font: 600 14.5px var(--font-body); cursor: pointer; text-decoration: none !important;
  transition: transform 0.06s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), #d40f2e);
  color: #fff; box-shadow: 0 4px 24px rgba(255, 31, 60, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(255, 31, 60, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--red-dim); border-color: rgba(255, 31, 60, 0.35); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: 13px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.card-glow { border-color: var(--line); box-shadow: 0 0 0 1px rgba(255, 31, 60, 0.05), 0 10px 40px rgba(255, 31, 60, 0.07); }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted2); font-weight: 600; }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  background: #0a0a0f; border: 1px solid var(--line-soft);
  color: var(--text); font: 500 15px var(--font-body); outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input:focus { border-color: rgba(255, 31, 60, 0.55); box-shadow: 0 0 0 3px rgba(255, 31, 60, 0.15); }
.input::placeholder { color: var(--muted2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.checkbox-line input { margin-top: 3px; accent-color: var(--red); }

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: 11px; font-size: 14px; font-weight: 500; margin-bottom: 14px; border: 1px solid; }
.flash-ok { background: rgba(47, 212, 126, 0.08); border-color: rgba(47, 212, 126, 0.3); color: #b8f0d2; }
.flash-err { background: var(--red-dim); border-color: rgba(255, 31, 60, 0.35); color: #ffc3cc; }
.flash-info { background: rgba(255, 176, 32, 0.08); border-color: rgba(255, 176, 32, 0.3); color: #ffe1ab; }

/* ---------- hero / landing ---------- */
.hero { padding: 84px 0 40px; text-align: center; }
.hero-icon { width: 74px; height: 74px; border-radius: 18px; margin: 0 auto 22px; box-shadow: 0 0 60px rgba(255, 31, 60, 0.45); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .hero-icon { animation: none; } .btn { transition: none; } }
.hero h1 { max-width: 760px; margin: 0 auto 18px; }
.hero h1 .glow { color: var(--red); text-shadow: 0 0 34px rgba(255, 31, 60, 0.55); }
.hero-sub { max-width: 620px; margin: 0 auto 30px; color: var(--muted); font-size: 17px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 54px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head p { color: var(--muted); }
.kicker { display: inline-block; font: 700 11.5px var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); background: var(--red-dim); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }

.feat { display: flex; gap: 14px; }
.feat .ic { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--red-dim); border: 1px solid var(--line); color: var(--red); font-size: 18px; font-weight: 700; font-family: var(--font-head); }
.feat h3 { margin-bottom: 2px; font-size: 16.5px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { counter-reset: step; }
.step { display: flex; gap: 16px; }
.step .n { counter-increment: step; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--red); background: var(--card); border: 1px solid var(--line); }
.step .n::before { content: counter(step); }

/* ---------- planos ---------- */
.plan-card { display: flex; flex-direction: column; padding: 26px 24px; }
.plan-card.popular { border-color: rgba(255, 31, 60, 0.55); box-shadow: 0 0 0 1px rgba(255, 31, 60, 0.25), 0 14px 50px rgba(255, 31, 60, 0.12); transform: translateY(-4px); }
.badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 10.5px var(--font-head); letter-spacing: 0.12em; background: linear-gradient(135deg, var(--red), #d40f2e); color: #fff; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 18px rgba(255, 31, 60, 0.45); }
.price { font-family: var(--font-head); font-size: 40px; font-weight: 700; margin: 6px 0 2px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan-feats { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
.plan-feats li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line-soft); }
.plan-feats li:last-child { border-bottom: 0; }
.plan-feats li::before { content: "✓"; color: var(--red); font-weight: 700; }

/* ---------- pagamento ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; } }
.qr-box { display: grid; place-items: center; padding: 18px; }
#qrCanvas { border-radius: 10px; image-rendering: pixelated; }
.qr-fallback { display: none; }
.copybox { display: flex; gap: 8px; margin-top: 12px; }
.copybox input { flex: 1; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--font-body); padding: 6px 14px; border-radius: 999px; border: 1px solid; }
.pill-pending { color: #ffd479; background: rgba(255, 176, 32, 0.09); border-color: rgba(255, 176, 32, 0.4); }
.pill-paid { color: #9df0c3; background: rgba(47, 212, 126, 0.09); border-color: rgba(47, 212, 126, 0.4); }
.pill-expired { color: var(--muted); background: rgba(255,255,255,0.04); border-color: var(--line-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* ---------- dashboard ---------- */
.stat-value { font-family: var(--font-head); font-size: 30px; font-weight: 700; margin: 4px 0 2px; }
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--red2)); box-shadow: 0 0 14px rgba(255, 31, 60, 0.5); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; color: var(--muted2); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.oktag { color: var(--ok); } .badtag { color: var(--red2); }

.codeblock { position: relative; background: #0a0a0f; border: 1px solid var(--line-soft); border-radius: 11px; padding: 14px 16px; overflow-x: auto; margin: 10px 0; }
.codeblock pre { margin: 0; white-space: pre; line-height: 1.6; color: #d8d3de; }
.copybtn { font: 600 12px var(--font-body); color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 11px; cursor: pointer; transition: all .15s ease; }
.copybtn:hover { color: #fff; border-color: rgba(255, 31, 60, 0.5); box-shadow: 0 0 14px rgba(255, 31, 60, 0.25); }
.codeblock .copybtn { position: absolute; top: 8px; right: 8px; }
.tablewrap { overflow-x: auto; }

.keyrow { display: flex; gap: 8px; align-items: center; }
.keyrow code { flex: 1; background: #0a0a0f; border: 1px solid var(--line-soft); border-radius: 9px; padding: 9px 12px; overflow-x: auto; white-space: nowrap; color: #ffd9de; }

.tag { display: inline-block; font: 600 11px var(--font-body); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 60px; padding: 26px 0 34px; color: var(--muted2); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- página de erro (bootstrap) ---------- */
.errpage { display: grid; place-items: center; min-height: 100vh; }
.errbox { text-align: center; max-width: 420px; padding: 40px; }
.errnum { font-family: var(--font-head); font-size: 72px; font-weight: 700; color: var(--red); text-shadow: 0 0 40px rgba(255, 31, 60, 0.5); margin-bottom: 8px; }

/* util */
.hide { display: none !important; }
.hr { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }
.divider-dash { border: 0; border-top: 1px dashed var(--line-soft); margin: 18px 0; }
