:root {
  --bg: #fdf8f5;
  --bg-soft: #faf1ec;
  --surface: #ffffff;
  --ink: #1d1915;
  --ink-2: #4a433c;
  --ink-3: #8a8178;
  --ink-4: #b8afa6;
  --line: #efe6de;
  --line-2: #e5dacf;
  --coral: #ff6a55;
  --coral-hover: #ff5339;
  --coral-soft: #ffe7e1;
  --coral-soft-2: #ffd6cc;
  --peach: #ffd8b5;
  --mint: #3ec29a;
  --mint-soft: #d8f3e9;
  --amber: #f5a623;
  --amber-soft: #ffeccd;
  --red: #e4453a;
  --red-soft: #fde1df;
  --violet: #6b5ce7;
  --violet-soft: #e7e3fb;
  --sky: #4a9ee8;
  --sky-soft: #e0eefa;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29,25,21,.04), 0 2px 6px rgba(29,25,21,.04);
  --shadow-md: 0 4px 14px rgba(29,25,21,.06), 0 12px 32px rgba(29,25,21,.06);
  --shadow-lg: 0 10px 30px rgba(29,25,21,.08), 0 30px 60px rgba(29,25,21,.08);
  --shadow-coral: 0 10px 26px rgba(255,106,85,.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: rgba(253,248,245,.86);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.nav.scrolled { border-color: var(--line-2); }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; gap: 4px; }
.nav-link { padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .15s, background .15s; text-decoration: none; display: block; }
.nav-link:hover { color: var(--ink); background: rgba(29,25,21,.05); }
.nav-link.active { color: var(--coral); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.credit-pill { display: flex; align-items: center; gap: 6px; background: var(--coral-soft); border: 1px solid var(--coral-soft-2); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.credit-pill:hover { background: var(--coral-soft-2); }
.credit-pill .coin { color: var(--coral); }
.credit-pill .count { color: var(--coral); font-variant-numeric: tabular-nums; }
.credit-pill .label { color: var(--ink-3); font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s; border: none; text-decoration: none; }
.btn-primary { background: var(--coral); color: white; box-shadow: var(--shadow-coral); }
.btn-primary:hover { background: var(--coral-hover); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #2d2820; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 48px 0; min-height: 580px; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,106,85,.12), transparent); pointer-events: none; }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--coral-soft); border: 1px solid var(--coral-soft-2); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--coral); margin-bottom: 24px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.85)} }
.hero h1 { font-size: 72px; font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; margin: 0 0 20px; color: var(--ink); }
.hero h1 .accent { color: var(--coral); }
.hero .lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 600px; margin: 0 auto 36px; }

/* Tabs */
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); width: fit-content; margin-left: auto; margin-right: auto; }
.tab { position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-3); transition: all .15s; border: none; background: none; }
.tab.active { background: var(--bg-soft); color: var(--ink); box-shadow: var(--shadow-sm); }
.tab.disabled { opacity: 0.5; cursor: not-allowed; }
.coming { font-size: 9px; font-weight: 800; letter-spacing: 0.1em; background: var(--amber-soft); color: var(--amber); border-radius: 4px; padding: 2px 5px; }

/* Search shell */
.search-shell { display: flex; align-items: stretch; background: white; border: 1.5px solid var(--line-2); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 20px; gap: 0; }
.search-input-wrap { flex: 1; display: flex; align-items: center; gap: 12px; padding: 6px 16px; }
.search-input { border: none; outline: none; background: none; font-size: 15px; color: var(--ink); flex: 1; min-width: 0; }
.search-input::placeholder { color: var(--ink-4); }
.search-platform { display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--bg-soft); flex-shrink: 0; }
.search-platform.github { background: #f3f0ec; color: #1d1915; }
.search-platform.gitlab { background: #fde8dc; color: #e24329; }
.search-platform.bitbucket { background: #e3ecfd; color: #0052cc; }
.search-platform.npm { background: #fde3e3; color: #cb0000; }
.search-platform.generic { background: var(--bg-soft); color: var(--ink-3); }
.search-divider { width: 1px; background: var(--line); margin: 12px 0; }
.search-meta { padding: 0 20px; display: flex; align-items: center; min-width: 120px; }
.search-meta-label { font-size: 11px; color: var(--ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.search-meta-value { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.search-submit { border-radius: 0 calc(var(--radius-xl) - 2px) calc(var(--radius-xl) - 2px) 0; padding: 0 28px; font-size: 15px; box-shadow: none; }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin-bottom: 0; font-size: 13px; }
.hint-chip { display: inline-flex; align-items: center; gap: 6px; background: white; border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 5px 12px; cursor: pointer; transition: all .15s; font-size: 12px; color: var(--ink-2); }
.hint-chip:hover { border-color: var(--coral-soft-2); background: var(--coral-soft); color: var(--coral); }

/* Stats strip */
.stats-strip { max-width: 860px; margin: 48px auto 0; padding: 0 0 64px; display: flex; gap: 0; justify-content: center; }
.stat { flex: 1; text-align: center; padding: 0 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.stat-num .unit { font-size: 20px; color: var(--ink-3); }
.stat-label { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 4px; }

/* Featured / grid */
.featured { max-width: 1200px; margin: 0 auto; padding: 64px 48px 80px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-head p { font-size: 14px; color: var(--ink-3); margin: 0; max-width: 440px; }
.section-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-pill { padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-3); border: 1.5px solid transparent; transition: all .15s; background: none; }
.filter-pill:hover { color: var(--ink); background: var(--bg-soft); }
.filter-pill.active { color: var(--coral); background: var(--coral-soft); border-color: var(--coral-soft-2); }

/* Scan cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scan-card { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; cursor: pointer; transition: all .2s; box-shadow: var(--shadow-sm); }
.scan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.scan-card-thumb { position: relative; height: 160px; overflow: hidden; }
.scan-card-thumb canvas { width: 100%; height: 100%; display: block; }
.thumb-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.thumb-badge { background: rgba(255,255,255,.92); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; display: flex; align-items: center; gap: 4px; }
.score-ring-big { position: absolute; bottom: 12px; right: 12px; }
.scan-card-body { padding: 16px 18px 20px; }
.scan-repo { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.scan-repo-owner { border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.scan-repo-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.scan-repo-name .owner { color: var(--ink-3); font-weight: 500; }
.scan-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.scan-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.findings-row { display: flex; gap: 6px; flex-wrap: wrap; }
.finding-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 700; }
.finding-pill.crit { background: var(--red-soft); color: var(--red); }
.finding-pill.high { background: #fff0e0; color: #e06000; }
.finding-pill.med { background: var(--amber-soft); color: var(--amber); }
.finding-pill.low { background: var(--bg-soft); color: var(--ink-3); }
.finding-pill.clean { background: var(--mint-soft); color: var(--mint); }

/* Footer */
.footer-full { background: var(--ink); color: white; padding: 72px 48px 40px; margin-top: 80px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nav-logo { cursor: default; }
.footer-tagline { margin: 10px 0 18px; color: rgba(255,255,255,.6); font-size: 14px; max-width: 280px; line-height: 1.55; }
.footer-social { display: flex; gap: 8px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); transition: all .15s; }
.social-btn:hover { background: rgba(255,255,255,.2); color: white; }
.footer-col h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.8); margin-bottom: 10px; font-weight: 500; transition: color .15s; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 12px; }

/* Scan progress page */
.scan-page { max-width: 1000px; margin: 0 auto; padding: 40px 48px; display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.scan-breadcrumb { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.crumb-link { cursor: pointer; color: var(--coral); font-weight: 600; text-decoration: none; }
.scan-card-main { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-xl); padding: 28px; }
.scan-target-row { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.scan-target-info { flex: 1; }
.scan-target-label { font-size: 12px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.scan-target-url { font-size: 15px; font-weight: 700; color: var(--ink); font-family: 'JetBrains Mono', monospace; }
.scan-type-badge { background: var(--coral-soft); color: var(--coral); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; border-radius: var(--radius-pill); padding: 4px 10px; }
.scan-stage { min-height: 240px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.scan-progress-bar { height: 6px; background: var(--line); border-radius: var(--radius-pill); overflow: hidden; margin-bottom: 10px; }
.scan-progress-bar .fill { height: 100%; background: linear-gradient(90deg, var(--coral), #ff9280); border-radius: var(--radius-pill); transition: width .5s ease; }
.scan-progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.scan-progress-label .percent { font-weight: 700; color: var(--coral); font-variant-numeric: tabular-nums; }
.scan-subtle { font-size: 13px; color: var(--ink-4); text-align: center; }
.scan-subtle kbd { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; font-size: 12px; font-family: monospace; }
.scan-side { display: flex; flex-direction: column; gap: 12px; }
.mini-card { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.mini-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 8px; }
.mini-val { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.mini-sub { font-size: 12px; color: var(--ink-4); margin-top: 4px; }

/* Radar animation */
.radar { position: relative; width: 220px; height: 220px; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,106,85,.2); top: 50%; left: 50%; transform: translate(-50%, -50%); width: 180px; height: 180px; }
.radar-ring.r2 { width: 130px; height: 130px; }
.radar-ring.r3 { width: 80px; height: 80px; border-color: rgba(255,106,85,.35); }
.radar-ring.r4 { width: 220px; height: 220px; border-color: rgba(255,106,85,.1); }
.radar-sweep { position: absolute; top: 50%; left: 50%; width: 90px; height: 1.5px; transform-origin: 0 50%; background: linear-gradient(90deg, var(--coral), transparent); border-radius: 2px; animation: sweep 2.4s linear infinite; }
.radar-sweep-bg { position: absolute; top: 50%; left: 50%; width: 90px; height: 90px; transform-origin: 0 100%; border-radius: 0 90px 0 0; background: conic-gradient(from 0deg, transparent 0%, rgba(255,106,85,.08) 30%, transparent 30%); animation: sweep 2.4s linear infinite; }
.radar-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10px; height: 10px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 10px rgba(255,106,85,.5); }
.radar-dot { position: absolute; width: 8px; height: 8px; background: var(--coral); border-radius: 50%; opacity: 0; animation: blip 2.4s ease-out infinite; }
@keyframes sweep { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes blip { 0%,80%,100%{opacity:0} 85%{opacity:1} }

/* Report page */
.report-page { background: var(--bg-soft); min-height: 100vh; }
.report-shell { max-width: 1200px; margin: 0 auto; padding: 40px 48px; }
.report-header { display: flex; align-items: flex-start; gap: 20px; margin: 24px 0; padding: 28px; background: white; border: 1.5px solid var(--line); border-radius: var(--radius-xl); }
.report-title { flex: 1; }
.report-title .mono-url { font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--coral); margin-bottom: 6px; font-weight: 600; }
.report-title h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.report-title .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.report-title .meta .sep { color: var(--line-2); }
.report-score-block { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.report-score-labels .big { font-size: 18px; font-weight: 800; }
.report-score-labels .small { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* Paywall */
.paywall-banner { background: var(--ink); border-radius: var(--radius-xl); padding: 24px 28px; display: flex; align-items: center; gap: 20px; }
.paywall-banner .lock-ico { width: 48px; height: 48px; background: rgba(255,255,255,.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--coral); flex-shrink: 0; }
.paywall-text { flex: 1; }
.paywall-text h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: white; }
.paywall-text p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }
.paywall-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.btn-unlock { display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: white; border-radius: var(--radius-pill); padding: 12px 24px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s; border: none; }
.btn-unlock:hover { background: var(--coral-hover); }

/* Report grid */
.report-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 24px; }
.report-sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.side-card h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 14px; }
.severity-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.sev-dot { display: flex; align-items: center; gap: 8px; }
.sev-dot .d { width: 10px; height: 10px; border-radius: 50%; }
.sev-dot .d.crit { background: var(--red); }
.sev-dot .d.high { background: #e06000; }
.sev-dot .d.med { background: var(--amber); }
.sev-dot .d.low { background: var(--ink-4); }
.sev-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.category-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.category-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; transition: background .15s; }
.category-row:hover { background: var(--bg-soft); }
.category-row .n { font-weight: 700; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.report-main { min-width: 0; }
.report-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.report-main.locked .finding-card { filter: blur(5px); user-select: none; pointer-events: none; }

/* Finding cards */
.finding-card { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 14px; }
.finding-head { display: flex; gap: 14px; margin-bottom: 14px; }
.sev-badge { border-radius: var(--radius-sm); padding: 4px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.sev-badge.crit { background: var(--red-soft); color: var(--red); }
.sev-badge.high { background: #fff0e0; color: #e06000; }
.sev-badge.med { background: var(--amber-soft); color: var(--amber); }
.sev-badge.low { background: var(--bg-soft); color: var(--ink-3); }
.finding-title h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.finding-title .category { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.finding-title .category .dot { width: 3px; height: 3px; background: var(--ink-4); border-radius: 50%; }
.finding-title .category .mono { font-family: 'JetBrains Mono', monospace; }
.finding-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.code-block { background: var(--ink); color: #e8d9c0; padding: 16px 18px; border-radius: var(--radius-md); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.6; overflow-x: auto; margin: 0; white-space: pre-wrap; }
.finding-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.finding-tag { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 600; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }

/* Auth modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(29,25,21,.5); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: white; border-radius: var(--radius-xl); padding: 32px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-header h2 { font-size: 22px; font-weight: 800; margin: 0; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-3); border: none; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.form-input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-md); font-size: 14px; color: var(--ink); background: white; transition: border-color .15s; outline: none; }
.form-input:focus { border-color: var(--coral); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.modal-tabs { display: flex; gap: 4px; background: var(--bg-soft); border-radius: var(--radius-md); padding: 4px; margin-bottom: 24px; }
.modal-tab { flex: 1; padding: 8px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; text-align: center; border: none; background: none; color: var(--ink-3); }
.modal-tab.active { background: white; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Inner pages */
.page-shell { max-width: 1200px; margin: 0 auto; padding: 64px 48px 120px; }
.page-shell.tight { max-width: 980px; }
.page-head { max-width: 720px; margin-bottom: 40px; }
.page-head h1 { font-size: 54px; line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.page-head .lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 620px; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 72px; }
.how-card { position: relative; background: white; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px 32px; }
.how-card .how-number { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--coral); margin-bottom: 16px; }
.how-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; margin-bottom: 18px; }
.how-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.how-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.how-arrow { position: absolute; right: -14px; top: 42px; width: 28px; height: 28px; background: white; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--ink-3); z-index: 2; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.cat-chip { background: white; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; }
.cat-chip .cat-num { font-size: 11px; font-weight: 800; color: var(--coral); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 32px 28px 28px; display: flex; flex-direction: column; position: relative; }
.pricing-card.highlight { background: var(--ink); color: white; border-color: var(--ink); }
.pricing-card.highlight .pricing-sub, .pricing-card.highlight .pricing-features { color: rgba(255,255,255,.75); }
.pricing-tag { position: absolute; top: -12px; left: 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: white; display: grid; place-items: center; font-size: 14px; }
.pricing-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; text-transform: uppercase; }
.pricing-price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.pricing-sub { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.pricing-features { list-style: none; padding: 0; margin: 22px 0 8px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pricing-features li { display: flex; align-items: center; gap: 10px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.about-card { background: white; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px 32px; }
.about-card h3 { font-size: 22px; margin: 0 0 10px; font-weight: 700; }
.about-card p { color: var(--ink-2); font-size: 15px; line-height: 1.65; margin: 0 0 12px; }
.about-visual { background: linear-gradient(135deg, var(--coral-soft), var(--peach)); border-radius: var(--radius-xl); min-height: 300px; }

/* Auth page centering */
.auth-page { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-xl); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--ink-3); margin: 0 0 28px; }
.auth-sub a { color: var(--coral); font-weight: 600; }

/* Dashboard */
.dashboard-shell { max-width: 1100px; margin: 0 auto; padding: 40px 48px 80px; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.dash-email { font-size: 14px; color: var(--ink-3); }
.dash-balance { text-align: right; }
.dash-balance-num { font-size: 28px; font-weight: 800; color: var(--coral); }
.dash-balance-label { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.dash-tabs { display: flex; gap: 0; border-bottom: 1.5px solid var(--line); margin-bottom: 28px; }
.dash-tab { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none; }
.dash-tab:hover { color: var(--ink); }
.dash-tab.active { color: var(--coral); border-bottom-color: var(--coral); }
.scan-row { background: white; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; transition: box-shadow .15s; }
.scan-row:hover { box-shadow: var(--shadow-sm); }
.scan-row-url { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'JetBrains Mono', monospace; }
.scan-row-date { font-size: 12px; color: var(--ink-4); }
.status-badge { border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; flex-shrink: 0; }
.status-badge.completed { background: var(--mint-soft); color: var(--mint); }
.status-badge.running { background: var(--sky-soft); color: var(--sky); }
.status-badge.failed { background: var(--red-soft); color: var(--red); }
.status-badge.pending { background: var(--bg-soft); color: var(--ink-3); }

/* Error state */
.error-banner { background: var(--red-soft); border: 1.5px solid rgba(228,69,58,.2); border-radius: var(--radius-lg); padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; }
.error-banner .err-icon { color: var(--red); flex-shrink: 0; margin-top: 1px; }
.error-banner .err-msg { font-size: 14px; color: var(--red); font-weight: 500; }

/* Responsive */
@media (max-width: 1020px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 42px; }
  .page-shell { padding: 48px 32px 96px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { padding: 12px 20px; }
  .hero { padding: 48px 20px 0; }
  .hero h1 { font-size: 42px; }
  .featured { padding: 40px 20px 60px; }
  .report-shell { padding: 24px 20px; }
  .report-header { flex-direction: column; }
  .report-grid { grid-template-columns: 1fr; }
  .scan-page { padding: 24px 16px; grid-template-columns: 1fr; }
  .footer-full { padding: 56px 24px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .dashboard-shell { padding: 24px 20px 60px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: 1fr; }
  .page-shell { padding: 32px 20px 72px; }
  .page-head h1 { font-size: 34px; }
  .how-grid { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 24px); }
}

/* ============================================================
   SCAN RESULT PAGE — result-* namespace
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.result-hero {
  background: linear-gradient(135deg, #fff5f3 0%, #fdf8f5 65%);
  border: 1.5px solid var(--coral-soft-2);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.result-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 90% at 0% 60%, rgba(255,106,85,.08), transparent);
  pointer-events: none;
}
.result-hero.safe {
  background: linear-gradient(135deg, #f0fdf8 0%, #fdf8f5 65%);
  border-color: rgba(62,194,154,.3);
}
.result-hero.safe::before {
  background: radial-gradient(ellipse 50% 90% at 0% 60%, rgba(62,194,154,.08), transparent);
}
.result-hero-body {
  flex: 1;
  min-width: 0;
}
.result-score-wrap {
  flex-shrink: 0;
  text-align: center;
}
.result-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--red-soft);
  border: 1px solid rgba(228,69,58,.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 10px;
}
.result-eyebrow.safe {
  background: var(--mint-soft);
  border-color: rgba(62,194,154,.25);
  color: var(--mint);
}
.result-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: result-pulse-dot 1.5s infinite;
}
.result-eyebrow.safe .result-pulse {
  background: var(--mint);
  animation: none;
}
@keyframes result-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.result-hero h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
}
.result-repo-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--coral);
  word-break: break-all;
  margin-bottom: 6px;
}
.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.result-meta-sep { color: var(--line-2); }
.result-lang-pill {
  background: var(--violet-soft);
  color: var(--violet);
  border-radius: var(--radius-pill);
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Score ring — 90×90 to match mock */
.result-score-ring {
  position: relative;
  width: 90px;
  height: 90px;
}
.result-score-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.result-score-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.result-score-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ── KPI Strip ─────────────────────────────────────────────── */
.result-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 700px) {
  .result-kpis { grid-template-columns: repeat(2, 1fr); }
}
.result-kpi {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: box-shadow .15s;
}
.result-kpi:hover { box-shadow: var(--shadow-md); }
.result-kpi.d {
  border-color: rgba(228,69,58,.25);
  background: linear-gradient(135deg, #fff6f5, white);
}
.result-kpi.w {
  border-color: rgba(245,166,35,.25);
  background: linear-gradient(135deg, #fffbf0, white);
}
.result-kpi.g {
  border-color: rgba(62,194,154,.25);
  background: linear-gradient(135deg, #f2fdf8, white);
}
.result-kpi.v {
  border-color: rgba(107,92,231,.2);
  background: linear-gradient(135deg, #f5f3fe, white);
}
.result-kpi-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.result-kpi-num.r  { color: var(--red); }
.result-kpi-num.a  { color: var(--amber); }
.result-kpi-num.m  { color: var(--mint); }
.result-kpi-num.vi { color: var(--violet); }
.result-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.result-kpi-sub {
  font-size: 11px;
  color: var(--ink-4);
  margin-top: 2px;
}

/* ── Severity + Checks Panel ───────────────────────────────── */
.result-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 680px) {
  .result-panel { grid-template-columns: 1fr; }
}
.result-panel > div {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.result-panel-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.result-sev-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.result-sev-bar-row:last-child { margin-bottom: 0; }
.result-sev-label {
  width: 64px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  flex-shrink: 0;
}
.result-sev-track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.result-sev-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}
.result-sev-fill.crit { background: var(--red); }
.result-sev-fill.high { background: var(--amber); }
.result-sev-fill.med  { background: var(--coral); }
.result-sev-fill.low  { background: var(--mint); }
.result-sev-count {
  font-size: 13px;
  font-weight: 800;
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.result-checks-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.result-check-cell {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-check-cell.pass {
  background: var(--mint-soft);
  border: 1.5px solid rgba(62,194,154,.25);
}
.result-check-cell.fail {
  background: var(--red-soft);
  border: 1.5px solid rgba(228,69,58,.3);
}
.result-checks-legend {
  display: flex;
  gap: 14px;
}
.result-checks-legend span {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.result-checks-legend .leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.result-checks-legend .leg-fail { color: var(--red); }
.result-checks-legend .leg-fail .leg-dot { background: var(--red-soft); border: 1.5px solid var(--red); }
.result-checks-legend .leg-pass { color: var(--mint); }
.result-checks-legend .leg-pass .leg-dot { background: var(--mint-soft); border: 1.5px solid var(--mint); }

/* ── Paywall Banner ────────────────────────────────────────── */
.result-paywall {
  background: var(--ink);
  border-radius: 16px 16px 0 0;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.result-paywall-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.result-paywall-icon {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  flex-shrink: 0;
}
.result-paywall-text h3 {
  font-size: 16px;
  font-weight: 800;
  color: white;
  margin: 0 0 4px;
}
.result-paywall-text p {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin: 0;
  line-height: 1.5;
}
.result-paywall-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: white;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(255,106,85,.4);
}
.result-paywall-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255,106,85,.45);
  color: white;
}
.result-paywall-sub {
  font-size: 11px;
  color: rgba(255,255,255,.35);
}
.result-unlocked-bar {
  background: rgba(62,194,154,.12);
  border: 1.5px solid rgba(62,194,154,.3);
  border-radius: 16px 16px 0 0;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: 14px;
}

/* ── Locked Section ────────────────────────────────────────── */
.result-locked {
  position: relative;
  background: white;
  border: 1.5px solid var(--line);
  border-top: none;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  padding: 28px;
}
.result-locked-blur {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}
.result-locked-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253,248,245,0) 0%, rgba(253,248,245,.55) 40%, rgba(253,248,245,.97) 78%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
}
.result-locked-cta {
  background: white;
  border: 1.5px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.result-locked-cta p:first-child {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}
.result-locked-cta p:last-child {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

/* ── Capabilities Grid ─────────────────────────────────────── */
.result-caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .result-caps-grid { grid-template-columns: repeat(2, 1fr); }
}
.result-cap {
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid transparent;
}
.result-cap.hit {
  background: rgba(228,69,58,.07);
  border-color: rgba(228,69,58,.2);
}
.result-cap.safe {
  background: rgba(0,196,140,.07);
  border-color: rgba(0,196,140,.2);
}
.result-cap-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-cap.hit .result-cap-icon { background: rgba(228,69,58,.15); color: #e4453a; }
.result-cap.safe .result-cap-icon { background: rgba(0,196,140,.15); color: var(--mint); }
.result-cap-name {
  font-size: 13px;
  font-weight: 700;
  color: #1d1915;
}
.result-cap-status { font-size: 11px; font-weight: 600; }
.result-cap.hit .result-cap-status { color: #e4453a; }
.result-cap.safe .result-cap-status { color: var(--mint); }
.result-risk-alert {
  background: rgba(228,69,58,.08);
  border: 1.5px solid rgba(228,69,58,.25);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #e4453a;
  margin-bottom: 20px;
}

/* ── OWASP Grid ────────────────────────────────────────────── */
.result-owasp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 600px) {
  .result-owasp-grid { grid-template-columns: repeat(2, 1fr); }
}
.result-owasp-item {
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  border: 1.5px solid transparent;
}
.result-owasp-item.hit {
  background: rgba(228,69,58,.07);
  border-color: rgba(228,69,58,.2);
}
.result-owasp-item.ok {
  background: rgba(0,196,140,.07);
  border-color: rgba(0,196,140,.2);
}
.result-owasp-id {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.result-owasp-item.hit .result-owasp-id { color: #e4453a; }
.result-owasp-item.ok  .result-owasp-id { color: var(--mint); }
.result-owasp-name {
  font-size: 10px;
  color: #8a8178;
  line-height: 1.3;
}
.result-owasp-legend {
  font-size: 12px;
  color: #8a8178;
  margin-bottom: 24px;
}

/* ── Finding Cards ─────────────────────────────────────────── */
.result-finding {
  background: white;
  border: 1.5px solid #efe6de;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.result-finding-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.result-sev-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  flex-shrink: 0;
  margin-top: 2px;
}
.result-sev-badge.crit { background: rgba(228,69,58,.12); color: #e4453a; }
.result-sev-badge.high { background: rgba(245,166,35,.12); color: #f5a623; }
.result-sev-badge.med  { background: rgba(240,192,64,.12); color: #b38600; }
.result-sev-badge.low  { background: rgba(0,196,140,.12); color: var(--mint); }
.result-finding-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d1915;
  margin: 0 0 4px;
}
.result-finding-meta {
  font-size: 11px;
  color: #8a8178;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
}
.result-finding-body {
  font-size: 13px;
  color: #4a433c;
  line-height: 1.6;
  margin: 0;
}
.result-code-block {
  background: #f3ede8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #4a433c;
  overflow-x: auto;
  white-space: pre;
}
.result-remediation {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(0,196,140,.06);
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: #3a5a50;
  line-height: 1.5;
}

/* ── Hotspot Section ───────────────────────────────────────── */
.result-hotspot-section {
  border-top: 1.5px solid #efe6de;
  padding-top: 24px;
  margin-top: 24px;
}
.result-hotspot-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a8178;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-hotspot {
  background: rgba(108,92,231,.06);
  border: 1.5px solid rgba(108,92,231,.2);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.result-hotspot-icon { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.result-hotspot-title {
  font-size: 13px;
  font-weight: 700;
  color: #1d1915;
  margin: 0 0 4px;
}
.result-hotspot-body {
  font-size: 12px;
  color: #8a8178;
  line-height: 1.5;
  margin: 0;
}

/* ── Section title ─────────────────────────────────────────── */
.result-section-title {
  font-size: 16px;
  font-weight: 800;
  color: #1d1915;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language switcher (navbar) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  margin-right: 4px;
}
.lang-switch-opt {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
}
.lang-switch-opt.active {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 1px 4px rgba(255,106,85,.35);
}
.lang-switch-opt:not(.active):hover { color: var(--ink); }
