/* ==========================================================================
   AegisPost | Cyber Security Dashboard Stylesheet
   Modern, Dark Cyber Aesthetic with Neon Accents (Emerald, Amber, Crimson, Cyan)
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette */
  --bg-dark: #070a11;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(20, 30, 55, 0.85);
  --bg-surface: #0f172a;
  --border-subtle: rgba(51, 65, 85, 0.5);
  --border-bright: rgba(100, 116, 139, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Neon Status Accents */
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --emerald-bg: rgba(16, 185, 129, 0.12);

  --amber: #f59e0b;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-bg: rgba(245, 158, 11, 0.12);

  --crimson: #ef4444;
  --crimson-glow: rgba(239, 68, 68, 0.3);
  --crimson-bg: rgba(239, 68, 68, 0.12);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --cyan-bg: rgba(6, 182, 212, 0.12);

  --indigo: #6366f1;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.cyber-bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.06) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cyber-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-shield {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px var(--emerald-glow);
}

.brand-icon {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand-accent {
  color: var(--emerald);
}

.brand-tag {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--cyan);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 12px;
  color: var(--emerald);
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.highlight {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  color: #fff;
}

/* App Shell */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scanner Card & Form */
.scanner-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.input-row {
  display: flex;
  align-items: center;
  background: #0b101c;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 6px 8px;
  transition: all 0.2s ease;
}

.input-row:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}

.input-protocol {
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  user-select: none;
}

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  color: #fff;
  min-width: 0;
  padding: 8px 4px;
}

.input-row input::placeholder {
  color: #475569;
}

.submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px var(--emerald-glow);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Quick Samples */
.quick-samples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.samples-label {
  font-size: 11px;
  color: var(--text-muted);
}

.sample-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-chip:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--emerald);
  color: var(--emerald);
}

.field-meta {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.error-message {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--crimson-bg);
  border: 1px solid var(--crimson);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 12px;
}

/* Scanning Progress Radar */
.scan-loading {
  margin-top: 24px;
  padding: 20px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.radar-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  position: relative;
  display: grid;
  place-items: center;
  background: rgba(10, 20, 30, 0.8);
  flex-shrink: 0;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(16, 185, 129, 0.4) 360deg);
  animation: sweep 1.2s linear infinite;
  border-radius: 50%;
}

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

.radar-icon {
  font-size: 22px;
  z-index: 1;
}

.scan-progress-info {
  flex: 1;
}

.scan-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.scan-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.step-item.active {
  color: var(--emerald);
  font-weight: 700;
}

.step-separator {
  color: #334155;
}

.scan-detail-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Results Dashboard Components
   ========================================================================== */

.results {
  margin-top: 40px;
}

/* Results Top Action Bar */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.target-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cyan);
  text-transform: uppercase;
}

.results-target {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
  word-break: break-all;
}

.results-time {
  font-size: 12px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bright);
  color: #fff;
}

.action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.action-btn.primary {
  background: var(--emerald);
  border: 1px solid var(--emerald);
  color: #fff;
}

/* Trust Badge & Executive Overview Banner */
.overview-banner {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.score-gauge-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.gauge-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.gauge-progress.safe { stroke: var(--emerald); filter: drop-shadow(0 0 6px var(--emerald-glow)); }
.gauge-progress.warning { stroke: var(--amber); filter: drop-shadow(0 0 6px var(--amber-glow)); }
.gauge-progress.danger { stroke: var(--crimson); filter: drop-shadow(0 0 6px var(--crimson-glow)); }

.gauge-label {
  position: absolute;
  text-align: center;
}

.gauge-number {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.gauge-total {
  font-size: 11px;
  color: var(--text-muted);
}

.overview-content {
  flex: 1;
}

.trust-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.trust-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.trust-badge.safe { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald); }
.trust-badge.warning { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.trust-badge.danger { background: var(--crimson-bg); color: var(--crimson); border: 1px solid var(--crimson); }
.trust-badge.unknown { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid var(--border-bright); }

.overview-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.overview-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 4px;
}

.overview-stats {
  border-left: 1px solid var(--border-subtle);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.stat-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.stat-item span {
  font-size: 11px;
  color: var(--text-muted);
}

/* 4-Pillar Breakdown Metric Cards */
.pillar-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
}

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

.metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.metric-icon.green { background: var(--emerald-bg); color: var(--emerald); }
.metric-icon.cyan { background: var(--cyan-bg); color: var(--cyan); }
.metric-icon.amber { background: var(--amber-bg); color: var(--amber); }
.metric-icon.rose { background: var(--crimson-bg); color: var(--crimson); }

.status-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.status-chip.pass { background: var(--emerald-bg); color: var(--emerald); }
.status-chip.warn { background: var(--amber-bg); color: var(--amber); }
.status-chip.danger { background: var(--crimson-bg); color: var(--crimson); }
.status-chip.neutral { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

.metric-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.metric-summary {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Threat Intel Banner */
.threat-banner {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-subtle);
}

.threat-banner.safe {
  border-left: 4px solid var(--emerald);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card) 100%);
}

.threat-banner.threat {
  border-left: 4px solid var(--crimson);
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, var(--bg-card) 100%);
}

.threat-banner.unknown {
  border-left: 4px solid var(--amber);
}

.threat-symbol {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.threat-banner.safe .threat-symbol { background: var(--emerald-bg); color: var(--emerald); }
.threat-banner.threat .threat-symbol { background: var(--crimson-bg); color: var(--crimson); }
.threat-banner.unknown .threat-symbol { background: var(--amber-bg); color: var(--amber); }

.threat-info {
  flex: 1;
}

.threat-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.threat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   AI Security Advisor Section
   ========================================================================== */

.ai-advisor-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 27, 75, 0.4) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ai-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-sparkle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.ai-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.ai-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.ai-provider-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

.ai-trigger-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ai-trigger-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
}

.ai-trigger-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ai-advice-container {
  margin-top: 18px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
}

.ai-advice-container h3, 
.ai-advice-container h4 {
  color: #fff;
  margin: 14px 0 6px;
  font-size: 14px;
}

.ai-advice-container p {
  margin-bottom: 8px;
}

.ai-advice-container ul,
.ai-advice-container ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.ai-advice-container code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #38bdf8;
}

/* Interactive Server Fix Snippet Tabs */
.fix-tabs-container {
  margin-top: 24px;
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

.fix-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 12px;
}

.tab-group {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--emerald);
  font-weight: 700;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.code-snippet-box {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
  max-height: 260px;
}

/* ==========================================================================
   Findings Deck & Filtering
   ========================================================================== */

.findings-section {
  margin-top: 32px;
}

.findings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-pills {
  display: flex;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-pill.active {
  background: var(--emerald-bg);
  border-color: var(--emerald);
  color: var(--emerald);
}

.finding-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

.finding-card.present { border-left: 4px solid var(--emerald); }
.finding-card.not_present { border-left: 4px solid var(--amber); }
.finding-card.unknown { border-left: 4px solid var(--text-muted); }
.finding-card.not_applicable { border-left: 4px solid #334155; }

.finding-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.category-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--text-muted);
}

.finding-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-pill.present { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald); }
.status-pill.not_present { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.status-pill.unknown { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.status-pill.not_applicable { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.evidence-box {
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  word-break: break-all;
  margin: 10px 0;
}

.finding-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
  font-size: 12px;
}

.finding-col-title {
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.finding-col-text {
  color: var(--text-secondary);
  line-height: 1.5;
}

.finding-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.explain-btn {
  background: transparent;
  border: none;
  color: var(--cyan);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
}

.explain-btn:hover {
  color: #fff;
}

/* Methodology & FAQ */
.methodology-section,
.faq-section {
  margin-top: 60px;
}

.section-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--emerald);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.pillar-icon.green { background: var(--emerald-bg); color: var(--emerald); }
.pillar-icon.cyan { background: var(--cyan-bg); color: var(--cyan); }
.pillar-icon.amber { background: var(--amber-bg); color: var(--amber); }
.pillar-icon.rose { background: var(--crimson-bg); color: var(--crimson); }

.pillar-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pillar-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.faq-content {
  padding: 0 20px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Site Footer */
.site-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.brand-text-sm {
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 860px) {
  .pillar-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .overview-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .overview-stats {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 16px;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 32px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-metrics-grid { grid-template-columns: 1fr; }
  .finding-cols { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; gap: 8px; }
  .input-protocol { display: none; }
  .submit-btn { width: 100%; justify-content: center; }
  .site-header { padding: 12px 16px; }
  .header-status { display: none; }
}
