/* ═══════════════════════════════════════════════
   Ad Trust Analyzer — Premium Dark Stylesheet
   Dark, full-width, enterprise-quality
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Core palette */
  --bg:        #080c14;
  --surface:   #0f1523;
  --surface2:  #1a2236;
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.14);

  /* Accents */
  --accent:    #3b82f6;
  --accent2:   #6366f1;
  --accent-lt: rgba(59,130,246,.12);
  --accent-glow: rgba(59,130,246,.35);

  /* Semantic */
  --danger:    #ef4444;
  --danger-lt: rgba(239,68,68,.14);
  --warn:      #f59e0b;
  --warn-lt:   rgba(245,158,11,.14);
  --ok:        #10b981;
  --ok-lt:     rgba(16,185,129,.12);

  /* Text */
  --text:      #f1f5f9;
  --text2:     #94a3b8;
  --text3:     #475569;

  /* Aliases kept for JS-dependent class references */
  --blue:      var(--accent);
  --blue-lt:   var(--accent-lt);
  --red:       var(--danger);
  --red-lt:    var(--danger-lt);
  --yellow:    var(--warn);
  --yel-lt:    var(--warn-lt);
  --green:     var(--ok);
  --grn-lt:    var(--ok-lt);
  --gray0:     var(--surface);
  --gray1:     var(--surface2);
  --gray2:     rgba(255,255,255,.06);
  --gray3:     var(--border);
  --gray4:     var(--text3);
  --gray5:     var(--text2);
  --gray6:     var(--text2);
  --gray7:     var(--text);
  --shadow:    0 1px 4px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.3);
  --shadow2:   0 4px 24px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
  --radius:    14px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  background: rgba(8,12,20,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 22px; }
.logo-text {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.3px;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  transition: background .15s, color .15s;
  letter-spacing: -.01em;
}
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: var(--accent-lt); color: var(--accent); }

/* ── Views ───────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ══════════════════════════════════════════
   VIEW 1: INPUT
══════════════════════════════════════════ */
#view-input {
  background: var(--bg);
  min-height: calc(100vh - 64px);
  position: relative;
  overflow-x: clip;
}

/* Radial glow behind hero */
#view-input::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(99,102,241,.22) 0%,
    rgba(59,130,246,.12) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Dot grid overlay */
#view-input::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 700px;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px 60px;
  position: relative;
  z-index: 1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 68px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Hero right-column visual panel */
.hero-right {
  position: relative;
}
.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-visual-frame {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04), 0 0 60px rgba(99,102,241,.14);
  overflow: hidden;
}
.hv-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.hv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-red    { background: #ef4444; }
.hv-yellow { background: #f59e0b; }
.hv-green  { background: #10b981; }
.hv-url {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text3);
  font-family: 'SF Mono', 'Fira Code', monospace;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hv-body {
  padding: 20px;
}
.hv-scanning {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
  margin-bottom: 14px;
  animation: hv-scan-color 6s ease-in-out infinite;
}
@keyframes hv-scan-color {
  0%, 50%  { color: var(--ok); }
  65%, 85% { color: var(--accent); }
  100%     { color: var(--ok); }
}
.hv-scan-label {
  position: relative;
  display: inline-block;
  min-width: 190px;
}
.hv-scan-done,
.hv-scan-running {
  display: block;
  white-space: nowrap;
}
.hv-scan-running {
  position: absolute;
  top: 0;
  left: 0;
}
@keyframes hv-fade-done {
  0%, 50%  { opacity: 1; }
  65%, 85% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes hv-fade-running {
  0%, 50%  { opacity: 0; }
  65%, 85% { opacity: 1; }
  100%     { opacity: 0; }
}
.hv-scan-done    { animation: hv-fade-done    6s ease-in-out infinite; }
.hv-scan-running { animation: hv-fade-running 6s ease-in-out infinite; }

.hv-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  position: relative;
}
.hv-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse 1.6s ease-out infinite;
  opacity: 0;
}
.hv-verdict-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.25);
  margin-bottom: 14px;
}
.hv-verdict-icon { font-size: 22px; flex-shrink: 0; }
.hv-verdict-info { flex: 1; }
.hv-verdict-label {
  font-size: 14px;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: -.3px;
}
.hv-verdict-sub {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}
.hv-score {
  font-size: 34px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.hv-signals {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
@keyframes hv-signal-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hv-signal {
  font-size: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  animation: hv-signal-in 0.45s ease both;
}
.hv-signal:nth-child(1) { animation-delay: 0.25s; }
.hv-signal:nth-child(2) { animation-delay: 0.5s;  }
.hv-signal:nth-child(3) { animation-delay: 0.75s; }
.hv-signal:nth-child(4) { animation-delay: 1.0s;  }
.hv-signal:nth-child(5) { animation-delay: 1.25s; }
.hv-signal-red    { background: rgba(239,68,68,.08);  color: #fca5a5; border: 1px solid rgba(239,68,68,.15); }
.hv-signal-yellow { background: rgba(245,158,11,.08); color: #fcd34d; border: 1px solid rgba(245,158,11,.15); }
.hv-signal-green  { background: rgba(16,185,129,.08); color: #6ee7b7; border: 1px solid rgba(16,185,129,.15); }
.hv-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hv-engine {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(16,185,129,.1);
  color: var(--ok);
  border: 1px solid rgba(16,185,129,.2);
}

/* Nav section divider */
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border2);
  margin: 0 4px;
  flex-shrink: 0;
  align-self: center;
}
.nav-section-link {
  color: var(--text3) !important;
  font-size: 13px !important;
}
.nav-section-link:hover { color: var(--text2) !important; }
.nav-section-link.active {
  background: var(--accent-lt);
  color: var(--accent) !important;
}

/* Input card */
.input-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 2px 12px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 28px;
  text-align: left;
  margin-bottom: 40px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.tab {
  padding: 7px 18px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text2);
  transition: background .15s, color .15s;
  font-family: var(--font);
}
.tab:hover { background: var(--surface2); color: var(--text); }
.tab.active { background: var(--accent); color: #fff; }

/* Panels */
.panel { display: none; }
.panel.active { display: block; }

/* URL input */
.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 18px;
  background: var(--surface2);
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 10px;
}
.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  background: rgba(59,130,246,.04);
}
.input-icon { font-size: 18px; flex-shrink: 0; }
.main-input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text);
  width: 100%;
  outline: none;
}
.main-input::placeholder { color: var(--text3); }

/* Textarea */
.main-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--surface2);
  resize: vertical;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 10px;
}
.main-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.main-textarea::placeholder { color: var(--text3); }

/* Bulk drop */
.bulk-drop {
  border: 2px dashed var(--border2);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  background: var(--surface2);
  transition: border-color .2s;
  margin-bottom: 10px;
}
.bulk-drop:hover { border-color: var(--accent); }
.bulk-icon { font-size: 32px; margin-bottom: 10px; }
.bulk-text { font-size: 14px; color: var(--text2); }
.bulk-link { color: var(--accent); cursor: pointer; text-decoration: underline; }

.input-hint { font-size: 12px; color: var(--text3); margin-bottom: 20px; }
.input-hint code {
  background: var(--surface2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  border: 1px solid var(--border);
}

/* Analyze button */
.analyze-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: box-shadow .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
  letter-spacing: -.01em;
}
.analyze-btn:hover {
  box-shadow: 0 6px 30px rgba(59,130,246,.6);
  transform: translateY(-1px);
}
.analyze-btn:active { transform: scale(.99) translateY(0); }
.analyze-btn.slim { width: auto; padding: 12px 28px; }
.btn-icon { font-size: 16px; }

/* Error */
.input-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--danger-lt);
  color: #fca5a5;
  border-radius: 10px;
  font-size: 13.5px;
  border: 1px solid rgba(239,68,68,.25);
}
.hidden { display: none !important; }

/* Stats row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 28px 32px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 12px; color: var(--text3); letter-spacing: .02em; }
.stat-divider { width: 1px; height: 36px; background: var(--border2); }

/* Sample buttons */
.samples-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-top: 18px; margin-bottom: 18px; justify-content: center;
}
.samples-label { font-size: 12px; color: var(--text3); font-weight: 500; }
.sample-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface2); color: var(--text2);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  font-family: var(--font);
}
.sample-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-lt);
}

/* ══════════════════════════════════════════
   VIEW 2: PROGRESS
══════════════════════════════════════════ */
#view-progress {
  background: var(--bg);
  min-height: calc(100vh - 64px);
}

.progress-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.progress-header {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.scanning-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
}
.pulse-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 1.4s ease-out infinite;
  opacity: 0;
}
@keyframes pulse {
  0%   { transform: scale(.8); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.progress-input-preview {
  font-size: 13px;
  color: var(--text3);
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

/* Steps */
.progress-steps {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.progress-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.progress-step:last-child { border-bottom: none; }
.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  transition: background .3s;
}
.step-dot.pending  { background: var(--surface2); border: 2px solid var(--border2); }
.step-dot.running  { background: var(--accent); animation: spin-dot 1s linear infinite; }
.step-dot.done     { background: var(--ok); }
.step-dot.error    { background: var(--danger); }
@keyframes spin-dot {
  0%,100% { box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
  50%      { box-shadow: 0 0 0 7px rgba(59,130,246,.07); }
}
.step-content { flex: 1; }
.step-name { font-size: 13.5px; font-weight: 500; color: var(--text); }
.step-detail {
  font-size: 12px;
  color: var(--text3);
  margin-top: 3px;
  min-height: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.step-time { font-size: 11px; color: var(--text3); margin-top: 2px; }

/* Progress bar */
.progress-bar-wrap { display: flex; align-items: center; gap: 14px; }
.progress-bar {
  flex: 1;
  height: 5px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  border-radius: 3px;
  transition: width .4s ease;
}
.progress-pct { font-size: 13px; color: var(--accent); font-weight: 700; width: 36px; text-align: right; }

/* ══════════════════════════════════════════
   VIEW 3: RESULTS
══════════════════════════════════════════ */
#view-results {
  background: var(--bg);
  min-height: calc(100vh - 64px);
}

/* Analysis header banner */
.analysis-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text2);
  overflow: hidden;
  grid-column: span 2;
}
.analysis-header-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 10px;
}
.analysis-header-url {
  color: var(--accent);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.analysis-header-url:hover { text-decoration: underline; }
.analysis-header-copy {
  color: var(--text3);
  font-style: italic;
}

/* Results container — wider, two-column grid */
.results-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

/* Full-width elements — merged section cards + chrome */
.results-topbar,
.analysis-header,
.verdict-card,
#risk-breakdown-card,
#flags-card,
#content-risk-card,
#ad-overview-card,
#visual-analysis-card,
#advertiser-intel-card,
#detection-signals-card,
.llm-badge,
.bottom-actions {
  grid-column: span 2;
}

.results-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.back-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text2);
  cursor: pointer;
  padding: 6px 0;
  transition: color .15s;
  letter-spacing: -.01em;
}
.back-btn:hover { color: var(--accent); }
.results-actions { display: flex; gap: 8px; }
.action-btn {
  padding: 8px 14px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text2);
  transition: background .15s, border-color .15s, color .15s;
}
.action-btn:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.flag-btn:hover { border-color: var(--danger); color: #fca5a5; }

/* Verdict card */
.verdict-card {
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 0;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}
.verdict-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.verdict-card.red    {
  background: linear-gradient(135deg, rgba(239,68,68,.14) 0%, rgba(239,68,68,.04) 100%);
  border-color: rgba(239,68,68,.25);
}
.verdict-card.yellow {
  background: linear-gradient(135deg, rgba(245,158,11,.14) 0%, rgba(245,158,11,.04) 100%);
  border-color: rgba(245,158,11,.25);
}
.verdict-card.green  {
  background: linear-gradient(135deg, rgba(16,185,129,.14) 0%, rgba(16,185,129,.04) 100%);
  border-color: rgba(16,185,129,.25);
}

.verdict-left { display: flex; align-items: center; gap: 20px; }
.verdict-icon { font-size: 48px; line-height: 1; }
.verdict-label { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.verdict-card.red    .verdict-label { color: #fca5a5; }
.verdict-card.yellow .verdict-label { color: #fcd34d; }
.verdict-card.green  .verdict-label { color: #6ee7b7; }
.verdict-sub { font-size: 14px; color: var(--text2); margin-top: 5px; line-height: 1.5; }

.verdict-right { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.score-circle-wrap { position: relative; width: 110px; height: 110px; }
.score-circle { width: 100%; height: 100%; }
.score-bg  { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.score-arc { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1); }
.verdict-card.red    .score-arc { stroke: #ef4444; filter: drop-shadow(0 0 8px rgba(239,68,68,.5)); }
.verdict-card.yellow .score-arc { stroke: #f59e0b; filter: drop-shadow(0 0 8px rgba(245,158,11,.5)); }
.verdict-card.green  .score-arc { stroke: #10b981; filter: drop-shadow(0 0 8px rgba(16,185,129,.5)); }
.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-number { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.verdict-card.red    .score-number { color: #fca5a5; }
.verdict-card.yellow .score-number { color: #fcd34d; }
.verdict-card.green  .score-number { color: #6ee7b7; }
.score-label { font-size: 10px; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.confidence-label { font-size: 11.5px; color: var(--text3); }

/* Section cards */
.section-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 0;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: border-color .2s;
}
.section-card:hover { border-color: var(--border2); }
.section-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text3);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ── Merged sub-sections ─────────────────────────── */
.merged-sub { /* no extra padding; spacing comes from the merged card */ }
.merged-sub.hidden { display: none !important; }

.merged-sub-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.merged-sub-divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0 20px;
}

/* ── Risk Breakdown: radar left + narrative right ── */
.risk-breakdown-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.risk-breakdown-radar {
  flex: 0 0 auto;
  min-width: 0;
}
.risk-breakdown-narrative {
  flex: 1;
  min-width: 260px;
  padding-left: 4px;
}
.risk-breakdown-narrative .merged-sub-header {
  margin-bottom: 12px;
}

/* Ad Preview — real Playwright snapshot */
.ad-snapshot-img-wrap { line-height: 0; }
.ad-snapshot-img {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
}
.ad-snapshot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  border-radius: 0 0 10px 10px;
}
.ad-snapshot-details-link {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.ad-snapshot-details-link:hover { text-decoration: underline; }

/* Status badge */
.fb-ad-status { font-size: 13px; font-weight: 700; }
.fb-ad-status-active   { color: var(--ok); }
.fb-ad-status-inactive { color: var(--text3); }

/* Platform badge size variant */
.platform-badge-sm {
  padding: 3px 8px !important;
  font-size: 11px !important;
}

/* Legacy screenshot class */
.ad-preview-screenshot {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
  object-fit: contain;
}
.ad-preview-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
}
.platform-badge-facebook {
  background: rgba(24,119,242,.15);
  color: #93c5fd;
  border-color: rgba(24,119,242,.3);
}
.platform-badge-instagram {
  background: rgba(193,53,132,.15);
  color: #f9a8d4;
  border-color: rgba(193,53,132,.3);
}
.platform-badge-messenger {
  background: rgba(98,0,234,.15);
  color: #c4b5fd;
  border-color: rgba(98,0,234,.3);
}
.platform-badge-whatsapp {
  background: rgba(37,211,102,.12);
  color: #86efac;
  border-color: rgba(37,211,102,.25);
}
.platform-badge-audience {
  background: var(--surface2);
  color: var(--text2);
  border-color: var(--border);
}

/* Categories */
.categories-list { display: flex; flex-direction: column; gap: 14px; }
.category-row { display: flex; align-items: center; gap: 14px; }
.category-name { font-size: 13.5px; color: var(--text2); width: 160px; flex-shrink: 0; }
.category-bar-wrap { flex: 1; }
.category-bar { height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.category-fill { height: 100%; border-radius: 4px; transition: width 1s cubic-bezier(.4,0,.2,1); }
.fill-red    { background: var(--danger); }
.fill-yellow { background: var(--warn); }
.fill-green  { background: var(--ok); }
.fill-blue   { background: var(--accent); }
.category-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.category-label { font-size: 11px; color: var(--text3); }
.category-pct   { font-size: 12px; font-weight: 700; width: 36px; text-align: right; }

/* Violations */
.violations-list { display: flex; flex-direction: column; gap: 10px; }
.no-violations {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--ok-lt);
  border-radius: 10px;
  color: #6ee7b7;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(16,185,129,.2);
}
.violation-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface2);
}
.violation-item.critical { border-color: rgba(239,68,68,.35); }
.violation-item.high     { border-color: rgba(245,158,11,.35); }
.violation-item.medium   { border-color: var(--border); }

.violation-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.violation-header:hover { background: rgba(255,255,255,.03); }
.severity-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.badge-critical { background: var(--danger-lt); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.badge-high     { background: var(--warn-lt); color: #fcd34d; border: 1px solid rgba(245,158,11,.25); }
.badge-medium   { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }

.violation-title { flex: 1; }
.violation-category { font-size: 13.5px; font-weight: 600; color: var(--text); }
.violation-desc     { font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.violation-chevron { color: var(--text3); font-size: 12px; margin-top: 2px; transition: transform .2s; }
.violation-item.expanded .violation-chevron { transform: rotate(180deg); }

.violation-body {
  display: none;
  padding: 0 18px 16px;
  border-top: 1px solid var(--border);
}
.violation-item.expanded .violation-body { display: block; padding-top: 16px; }
.violation-field { margin-bottom: 10px; }
.violation-field:last-child { margin-bottom: 0; }
.field-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text3); margin-bottom: 3px;
}
.field-value { font-size: 13px; color: var(--text2); line-height: 1.5; }
.field-policy { font-size: 12px; color: var(--accent); font-family: monospace; }
.field-match  {
  font-size: 12px; color: #fca5a5; font-family: monospace;
  background: var(--danger-lt); padding: 2px 6px; border-radius: 4px;
}
.fix-box {
  background: var(--accent-lt);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #93c5fd;
  line-height: 1.5;
  border: 1px solid rgba(59,130,246,.2);
}

/* Signals */
.signals-list { display: flex; flex-wrap: wrap; gap: 8px; }
.signal-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.signal-red    { background: var(--danger-lt); color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }
.signal-yellow { background: var(--warn-lt);   color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }
.signal-green  { background: var(--ok-lt);     color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }

/* Domain details */
.domain-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.domain-section-label {
  grid-column: 1/-1;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--accent);
  margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border);
}
.domain-section-label:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.domain-kv-wide { grid-column: 1/-1; }
.domain-val-sm  { font-size: 13px; font-weight: 500; word-break: break-word; }
.domain-kv {
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.domain-key {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text3); margin-bottom: 5px;
}
.domain-val { font-size: 14.5px; font-weight: 600; color: var(--text); }

/* LLM badge */
.llm-badge {
  text-align: center;
  font-size: 12px;
  color: #a5b4fc;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.2);
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 0;
  font-weight: 500;
}

/* Bottom actions */
.bottom-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ── Platform Intelligence ──────────────────── */
.ad-preview {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.ad-preview-platform {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text3);
  margin-bottom: 8px;
}
.ad-preview-advertiser { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.ad-preview-headline   { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.ad-preview-body       { font-size: 13.5px; color: var(--text2); line-height: 1.55; margin-bottom: 8px; }
.ad-preview-url        { font-size: 12px; color: var(--ok); }
.ad-preview-snap       { margin-top: 10px; }
.ad-preview-snap a     { font-size: 12.5px; color: var(--accent); }

.platform-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.pkv {
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}
.pkv-key { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 5px; }
.pkv-val { font-size: 15px; font-weight: 700; color: var(--text); }
.pkv-val.spend     { color: var(--accent); }
.pkv-val.active    { color: var(--ok); }
.pkv-val.stopped   { color: var(--danger); }

/* Demographic mini-bar chart */
.demo-chart { margin-top: 10px; }
.demo-title { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.demo-row   { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.demo-label { width: 90px; color: var(--text2); flex-shrink: 0; }
.demo-bar   { flex: 1; height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.demo-fill  { height: 100%; border-radius: 3px; background: var(--accent); transition: width .8s ease; }
.demo-pct   { width: 36px; text-align: right; color: var(--text2); font-weight: 600; }

/* ── Enhanced Platform Intelligence ────────────── */
.platform-name-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-lt); color: var(--accent);
  border-radius: 20px; padding: 3px 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid rgba(59,130,246,.2);
}
.platform-advertiser {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin: 12px 0 4px;
}
.platform-meta-line {
  font-size: 13px; color: var(--text2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.verified-badge {
  display: inline-block; background: var(--ok-lt); color: #6ee7b7;
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; border: 1px solid rgba(16,185,129,.25);
}

/* Page screenshot */
.platform-page-screenshot {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  margin-bottom: 20px; display: block;
}

/* Ad gallery */
.ad-gallery-label {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.ad-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px; margin-bottom: 22px;
}

/* Per-ad card */
.ad-item-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ad-item-card:hover { border-color: var(--border2); box-shadow: 0 4px 20px rgba(0,0,0,.4); }
.ad-item-screenshot {
  width: 100%; max-height: 240px;
  object-fit: cover; object-position: top;
  display: block; border-bottom: 1px solid var(--border);
}
.ad-item-images {
  display: flex; gap: 4px; padding: 8px 8px 0; flex-wrap: wrap;
}
.ad-item-img-thumb {
  height: 60px; width: auto; max-width: 100px;
  object-fit: cover; border-radius: 6px; border: 1px solid var(--border);
}
.ad-item-body { padding: 14px 16px 12px; }
.ad-item-badges { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.ad-item-status {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .05em;
}
.ad-type-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 2px 9px; border-radius: 10px;
  background: var(--accent-lt); color: var(--accent);
  border: 1px solid rgba(59,130,246,.2);
}
.status-active   { background: var(--ok-lt); color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }
.status-inactive { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.status-unknown  { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.ad-item-headline {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
}
.ad-item-text {
  font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-item-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.ad-meta-chip {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 10px;
  background: var(--surface); color: var(--text2); border: 1px solid var(--border);
}
.ad-meta-chip.cta  { background: var(--accent-lt); color: var(--accent); border-color: rgba(59,130,246,.2); }
.ad-meta-chip.date { color: var(--text3); }

/* Ad detail table */
.ad-detail-table {
  width: 100%; border-collapse: collapse;
  margin: 10px 14px 0; width: calc(100% - 28px);
  font-size: 12.5px;
}
.ad-detail-table tr { border-top: 1px solid var(--border); }
.ad-detail-key {
  padding: 6px 8px 6px 0; color: var(--text2);
  font-weight: 600; white-space: nowrap; width: 110px; vertical-align: top;
}
.ad-detail-val { padding: 6px 0; color: var(--text); word-break: break-word; }
.ad-detail-link { color: var(--accent); text-decoration: none; }
.ad-detail-link:hover { text-decoration: underline; }
.val-green { color: var(--ok); font-weight: 600; }
.ad-snapshot-link {
  padding: 8px 14px 12px; font-size: 12.5px; border-top: 1px solid var(--border); margin-top: 4px;
}
.ad-snapshot-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.ad-snapshot-link a:hover { text-decoration: underline; }

/* Ad body text */
.ad-item-body-text {
  font-size: 13px; color: var(--text2); line-height: 1.55;
  padding: 10px 14px 8px;
  border-top: 1px solid var(--border);
  white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

/* Detail table section headers */
.ad-detail-section-row { background: rgba(255,255,255,.03); }
.ad-detail-section {
  padding: 7px 8px 5px 0; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--accent);
}

/* Wider key column */
.ad-detail-key { width: 170px !important; font-size: 11.5px !important; }
.ad-detail-val.wrap-val { white-space: pre-wrap; }
.field-empty { color: var(--text3); }

/* Extracted images gallery */
.ad-extracted-images {
  padding: 10px 14px 12px; border-top: 1px solid var(--border); margin-top: 4px;
}
.ad-gallery-sublabel {
  font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px;
}
.ad-gallery-img {
  max-width: 100%; border-radius: 6px; border: 1px solid var(--border);
  object-fit: cover; margin-right: 6px; margin-bottom: 6px;
  max-height: 120px; display: inline-block;
}
.landing-url-row {
  font-size: 12.5px; color: var(--accent); margin-bottom: 4px;
  word-break: break-all;
}
.landing-url-row a { color: var(--accent); text-decoration: none; }
.landing-url-row a:hover { text-decoration: underline; }

/* Intel KV grid */
.intel-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px; margin-top: 16px;
}
.intel-kv {
  background: var(--surface2); border-radius: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
}
.intel-kv-key {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text3); margin-bottom: 5px;
}
.intel-kv-val { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-word; }
.intel-kv-val.highlight { color: var(--accent); }
.intel-kv-val.active    { color: var(--ok); }
.intel-kv-val.warning   { color: var(--warn); }

/* Section divider */
.intel-section-label {
  font-size: 11px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 18px 0 8px; border-top: 1px solid var(--border); padding-top: 14px;
}

/* ── Perplexity LLM step tag ──────────── */
.llm-tag {
  display: inline-block;
  font-size: 9.5px; font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  border-radius: 4px; padding: 1px 5px;
  margin-left: 6px; vertical-align: middle;
  letter-spacing: .04em;
}

/* ── LLM Reasoning card ───────────────── */
.llm-reasoning-text {
  font-size: 14.5px; line-height: 1.7;
  color: var(--text2); margin-bottom: 14px;
}
.llm-top-concerns { display: flex; flex-wrap: wrap; gap: 8px; }
.concern-pill {
  background: var(--warn-lt);
  border: 1px solid rgba(245,158,11,.25);
  color: #fcd34d;
  border-radius: 20px;
  font-size: 12.5px; padding: 5px 14px;
  font-weight: 500;
}

/* ── Signal divider ───────────────────── */
.signal-divider {
  font-size: 10px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 12px 0 6px; width: 100%;
}

/* ══════════════════════════════════════════
   AD INTELLIGENCE CARD
══════════════════════════════════════════ */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.intel-item {
  background: var(--surface2);
  border-radius: 10px; padding: 14px 16px;
  border: 1px solid var(--border);
}
.intel-item.intel-wide { grid-column: span 2; }
.intel-item.intel-full { grid-column: span 4; }
.intel-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text3); margin-bottom: 6px;
}
.intel-value { font-size: 13.5px; color: var(--text2); line-height: 1.55; }
.intel-value.big { font-size: 16px; font-weight: 700; color: var(--accent); }

/* ══════════════════════════════════════════
   RADAR CHART
══════════════════════════════════════════ */
.radar-layout {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.radar-chart-wrap {
  flex-shrink: 0;
  background: var(--surface2); border-radius: 14px;
  border: 1px solid var(--border);
  padding: 8px; display: flex; align-items: center; justify-content: center;
}
#radar-canvas { display: block; max-width: 100%; height: auto; }
.radar-dimensions { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.radar-dim-row { display: flex; align-items: center; gap: 12px; }
.radar-dim-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.radar-dim-name { font-size: 13px; color: var(--text2); flex: 1; font-weight: 500; }
.radar-dim-bar { flex: 1; height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.radar-dim-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.radar-dim-score { font-size: 13px; font-weight: 700; width: 32px; text-align: right; }

/* ══════════════════════════════════════════
   COMPLIANCE SCORECARD
══════════════════════════════════════════ */
.compliance-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comp-row { display: flex; align-items: center; gap: 12px; }
.comp-label { font-size: 13px; color: var(--text2); width: 170px; flex-shrink: 0; font-weight: 500; }
.comp-bar-wrap { flex: 1; }
.comp-bar { height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.comp-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.comp-score { font-size: 13px; font-weight: 700; width: 40px; text-align: right; }
.comp-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .04em;
}
.comp-badge.pass { background: var(--ok-lt); color: #6ee7b7; border: 1px solid rgba(16,185,129,.2); }
.comp-badge.warn { background: var(--warn-lt); color: #fcd34d; border: 1px solid rgba(245,158,11,.2); }
.comp-badge.fail { background: var(--danger-lt); color: #fca5a5; border: 1px solid rgba(239,68,68,.2); }

/* ══════════════════════════════════════════
   BRAND LEGITIMACY
══════════════════════════════════════════ */
.brand-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.brand-meter-wrap { flex: 1; min-width: 200px; }
.brand-meter-label { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.brand-meter-bar {
  height: 10px; background: var(--surface2); border-radius: 5px; overflow: hidden; margin-bottom: 6px;
  border: 1px solid var(--border);
}
.brand-meter-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--danger) 0%, var(--warn) 50%, var(--ok) 100%);
  transition: width 1.2s ease;
}
.brand-meter-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--text3); }
.brand-signals { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; }
.brand-signal-item {
  font-size: 13px; color: var(--text2); padding: 8px 12px;
  background: var(--surface2); border-radius: 8px;
  border-left: 3px solid var(--accent); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.brand-assessment {
  font-size: 14px; color: var(--text2); background: var(--surface2);
  border-radius: 10px; padding: 14px 16px; line-height: 1.6;
  border-left: 3px solid var(--border2);
  font-style: italic;
}

/* ══════════════════════════════════════════
   CLAIMS ANALYSIS
══════════════════════════════════════════ */
.claims-table { display: flex; flex-direction: column; gap: 10px; }
.claim-row {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface2);
}
.claim-row.risk-high   { border-color: rgba(239,68,68,.3); }
.claim-row.risk-medium { border-color: rgba(245,158,11,.3); }
.claim-row.risk-low    { border-color: var(--border); }
.claim-top {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: rgba(255,255,255,.025);
}
.claim-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.claim-text { flex: 1; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.claim-badges { display: flex; gap: 6px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.claim-risk {
  font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .05em;
}
.risk-high   .claim-risk { background: var(--danger-lt); color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.risk-medium .claim-risk { background: var(--warn-lt); color: #fcd34d; border: 1px solid rgba(245,158,11,.25); }
.risk-low    .claim-risk { background: var(--ok-lt); color: #6ee7b7; border: 1px solid rgba(16,185,129,.25); }
.verifiable-badge {
  font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 10px;
  background: var(--surface); color: var(--text2); border: 1px solid var(--border);
}
.claim-explanation { padding: 10px 16px; font-size: 13px; color: var(--text2); line-height: 1.55; }

/* ══════════════════════════════════════════
   MANIPULATION TACTICS
══════════════════════════════════════════ */
.tactics-list { display: flex; flex-direction: column; gap: 10px; }
.tactic-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface2);
}
.tactic-row.sev-high   { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.04); }
.tactic-row.sev-medium { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.04); }
.tactic-row.sev-low    { border-color: var(--border); }
.tactic-badge {
  flex-shrink: 0; padding: 4px 10px; border-radius: 8px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px;
}
.tactic-row.sev-high   .tactic-badge { background: var(--danger-lt); color: #fca5a5; }
.tactic-row.sev-medium .tactic-badge { background: var(--warn-lt); color: #fcd34d; }
.tactic-row.sev-low    .tactic-badge { background: var(--surface); color: var(--text2); }
.tactic-content { flex: 1; }
.tactic-name { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.tactic-evidence {
  font-size: 13px; color: var(--text2); line-height: 1.5;
  font-style: italic; border-left: 3px solid var(--border2); padding-left: 10px;
}

/* ══════════════════════════════════════════
   AUDIENCE RISK
══════════════════════════════════════════ */
.audience-content {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.audience-score-wrap { flex-shrink: 0; text-align: center; }
.audience-score-num {
  font-size: 44px; font-weight: 800; line-height: 1;
}
.audience-score-wrap.risk-high   .audience-score-num { color: #fca5a5; }
.audience-score-wrap.risk-medium .audience-score-num { color: #fcd34d; }
.audience-score-wrap.risk-low    .audience-score-num { color: #6ee7b7; }
.audience-score-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.audience-desc {
  flex: 1; font-size: 14px; color: var(--text2); line-height: 1.6;
  background: var(--surface2); border-radius: 10px; padding: 14px 16px;
  border: 1px solid var(--border);
}
.vulnerable-tag {
  display: inline-block; margin-top: 8px;
  background: var(--danger-lt); color: #fca5a5;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid rgba(239,68,68,.25);
}

/* ══════════════════════════════════════════
   RED FLAGS / POSITIVE SIGNALS
══════════════════════════════════════════ */
.flags-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.flags-col { border-radius: 12px; padding: 16px 18px; }
.flags-red   { background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.2); }
.flags-green { background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2); }
.flags-header { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; color: var(--text2); }
.flags-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.flags-list li {
  font-size: 13.5px; color: var(--text2); padding: 8px 12px;
  background: rgba(255,255,255,.04); border-radius: 8px; line-height: 1.4;
}
.flags-col.flags-red   li { border-left: 3px solid rgba(239,68,68,.5); }
.flags-col.flags-green li { border-left: 3px solid rgba(16,185,129,.5); }
.flags-empty { font-size: 13px; color: var(--text3); font-style: italic; }

/* ══════════════════════════════════════════
   VISUAL ANALYSIS CARD
══════════════════════════════════════════ */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.visual-meta-item {
  background: var(--surface2); border-radius: 10px; padding: 12px 14px;
  border: 1px solid var(--border);
}
.visual-meta-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text3); margin-bottom: 5px;
}
.visual-meta-value { font-size: 14px; font-weight: 600; color: var(--text); }
.visual-meta-item.full { grid-column: span 4; }
.visual-colors { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); flex-shrink: 0;
}
.color-name { font-size: 12.5px; color: var(--text2); }
.visual-flags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.visual-flag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 14px;
  font-size: 12.5px; font-weight: 500;
  background: var(--danger-lt); color: #fca5a5;
  border: 1px solid rgba(239,68,68,.25);
}
.visual-summary {
  font-size: 14px; color: var(--text2); line-height: 1.6;
  background: var(--surface2); border-radius: 10px; padding: 14px 16px;
  border-left: 3px solid var(--accent); margin-top: 12px; font-style: italic;
}
.quality-bar-wrap { margin-top: 8px; }
.quality-bar { height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.quality-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }

/* ══════════════════════════════════════════
   COPY INTELLIGENCE CARD
══════════════════════════════════════════ */
.copy-scores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.copy-score-item {
  background: var(--surface2); border-radius: 10px;
  padding: 12px 14px; border: 1px solid var(--border);
}
.copy-score-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text3); margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.copy-score-val { font-weight: 800; }
.copy-score-bar { height: 5px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.copy-score-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.copy-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.copy-meta-item {
  background: var(--surface2); border-radius: 10px; padding: 10px 14px;
  border: 1px solid var(--border);
}
.copy-meta-key { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 4px; }
.copy-meta-val { font-size: 14px; font-weight: 600; color: var(--text); }
.copy-tactics { display: flex; flex-wrap: wrap; gap: 7px; }
.copy-tactic-pill {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 14px;
  font-size: 12.5px; font-weight: 500;
  background: var(--warn-lt); color: #fcd34d;
  border: 1px solid rgba(245,158,11,.25);
}

/* ══════════════════════════════════════════
   WEB REPUTATION CARD
══════════════════════════════════════════ */
.web-intel-layout {
  display: grid; grid-template-columns: auto 1fr;
  gap: 20px; align-items: start; margin-bottom: 16px;
}
.web-rep-score-wrap { text-align: center; }
.web-rep-score-num { font-size: 48px; font-weight: 800; line-height: 1; }
.web-rep-score-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.web-rep-high   .web-rep-score-num { color: #6ee7b7; }
.web-rep-medium .web-rep-score-num { color: #fcd34d; }
.web-rep-low    .web-rep-score-num { color: #fca5a5; }
.web-intel-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.web-intel-item {
  background: var(--surface2); border-radius: 10px;
  padding: 10px 14px; border: 1px solid var(--border);
}
.web-intel-key { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 4px; }
.web-intel-val { font-size: 13.5px; font-weight: 600; color: var(--text); }
.web-intel-item.full { grid-column: span 2; }
.reg-flags-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.reg-flag-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--danger-lt); color: #fca5a5;
  font-size: 13px; font-weight: 500;
  border-left: 3px solid var(--danger);
}

/* ══════════════════════════════════════════
   CAMPAIGN STRUCTURE CARD
══════════════════════════════════════════ */
.structural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.struct-item {
  background: var(--surface2); border-radius: 12px;
  padding: 16px; text-align: center;
  border: 1px solid var(--border);
}
.struct-value {
  font-size: 30px; font-weight: 800; color: var(--text);
  line-height: 1; margin-bottom: 6px;
}
.struct-value.good    { color: #6ee7b7; }
.struct-value.warning { color: #fcd34d; }
.struct-value.bad     { color: #fca5a5; }
.struct-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text3);
}
.struct-sub { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ══════════════════════════════════════════
   VIEW 4: HISTORY
══════════════════════════════════════════ */
#view-history {
  background: var(--bg);
  min-height: calc(100vh - 64px);
}
.history-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.history-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
}
.clear-history-btn {
  background: none;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, color .15s, border-color .15s;
}
.clear-history-btn:hover {
  background: var(--danger-lt);
  color: #fca5a5;
  border-color: rgba(239,68,68,.3);
}

/* Empty state */
.history-empty {
  text-align: center;
  padding: 100px 24px;
}
.history-empty-icon { font-size: 52px; margin-bottom: 18px; }
.history-empty-text { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.history-empty-sub  { font-size: 14px; color: var(--text3); }

/* List */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s, background .15s;
}
.history-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  border-color: var(--accent);
  background: var(--surface2);
}

/* Verdict column */
.history-item-verdict {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.history-item-verdict.green  { background: var(--ok-lt); border-color: rgba(16,185,129,.25); }
.history-item-verdict.yellow { background: var(--warn-lt); border-color: rgba(245,158,11,.25); }
.history-item-verdict.red    { background: var(--danger-lt); border-color: rgba(239,68,68,.25); }
.history-verdict-icon  { font-size: 22px; line-height: 1; }
.history-verdict-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text3);
}
.history-item-verdict.green  .history-verdict-label { color: #6ee7b7; }
.history-item-verdict.yellow .history-verdict-label { color: #fcd34d; }
.history-item-verdict.red    .history-verdict-label { color: #fca5a5; }

/* Main info */
.history-item-main { flex: 1; min-width: 0; }
.history-item-advertiser {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-item-url {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* Risk score */
.history-item-meta { text-align: center; min-width: 48px; }
.history-score {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--text3);
  letter-spacing: -1px;
}
.history-score.score-high   { color: #fca5a5; }
.history-score.score-medium { color: #fcd34d; }
.history-score.score-low    { color: #6ee7b7; }
.history-score-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text3);
  margin-top: 2px;
}

/* Timestamp */
.history-item-time { text-align: right; min-width: 90px; }
.history-date { font-size: 12.5px; font-weight: 500; color: var(--text2); }
.history-time { font-size: 11.5px; color: var(--text3); margin-top: 2px; }

/* Arrow */
.history-item-arrow {
  font-size: 20px;
  color: var(--text3);
  transition: color .15s;
}
.history-item:hover .history-item-arrow { color: var(--accent); }

/* Nav badge */
.history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 44px; }
  .results-container { grid-template-columns: 1fr; padding: 20px 16px 60px; }
  .results-container > * { grid-column: span 1 !important; }
  .stats-row { gap: 20px; padding: 20px; }
  .stat-num { font-size: 22px; }
  .nav-inner { padding: 0 20px; }
  .intel-grid { grid-template-columns: 1fr 1fr; }
  .intel-item.intel-full { grid-column: span 2; }
  .visual-grid { grid-template-columns: 1fr 1fr; }
  .visual-meta-item.full { grid-column: span 2; }
  .compliance-bars { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 36px; }
  .hero { padding: 72px 20px 48px; }
  .verdict-card { flex-direction: column; text-align: center; }
  .verdict-left { flex-direction: column; }
  .stats-row { gap: 16px; }
  .stat-num { font-size: 20px; }
  .domain-details { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .intel-grid { grid-template-columns: 1fr; }
  .intel-item.intel-wide { grid-column: span 1; }
  .intel-item.intel-full { grid-column: span 1; }
  .visual-grid { grid-template-columns: 1fr; }
  .visual-meta-item.full { grid-column: span 1; }
  .compliance-bars { grid-template-columns: 1fr; }
  .radar-layout { flex-direction: column; align-items: center; }
  .radar-chart-wrap canvas { max-width: calc(100vw - 64px); height: auto !important; }
  .flags-grid { grid-template-columns: 1fr; }
  .audience-content { flex-direction: column; }
  .comp-label { width: 120px; font-size: 12px; }
  .brand-layout { flex-direction: column; }
  .input-card { padding: 20px; border-radius: 16px; }
  .pitch-stats { grid-template-columns: 1fr; }
  .mkt-title { font-size: 22px; }
}

/* ══════════════════════════════════════════════════════════════
   ADSCANNER MARKETING SECTIONS — appended additions only
══════════════════════════════════════════════════════════════ */

/* ── Navbar additions ──────────────────────────────────────── */
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.soon-pill {
  display: inline-block;
  background: rgba(245,158,11,.18);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245,158,11,.3);
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.6;
}

.nav-cta-btn {
  margin-left: 12px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .2s, transform .15s;
  box-shadow: 0 2px 12px rgba(59,130,246,.35);
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.nav-cta-btn:hover {
  box-shadow: 0 4px 20px rgba(59,130,246,.55);
  transform: translateY(-1px);
}

/* ── Upcoming badge on tab ─────────────────────────────────── */
.upcoming-badge {
  display: inline-block;
  background: rgba(249,115,22,.18);
  color: #fb923c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(249,115,22,.28);
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1.6;
}

/* ── Waitlist card (Bulk Upload upcoming state) ─────────────── */
.waitlist-card {
  text-align: center;
  padding: 40px 24px 32px;
  background: var(--surface2);
  border: 2px dashed var(--border2);
  border-radius: 12px;
  margin-bottom: 10px;
}
.waitlist-card-icon { font-size: 36px; margin-bottom: 12px; }
.waitlist-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.waitlist-card-desc {
  font-size: 13.5px;
  color: var(--text2);
  margin-bottom: 22px;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.waitlist-card-form {
  display: flex;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}
.waitlist-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-input::placeholder { color: var(--text3); }
.waitlist-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow .2s;
}
.waitlist-btn:hover { box-shadow: 0 3px 14px rgba(59,130,246,.45); }
.waitlist-thanks {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ok);
  font-weight: 600;
}

/* ── API Coming Soon Modal ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.hidden { display: none !important; }
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 14px;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1.6;
  font-family: var(--font);
}
.modal-close:hover { color: var(--text); background: var(--border); }
.modal-icon { font-size: 36px; margin-bottom: 16px; }
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -.03em;
}
.modal-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 18px;
}
.modal-features {
  list-style: none;
  margin-bottom: 22px;
}
.modal-features li {
  font-size: 13px;
  color: var(--text2);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.modal-features li:last-child { border-bottom: none; }
.modal-waitlist {
  display: flex;
  gap: 10px;
}

/* ── #view-input overflow fix for marketing sections ─────── */
#view-input { overflow: visible; }

/* ── Marketing section shared structure ─────────────────── */
.section-outer {
  width: 100%;
  position: relative;
  z-index: 1;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.mkt-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Features Section ────────────────────────────────────── */
.features-section {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(15,21,35,.6) 100%);
  border-top: 1px solid var(--border);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(59,130,246,.12);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.feature-desc {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── How It Works Section ───────────────────────────────── */
.how-section {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.how-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.how-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
}
.how-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.how-step-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}
.how-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
  flex-shrink: 0;
  width: 60px;
}
.how-connector-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: .5;
  border-radius: 1px;
}
.how-connector-arrow {
  font-size: 20px;
  color: var(--accent);
  opacity: .6;
  margin-top: 2px;
  display: none;
}

/* ── Pitch / Enterprise Section ─────────────────────────── */
.pitch-section {
  padding: 96px 0;
  background: var(--bg);
}
.pitch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}
.pitch-headline {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin-bottom: 24px;
}
.pitch-body {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 18px;
}
.pitch-body:last-of-type { margin-bottom: 28px; }
.pitch-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
  transition: box-shadow .2s, transform .15s;
  letter-spacing: -.01em;
}
.pitch-cta:hover {
  box-shadow: 0 6px 28px rgba(59,130,246,.6);
  transform: translateY(-1px);
}

.pitch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pitch-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}
.pitch-stat-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pitch-stat-label {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
}

/* Use cases row */
.usecase-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color .2s, transform .2s;
}
.usecase-card:hover {
  border-color: rgba(99,102,241,.4);
  transform: translateY(-2px);
}
.usecase-icon { font-size: 24px; margin-bottom: 12px; display: block; }
.usecase-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.usecase-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-section {
  padding: 0 0 80px;
  background: var(--bg);
}
.cta-banner {
  background: linear-gradient(135deg, rgba(59,130,246,.12) 0%, rgba(99,102,241,.12) 100%);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
}
.cta-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-desc {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 28px;
  line-height: 1.6;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(59,130,246,.45);
  transition: box-shadow .2s, transform .15s;
  letter-spacing: -.01em;
}
.cta-btn:hover {
  box-shadow: 0 6px 32px rgba(59,130,246,.65);
  transform: translateY(-1px);
}

/* ── Site Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 12px;
}
.footer-logo-icon { font-size: 20px; }
.footer-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  max-width: 240px;
}
.footer-links {
  display: flex;
  gap: 40px;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}
.footer-link {
  font-size: 13.5px;
  color: var(--text2);
  text-decoration: none;
  transition: color .15s;
}
.footer-link:hover { color: var(--text); }
.footer-contact {}
.footer-email {
  display: block;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 4px;
  word-break: break-all;
}
.footer-email:hover { text-decoration: underline; }
.footer-contact-desc {
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid var(--border);
}
.footer-bottom-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12.5px;
  color: var(--text3);
}
.footer-copy-links {
  font-size: 12.5px;
  color: var(--text3);
}
.footer-copy-links a {
  color: var(--text3);
  text-decoration: none;
}
.footer-copy-links a:hover { color: var(--text2); }

/* ── Legal page shared styles ─────────────────────────────── */
.legal-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 72px 32px 100px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color .15s;
}
.legal-back:hover { color: var(--accent); }
.legal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.legal-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.legal-meta {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 48px;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.02em;
}
.legal-section p {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section ul {
  margin: 8px 0 12px 20px;
}
.legal-section ul li {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 6px;
}
.legal-contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 12px;
}
.legal-contact-box a {
  color: var(--accent);
  text-decoration: none;
}
.legal-contact-box a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 40px;
  }
  .hero {
    padding: 64px 32px 52px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 56px 24px 48px;
  }
  .hero-right {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pitch-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pitch-stats {
    grid-template-columns: 1fr 1fr;
  }
  .usecase-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .nav-cta-btn { display: none; }
  .nav-divider { display: none; }
  .hero-right { display: none; }
  .hero {
    padding: 48px 20px 40px;
  }
  .hero-left { align-items: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps {
    flex-direction: column;
    gap: 32px;
  }
  .how-connector { display: none; }
  .usecase-row { grid-template-columns: 1fr; }
  .pitch-stats { grid-template-columns: 1fr 1fr; }
  .mkt-title { font-size: 28px; }
  .pitch-headline { font-size: 26px; }
  .cta-banner { padding: 36px 24px; }
  .cta-title { font-size: 24px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .legal-title { font-size: 28px; }
  .hero-title { font-size: 44px; }
  .waitlist-card-form { flex-direction: column; }
  .modal-waitlist { flex-direction: column; }
}

/* ── Mobile hamburger nav ──────────────────────────────────── */
.nav-burger {
  display: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
  padding: 6px 12px;
  cursor: pointer;
  line-height: 1.4;
  margin-left: 8px;
  flex-shrink: 0;
}

@media (max-width: 680px) {
  .nav-burger { display: flex; align-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(8,12,20,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    z-index: 200;
  }
  .nav-links.mobile-open {
    display: flex;
  }
  .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
  }
}

/* ── Hero card expansion (Task #57) ────────────────────────── */

/* hero-right sits at the top of the two-column grid */
.hero-right { align-self: start; }

/* Section divider blocks inside .hv-body */
.hv-section {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.hv-section-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

/* Risk Dimensions grid */
.hv-dims {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 10px;
}
.hv-dim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
}
.hv-dim-label {
  font-size: 10px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.hv-dim-score {
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-left: 6px;
  letter-spacing: -.3px;
}
.hv-score-high { color: #fca5a5; }
.hv-score-med  { color: #fcd34d; }
.hv-score-low  { color: #6ee7b7; }

/* Ad Intelligence pills */
.hv-intel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hv-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(59,130,246,.1);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.2);
  white-space: nowrap;
}
.hv-pill-warn {
  background: rgba(245,158,11,.1);
  color: #fcd34d;
  border-color: rgba(245,158,11,.2);
}

/* Extended signal animation delays for rows 6–8 */
.hv-signal:nth-child(6) { animation-delay: 1.5s;  }
.hv-signal:nth-child(7) { animation-delay: 1.75s; }
.hv-signal:nth-child(8) { animation-delay: 2.0s;  }
