/* ============================================================
   404SECURITY — DESIGN SYSTEM
   Fundo grafite-azulado (não preto puro), acentos = as mesmas
   cores das embeds do bot (vermelho/âmbar/verde), tipografia
   técnica (Space Grotesk + Inter + JetBrains Mono).
   ============================================================ */

:root {
  --bg: #0b0e14;
  --surface: #131720;
  --surface-2: #171c27;
  --border: #232838;
  --text: #e8eaf0;
  --text-muted: #7b8296;
  --text-dim: #4d5266;

  --red: #ff3b3b;
  --red-dim: #4a1414;
  --red-light: #ff5252;

  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(255,59,59,0.06), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255,59,59,0.05), transparent 40%);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------- PARCEIRO / PARTNER BUTTON (Brasil) ---------------- */
.partner-strip {
  padding: 0;
}

/* News-article style card */
.partner-newscard {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #00c94a;
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.partner-newscard:hover {
  background: var(--surface-2);
  border-left-color: #00e857;
}

.partner-newscard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.partner-newscard-meta .tag {
  background: rgba(0, 201, 74, 0.12);
  color: #00e857;
  border: 1px solid rgba(0, 201, 74, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.partner-newscard-meta .sep { color: var(--text-dim); }
.partner-newscard-meta .src { color: var(--text-muted); }

.partner-newscard-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.partner-newscard-text h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.partner-newscard-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.partner-newscard-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #00e857;
}

.partner-newscard-thumb {
  flex-shrink: 0;
  width: 260px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.partner-newscard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  align-items: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover { background: var(--red-light); }

.nav-cta .btn-primary {
  box-shadow: 0 0 0 0 rgba(255,59,59,0.5);
  animation: nav-cta-pulse 2.6s ease-in-out infinite;
}
.nav-cta .btn-primary:hover { animation: none; }
.nav-cta .btn-primary i { width: 15px; height: 15px; }
@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0.45); }
  50% { box-shadow: 0 0 0 6px rgba(255,59,59,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta .btn-primary { animation: none; }
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-muted); }

/* ---------------- HERO ---------------- */
.hero {
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(255,59,59,0.3);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.eyebrow .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  animation: blink 1.4s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .hl { color: var(--red); }

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; }

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --- terminal (elemento de assinatura) --- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.terminal-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-dim);
}

.terminal-bar .label {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}

.terminal-body {
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-line {
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: logIn 0.4s ease forwards;
  color: var(--text-muted);
}

@keyframes logIn { to { opacity: 1; } }

.log-line .ts { color: var(--text-dim); flex-shrink: 0; }
.log-line .tag { flex-shrink: 0; font-weight: 700; }
/* BLOQUEADO/PUNIDO — anti-nuke, anti-raid, anti-invite, filtros, etc:
   a ação mais "séria" do log, fica com o vermelho cheio da marca */
.log-line .tag.block { color: var(--red); }
/* AVISO — algo suspeito notado, ainda não necessariamente bloqueado */
.log-line .tag.warn { color: var(--red-light); }
/* PROTEGIDO/COMANDO/NOVO — ação normal ou defesa que já deu certo,
   não precisa do alarme vermelho */
.log-line .tag.ok { color: var(--text); }
.log-line .log-server { color: var(--text-dim); font-style: italic; }

/* ---------------- STATUS STRIP ---------------- */
.status-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.status-item {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
}
.status-item:last-child { border-right: none; }

.status-item .num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
}

.status-item .num.green { color: var(--red); }

.status-item .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------------- SECTIONS ---------------- */
section { padding: 96px 0; }

.section-head { max-width: 620px; margin-bottom: 52px; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-head p { color: var(--text-muted); font-size: 1rem; }

/* ---------------- HISTÓRICO DE UPTIME (barras por dia) ---------------- */
.uptime-history-loading, .uptime-history-empty {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.uptime-history-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  overflow-x: auto;
}
.uptime-bar {
  flex: 1 0 4px;
  min-width: 4px;
  height: 100%;
  border-radius: 2px;
  background: #23a55a;
  cursor: default;
  transition: opacity 0.15s;
}
.uptime-bar:hover { opacity: 0.7; }
.uptime-bar[data-nivel="medio"] { background: #d8a53e; }
.uptime-bar[data-nivel="baixo"] { background: var(--red); }
.uptime-bar.sem-dado { background: var(--border); }

/* ---------------- PLANOS (pricing) ---------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}

.price-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.price-tag { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.price-tag .amount { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.price-tag .period { color: var(--text-dim); font-size: 0.85rem; }

.price-card-head p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

.price-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}
.price-features li i { width: 16px; height: 16px; flex-shrink: 0; color: var(--red); }

.price-cta { justify-content: center; width: 100%; }

.price-card-vip {
  border-color: rgba(255,59,59,0.4);
  background: linear-gradient(180deg, rgba(255,59,59,0.07), var(--surface) 55%);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---------------- REVEAL AO ROLAR — um único gesto discreto: cada
   bloco de conteúdo aparece com leve subida + fade na primeira vez que
   entra na tela (ver função inicializarReveal em js/main.js). Nada se
   repete, nada acontece em hover — só a entrada. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------------- FEATURE GRID (case files) ---------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 28px 26px;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255,59,59,0.15), 0 14px 30px -18px rgba(255,59,59,0.35);
  z-index: 1;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card .code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: block;
}

.feature-card .icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.25s ease, transform 0.25s ease;
}
.feature-card:hover .icon { color: var(--red); transform: scale(1.12) rotate(-4deg); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------------- HOW IT WORKS ---------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step { position: relative; padding-top: 44px; }

.step .n {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red);
  border: 1px solid var(--red-dim);
  background: var(--red-dim);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: 0; left: 0;
}

.step h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------------- CTA FINAL ---------------- */
.cta-final {
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-final p { color: var(--text-muted); margin-bottom: 32px; }

.cta-final .hero-actions { justify-content: center; }

/* ---------------- FOOTER ---------------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; font-size: 0.85rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-dim); }

/* ---------------- GALERIA DE TEMPLATES ---------------- */
.gallery-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { outline: none; border-color: var(--text-muted); }

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

.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.template-card:hover { border-color: var(--text-muted); transform: translateY(-2px); }

.template-card .origem {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
}

.template-card .meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.template-card .stats {
  display: flex;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.template-card .stats b { color: var(--text); font-weight: 600; }

.template-card .codigo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.template-card .codigo {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
  background: var(--surface-2);
  padding: 6px 10px;
  border-radius: 6px;
  flex: 1;
  letter-spacing: 0.03em;
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-copy:hover { border-color: var(--red); color: var(--red); }
.btn-copy.copiado { border-color: var(--red); color: var(--red); }

.gallery-empty, .gallery-error {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.gallery-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gallery-skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
  border-radius: var(--radius);
  height: 176px;
}
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------------- PAGE HEADER (páginas internas) ---------------- */
.page-header { padding: 64px 0 0; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-header p.lead-2 { color: var(--text-muted); max-width: 640px; font-size: 1.02rem; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

/* ---------------- TABLE OF CONTENTS (recursos/como-funciona) ---------------- */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
}
.toc a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.toc a:hover { border-color: var(--text-muted); color: var(--text); }

/* ---------------- MODULE DETAIL (recursos.html) ---------------- */
.module-detail {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  scroll-margin-top: 88px;
}
.module-detail:first-of-type { border-top: none; }

.module-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.module-head .icon-big {
  font-size: 1.8rem;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.module-head .code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); display: block; margin-bottom: 4px; }
.module-head h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.module-head p { color: var(--text-muted); max-width: 620px; }

.module-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }

.detail-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.detail-box h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--red);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.detail-box ul { display: flex; flex-direction: column; gap: 10px; }
.detail-box li { color: var(--text-muted); font-size: 0.9rem; padding-left: 18px; position: relative; }
.detail-box li::before { content: '›'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.config-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.config-table th, .config-table td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--border); }
.config-table th { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; }
.config-table td { color: var(--text-muted); }
.config-table td:first-child { color: var(--text); font-family: var(--font-mono); font-size: 0.8rem; }
.config-table tr:last-child td { border-bottom: none; }

.default-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--surface-2);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 10px;
}

/* ---------------- FAQ / ACCORDION ---------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--text-dim); font-size: 1.2rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--text-muted); margin-top: 12px; font-size: 0.92rem; max-width: 680px; }

/* ---------------- ARCH DIAGRAM (como-funciona) ---------------- */
.arch-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin: 8px 0 0;
}
.arch-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 160px;
  text-align: center;
}
.arch-node .t { font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 4px; }
.arch-node .d { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); }
.arch-arrow { color: var(--text-dim); font-size: 1.3rem; padding: 0 14px; }

/* ---------------- COMMAND LIST ---------------- */
.cmd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 20px; }
.cmd-item { background: var(--surface); padding: 16px 18px; }
.cmd-item .name { font-family: var(--font-mono); color: var(--red); font-size: 0.88rem; margin-bottom: 4px; }
.cmd-item .desc { color: var(--text-muted); font-size: 0.84rem; }

/* ---------------- LOGIN / GUILDS LIST ---------------- */
.guild-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.guild-item.clickable { cursor: pointer; }
.guild-item.clickable:hover { border-color: var(--text-muted); background: var(--surface-2); }
.guild-item img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: var(--surface-2); }
.guild-item .fallback-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.8rem; color: var(--text-muted);
}
.guild-item .name { font-weight: 600; flex: 1; }
.guild-item .arrow { color: var(--text-dim); }

/* ---------------- DASHBOARD (servidor.html) ---------------- */
.dash-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
}
.dash-header img.guild-icon, .dash-header .guild-icon-fallback {
  width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--text-muted);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.dash-header h1 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 3px; }
.dash-header .sub { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.76rem; }

.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 36px 0 120px; align-items: start; }

.dash-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 4px;
}
.dash-nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 18px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}
.dash-nav-back:hover { color: var(--text); }
.dash-nav-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 18px 10px 8px;
}
.dash-nav-label:first-of-type { padding-top: 4px; }
.dash-nav a {
  padding: 10px 10px;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-nav a .icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.dash-nav a:hover { background: var(--surface-2); color: var(--text); }
.dash-nav a.active { background: var(--surface-2); font-weight: 600; color: var(--text); }
.dash-nav a.active::before {
  content: ''; position: absolute; left: -1px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 2px; background: var(--red);
}
.dash-nav .count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-left: auto; }

.dash-module { margin-bottom: 32px; }
.dash-module:last-child { margin-bottom: 0; }

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
  scroll-margin-top: 88px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 30px -18px rgba(0,0,0,0.5);
}
.dash-subgroups {
  margin-left: 18px;
  margin-top: 12px;
  padding-left: 18px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-subgroups .dash-card { padding: 18px 20px; border-radius: 12px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.dash-card-head h3 { font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; }
.dash-card-head .stat-mini { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-dim); margin-top: 5px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.full { grid-template-columns: 1fr; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); margin-bottom: 7px; }
.form-field input[type="text"], .form-field input[type="number"], .form-field select, .form-field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.form-field textarea { min-height: 70px; resize: vertical; font-family: var(--font-mono); font-size: 0.82rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--red); background: var(--surface); }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--text-dim); }
.form-field .hint { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-top: 6px; }
.form-field .hint.hint-muted { font-family: var(--font-body); color: var(--text-dim); opacity: 0.8; }
.form-field .hint.hint-ms:empty { display: none; }

/* ===== Editor visual de "lista de objetos" (cargos por nível, botões
   de Cargos por Reação) — linhas com vários subcampos + adicionar/remover ===== */
.objlist { display: flex; flex-direction: column; gap: 10px; }
.objlist-rows { display: flex; flex-direction: column; gap: 8px; }
.objlist-empty {
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.objlist-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.objlist-row-fields {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.objlist-cell { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1 1 160px; }
.objlist-cell-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.objlist-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  font-size: 0.86rem;
  font-family: inherit;
}
.objlist-input:focus { outline: none; border-color: var(--red); }
.objlist-input:hover { border-color: var(--text-dim); }
.objlist-w-small { flex: 0 1 90px; }
.objlist-w-tiny { flex: 0 1 76px; }
.objlist-w-grow { flex: 2 1 200px; }
.objlist-remove {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.objlist-remove:hover { color: var(--red); border-color: var(--red); background: var(--red-dim); }
.objlist-remove i { width: 16px; height: 16px; }
.objlist-add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}
.objlist-add i { width: 15px; height: 15px; }
.objlist-add:disabled { opacity: 0.45; cursor: default; }
.objlist-count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); margin-top: -4px; }

@media (max-width: 640px) {
  .objlist-row { flex-wrap: wrap; }
  .objlist-row-fields { width: 100%; }
  .objlist-remove { margin-left: auto; }
}

/* contador de caracteres (welcomeTitle/welcomeDescription vs limite de embed do Discord) */
.char-counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 6px;
  text-align: right;
}
.char-counter.over { color: var(--red); font-weight: 600; }

/* preview da URL de imagem (welcomeImage) */
.field-img-preview { margin-top: 8px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface-2); max-height: 140px; }
.field-img-preview.hidden { display: none; }
.field-img-preview img { display: block; width: 100%; max-height: 140px; object-fit: cover; }
.field-img-preview-erro { display: none; padding: 10px 12px; font-size: 0.76rem; color: var(--red); }
.field-img-preview.preview-erro img { display: none; }
.field-img-preview.preview-erro .field-img-preview-erro { display: block; }

/* --- seletor de canal / categoria / cargo (resource picker) --- */
.rpicker { position: relative; }
.rpicker-trigger {
  width: 100%;
  min-height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rpicker-trigger:hover { border-color: var(--text-dim); }
.rpicker[data-panel-open="true"] .rpicker-trigger,
.rpicker-trigger[aria-expanded="true"] { border-color: var(--red); background: var(--surface); }
.rpicker-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.rpicker-placeholder { color: var(--text-dim); font-size: 0.86rem; }
.rpicker-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 0.8rem; padding: 3px 6px 3px 10px; border-radius: 100px; max-width: 100%;
}
.rpicker-chip-x {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 0.95rem; line-height: 1; padding: 2px 4px; border-radius: 50%;
}
.rpicker-chip-x:hover { color: var(--red); background: var(--red-dim); }
.rpicker-chevron { color: var(--text-dim); flex-shrink: 0; font-size: 0.9rem; transition: transform 0.15s ease; }
.rpicker-trigger[aria-expanded="true"] .rpicker-chevron { transform: rotate(180deg); }

.rpicker-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.6);
  overflow: hidden;
}
.rpicker-search {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 11px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
}
.rpicker-search:focus { outline: none; }
.rpicker-list { max-height: 220px; overflow-y: auto; padding: 6px; }
.rpicker-option {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 7px; font-size: 0.86rem; color: var(--text);
  cursor: pointer;
}
.rpicker-option:hover { background: var(--surface); }
.rpicker-option.selected { color: var(--red); font-weight: 600; }
.rpicker-option-none { color: var(--text-dim); font-style: italic; }
.rpicker-option-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpicker-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rpicker-check { color: var(--red); opacity: 0; flex-shrink: 0; }
.rpicker-option.selected .rpicker-check { opacity: 1; }
.rpicker-empty { padding: 14px 10px; color: var(--text-dim); font-size: 0.82rem; text-align: center; }
.rpicker-no-results { padding: 14px 10px; color: var(--text-dim); font-size: 0.82rem; text-align: center; font-style: italic; }
.rpicker-option:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; background: var(--surface); }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toggle-row .toggle-label { font-weight: 600; font-size: 0.92rem; }
.toggle-row .toggle-desc { color: var(--text-dim); font-size: 0.78rem; margin-top: 2px; }

.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 100px; cursor: pointer; transition: background 0.15s ease;
}
.switch .slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px;
  background: var(--text-dim); border-radius: 50%; transition: transform 0.15s ease, background 0.15s ease;
}
.switch input:checked + .slider { background: var(--red-dim); border-color: var(--red); }
.switch input:checked + .slider::before { transform: translateX(18px); background: var(--red); }

.dash-save-bar {
  position: sticky;
  bottom: 0;
  background: rgba(11,14,20,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.dash-save-bar .save-status { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-right: auto; display: inline-flex; align-items: center; gap: 6px; }
.save-status-icon { width: 14px; height: 14px; flex-shrink: 0; }
.save-status-icon.spin { animation: dash-spin 0.8s linear infinite; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--border); background: initial; }
.btn-primary:disabled:hover { background: var(--red); }

/* botão de copiar ID do servidor, ao lado do texto no header */
.dash-header .sub { display: inline-flex; align-items: center; gap: 6px; }
.id-copy-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 6px; padding: 3px; display: inline-flex; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.id-copy-btn svg { width: 12px; height: 12px; }
.id-copy-btn:hover { border-color: var(--text-dim); color: var(--text); }
.id-copy-btn.copiado { border-color: var(--red); color: var(--red); }

/* pontinho de alteração pendente nos itens do menu de módulos */
.dash-nav a { position: relative; }
.nav-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  margin-left: auto; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,59,59,0.15);
}
.nav-dot[hidden] { display: none; }

.badge { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 9px; border-radius: 100px; }
.badge.on { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,59,59,0.3); }
.badge.off { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }

.dash-loading, .dash-error {
  text-align: center;
  padding: 100px 24px;
  color: var(--text-muted);
}
.dash-error {
  color: var(--red);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dash-error::before {
  content: '⚠️';
  font-size: 1.6rem;
  filter: grayscale(0.2);
}
.dash-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.dash-loading-skeleton {
  width: 100%;
  max-width: 640px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-loading-skeleton .skel-card { text-align: left; padding: 18px 20px; }
.dash-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  animation: dash-spin 0.8s linear infinite;
}
@keyframes dash-spin { to { transform: rotate(360deg); } }

/* ---------------- Cores por categoria do painel ---------------- */
/* Mesma paleta das embeds do bot: vermelho = moderação/crítico,
   verde = comunidade, azul = geral, âmbar = registros. Aplicado só
   na navegação lateral e na borda esquerda dos cards — não muda
   nenhum comportamento, só ajuda o olho a escanear o que é sensível. */
.dash-nav a[data-cat="Moderação"] .icon { color: var(--red); }
.dash-nav a[data-cat="Comunidade"] .icon { color: var(--red); }
.dash-nav a[data-cat="Geral"] .icon { color: var(--red); }
.dash-nav a[data-cat="Registros"] .icon { color: var(--red); }

.dash-nav a[data-cat="Moderação"].active::before { background: var(--red); }
.dash-nav a[data-cat="Comunidade"].active::before { background: var(--red); }
.dash-nav a[data-cat="Geral"].active::before { background: var(--red); }
.dash-nav a[data-cat="Registros"].active::before { background: var(--red); }

.dash-card[data-cat="Moderação"] { border-left: 3px solid var(--red); }
.dash-card[data-cat="Comunidade"] { border-left: 3px solid var(--red); }
.dash-card[data-cat="Geral"] { border-left: 3px solid var(--red); }
.dash-card[data-cat="Registros"] { border-left: 3px solid var(--red); }
.dash-subgroups .dash-card { border-left-width: 2px; }

/* Toggle desligado em módulo de Moderação ganha um leve alerta
   vermelho — reforça visualmente "proteção desativada". */
.dash-card[data-cat="Moderação"] .switch input:not(:checked) + .slider {
  border-color: rgba(255,59,59,0.35);
}
.dash-card[data-cat="Moderação"] .switch input:not(:checked) + .slider::before {
  background: var(--red);
  opacity: 0.55;
}

/* stat-mini vira um chip, mais legível que texto cinza solto */
.dash-card-head .stat-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Header do servidor com leve gradiente atrás do ícone */
.dash-header {
  position: relative;
  overflow: hidden;
}
.dash-header::before {
  content: '';
  position: absolute;
  inset: -40px -10% auto -10%;
  height: 140px;
  background: radial-gradient(ellipse at 8% 30%, rgba(255,59,59,0.16), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,59,59,0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.dash-header > * { position: relative; z-index: 1; }
.dash-header img.guild-icon, .dash-header .guild-icon-fallback {
  box-shadow: 0 0 0 4px rgba(255,59,59,0.08);
}

/* Barra de "proteções ativas" no topo do painel */
.dash-health { padding: 18px 0 0; }
.health-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.health-count { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
.health-track {
  height: 8px;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.health-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--text-dim);
  transition: width 0.4s ease;
}
.health-bar[data-nivel="alto"] .health-fill { background: var(--red); }
.health-bar[data-nivel="medio"] .health-fill { background: var(--red); }
.health-bar[data-nivel="baixo"] .health-fill { background: var(--red); }

.skel-line { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.4s ease-in-out infinite; border-radius: 8px; height: 16px; margin-bottom: 10px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .status-item:nth-child(2) { border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .terminal-body { height: 240px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .module-body { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .arch-flow { flex-direction: column; align-items: stretch; }
  .arch-arrow { transform: rotate(90deg); padding: 6px 0; align-self: center; }
  .form-row { grid-template-columns: 1fr; }

  /* Menu do topo vira um botão hambúrguer + painel suspenso, com o
     mesmo conteúdo/ordem de links da versão desktop. */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px rgba(0,0,0,0.6);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-links.open { max-height: 320px; opacity: 1; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-inner { position: relative; }
}

/* ---------------- DASHBOARD MOBILE ---------------- */

/* botão que abre a gaveta e o fundo escurecido — ficam escondidos
   no desktop, só existem visualmente abaixo de 860px */
.dash-nav-open {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.dash-nav-open span {
  display: block;
  width: 15px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}
.dash-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 45;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.dash-nav-overlay.visible { display: block; opacity: 1; }

@media (max-width: 860px) {
  .dash-layout { grid-template-columns: 1fr; gap: 20px; padding: 20px 0 100px; }

  .dash-header { padding: 20px 0; gap: 14px; }
  .dash-header img.guild-icon, .dash-header .guild-icon-fallback { width: 44px; height: 44px; font-size: 1rem; }
  .dash-header h1 { font-size: 1.2rem; }

  .dash-nav-open { display: flex; }

  /* mesma gaveta/lista vertical do desktop, só que fora da tela por
     padrão e deslizando por cima do conteúdo quando aberta — não é
     mais uma barra de chips horizontal separada. */
  .dash-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: 84vw;
    max-width: 300px;
    max-height: none;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 24px 0 48px -24px rgba(0,0,0,0.6);
  }
  .dash-nav.open { transform: translateX(0); }
  .dash-nav-back { display: flex; }
  .dash-nav-label { display: block; }
  #dash-nav-links { display: block; padding: 0; overflow: visible; }
  .dash-nav a { padding: 10px 10px; border: none; border-radius: 9px; font-size: 0.9rem; white-space: normal; }
  .dash-nav a.active { background: var(--surface-2); border-color: transparent; color: var(--text); }
  .dash-nav a.active::before { display: block; }

  .dash-card { padding: 18px 16px; border-radius: 12px; scroll-margin-top: 20px; }
  .dash-card-head { flex-wrap: wrap; }
  .dash-subgroups { margin-left: 0; padding-left: 14px; }

  .dash-save-bar { flex-wrap: wrap; padding: 12px 16px; margin: 24px -24px 0; border-radius: 0; }
  .dash-save-bar .save-status { width: 100%; order: 3; margin-right: 0; text-align: center; }
  .dash-save-bar .btn { flex: 1; justify-content: center; }
}

/* ---------------- PÁGINAS LEGAIS (privacidade / termos) ---------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}
.legal .updated-at {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.legal h1 { margin-bottom: 6px; }
.legal .legal-intro {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 18px 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.legal-toc a {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
}
.legal-toc a:hover { color: var(--text); border-color: var(--red-dim); }
.legal section { margin-bottom: 38px; scroll-margin-top: 24px; }
.legal h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.legal h2 .num { color: var(--red); font-family: var(--font-mono); font-size: 0.9rem; }
.legal p { color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; font-size: 0.94rem; }
.legal ul { margin: 0 0 14px 0; padding-left: 20px; color: var(--text-muted); font-size: 0.94rem; line-height: 1.75; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .legal-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 40px;
}
.legal a.inline-link { color: var(--red); }
a.inline-link { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------- MENU "⋮" DE FUNCIONALIDADES (dashboard) ---------------- */
.dash-features-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.dash-features-btn:hover { color: var(--text); border-color: var(--text-dim); }

.features-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.features-overlay.visible { display: block; opacity: 1; }

.features-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 92vw;
  max-width: 380px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 65;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 48px -24px rgba(0,0,0,0.6);
}
.features-panel.open { transform: translateX(0); }

.features-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.features-panel-head h2 { font-size: 1.05rem; }
.features-panel-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}
.features-panel-close:hover { color: var(--text); }

.features-panel-body { overflow-y: auto; padding: 8px 0 24px; }
.features-cat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 18px 20px 8px;
}
.features-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.features-item:hover { background: var(--surface-2); color: var(--text); }
.features-item .icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.features-item .label { flex: 1; font-size: 0.9rem; color: inherit; }
.features-item .chev { color: var(--text-dim); font-size: 0.9rem; }
.features-item[data-cat="Moderação"] .icon { background: var(--red-dim); }
.features-item[data-cat="Comunidade"] .icon { background: rgba(255,59,59,0.12); }
.features-item[data-cat="Geral"] .icon { background: rgba(255,59,59,0.12); }
.features-item[data-cat="Registros"] .icon { background: rgba(255,59,59,0.12); }

@media (max-width: 860px) {
  .features-panel { max-width: none; width: 100vw; }
}

/* ---------------- SISTEMA DE ÍCONES (Lucide) ---------------- */
/* O SVG do lucide herda o tamanho do font-size do elemento pai —
   mesmo comportamento que o emoji tinha antes, então não precisamos
   reajustar cada container que já usava font-size pra dimensionar
   o ícone (.icon, .icon-big, module-icon etc.) */
svg.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 1.8px;
  vertical-align: -0.15em;
  flex-shrink: 0;
}
h3 svg.lucide.module-icon,
.dash-card-head h3 svg.lucide {
  width: 0.85em;
  height: 0.85em;
  color: var(--red);
}
.dash-features-btn svg.lucide { width: 18px; height: 18px; }
.features-panel-close svg.lucide { width: 16px; height: 16px; }
.rpicker-chevron svg.lucide, .rpicker-check svg.lucide { width: 15px; height: 15px; }
.dash-sidebar-link svg.lucide, .login-note svg.lucide { width: 15px; height: 15px; vertical-align: -0.2em; }
.features-item .chev svg.lucide { width: 15px; height: 15px; }
.btn-copy svg.lucide { width: 13px; height: 13px; }

/* ============================================================
   FUNDO ANIMADO (bg-canvas) — grid de "rede de segurança"
   Canvas leve (sem three.js/libs externas) atrás de todo o conteúdo,
   nós pulsando e linhas conectando como uma varredura de rede/radar.
   Combina com o tema (segurança, monitoramento em tempo real).
   Respeita prefers-reduced-motion e fica atrás de tudo (z-index -1),
   sem interceptar clique (pointer-events: none).
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
body { position: relative; }
body > *:not(#bg-canvas) { position: relative; z-index: 1; }
.hero, .status-strip, .partner-strip, section, footer, .nav { background-color: transparent; }
body { background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  #bg-canvas { display: none; }
}

/* ---------------- MOCKUP DO PAINEL (ilustrativo) ---------------- */
/* Item 3 do pedido: já que não temos captura de tela real ainda, isso
   é uma ilustração fiel ao layout real do /painel (ver .dash-nav), NÃO
   é screenshot de verdade — trocar pelo print real assim que tiver. */
.panel-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
}
.panel-mockup .mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.panel-mockup .mockup-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
}
.panel-mockup .mockup-bar .label {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.panel-mockup .mockup-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 100px;
}
.panel-mockup .mockup-body { display: flex; min-height: 220px; }
.panel-mockup .mockup-side {
  width: 150px;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.panel-mockup .mockup-side .m-item {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 6px;
}
.panel-mockup .mockup-side .m-item.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  border-left: 2px solid var(--red);
}
.panel-mockup .mockup-main { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.panel-mockup .m-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
}
.panel-mockup .m-toggle {
  width: 34px; height: 19px;
  border-radius: 100px;
  background: var(--red);
  position: relative;
  flex-shrink: 0;
}
.panel-mockup .m-toggle::after {
  content: '';
  position: absolute; top: 2px; right: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff;
}
.panel-mockup .m-toggle.off { background: var(--border); }
.panel-mockup .m-toggle.off::after { right: auto; left: 2px; background: var(--text-dim); }

/* ---------------- COMPARATIVO (item 7) ---------------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare-table th { font-family: var(--font-display); font-size: 0.82rem; color: var(--text-muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.col-us { color: var(--text); font-weight: 600; }
.compare-table td .yes { color: #4ade80; }
.compare-table td .no { color: var(--text-dim); }
.compare-table tr.row-highlight { background: var(--red-dim); }
.compare-table tr.row-highlight td { color: var(--text); }
@media (max-width: 700px) {
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 10px 8px; }
}

/* ---------------- MOTIVO "404" (item 5) ---------------- */
header.hero::after {
  content: '404';
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14rem;
  color: var(--surface-2);
  opacity: 0.35;
  right: -20px;
  top: -30px;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
@media (max-width: 900px) {
  .hero::after { display: none; }
}
.page-404 {
  min-height: 70vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.page-404 .code-big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem);
  color: var(--red);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255,59,59,0.35);
}
.page-404 h1 { font-family: var(--font-display); font-size: 1.6rem; margin: 16px 0 10px; }
.page-404 p { color: var(--text-muted); margin-bottom: 28px; max-width: 440px; }
.page-404 .terminal-bar { justify-content: center; }

/* ---------------- VIP PROMO — servidor de suporte (banner tela principal) ---------------- */
.vip-promo {
  padding: 48px 0 8px;
}
.vip-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  background:
    radial-gradient(circle at 0% 50%, rgba(255,59,59,0.14), transparent 45%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  padding: 30px 34px;
  box-shadow: 0 0 0 1px rgba(255,59,59,0.08), 0 24px 70px -22px rgba(255,59,59,0.4);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.vip-promo-card:hover {
  border-color: rgba(255,59,59,0.45);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,59,59,0.16), 0 28px 80px -20px rgba(255,59,59,0.5);
}
.vip-promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 48px, rgba(255,59,59,0.035) 48px 49px),
    linear-gradient(120deg, rgba(255,59,59,0.06), transparent 60%);
  pointer-events: none;
}
.vip-promo-art {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.vip-promo-avatar {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
}
.vip-promo-avatar::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red), transparent 30%, transparent 70%, var(--red));
  animation: vip-avatar-spin 5s linear infinite;
  opacity: 0.85;
}
.vip-promo-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 34px 6px rgba(255,59,59,0.45);
}
.vip-promo-avatar picture,
.vip-promo-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--surface);
}
@keyframes vip-avatar-spin {
  to { transform: rotate(360deg); }
}
.vip-promo-body {
  position: relative;
  z-index: 1;
}
.vip-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--red-light);
  background: rgba(255,59,59,0.10);
  border: 1px solid rgba(255,59,59,0.35);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.vip-promo-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-light);
  box-shadow: 0 0 8px var(--red-light);
  animation: blink 1.4s infinite;
}
.vip-promo-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.vip-promo-body h2 .hl {
  color: var(--red-light);
}
.vip-promo-body p {
  color: var(--text-muted);
  max-width: 480px;
  font-size: 0.96rem;
}
.vip-promo-actions {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.vip-promo-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 0.98rem;
  box-shadow: 0 0 0 0 rgba(255,59,59,0.5);
  animation: vip-promo-pulse 2.2s infinite;
  white-space: nowrap;
}
.vip-promo-actions .btn-primary i {
  width: 17px;
  height: 17px;
  transition: transform 0.2s ease;
}
.vip-promo-card:hover .vip-promo-actions .btn-primary i {
  transform: translateX(3px);
}
@keyframes vip-promo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,59,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(255,59,59,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); }
}
@media (max-width: 900px) {
  .vip-promo-card { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .vip-promo-art { display: flex; justify-content: center; }
  .vip-promo-body p { max-width: none; }
  .vip-promo-actions { display: flex; justify-content: center; }
  .vip-promo-actions .btn-primary { width: 100%; justify-content: center; }
}
