:root {
  --bg: #08060f;
  --bg-2: #0d0a18;
  --card: #120e22;
  --card-2: #17122b;
  --border: #241d3d;
  --border-hi: #3b2f63;
  --primary: #8b5cf6;
  --primary-2: #a78bfa;
  --cyan: #22d3ee;
  --text: #ece9f8;
  --muted: #9a92b8;
  --muted-2: #6c6490;
  --ok: #34d399;
  --err: #f87171;
  --radius: 14px;
  --font-pixel: 'Luckiest Guy', 'Inter', cursive;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --glow: 0 0 40px rgba(139, 92, 246, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 400px at 15% -5%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(600px 350px at 90% 10%, rgba(34, 211, 238, 0.07), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; }
a { color: var(--primary-2); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cyan); }
::selection { background: rgba(139, 92, 246, 0.4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-pixel); font-weight: 400; letter-spacing: 1px; line-height: 1.25; }
.script { font-family: var(--font-script); font-weight: 400; color: var(--primary-2); }

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

/* ---------- intro overlay ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro .intro-logo {
  width: 84px; height: 84px;
  opacity: 0;
  animation: introPop 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.15s forwards;
  filter: drop-shadow(0 0 24px rgba(139, 92, 246, 0.6));
}
.intro .intro-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: introRise 0.7s ease 0.5s forwards;
}
.intro .intro-tag {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--muted);
  opacity: 0;
  animation: introRise 0.7s ease 0.8s forwards;
}
.intro .intro-stats {
  display: flex;
  gap: clamp(24px, 6vw, 72px);
  margin-top: 12px;
  opacity: 0;
  animation: introRise 0.7s ease 1.1s forwards;
}
.intro .intro-stat { text-align: center; }
.intro .intro-stat b {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--text);
}
.intro .intro-stat span {
  font-size: 0.8rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 2px;
}
@keyframes introPop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes introRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8, 6, 15, 0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 1.3rem; color: var(--text); }
.nav-brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(139, 92, 246, 0.12); }
.nav-links a svg { width: 16px; height: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: var(--card-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--glow); color: var(--text); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d3ef0);
  border-color: transparent;
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45); }
.btn-danger { border-color: rgba(248, 113, 113, 0.4); color: var(--err); }
.btn-danger:hover { border-color: var(--err); box-shadow: 0 0 24px rgba(248, 113, 113, 0.2); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--primary-2);
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 20px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); } 50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 8px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .hero-script { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 18px; display: block; }
.hero p.lead { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), var(--glow); }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.18), transparent);
  z-index: -1;
}

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 34px 0 10px;
}
.stat-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--border-hi); box-shadow: var(--glow); }
.stat-card .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid var(--border-hi);
  flex-shrink: 0;
}
.stat-card .ico svg { width: 22px; height: 22px; color: var(--primary-2); }
.stat-card b { font-family: var(--font-pixel); font-size: 1.9rem; display: block; line-height: 1.1; }
.stat-card span { color: var(--muted-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- sections / features ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 6px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--glow); }
.feature .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.1));
  border: 1px solid var(--border-hi);
  margin-bottom: 16px;
}
.feature .ico svg { width: 21px; height: 21px; color: var(--primary-2); }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- terminal mock ---------- */
.terminal {
  background: #0b0817;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.terminal-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-hi); }
.terminal-bar i:first-child { background: #f87171; }
.terminal-bar i:nth-child(2) { background: #fbbf24; }
.terminal-bar i:nth-child(3) { background: #34d399; }
.terminal-body { padding: 20px 22px; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.88rem; line-height: 1.9; }
.terminal-body .cmd { color: var(--cyan); }
.terminal-body .ok { color: var(--ok); }
.terminal-body .dim { color: var(--muted-2); }
.terminal-body .link { color: var(--primary-2); text-decoration: underline; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 36px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.9rem;
}
.signature { color: var(--muted); font-size: 0.92rem; }
.signature .heart { color: #f87171; animation: heartbeat 1.6s infinite; display: inline-block; }
.signature b { color: var(--text); font-weight: 600; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.25); } 24% { transform: scale(1); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- docs ---------- */
.docs-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 48px 0; }
.docs-side { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 4px; }
.docs-side a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}
.docs-side a:hover, .docs-side a.active { color: var(--text); background: rgba(139, 92, 246, 0.1); border-left-color: var(--primary); }
.docs-content h1 { font-size: 2rem; margin-bottom: 10px; }
.docs-content h2 { font-size: 1.35rem; margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); }
.docs-content p { color: var(--muted); margin-bottom: 14px; }
.docs-content code {
  background: var(--card-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 7px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.85em;
  color: var(--primary-2);
}
.docs-content pre {
  background: #0b0817;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 14px 0;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.8;
}
.docs-content pre code { background: none; border: none; padding: 0; color: var(--text); }
.cmd-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.cmd-table th, .cmd-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.cmd-table th { color: var(--muted-2); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1.5px; }
.cmd-table td:first-child { font-family: 'JetBrains Mono', Consolas, monospace; color: var(--primary-2); white-space: nowrap; font-size: 0.85rem; }
.cmd-table td { color: var(--muted); }
.cmd-table tr { transition: background 0.15s; }
.cmd-table tbody tr:hover { background: rgba(139, 92, 246, 0.06); }

/* ---------- download ---------- */
.dl-hero { padding: 72px 0 32px; text-align: center; }
.dl-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.dl-card {
  max-width: 640px;
  margin: 34px auto;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--glow);
}
.dl-card .ver { font-family: var(--font-pixel); font-size: 2.2rem; }
.dl-card .meta { color: var(--muted-2); font-size: 0.88rem; margin: 8px 0 24px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.dl-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.dl-card .meta svg { width: 15px; height: 15px; }
.dl-old { max-width: 640px; margin: 0 auto; }
.dl-old h2 { font-size: 1.2rem; margin: 40px 0 14px; }
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.dl-row:hover { border-color: var(--border-hi); transform: translateX(4px); }
.dl-row .v { font-family: var(--font-pixel); font-size: 1.05rem; }
.dl-row .d { color: var(--muted-2); font-size: 0.85rem; }
.changelog {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  white-space: pre-line;
}

/* ---------- report viewer ---------- */
.report-wrap { max-width: 900px; margin: 0 auto; padding: 48px 24px; }
.report-head {
  background: linear-gradient(135deg, var(--card-2), var(--card));
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  padding: 30px 34px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.report-head::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.25), transparent);
}
.report-head .code { font-family: var(--font-pixel); font-size: 1.9rem; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ok);
}
.report-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 18px; }
.report-meta div b { display: block; font-size: 1.05rem; }
.report-meta div span { color: var(--muted-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin-bottom: 22px;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.panel h2 svg { width: 19px; height: 19px; color: var(--primary-2); }
.bar-row { display: grid; grid-template-columns: minmax(140px, 260px) 1fr 90px; gap: 14px; align-items: center; padding: 9px 0; }
.bar-row .name { font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { height: 10px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.bar-row .fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.bar-row .pct { text-align: right; font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.85rem; color: var(--muted); }
.mono-list { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.84rem; }
.mono-list .row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mono-list .row:last-child { border-bottom: none; }
.mono-list .row .m { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-list .row .t { color: var(--primary-2); white-space: nowrap; }

/* ---------- admin ---------- */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--glow);
  animation: introRise 0.5s ease;
}
.login-card .logo { display: flex; justify-content: center; margin-bottom: 18px; }
.login-card .logo img { width: 54px; height: 54px; }
.login-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted-2); font-size: 0.9rem; margin-bottom: 26px; }
.tabs { display: flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tabs button {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.tabs button.active { background: var(--card-2); color: var(--text); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 1.2px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.admin-side .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 1.15rem; padding: 6px 12px 22px; }
.admin-side .brand img { width: 26px; height: 26px; }
.admin-side button.navbtn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}
.admin-side button.navbtn:hover { color: var(--text); background: rgba(139, 92, 246, 0.08); }
.admin-side button.navbtn.active { color: var(--text); background: rgba(139, 92, 246, 0.16); }
.admin-side button.navbtn svg { width: 17px; height: 17px; }
.admin-side .spacer { flex: 1; }
.admin-side .who { padding: 12px 14px; color: var(--muted-2); font-size: 0.82rem; border-top: 1px solid var(--border); }
.admin-side .who b { color: var(--primary-2); display: block; font-size: 0.9rem; }
.admin-main { padding: 34px 38px; min-width: 0; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform 0.2s, border-color 0.2s;
  animation: introRise 0.45s ease backwards;
}
.metric:nth-child(2) { animation-delay: 0.05s; }
.metric:nth-child(3) { animation-delay: 0.1s; }
.metric:nth-child(4) { animation-delay: 0.15s; }
.metric:nth-child(5) { animation-delay: 0.2s; }
.metric:nth-child(6) { animation-delay: 0.25s; }
.metric:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.metric .lbl { color: var(--muted-2); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; gap: 7px; }
.metric .lbl svg { width: 14px; height: 14px; color: var(--primary-2); }
.metric b { font-family: var(--font-pixel); font-size: 1.75rem; display: block; margin-top: 6px; }
.metric .delta { font-size: 0.8rem; color: var(--ok); }
.chart-card { margin-bottom: 26px; }
.chart-card svg { width: 100%; height: 180px; display: block; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted-2); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; }
.admin-table td { color: var(--muted); }
.admin-table td:first-child { color: var(--text); }
.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: rgba(139, 92, 246, 0.05); }
.admin-table .mono { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.8rem; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.pill-ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.3); }
.pill-off { background: rgba(248, 113, 113, 0.1); color: var(--err); border: 1px solid rgba(248, 113, 113, 0.3); }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.drop {
  border: 2px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 18px;
}
.drop:hover, .drop.over { border-color: var(--primary); background: rgba(139, 92, 246, 0.06); }
.drop svg { width: 30px; height: 30px; color: var(--primary-2); margin-bottom: 8px; }
.progressbar { height: 8px; background: var(--bg-2); border-radius: 5px; overflow: hidden; margin-top: 14px; display: none; }
.progressbar .p { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--cyan)); transition: width 0.3s; }
.keyreveal {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 1.15rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 14px 0;
  text-align: center;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  word-break: break-all;
}
.keyreveal:hover { background: rgba(139, 92, 246, 0.18); }

/* ---------- report: verdetto, salute, IA ---------- */
.verdict {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 22px;
  border: 1px solid;
  animation: introRise 0.5s ease;
}
.verdict b { font-family: var(--font-pixel); font-size: 1.25rem; letter-spacing: 1px; }
.verdict span { color: var(--muted); font-size: 0.95rem; }
.verdict.ok { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.35); }
.verdict.ok b { color: var(--ok); }
.verdict.warn { background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.35); }
.verdict.warn b { color: #fbbf24; }
.verdict.bad { background: rgba(248, 113, 113, 0.07); border-color: rgba(248, 113, 113, 0.4); }
.verdict.bad b { color: var(--err); }
.hint { color: var(--muted-2); font-size: 0.85rem; margin: -8px 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.tile b { font-family: var(--font-pixel); font-size: 1.45rem; display: block; letter-spacing: 0.5px; }
.tile > span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.tile .cap { color: var(--muted-2); font-size: 0.74rem; margin-top: 5px; line-height: 1.4; }
.tile-ok b { color: var(--ok); }
.tile-warn b { color: #fbbf24; }
.tile-bad b { color: var(--err); }
.ai-loading { display: flex; align-items: center; gap: 6px; color: var(--muted); padding: 8px 0; }
.ai-loading span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: aiBounce 1s infinite;
}
.ai-loading span:nth-child(2) { animation-delay: 0.15s; }
.ai-loading span:nth-child(3) { animation-delay: 0.3s; margin-right: 8px; }
@keyframes aiBounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-6px); opacity: 1; } }
.ai-text {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 20px 24px;
  animation: introRise 0.5s ease;
}
.ai-text p { color: var(--muted); margin-bottom: 10px; }
.ai-text p:last-child { margin-bottom: 0; }
.ai-text b { color: var(--primary-2); }
.ai-text ul { margin: 0 0 10px 20px; color: var(--muted); }
.ai-text li { margin-bottom: 5px; }

/* ---------- toast ---------- */
.toast-zone { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card-2);
  border: 1px solid var(--border-hi);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.92rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-width: 360px;
}
.toast.err { border-left-color: var(--err); }
.toast.ok { border-left-color: var(--ok); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast.bye { animation: toastOut 0.3s forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf h1 { font-size: clamp(4rem, 12vw, 7rem); background: linear-gradient(90deg, var(--primary), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); margin: 10px 0 26px; }

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 10px;
  min-height: 18px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .stats-band, .features { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-side .spacer, .admin-side .who { display: none; }
  .bar-row { grid-template-columns: 1fr; gap: 5px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .bar-row .pct { text-align: left; }
  .nav-links a span { display: none; }
}
