/* ═══════════════════════════════════════════════════════════════════
   Nucleus Verify — Design System
   Alter Menta Technologies
   ═══════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────────── */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f8fb;
  --surface: #ffffff;
  --surface-hover: #f3f4f8;
  --border: #e2e5ef;
  --border-light: #d1d5e2;
  --accent: #2563eb;
  --accent-glow: #1d4ed8;
  --accent-dim: #1e40af;
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --mono-data: #2563eb;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dim); }

/* ── Navigation ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}
.nav-brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-badge { height: 30px; width: auto; flex-shrink: 0; object-fit: contain; }
.nav-wordmark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.nav-powered {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: block;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--accent-glow) !important;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: var(--accent-glow) !important;
}

@media (max-width: 640px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11px; }
  .nav-powered { display: none; }
}

/* ── Layout ───────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-result { max-width: 900px; margin: 0 auto; padding: 40px 24px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge { margin-bottom: 32px; }
.hero-badge svg { height: 120px; width: auto; opacity: 0.9; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  max-width: 680px;
  margin: 0 auto 20px;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-sub em {
  color: var(--warning);
  font-style: normal;
  font-weight: 600;
}
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 640px) {
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-badge svg { height: 80px; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}
.btn-primary.btn-full {
  width: 100%;
  text-align: center;
}

.btn-ghost {
  display: inline-block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--accent-glow); }
.btn-ghost::after { content: ' \2192'; }

.btn-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ── Stats Rail ───────────────────────────────────────────────────── */
.stats-rail {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 36px;
  background: var(--bg-secondary);
}
.stats-rail-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stats-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.stats-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}
.stats-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.stats-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-item { text-align: left; min-width: 80px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 640px) {
  .stats-columns { grid-template-columns: 1fr; gap: 16px; }
  .stats-divider { width: 100%; height: 1px; }
  .stats-rail { padding: 20px; }
}

/* ── Gates Strip ──────────────────────────────────────────────────── */
.gates-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.gate-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.gate-chip .check { font-size: 11px; }

/* ── Cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 50%, rgba(37, 99, 235, 0.02));
  z-index: -1;
  pointer-events: none;
}
.card-glow {
  box-shadow: var(--shadow-glow);
}
.card h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ── Tabs ─────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  background: none;
  font-family: var(--font-body);
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--accent-glow); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Form elements ────────────────────────────────────────────────── */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
input[type="text"], input[type="url"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus, input[type="url"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
input::placeholder { color: var(--text-muted); }

textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  min-height: 200px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea::placeholder { color: var(--text-muted); }

.field { margin-bottom: 16px; }
.field-row { display: flex; gap: 12px; align-items: flex-end; }
.field-row .field { flex: 1; margin-bottom: 0; }
.hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* File drop zone */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--accent); background: rgba(37, 99, 235, 0.05); }
.file-drop.dragover { border-color: var(--accent-glow); background: rgba(37, 99, 235, 0.08); }
.file-drop input[type="file"] { display: none; }
.file-drop .icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.file-drop .text { font-size: 14px; color: var(--text-secondary); }
.file-drop .selected { color: var(--accent-glow); font-weight: 600; }

/* ── Trust signals ────────────────────────────────────────────────── */
.trust-signals {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0 0;
  flex-wrap: wrap;
}
.trust-signal { text-align: center; flex: 1; min-width: 140px; }
.trust-signal-icon {
  font-size: 20px;
  margin-bottom: 6px;
  display: block;
}
.trust-signal .ts-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.trust-signal .ts-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Limits bar ───────────────────────────────────────────────────── */
.limits {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}
.limits span {
  display: inline-block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  margin: 2px 4px 2px 0;
}

/* ── Examples ─────────────────────────────────────────────────────── */
.examples { margin-top: 20px; }
.examples h3 {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.example-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.3);
  cursor: pointer;
}
.example-link:hover { color: var(--accent-dim); border-bottom-color: var(--accent-dim); }

/* ── Status messages ──────────────────────────────────────────────── */
.status { display: none; margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.status.loading { display: block; background: rgba(37, 99, 235, 0.1); color: var(--accent-glow); border: 1px solid rgba(37, 99, 235, 0.2); }
.status.error { display: block; background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }

/* ── Section: Five Gates ──────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.gates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.gates-grid .gate-card:nth-child(4),
.gates-grid .gate-card:nth-child(5) {
  /* Center last two cards */
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
}
.gate-card .gate-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-glow);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gate-card .gate-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.gates-honest {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

@media (max-width: 768px) {
  .gates-grid { grid-template-columns: 1fr; }
}

/* ── Section: System Specification ────────────────────────────────── */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}
.spec-label { color: var(--text-muted); }
.spec-value { color: var(--text-primary); font-weight: 600; }

@media (max-width: 480px) { .spec-grid { grid-template-columns: 1fr; } }

/* ── Section: Example Result ──────────────────────────────────────── */
.result-verdict {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.result-verdict.verified { color: var(--success); }
.result-verdict.partial { color: var(--warning); }

.gate-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
.gate-pill.pass { background: rgba(16, 185, 129, 0.12); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.gate-pill.fail { background: rgba(239, 68, 68, 0.12); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }

.result-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.9;
}
.result-meta .meta-label { color: var(--text-muted); display: inline-block; min-width: 150px; }
.result-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; font-style: italic; }

/* ── Section: Hashes ──────────────────────────────────────────────── */
.hash-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2;
  overflow-x: auto;
}
.hash-block .hash-label { color: var(--text-muted); display: inline-block; min-width: 160px; }
.hash-block .hash-value { color: var(--mono-data); word-break: break-all; }

.det-desc, .ai-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.det-note, .ai-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── Section: AI Finding ──────────────────────────────────────────── */
.finding-box {
  background: rgba(245, 158, 11, 0.06);
  border-left: 3px solid var(--warning);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.finding-box .finding-gate {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.finding-box .finding-detail { font-size: 13px; color: var(--text-secondary); }
.finding-box .finding-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Section: Benchmark ───────────────────────────────────────────── */
.benchmark-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-secondary);
}
.benchmark-numbers {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0;
}
.bm-stat .bm-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
}
.bm-stat .bm-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.bm-stat.verified .bm-value { color: var(--success); }
.bm-stat.partial .bm-value { color: var(--warning); }
.bm-stat.none .bm-value { color: var(--error); }
.bm-stat.verified .bm-label { color: var(--success); }
.bm-stat.partial .bm-label { color: var(--warning); }
.bm-stat.none .bm-label { color: var(--error); }

.bm-honest {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .benchmark-numbers { flex-direction: column; gap: 24px; }
  .bm-stat .bm-value { font-size: 2rem; }
}

/* ── Section: Who It's For ────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.audience-card h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.audience-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ── Section: Pricing ─────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.pricing-card .plan-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-card .plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.pricing-card .plan-period {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
}
.pricing-card li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-card li::before {
  content: '\2713 ';
  color: var(--success);
  font-weight: 700;
  margin-right: 6px;
}

/* 4-column pricing grid for Free/Plus/Business/Enterprise */
.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.pricing-callout {
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--success);
  text-align: center;
}
.pricing-onetime {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 20px;
}
.plan-current-badge {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
}

@media (max-width: 960px) {
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-grid-4 { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ── Enterprise Contact Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-card .field { margin-bottom: 16px; }
.modal-success {
  text-align: center;
  padding: 20px 0;
  color: var(--success);
  font-weight: 600;
}

/* ── Billing Tab Enhancements ──────────────────────────────────────── */
.billing-plan {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
}
.billing-plan h3 { margin-bottom: 8px; }
.billing-plan p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.billing-upgrade {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.billing-history {
  margin-top: 8px;
}
.billing-history h3 { margin-bottom: 16px; }
.billing-history table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.billing-history th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
.billing-history td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.billing-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── Section: Not Verified ────────────────────────────────────────── */
.not-verified {
  border: 1px solid var(--border);
  border-left: 3px solid var(--error);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.not-verified h3 { font-size: 14px; color: var(--text-primary); margin-bottom: 12px; }
.not-verified ul { padding-left: 20px; }
.not-verified li { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.not-verified li strong { color: var(--error); font-weight: 600; }
.nv-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 32px;
}
.footer-col {}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-amt-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.footer-tagline {
  margin-top: 2px;
}
.footer-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}
.footer-links a { font-size: 12px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-secondary); }
.footer-company {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: right;
}
.footer-copy {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer-company { text-align: center; }
}

/* ── Legal pages ─────────────────────────────────────────────────── */
.legal-page {
  padding: 80px 0 40px;
}
.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-container h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-container section {
  margin-bottom: 32px;
}
.legal-container h2 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.legal-container h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 16px;
  margin-bottom: 8px;
}
.legal-container p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-container ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-container li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 4px;
}
.legal-container a {
  color: var(--accent);
}
.legal-container a:hover {
  color: var(--accent-glow);
}
.legal-container code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Cookie table */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 13px;
}
.cookie-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cookie-table td {
  padding: 10px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cookie-table td:first-child {
  white-space: nowrap;
}

/* ── Cookie consent banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 16px 0;
}
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner a {
  color: #93c5fd;
}
.cookie-banner a:hover {
  color: #bfdbfe;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.cookie-banner .btn-primary {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .btn-primary:hover {
  background: var(--accent-glow);
}
.cookie-banner .btn-ghost {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #475569;
}
.cookie-banner .btn-ghost:hover {
  background: #334155;
  color: #f1f5f9;
}

@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESULT PAGE
   ═══════════════════════════════════════════════════════════════════ */

/* Verdict banner */
.verdict-banner {
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.verdict-banner.verdict-verified { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid rgba(5, 150, 105, 0.2); }
.verdict-banner.verdict-partial { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid rgba(217, 119, 6, 0.2); }
.verdict-banner.verdict-unverified { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid rgba(220, 38, 38, 0.2); }
.verdict-banner.verdict-refused { background: var(--bg-secondary); border: 1px solid var(--border); }

.verdict-badge {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  white-space: nowrap;
}
.verdict-verified .verdict-badge { background: var(--success); color: #fff; }
.verdict-partial .verdict-badge { background: var(--warning); color: #000; }
.verdict-unverified .verdict-badge { background: var(--error); color: #fff; }
.verdict-refused .verdict-badge { background: var(--text-muted); color: #fff; }

.verdict-info h1 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.verdict-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Result cards */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.result-card h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* Trust score */
.trust-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.trust-score { font-size: 2.2rem; font-weight: 800; color: var(--accent-glow); }
.trust-grade { font-size: 0.95rem; color: var(--text-secondary); }

/* Summary */
.summary-line { font-size: 1rem; color: var(--text-secondary); font-weight: 500; }

/* Architecture */
.arch-type { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.arch-conf { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.arch-evidence { margin-top: 6px; padding-left: 18px; font-size: 13px; color: var(--text-muted); }

/* Meta */
.meta { font-size: 13px; color: var(--text-muted); }
.meta span { margin-right: 16px; }

/* Gates */
.gates { display: flex; gap: 8px; flex-wrap: wrap; }
.gate-pass {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.gate-fail {
  background: rgba(239, 68, 68, 0.12);
  color: var(--error);
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Language bars */
.lang-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lang-name { width: 90px; font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }
.lang-bar { flex: 1; height: 14px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.lang-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }
.lang-pct { width: 42px; font-size: 12px; color: var(--text-muted); text-align: right; }
.lang-detail { font-size: 12px; color: var(--text-muted); width: 110px; }

/* Framework tags */
.fw-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.fw-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
}

/* Metrics grid */
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { text-align: center; padding: 14px 8px; background: var(--bg-secondary); border-radius: var(--radius); border: 1px solid var(--border); }
.metric-val { display: block; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--accent-glow); }
.metric-label { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Capabilities */
.cap-item { margin-bottom: 8px; }
.cap-item summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 6px 0; }
.cap-item summary:hover { color: var(--text-primary); }
.ev-row { display: flex; gap: 8px; padding: 3px 0 3px 18px; font-size: 12px; }
.ev-loc { color: var(--accent-glow); font-weight: 600; white-space: nowrap; }
.ev-code { color: var(--text-muted); word-break: break-all; }

/* API surface */
.api-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.api-table th { text-align: left; padding: 8px; background: var(--bg-secondary); border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-muted); }
.api-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.method-get { color: var(--success); font-weight: 700; }
.method-post { color: var(--accent-glow); font-weight: 700; }
.method-put { color: var(--warning); font-weight: 700; }
.method-delete { color: var(--error); font-weight: 700; }
.method-patch { color: #a78bfa; font-weight: 700; }

/* Data models */
.models-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.model-card { padding: 12px 16px; background: var(--bg-secondary); border-radius: 6px; border-left: 3px solid var(--accent); }
.model-type { font-size: 12px; color: var(--text-muted); }
.model-fields { font-size: 13px; color: var(--text-secondary); }
.model-loc { font-size: 12px; color: var(--text-muted); }

/* Dependencies */
.dep-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dep-tag { padding: 4px 10px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; font-size: 12px; color: var(--text-secondary); }
.dep-ver { color: var(--text-muted); font-size: 11px; }
.dep-lock { margin-top: 8px; font-size: 13px; color: var(--success); }

/* Complexity */
.complexity-summary { text-align: center; }
.complexity-cat { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.complexity-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-muted); }

/* Claims */
.claim-item { padding: 8px 0; border-bottom: 1px solid var(--border); }
.claim-status { font-weight: 700; font-size: 13px; margin-right: 8px; }
.claim-ev { padding-left: 18px; margin-top: 4px; font-size: 12px; color: var(--text-muted); }

/* Feedback */
.feedback-item { padding: 12px 16px; margin-bottom: 8px; background: var(--bg-secondary); border-radius: 6px; border: 1px solid var(--border); }
.feedback-item strong { font-size: 14px; color: var(--text-primary); }
.feedback-item p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Structure */
.structure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.struct-section strong { font-size: 14px; color: var(--text-primary); }
.struct-section ul { padding-left: 16px; margin-top: 4px; }
.struct-section li { font-size: 12px; color: var(--text-secondary); margin-bottom: 2px; }
.struct-loc { font-size: 12px; color: var(--text-muted); }

/* Hash rows (result page) */
.hash-row {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.hash-row .hash-label { font-weight: 600; color: var(--text-muted); margin-right: 8px; }

/* Downloads */
.downloads { display: flex; gap: 12px; flex-wrap: wrap; }
.download-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.download-link:hover { background: var(--accent-dim); color: #fff; }
.download-link.secondary { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }
.download-link.secondary:hover { background: var(--surface-hover); color: var(--text-primary); }

/* Not verified (result page) */
.not-verified-result { margin-top: 20px; }
.not-verified-result h3 { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.not-verified-result ul { padding-left: 18px; }
.not-verified-result li { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }

/* Back link */
.back { display: inline-block; margin-top: 24px; color: var(--accent-glow); text-decoration: none; font-weight: 600; font-size: 14px; }
.back:hover { color: var(--accent-dim); }
.note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Result page footer */
.result-footer {
  text-align: center;
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

@media (max-width: 600px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-detail { display: none; }
  .lang-name { width: 70px; }
  .structure-grid { grid-template-columns: 1fr; }
  .downloads { flex-direction: column; }
  .verdict-banner { flex-direction: column; text-align: center; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before { display: none; }
  .nav { display: none; }
  .container-result { max-width: 100%; padding: 0; }
  .result-card { box-shadow: none; border: 1px solid #ddd; background: #fff; break-inside: avoid; }
  .download-link, .downloads, .back { display: none; }
  .verdict-badge, .gate-pass, .gate-fail { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ═══════════════════════════════════════════════════════════════════
   WAITING PAGE
   ═══════════════════════════════════════════════════════════════════ */
.waiting-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.waiting-center { text-align: center; max-width: 480px; padding: 40px 20px; }

/* Orbital animation */
.nucleus-anim {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  position: relative;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1.5px solid transparent;
  border-top-color: var(--accent-glow);
  border-radius: 50%;
  animation: orbit-spin 2s linear infinite;
}
.orbit:nth-child(1) { transform: rotateX(60deg) rotateZ(0deg); animation-duration: 3s; border-top-color: var(--accent); }
.orbit:nth-child(2) { transform: rotateX(60deg) rotateZ(60deg); animation-duration: 2.5s; }
.orbit:nth-child(3) { transform: rotateX(60deg) rotateZ(120deg); animation-duration: 2s; border-top-color: var(--accent); opacity: 0.7; }
.nucleus-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.5);
}

@keyframes orbit-spin { to { transform: rotateX(60deg) rotateZ(calc(var(--start, 0deg) + 360deg)); } }
.orbit:nth-child(1) { --start: 0deg; }
.orbit:nth-child(2) { --start: 60deg; }
.orbit:nth-child(3) { --start: 120deg; }

.waiting-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.waiting-repo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-all;
  margin-bottom: 32px;
}

.stages { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.stage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.stage.active { color: var(--accent-glow); background: rgba(37, 99, 235, 0.12); border-color: rgba(37, 99, 235, 0.2); font-weight: 600; }
.stage.done { color: var(--success); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.15); }

.stage-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.stage.active .stage-dot { background: var(--accent-glow); animation: pulse 1.2s ease-in-out infinite; }
.stage.done .stage-dot { background: var(--success); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.elapsed { color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.detail { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.job-id { font-family: var(--font-mono); color: var(--text-muted); font-size: 12px; margin-top: 24px; }

/* ═══════════════════════════════════════════════════════════════════
   ERROR PAGE
   ═══════════════════════════════════════════════════════════════════ */
.error-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-center {
  max-width: 560px;
  padding: 40px 20px;
}
.error-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--error);
  margin-bottom: 20px;
}
.error-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.error-summary { font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; }
.error-detail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-top: 12px;
  word-break: break-all;
}
.error-reason { color: var(--text-muted); font-size: 13px; margin-top: 12px; }

.error-help {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.error-help p { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.error-help ul { padding-left: 18px; }
.error-help li { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }

details summary {
  cursor: pointer;
  color: var(--accent-glow);
  font-size: 13px;
  user-select: none;
}
details summary:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   Auth Pages — Login, Register, Forgot/Reset Password
   ═══════════════════════════════════════════════════════════════════ */

.auth-container {
  max-width: 440px;
  margin: 80px auto 60px;
  padding: 0 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 24px;
  text-align: center;
}
.auth-error {
  color: var(--error);
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}
.auth-error:empty { display: none; }
.auth-message {
  color: var(--success);
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}
.auth-message:empty { display: none; }

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-full {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 13px;
}
.auth-links a {
  color: var(--accent);
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }

/* ── OAuth Buttons ─────────────────────────────────────────────── */

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  border: 1px solid var(--border);
}
.btn-oauth svg { flex-shrink: 0; }
.btn-oauth-github {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}
.btn-oauth-github:hover {
  background: #1b1f23;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-oauth-google {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.btn-oauth-google:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.oauth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-divider span {
  padding: 0 14px;
  white-space: nowrap;
}

/* ── Connected Accounts (Account page) ─────────────────────────── */

.connected-accounts {
  margin: 16px 0 24px;
}
.connected-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.connected-account:last-child { border-bottom: none; }
.connected-provider {
  font-weight: 600;
  min-width: 70px;
  font-size: 14px;
}
.connected-info {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.connected-info.connected-not {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Nav User Dropdown ───────────────────────────────────────────── */

.nav-user-menu {
  position: relative;
  list-style: none;
}
.nav-user-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s;
}
.nav-user-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  list-style: none;
  padding: 4px 0;
  min-width: 160px;
  z-index: 200;
}
.nav-user-menu:hover .nav-dropdown,
.nav-user-menu:focus-within .nav-dropdown {
  display: block;
}
.nav-dropdown li a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.nav-dropdown li a:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}
.nav-dropdown-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Account Page
   ═══════════════════════════════════════════════════════════════════ */

.account-container {
  max-width: 780px;
  margin: 40px auto 60px;
  padding: 0 24px;
}
.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.account-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 0;
}

.plan-badge {
  font-size: 11px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.plan-free { background: var(--bg-secondary); color: var(--text-secondary); border: 1px solid var(--border); }
.plan-plus { background: var(--accent); color: #fff; }
.plan-business { background: #7c3aed; color: #fff; }

.account-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.account-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.account-tab:hover { color: var(--text-primary); }
.account-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.account-panel { display: none; }
.account-panel.active { display: block; }

.profile-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 28px;
}
.profile-field {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.profile-field:last-child { border-bottom: none; }
.profile-label { font-weight: 500; color: var(--text-secondary); font-size: 14px; }
.profile-value { color: var(--text-primary); font-size: 14px; }

.account-panel h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 0 0 16px;
}

/* ── Scans Table ─────────────────────────────────────────────────── */

.scans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.scans-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.scans-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.scans-table a { color: var(--accent); text-decoration: none; font-size: 12px; }
.scans-table a:hover { text-decoration: underline; }

.verdict-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.verdict-verified { background: var(--success-bg); color: var(--success); }
.verdict-flagged { background: var(--warning-bg); color: var(--warning); }
.verdict-failed { background: var(--error-bg); color: var(--error); }
.verdict-pending { background: var(--bg-secondary); color: var(--text-muted); }

.scans-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.scans-empty a { color: var(--accent); text-decoration: none; }
.scans-empty a:hover { text-decoration: underline; }

/* ── Billing Tab ─────────────────────────────────────────────────── */

.billing-plan {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.billing-plan h3 {
  margin: 0 0 8px;
}
.billing-plan p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
}

/* ── Auth Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
  .auth-container { margin-top: 40px; padding: 0 16px; }
  .auth-card { padding: 28px 20px; }
  .account-container { padding: 0 16px; }
  .account-header h1 { font-size: 1.4rem; }
  .account-tabs { overflow-x: auto; }
  .profile-field { flex-direction: column; gap: 4px; }
  .scans-table { font-size: 12px; }
  .scans-table th, .scans-table td { padding: 6px 8px; }
}

/* ── Public Check / Certificate Verification Page ─────────────────── */
.check-page { max-width: 780px; margin: 0 auto; padding: 40px 24px 60px; }
.check-container { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
.check-header { text-align: center; margin-bottom: 32px; border-bottom: 2px solid var(--border); padding-bottom: 20px; }
.check-wordmark { display: block; font-size: 20px; font-weight: 700; letter-spacing: 2px; color: var(--primary); }
.check-subtitle { display: block; font-size: 13px; color: var(--text-secondary); letter-spacing: 1px; margin-top: 4px; }
.check-status { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; padding: 14px 20px; border-radius: 8px; margin-bottom: 24px; }
.check-status-valid { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.check-status-invalid { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.check-verdict-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.check-score { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.check-meta { margin-bottom: 24px; }
.check-meta-row { font-size: 14px; color: var(--text-secondary); padding: 6px 0; line-height: 1.5; }
.check-label { font-weight: 600; color: var(--text-primary); display: inline-block; min-width: 120px; }
.check-footer-note { margin-top: 24px; padding: 16px 20px; background: var(--bg-light, #f8fafc); border-radius: 8px; border: 1px solid var(--border); }
.check-footer-note p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.check-download { margin-top: 20px; text-align: center; }
.check-not-found { text-align: center; padding: 40px 0; }
.check-not-found h1 { font-size: 1.6rem; color: var(--text-primary); margin-bottom: 12px; }
.check-not-found-id { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.check-not-found-id code { background: var(--bg-light, #f1f5f9); padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.check-not-found-detail { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.check-public-url { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.check-public-url a { color: var(--primary); word-break: break-all; }

@media (max-width: 640px) {
  .check-container { padding: 24px 16px; }
  .check-verdict-row { flex-direction: column; gap: 10px; align-items: flex-start; }
  .check-label { min-width: 90px; }
}

/* ── Badge Panel (Result Page) ─────────────────────────────────────── */
.badge-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}
.badge-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}
.badge-toggle:hover { background: var(--surface-hover); }
.badge-preview-inline { height: 20px; vertical-align: middle; }
.badge-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.2s;
}
.badge-panel.open .badge-arrow { transform: rotate(180deg); }
.badge-content {
  display: none;
  padding: 0 20px 20px;
}
.badge-panel.open .badge-content { display: block; }
.badge-preview {
  text-align: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.badge-preview img { height: 20px; }
.badge-snippet-group { margin-bottom: 12px; }
.badge-snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.badge-snippet-header span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.badge-copy-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.badge-copy-btn:hover {
  background: var(--accent);
  color: #fff;
}
.badge-snippet {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  margin: 0;
  color: var(--text-secondary);
}

/* ── Badge Marketing Page ──────────────────────────────────────────── */
.badge-page {
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.badge-page-header {
  text-align: center;
  margin-bottom: 40px;
}
.badge-page-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}
.badge-page-header p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}
.badge-section {
  margin-bottom: 40px;
}
.badge-section h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.badge-section p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.badge-section code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.badge-examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.badge-example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}
.badge-example h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.badge-example svg { margin-bottom: 12px; }
.badge-example p {
  font-size: 13px;
  margin: 0;
}
.badge-snippet-lg {
  font-size: 13px;
  padding: 16px 20px;
}
.badge-cta-section {
  text-align: center;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.badge-cta-section h2 { margin-bottom: 8px; }
.badge-cta-section p { margin-bottom: 20px; }

/* Brand badge preview */
.brand-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  text-align: center;
}
.brand-preview svg {
  max-width: 100%;
  height: auto;
}
.brand-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .badge-examples { grid-template-columns: 1fr; }
  .badge-page-header h1 { font-size: 1.5rem; }
}

/* ── Benchmark Page ──────────────────────────────────────────────── */
.bm-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 700px;
  margin: 0 auto 24px;
}
.bm-hero-stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
}
.bm-hero-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-glow);
}
.bm-hero-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.bm-run-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}
.bm-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 8px;
}
.bm-verdict-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.bm-verdict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border-top: 3px solid var(--border);
}
.bm-verdict-verified { border-top-color: var(--success); }
.bm-verdict-partial { border-top-color: var(--warning); }
.bm-verdict-unverified { border-top-color: var(--error); }
.bm-verdict-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.bm-verdict-verified .bm-verdict-name { color: var(--success); }
.bm-verdict-partial .bm-verdict-name { color: var(--warning); }
.bm-verdict-unverified .bm-verdict-name { color: var(--error); }
.bm-verdict-count {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.bm-verdict-pct {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin: 4px 0;
}
.bm-verdict-verified .bm-verdict-pct { color: var(--success); }
.bm-verdict-partial .bm-verdict-pct { color: var(--warning); }
.bm-verdict-unverified .bm-verdict-pct { color: var(--error); }
.bm-verdict-detail {
  font-size: 12px;
  color: var(--text-muted);
}
.bm-verdict-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}
.bm-bar-seg { height: 100%; }
.bm-bar-verified { background: var(--success); }
.bm-bar-partial { background: var(--warning); }
.bm-bar-unverified { background: var(--error); }
.bm-callout {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.bm-callout strong { color: var(--text-primary); }
.bm-callout-highlight {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-glow);
  margin-top: 8px;
}
/* Bar chart */
.bm-bar-chart { max-width: 680px; margin: 0 auto 32px; }
.bm-bar-row {
  display: grid;
  grid-template-columns: 60px 1fr 48px 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.bm-bar-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}
.bm-bar-track {
  height: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.bm-bar-fill {
  height: 100%;
  border-radius: 3px;
  min-width: 2px;
}
.bm-bar-fill-accent { background: var(--accent); }
.bm-bar-fill-warning { background: var(--warning); }
.bm-bar-fill-error { background: var(--error); }
.bm-bar-count {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}
.bm-bar-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
/* Percentile grid */
.bm-percentile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}
.bm-pct-item {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 8px;
}
.bm-pct-key {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.bm-pct-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
/* Two-column layout */
.bm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}
.bm-col-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
/* Tables */
.bm-table-wrap { overflow-x: auto; }
.bm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bm-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
.bm-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.bm-table tbody tr:hover { background: var(--surface-hover); }
.bm-table-full { max-width: 680px; margin: 0 auto; }
.bm-row-muted td { color: var(--text-muted); }
/* Severity badges */
.bm-sev {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.bm-sev-critical { background: var(--error-bg); color: var(--error); }
.bm-sev-high { background: var(--warning-bg); color: var(--warning); }
.bm-sev-medium { background: var(--bg-secondary); color: var(--text-secondary); }
.bm-sev-low { background: var(--bg-secondary); color: var(--text-muted); }
/* Leaderboard */
.bm-leaderboard { display: flex; flex-direction: column; gap: 6px; }
.bm-lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.bm-lb-count {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--error);
  min-width: 40px;
}
.bm-lb-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
/* Footnote */
.bm-footnote {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.6;
}
/* Repo pills grid */
.bm-repo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 680px;
  margin: 0 auto 24px;
}
.bm-repo-pill {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.bm-repo-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f4ff;
}
/* Methodology grid */
.bm-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.bm-method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.bm-method-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: #eff6ff;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 12px;
}
.bm-method-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.bm-method-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
/* Nav active */
.nav-active { color: var(--accent-glow) !important; font-weight: 600; }
/* Responsive */
@media (max-width: 768px) {
  .bm-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .bm-verdict-cards { grid-template-columns: 1fr; }
  .bm-two-col { grid-template-columns: 1fr; }
  .bm-method-grid { grid-template-columns: 1fr; }
  .bm-repo-grid { grid-template-columns: 1fr; }
  .bm-percentile-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .bm-hero-stats { grid-template-columns: 1fr; }
  .bm-hero-value { font-size: 1.6rem; }
  .bm-percentile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Footer Social ───────────────────────────────────────────────── */

.footer-social {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-social-link:hover { color: #fff; }
.footer-social-link svg { flex-shrink: 0; }
.footer-social-handle { font-size: 13px; }
@media (max-width: 768px) {
  .footer-social { justify-content: center; }
}

/* ── Auth Help ───────────────────────────────────────────────────── */

.auth-help {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin-top: 16px;
  text-align: center;
}
.auth-help a { color: var(--accent, #2563eb); }

/* ── Pricing Enterprise CTA ─────────────────────────────────────── */

.pricing-enterprise-cta {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  text-align: center;
  margin-top: 8px;
}
.pricing-enterprise-cta a { color: var(--accent, #2563eb); }

/* ── Admin Panel ─────────────────────────────────────────────────── */

.admin-layout {
  display: flex;
  min-height: calc(100vh - 200px);
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 24px 16px;
  gap: 24px;
}
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 0;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}
.admin-sidebar-header {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.admin-nav { list-style: none; padding: 0; margin: 0; }
.admin-nav li a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.admin-nav li a:hover {
  background: rgba(37, 99, 235, 0.05);
  color: var(--text-primary);
}
.admin-nav li a.admin-nav-active {
  color: #2563eb;
  border-left-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}
.admin-main {
  flex: 1;
  min-width: 0;
}
.admin-main h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.admin-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.admin-stat-inline {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* Admin verdicts bar */
.admin-verdicts {
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.admin-verdict-item {
  display: inline-block;
  margin: 0 12px 0 0;
  padding: 2px 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  font-size: 0.82rem;
}

/* Admin tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.admin-table td a { color: #2563eb; text-decoration: none; }
.admin-table td a:hover { text-decoration: underline; }
.admin-table tr:hover td { background: rgba(37, 99, 235, 0.03); }
.admin-unread td { background: rgba(37, 99, 235, 0.06); font-weight: 500; }

/* Admin filters */
.admin-filters {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-filters a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.admin-filters a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* Admin pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.admin-pagination a {
  color: #2563eb;
  text-decoration: none;
}
.admin-pagination a:hover { text-decoration: underline; }

/* Admin empty state */
.admin-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Nav badge (unread count) — admin panel only */
.nav-badge-count {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  line-height: 16px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Admin responsive */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    position: static;
  }
  .admin-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px; }
  .admin-nav li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
    font-size: 0.82rem;
  }
  .admin-nav li a.admin-nav-active { border-bottom-color: #2563eb; border-left-color: transparent; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: 6px 6px; }
}

/* ── Announcement Banner ──────────────────────────── */
.announcement-banner {
  display: flex; justify-content: center; align-items: center;
  gap: 12px; padding: 10px 20px; font-size: 0.88rem; font-weight: 500;
  position: relative; z-index: 100;
}
.ann-info { background: #dbeafe; color: #1e40af; }
.ann-warning { background: #fef3c7; color: #92400e; }
.ann-error { background: #fee2e2; color: #991b1b; }
.ann-dismiss {
  background: none; border: none; font-size: 1.2rem; cursor: pointer;
  opacity: 0.6; color: inherit; padding: 0 4px;
}
.ann-dismiss:hover { opacity: 1; }

/* ── Admin Chart Containers ───────────────────────── */
.admin-chart-row { display: grid; gap: 20px; margin-bottom: 24px; }
.admin-chart-row-3 { grid-template-columns: repeat(3, 1fr); }
.admin-chart-row-2 { grid-template-columns: repeat(2, 1fr); }
.admin-chart-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.admin-chart-card h3 { margin: 0 0 12px; font-size: 0.92rem; color: #374151; }
.admin-chart-card canvas { width: 100% !important; max-height: 260px; }

/* ── Admin Stat Cards (enhanced) ──────────────────── */
.admin-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 24px;
}
.admin-stat-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 16px; text-align: center;
}
.admin-stat-value { font-size: 1.6rem; font-weight: 700; color: #111827; }
.admin-stat-label { font-size: 0.78rem; color: #6b7280; margin-top: 4px; }

/* ── Operator Health Table ────────────────────────── */
.op-status-active { color: #059669; font-weight: 600; }
.op-status-disabled { color: #dc2626; font-weight: 600; }
.op-toggle-btn {
  padding: 4px 12px; border-radius: 4px; font-size: 0.78rem;
  border: 1px solid #d1d5db; background: #f9fafb; cursor: pointer;
}
.op-toggle-btn:hover { background: #e5e7eb; }
.op-filter { margin-bottom: 16px; display: flex; gap: 12px; align-items: center; }
.op-filter input, .op-filter select {
  padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px;
  font-size: 0.85rem;
}

/* ── False Positive Queue ─────────────────────────── */
.fp-report-form {
  margin-top: 16px; padding: 16px; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: 8px;
}
.fp-report-form textarea {
  width: 100%; min-height: 60px; padding: 8px; border: 1px solid #d1d5db;
  border-radius: 4px; font-size: 0.85rem; resize: vertical;
}
.fp-report-form button { margin-top: 8px; }
.fp-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.fp-open { background: #fef3c7; color: #92400e; }
.fp-confirmed { background: #d1fae5; color: #065f46; }
.fp-rejected { background: #fee2e2; color: #991b1b; }

/* ── System Health ────────────────────────────────── */
.system-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-bottom: 24px;
}
.system-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 20px;
}
.system-card h3 { margin: 0 0 8px; font-size: 0.95rem; color: #374151; }
.system-card .val { font-size: 1.4rem; font-weight: 700; color: #111827; }

/* ── Killswitch ───────────────────────────────────── */
.killswitch-section {
  border: 2px solid #ef4444; border-radius: 8px;
  padding: 20px; margin-bottom: 24px; background: #fef2f2;
}
.killswitch-section.active { border-color: #dc2626; background: #fee2e2; }
.killswitch-warning {
  display: inline-block; padding: 6px 16px; background: #ef4444;
  color: #fff; border-radius: 4px; font-weight: 700; font-size: 0.85rem;
}
.killswitch-confirm-input {
  padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 4px;
  font-size: 0.85rem; width: 180px;
}

/* ── Revocation Banner ────────────────────────────── */
.revocation-banner {
  background: #fee2e2; border: 2px solid #ef4444; border-radius: 8px;
  padding: 16px 20px; margin-bottom: 16px; text-align: center;
  color: #991b1b; font-weight: 600;
}

/* ── GDPR Actions ─────────────────────────────────── */
.gdpr-actions { display: flex; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.btn-danger {
  background: #ef4444; color: #fff; border: none; padding: 8px 18px;
  border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.88rem;
}
.btn-danger:hover { background: #dc2626; }
.gdpr-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.gdpr-table th, .gdpr-table td {
  padding: 8px 12px; text-align: left; border-bottom: 1px solid #e5e7eb;
  font-size: 0.85rem;
}
.gdpr-table th { background: #f9fafb; font-weight: 600; }

/* ── Audit Log ────────────────────────────────────── */
.audit-row-action { font-weight: 600; }
.audit-detail { color: #6b7280; font-size: 0.82rem; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }

/* ── Settings Page ────────────────────────────────── */
.settings-section {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 24px; margin-bottom: 20px;
}
.settings-section h3 { margin: 0 0 16px; font-size: 1rem; }
.settings-field { margin-bottom: 12px; }
.settings-field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.85rem; }
.settings-field input, .settings-field select, .settings-field textarea {
  width: 100%; max-width: 400px; padding: 8px 10px; border: 1px solid #d1d5db;
  border-radius: 4px; font-size: 0.88rem;
}

/* ── Conversion Funnel ────────────────────────────── */
.funnel-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.funnel-label { width: 140px; font-size: 0.85rem; font-weight: 500; text-align: right; }
.funnel-track { flex: 1; background: #f3f4f6; border-radius: 4px; height: 24px; overflow: hidden; }
.funnel-fill { height: 100%; background: #2563eb; border-radius: 4px; transition: width 0.3s; }
.funnel-value { width: 80px; font-size: 0.85rem; color: #6b7280; }

/* ── CSV Export Button ────────────────────────────── */
.export-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.export-btn {
  padding: 6px 16px; background: #059669; color: #fff; border: none;
  border-radius: 4px; font-size: 0.82rem; cursor: pointer; font-weight: 600;
}
.export-btn:hover { background: #047857; }

/* ── Responsive: admin charts ─────────────────────── */
@media (max-width: 768px) {
  .admin-chart-row-3, .admin-chart-row-2 { grid-template-columns: 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .system-grid { grid-template-columns: 1fr; }
}
