/* ==========================================================================
   ROOT VARIABLES — Light Theme (default, matches landing page)
   ========================================================================== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --border: rgba(128, 128, 128, 0.18);
  --border-hover: rgba(128, 128, 128, 0.32);
  --text-primary: #1f2937;
  --text-secondary: #59657a;
  --text-muted: #9ca3af;
  --accent: #225be3;
  --accent-hover: #1d4fd8;
  --accent-light: rgba(34, 91, 227, 0.08);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.08);
  --green-border: rgba(16, 185, 129, 0.25);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.06);
  --red-border: rgba(239, 68, 68, 0.2);
  --orange: #f59e0b;
  --orange-bg: rgba(245, 158, 11, 0.08);
  --orange-border: rgba(245, 158, 11, 0.25);
  --blue-bg: rgba(34, 91, 227, 0.06);
  --blue-border: rgba(34, 91, 227, 0.2);
  --purple: #7c3aed;
  --purple-bg: rgba(124, 58, 237, 0.06);
  --purple-border: rgba(124, 58, 237, 0.2);
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.04), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 4px 16px rgba(16, 24, 40, 0.08), 0 0 0 1px var(--border-hover);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --topnav-h: 76px;
  --transition: 0.2s ease;
}

/* ==========================================================================
   DARK MODE — activated via body.light (JS toggle)
   ========================================================================== */
body.light {
  --bg-primary: #0a0a12;
  --bg-secondary: #101019;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text-primary: #f0f4f8;
  --text-secondary: #8b97a8;
  --text-muted: #5a6577;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99, 102, 241, 0.1);
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.1);
  --green-border: rgba(16, 185, 129, 0.2);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.1);
  --red-border: rgba(239, 68, 68, 0.2);
  --orange: #f59e0b;
  --orange-bg: rgba(245, 158, 11, 0.1);
  --orange-border: rgba(245, 158, 11, 0.2);
  --blue-bg: rgba(99, 102, 241, 0.1);
  --blue-border: rgba(99, 102, 241, 0.2);
  --purple: #8b5cf6;
  --purple-bg: rgba(139, 92, 246, 0.1);
  --purple-border: rgba(139, 92, 246, 0.2);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--border-hover);
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 76px;
}

button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
svg { display: inline-block; vertical-align: middle; }

/* ==========================================================================
   NAVBAR — dark mode variants only (base styles from style.css)
   ========================================================================== */
body.light .navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

body.light .nav-title {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light .nav-links a.active { color: #6366f1; }

body.light .nav-links a.active::after {
  background: #6366f1;
}

body.light .nav-links a:hover { color: #818cf8; }

body.light .nav-signup-button {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
}

/* Theme toggle (dashboard-only) */
.nav-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.nav-theme-toggle:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
body.light .nav-theme-toggle:hover { background: rgba(255,255,255,0.06); }

.theme-icon-dark { display: none; }
body.light .theme-icon-light { display: none; }
body.light .theme-icon-dark { display: inline-block; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(34, 91, 227, 0.06) 0%, rgba(34, 91, 227, 0.02) 40%, transparent 65%);
  pointer-events: none;
}

body.light .hero-bg-glow {
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.03) 35%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 28px;
}
.hero-badge svg { width: 13px; height: 13px; }

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ==========================================================================
   UPLOAD CARD
   ========================================================================== */
.upload-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.upload-dropzone {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
}

.upload-dropzone.drag-over {
  background: var(--accent-light);
  border-color: var(--accent);
}

.upload-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.light .upload-icon-wrap {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}
.upload-icon-wrap svg { width: 22px; height: 22px; color: #fff; }

.upload-main-text { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.upload-sub-text { font-size: 12px; color: var(--text-muted); margin-top: -8px; }

.upload-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
body.light .upload-browse-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.upload-browse-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.upload-browse-btn svg { width: 15px; height: 15px; }

.upload-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 180px;
}
.upload-divider::before,
.upload-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--border);
}
.upload-divider span { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.upload-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.upload-paste-btn:hover { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border-hover); }
.upload-paste-btn svg { width: 15px; height: 15px; }

/* Paste Area */
.paste-area { padding: 20px; }
.paste-area textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition);
}
.paste-area textarea:focus { border-color: var(--accent); }
.paste-area textarea::placeholder { color: var(--text-muted); }

.paste-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* Upload Preview */
.upload-preview {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.upload-preview img {
  max-height: 180px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border);
}
.preview-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.btn-analyze { margin-top: 2px; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
body.light .btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary svg { width: 15px; height: 15px; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text-primary); }
.btn-ghost svg { width: 15px; height: 15px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ==========================================================================
   PROCESSING PIPELINE
   ========================================================================== */
.pipeline {
  width: 100%;
  max-width: 440px;
  margin-top: 32px;
}

.pipeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: center;
}

.pipeline-spinner-lg {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}

.pipeline-status-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pipeline-inner { display: flex; flex-direction: column; }

.pipeline-step {
  display: flex;
  align-items: center;
  padding: 7px 0;
  position: relative;
  opacity: 0.25;
  transition: opacity 0.4s ease;
}
.pipeline-step.active { opacity: 1; }
.pipeline-step.complete { opacity: 1; }
.pipeline-step.failed { opacity: 1; }

.step-indicator {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative; z-index: 1;
}

.step-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--border);
  position: absolute;
  top: 0; left: 0;
  transition: all 0.4s ease;
}

.step-spinner {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pipeline-step.active .step-spinner { opacity: 1; animation: spin 0.7s linear infinite; }
.pipeline-step.active .step-dot {
  background: var(--accent-light);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(34, 91, 227, 0.2);
}
body.light .pipeline-step.active .step-dot {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
}

.step-check {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  top: 0; left: 0;
  opacity: 0; transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pipeline-step.complete .step-check { opacity: 1; transform: scale(1); }
.pipeline-step.complete .step-dot { opacity: 0; }

.step-fail {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  top: 0; left: 0;
  opacity: 0; transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pipeline-step.failed .step-fail { opacity: 1; transform: scale(1); }
.pipeline-step.failed .step-dot { opacity: 0; }

.step-line {
  position: absolute;
  left: 10px; top: 22px;
  width: 2px;
  height: calc(100%);
  background: var(--border);
  z-index: 0;
  transition: background 0.4s ease;
}
.pipeline-step.complete .step-line { background: var(--green); }
.pipeline-step.failed .step-line { background: var(--red); }

.step-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 10px;
  transition: color 0.3s ease;
}
.pipeline-step.active .step-content { color: var(--text-primary); }
.pipeline-step.complete .step-content { color: var(--green); }
.pipeline-step.failed .step-content { color: var(--red); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   RESULTS SECTION
   ========================================================================== */
.results-section {
  padding: 28px 32px 48px;
  max-width: 1360px;
  margin-left: auto; margin-right: auto;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-title {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.results-title svg { width: 20px; height: 20px; color: var(--accent); }

/* ==========================================================================
   CARD (shared)
   ========================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-accent-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
body.light .card-accent-bar {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.card-accent-bar--purple {
  background: var(--purple) !important;
}
body.light .card-accent-bar--purple {
  background: linear-gradient(90deg, #7c3aed, #6366f1) !important;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header h3 svg { width: 16px; height: 16px; color: var(--accent); }

.placeholder-text { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   TOP ROW
   ========================================================================== */
.results-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ==========================================================================
   RESULTS GRID
   ========================================================================== */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.results-left,
.results-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   VERDICT CARD
   ========================================================================== */
.verdict-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 8px 0;
}

.verdict-badge {
  padding: 8px 28px;
  border-radius: var(--radius-full);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.verdict-badge.safe {
  background: var(--green-bg);
  border: 2px solid var(--green-border);
  color: var(--green);
}
.verdict-badge.caution {
  background: var(--orange-bg);
  border: 2px solid var(--orange-border);
  color: var(--orange);
}
.verdict-badge.scam {
  background: var(--red-bg);
  border: 2px solid var(--red-border);
  color: var(--red);
}

.verdict-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.score-number {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
body.light .score-number {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.score-total {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.risk-breakdown {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.risk-component {
  display: flex;
  align-items: center;
  gap: 10px;
}
.risk-component-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}
.risk-bar-track {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
  background: var(--green);
}
.risk-bar-fill[data-level="low"] { background: var(--green); }
.risk-bar-fill[data-level="medium"] { background: var(--orange); }
.risk-bar-fill[data-level="high"] { background: var(--red); }
.risk-component-value {
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  text-align: right;
  color: var(--text-secondary);
}

.verdict-meta {
  display: flex;
  gap: 28px;
  margin-top: 4px;
}
.meta-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.meta-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.meta-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* ==========================================================================
   JOB INFO
   ========================================================================== */
.job-info-grid { display: flex; flex-direction: column; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row.full-width { flex-direction: column; gap: 4px; }

.info-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

/* ==========================================================================
   REASONING CARD
   ========================================================================== */
.gemma-badge {
  padding: 3px 10px;
  background: var(--purple-bg);
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.reasoning-body { display: flex; flex-direction: column; }

.reasoning-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.reasoning-row:last-child { border-bottom: none; }
.reasoning-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.reasoning-value { font-size: 13px; font-weight: 700; color: var(--text-primary); }

.reasoning-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.reasoning-section:last-child { border-bottom: none; }
.reasoning-section h4 {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.reasoning-section h4 svg { width: 13px; height: 13px; }

.flag-list { display: flex; flex-direction: column; gap: 5px; }
.flag-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
}
.red-flags li { background: var(--red-bg); border: 1px solid var(--red-border); color: #b91c1c; }
body.light .red-flags li { color: #fca5a5; }
.red-flags li::before { content: '\2717'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.green-flags li { background: var(--green-bg); border: 1px solid var(--green-border); color: #047857; }
body.light .green-flags li { color: #86efac; }
.green-flags li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.explanation-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.flag-list:empty::after {
  content: 'No items detected';
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   TECHNICAL INVESTIGATION
   ========================================================================== */
.tech-checks { display: flex; flex-direction: column; }

.tech-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.tech-row:last-child { border-bottom: none; }

.tech-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.tech-icon svg { width: 14px; height: 14px; color: var(--text-muted); }

.tech-label {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tech-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.tech-status.pass { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.tech-status.warn { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.tech-status.fail { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }

/* ==========================================================================
   RISK INDICATORS
   ========================================================================== */
.risk-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
  transition: all var(--transition);
}
.risk-chip:hover { transform: translateY(-1px); }
.risk-chip.chip-pass { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.risk-chip.chip-fail { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }
.risk-chip.chip-warn { background: var(--orange-bg); border-color: var(--orange-border); color: var(--orange); }
.risk-chip.chip-neutral { background: var(--blue-bg); border-color: var(--blue-border); color: var(--accent); }
.chip-label { color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.accordion { display: flex; flex-direction: column; gap: 6px; }

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: all var(--transition);
}
.accordion-trigger:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.accordion-trigger span { display: flex; align-items: center; gap: 7px; }
.accordion-trigger span svg { width: 15px; height: 15px; color: var(--accent); }

.accordion-chevron {
  width: 15px; height: 15px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-item.open .accordion-content { max-height: 400px; }

.evidence-grid { padding: 0 14px 14px; display: flex; flex-direction: column; }

.evidence-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.evidence-row:last-child { border-bottom: none; }

.evidence-label { font-size: 12px; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.evidence-value { font-size: 12px; font-weight: 600; color: var(--text-primary); text-align: right; word-break: break-all; }
.evidence-value.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px; }

/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline-section {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.timeline-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.timeline-title svg { width: 16px; height: 16px; color: var(--accent); }

.timeline { display: flex; flex-direction: column; padding-left: 20px; }

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  position: relative;
  opacity: 0.25;
  transition: all 0.4s ease;
}
.timeline-item.active { opacity: 1; }
.timeline-item.complete { opacity: 1; }

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  position: relative; z-index: 1;
  transition: all 0.3s ease;
}
.timeline-item.active .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 91, 227, 0.4);
}
body.light .timeline-item.active .tl-dot {
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
.timeline-item.complete .tl-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.3);
}

.tl-line {
  position: absolute;
  left: 5px; top: 24px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--border);
  z-index: 0;
}
.timeline-item.complete .tl-line { background: var(--green); }

.tl-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.timeline-item.active .tl-content { color: var(--text-primary); }
.timeline-item.complete .tl-content { color: var(--green); }
.tl-content svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVE (dashboard-specific only — navbar mobile from style.css)
   ========================================================================== */

@media (max-width: 1200px) {
  .results-top-row,
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 16px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 14px; }
  .results-section { padding: 16px; }
  .results-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .upload-dropzone { padding: 28px 16px; }
  .verdict-meta { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .score-number { font-size: 40px; }
  .risk-chips { gap: 5px; }
  .risk-chip { padding: 5px 9px; font-size: 11px; }
}

/* Wake-up banner */
.wakeup-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #225BE3, #1A46B8);
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(34, 91, 227, 0.3);
  animation: bannerSlide 0.3s ease;
}
.wakeup-banner__inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wakeup-banner__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.wakeup-banner--hide {
  animation: bannerFade 0.5s ease forwards;
}
@keyframes bannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes bannerFade {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-100%); }
}
