/* ==========================================================================
   CyberStepsVuln Interactive Dual-Audience Presentation Web App
   Design System, Glassmorphism, Theme Tokens & Dynamic Animations
   ========================================================================== */

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

:root {
  /* Core Palette */
  --bg-darkest: #06090f;
  --bg-dark: #0a0f18;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-panel: rgba(15, 23, 42, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.25);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Severity Tokens */
  --color-critical: #ef4444;
  --color-critical-bg: rgba(239, 68, 68, 0.12);
  --color-critical-glow: rgba(239, 68, 68, 0.4);

  --color-high: #f97316;
  --color-high-bg: rgba(249, 115, 22, 0.12);
  --color-high-glow: rgba(249, 115, 22, 0.4);

  --color-medium: #f59e0b;
  --color-medium-bg: rgba(245, 158, 11, 0.12);
  --color-medium-glow: rgba(245, 158, 11, 0.4);

  --color-low: #3b82f6;
  --color-low-bg: rgba(59, 130, 246, 0.12);
  --color-low-glow: rgba(59, 130, 246, 0.4);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);

  --color-accent: #06b6d4;
  --color-purple: #a855f7;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;

  /* UI Dimensions */
  --header-height: 64px;
  --footer-height: 56px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px -5px var(--border-glow);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere Glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.07) 0%, rgba(168, 85, 247, 0.04) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* App Container Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
  z-index: 1;
}

/* Header */
.app-header {
  height: var(--header-height);
  background: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.brand-badge {
  font-size: 0.75rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Dual Mode Toggle Widget */
.dual-mode-widget {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mode-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.toggle-track {
  position: relative;
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
}

.toggle-opt {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.toggle-opt.active {
  color: #fff;
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: calc(50% - 3px);
  background: linear-gradient(135deg, var(--color-accent), var(--color-purple));
  border-radius: var(--radius-full);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.toggle-slider.auditor {
  transform: translateX(100%);
  background: linear-gradient(135deg, var(--color-purple), #ec4899);
}

/* Slide Progress Bar */
.progress-container {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 15;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-purple), var(--color-critical));
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--color-accent);
}

/* Main Viewport & Slide Stage */
.slide-viewport {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

/* Slide Container */
.slide {
  width: 100%;
  max-width: 1200px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Slide Typography */
.slide-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.slide-header {
  margin-bottom: 1.5rem;
}

.slide-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.slide-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

/* Cover Slide */
.cover-slide {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.cover-title {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.cover-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 2.5rem;
}

.meta-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.meta-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
}

.meta-icon {
  font-size: 1.75rem;
}

.meta-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-item span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.cover-actions {
  display: flex;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
  background: #1e293b;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: #334155;
}

.btn-outline {
  background: rgba(15, 23, 42, 0.5);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
  background: var(--color-critical-bg);
  color: var(--color-critical);
  border-color: var(--color-critical);
}

.btn-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-critical {
  background: var(--color-critical-bg);
  color: var(--color-critical);
  border: 1px solid var(--color-critical);
}

.badge-high {
  background: var(--color-high-bg);
  color: var(--color-high);
  border: 1px solid var(--color-high);
}

.badge-medium {
  background: var(--color-medium-bg);
  color: var(--color-medium);
  border: 1px solid var(--color-medium);
}

.badge-low {
  background: var(--color-low-bg);
  color: var(--color-low);
  border: 1px solid var(--color-low);
}

.cvss-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card.critical { border-top: 3px solid var(--color-critical); }
.stat-card.high { border-top: 3px solid var(--color-high); }
.stat-card.medium { border-top: 3px solid var(--color-medium); }
.stat-card.low { border-top: 3px solid var(--color-low); }
.stat-card.total { border-top: 3px solid var(--color-accent); }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-card.critical .stat-num { color: var(--color-critical); }
.stat-card.high .stat-num { color: var(--color-high); }
.stat-card.medium .stat-num { color: var(--color-medium); }
.stat-card.low .stat-num { color: var(--color-low); }
.stat-card.total .stat-num { color: var(--color-accent); }

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

/* Dashboard Row 2 (Chart + Kill Chain) */
.dash-row-2 {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.dash-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.panel-badge {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.panel-badge.highlight {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Donut Chart */
.chart-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.donut-container {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

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

.donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-total {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.donut-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bg-critical { background: var(--color-critical); }
.bg-high { background: var(--color-high); }
.bg-medium { background: var(--color-medium); }
.bg-low { background: var(--color-low); }

/* Kill Chain Stepper */
.killchain-stepper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.kc-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  transition: all 0.2s;
}

.kc-step-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--border-glow);
}

.kc-step-icon {
  font-size: 1.25rem;
  margin-top: 0.1rem;
}

.kc-step-content {
  flex: 1;
}

.kc-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.kc-step-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.kc-step-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
}

.kc-step-badge.critical-pivot, .kc-step-badge.goal-achieved {
  background: var(--color-critical-bg);
  color: var(--color-critical);
  font-weight: 700;
}

.kc-step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.kc-step-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

.ref-tag {
  font-family: var(--font-mono);
  color: var(--color-accent);
}

.btn-text-sm {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-text-sm:hover {
  text-decoration: underline;
}

/* Findings Table */
.table-panel {
  margin-bottom: 1.5rem;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-pills {
  display: flex;
  gap: 0.4rem;
}

.pill {
  border: 1px solid var(--border-subtle);
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover, .pill.active {
  background: #334155;
  color: #fff;
}

.pill.critical.active { background: var(--color-critical-bg); color: var(--color-critical); border-color: var(--color-critical); }
.pill.high.active { background: var(--color-high-bg); color: var(--color-high); border-color: var(--color-high); }
.pill.medium.active { background: var(--color-medium-bg); color: var(--color-medium); border-color: var(--color-medium); }
.pill.low.active { background: var(--color-low-bg); color: var(--color-low); border-color: var(--color-low); }

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.findings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.findings-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.findings-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.findings-table tr:hover td {
  background: rgba(30, 41, 59, 0.4);
}

.finding-id {
  font-family: var(--font-mono);
  color: var(--color-accent);
}

.row-title {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.owasp-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Scope Slide Layout */
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.scope-col {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.scope-col.in-scope { border-top: 3px solid var(--color-success); }
.scope-col.out-scope { border-top: 3px solid var(--color-critical); }

.scope-col-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scope-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  padding-left: 1.25rem;
  position: relative;
}

.scope-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* 7-Stage Kill Chain Visualizer Slide */
.full-killchain-visualizer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.kc-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s;
}

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

.kc-card:last-child {
  grid-column: span 2;
  border-color: var(--color-critical);
  background: rgba(239, 68, 68, 0.05);
}

.kc-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.kc-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.kc-title-row h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.kc-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.kc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.kc-ref {
  font-family: var(--font-mono);
  color: var(--color-accent);
}

/* Finding Slides (Dual Content) */
.beginner-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.analogy-card, .impact-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.analogy-card {
  border-left: 4px solid var(--color-accent);
}

.impact-card {
  border-left: 4px solid var(--color-critical);
}

.analogy-header, .impact-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.analogy-header h3, .impact-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.analogy-body, .impact-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.impact-level-tag {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-critical);
}

.simplified-fix-card {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.simplified-fix-card h4 {
  font-size: 0.95rem;
  color: var(--color-success);
  margin-bottom: 0.5rem;
}

.fix-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fix-list li {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fix-list .check {
  color: var(--color-success);
  font-weight: bold;
}

/* Auditor View Grid */
.auditor-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.auditor-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.meta-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-row span {
  color: var(--text-muted);
}

.tech-summary {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
}

.repro-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.repro-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.cmd-line-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.6);
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.cmd-line-wrap code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a5f3fc;
  word-break: break-all;
}

.btn-copy-cmd {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.2rem;
}

.btn-copy-cmd:hover {
  color: #fff;
}

.code-box-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.code-pre-box {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  color: #e2e8f0;
  max-height: 240px;
  overflow-y: auto;
}

/* Interactive Simulators Shared Styles */
.sim-card {
  background: rgba(10, 15, 24, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.sim-header {
  margin-bottom: 1.25rem;
}

.sim-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.sim-badge.critical { background: var(--color-critical-bg); color: var(--color-critical); border: 1px solid var(--color-critical); }
.sim-badge.high { background: var(--color-high-bg); color: var(--color-high); border: 1px solid var(--color-high); }
.sim-badge.medium { background: var(--color-medium-bg); color: var(--color-medium); border: 1px solid var(--color-medium); }

.sim-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.sim-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* RCE Simulator Pipeline */
.sim-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.6);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pipeline-step.active {
  background: var(--color-critical-bg);
  color: var(--color-critical);
  border: 1px solid var(--color-critical);
  font-weight: 700;
}

.pipeline-step.completed {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.pipeline-arrow {
  color: var(--text-dim);
}

.upload-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.file-choice {
  cursor: pointer;
}

.file-choice input {
  display: none;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s;
}

.file-choice.selected .choice-card {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--color-accent);
}

.choice-icon {
  font-size: 1.75rem;
}

.choice-info strong {
  display: block;
  font-size: 0.9rem;
}

.choice-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-preview {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
}

.hl-magic { color: #f59e0b; font-weight: bold; }
.hl-php { color: #38bdf8; }
.hl-func { color: #c084fc; }
.hl-str { color: #4ade80; }
.hl-var { color: #f87171; }

/* Mock Terminal */
.terminal-mock {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.term-header {
  background: #111827;
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dots {
  display: flex;
  gap: 0.35rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.term-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.term-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
}

.term-line.prompt { color: #38bdf8; font-weight: bold; }
.term-line.comment { color: #64748b; }
.term-line.success-banner { color: #10b981; font-weight: bold; }
.term-line.rce-output { color: #fef08a; background: rgba(234, 179, 8, 0.1); padding: 0.2rem 0.4rem; border-radius: 4px; display: inline-block; margin-top: 0.35rem; }

.foothold-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.foothold-icon { font-size: 2rem; }
.foothold-text strong { display: block; font-size: 0.95rem; color: var(--color-success); }
.foothold-text span { font-size: 0.8rem; color: var(--text-main); }

/* SQLi Simulator */
.sim-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.payload-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.preset-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preset-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover, .preset-btn.active {
  background: #334155;
  color: #fff;
  border-color: var(--border-glow);
}

.sim-input-row {
  margin-bottom: 1rem;
}

.input-with-action {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.sim-input {
  flex: 1;
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
}

.sim-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.sim-textarea {
  width: 100%;
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fff;
  resize: vertical;
}

.sql-box {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

.sql-tokens {
  font-family: var(--font-mono);
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.token.keyword { color: #f43f5e; font-weight: bold; }
.token.table { color: #38bdf8; }
.token.col { color: #a78bfa; }
.token.bound-param { color: #10b981; font-weight: bold; background: rgba(16, 185, 129, 0.15); padding: 0.1rem 0.4rem; border-radius: 3px; }
.token.raw-input.syntax-error { color: #ef4444; background: rgba(239, 68, 68, 0.2); padding: 0.1rem 0.4rem; border-radius: 3px; border: 1px dashed #ef4444; font-weight: bold; }

.token-explanation {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.db-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.db-table th {
  background: #111827;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.db-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
}

.row-admin td {
  background: rgba(239, 68, 68, 0.15) !important;
}

.stolen-pass {
  color: #f59e0b;
  font-weight: bold;
}

.hl-admin {
  color: #ef4444;
}

/* SSRF Network Diagram */
.network-diagram {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.25rem 0;
  position: relative;
}

.net-node {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  width: 170px;
  position: relative;
  z-index: 2;
}

.net-node.internal.node-pivoted {
  border-color: var(--color-critical);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.node-icon { font-size: 2rem; margin-bottom: 0.35rem; }
.node-title { font-size: 0.85rem; font-weight: 700; }
.node-ip { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-accent); margin: 0.15rem 0; }
.node-role { font-size: 0.7rem; color: var(--text-dim); }

.net-pipe {
  flex: 1;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipe-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #334155;
  transform: translateY(-50%);
}

.pipe-line.line-pivot {
  background: dashed 2px var(--color-critical);
}

.packet {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.net-pipe.active-flow .packet {
  animation: packetFlow 1.2s infinite linear;
  background: var(--color-accent);
  color: #000;
  font-weight: bold;
}

@keyframes packetFlow {
  0% { transform: translateX(-40px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(40px); opacity: 0; }
}

/* Cookie Simulator */
.cookie-builder-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.builder-col {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.builder-col h4 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

.arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arrow-sym {
  font-size: 2rem;
  color: var(--color-accent);
}

.arrow-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.form-group {
  margin-bottom: 0.6rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.dashboard-preview-card {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 1.25rem;
}

.dash-browser-bar {
  background: #0f172a;
  padding: 0.4rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.browser-dot { width: 8px; height: 8px; border-radius: 50%; }
.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green { background: #10b981; }
.browser-url { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-left: 0.5rem; }

.dash-content {
  padding: 1.25rem;
}

.admin-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flag-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--color-medium);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.flag-title {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-medium);
  text-transform: uppercase;
}

.flag-value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fef08a;
}

/* Remediation Matrix */
.remediation-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.finding-tab-strip {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.strip-tab {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.strip-tab:hover, .strip-tab.active {
  background: #1e293b;
  color: #fff;
  border-color: var(--border-glow);
}

.diff-grid.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.code-diff-box {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-diff-box.vulnerable { border-top: 3px solid var(--color-critical); }
.code-diff-box.hardened { border-top: 3px solid var(--color-success); }

.diff-box-header {
  background: #0f172a;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.diff-pre {
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.45;
  max-height: 320px;
  overflow-y: auto;
}

.code-line { display: flex; }
.line-num { width: 30px; color: var(--text-dim); user-select: none; }
.line-text { flex: 1; color: #cbd5e1; }
.code-line.highlight-danger { background: rgba(239, 68, 68, 0.15); }
.code-line.highlight-secure { background: rgba(16, 185, 129, 0.15); }
.code-line.code-comment { color: #64748b; }

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-dialog {
  background: #0b111d;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Overview Matrix Grid */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.overview-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.overview-card:hover, .overview-card.active {
  background: #1e293b;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.overview-card .card-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.overview-card .card-title {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Speaker Notes Drawer */
.notes-drawer {
  position: fixed;
  bottom: var(--footer-height);
  right: 1.5rem;
  width: 380px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 50;
  display: none;
}

.notes-drawer.open {
  display: block;
  animation: slideUp 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.notes-body {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-height: 250px;
  overflow-y: auto;
}

/* Live Sync Drawer */
.sync-drawer {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 1.5rem;
  width: 340px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  z-index: 50;
  display: none;
}

.sync-drawer.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Footer Navigation Bar */
.app-footer {
  height: var(--footer-height);
  background: rgba(10, 15, 24, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  z-index: 20;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pres-timer {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Helper Utilities */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.text-muted { color: var(--text-muted); }
.text-xs { font-size: 0.75rem; }

/* Animations */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-critical);
  display: inline-block;
  animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.animate-fade {
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Scope Boundary Tag */
.scope-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* Copyable Curl PoC Box */
.curl-poc-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.poc-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
}

.btn-copy-cmd {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-cmd:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #ffffff;
}

/* SQL Tokenizer Highlights */
.syntax-injected {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
  border-bottom: 2px solid #ef4444;
  font-weight: 700;
}

.ast-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.ast-badge.vulnerable {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.ast-badge.parameterized {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hl-field-admin {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
  font-weight: 700;
}

/* Audit & QA Hub Drawer */
.audit-drawer {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 1.5rem;
  width: 480px;
  max-width: calc(100vw - 3rem);
  max-height: calc(100vh - var(--header-height) - var(--footer-height) - 30px);
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  z-index: 60;
  display: none;
  overflow-y: auto;
}

.audit-drawer.open {
  display: block;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.audit-drawer-content {
  padding: 1.25rem;
}

.audit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.audit-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.audit-icon {
  font-size: 1.6rem;
}

.audit-title h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.audit-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.compliance-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.compliance-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.compliance-card p {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.4;
}

.audit-section {
  margin-bottom: 1rem;
}

.audit-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.audit-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.metric-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.metric-box.valid {
  border-color: rgba(16, 185, 129, 0.4);
}

.metric-box .metric-title {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.metric-box .metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #f8fafc;
}

.metric-box .metric-status {
  font-size: 0.65rem;
  color: #10b981;
  margin-top: 0.15rem;
}

.audit-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
}

.check-item input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #10b981;
}

.check-item label {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
  cursor: pointer;
}

.audit-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Report Generator Modal & Configuration Interface
   ========================================================================== */

.report-dialog {
  max-width: 1100px;
  width: 95vw;
  max-height: 92vh;
}

.report-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-icon {
  font-size: 1.75rem;
}

.report-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.report-tab-pills {
  display: flex;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.pill-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.pill-tab.active {
  background: var(--color-accent);
  color: #06090f;
  font-weight: 700;
}

.report-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(92vh - 80px);
}

/* 2-Column Configuration Layout */
.report-config-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
}

.config-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

/* Presets Grid */
.presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.preset-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.preset-card.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.preset-icon {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.preset-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.preset-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.25rem;
}

/* Meta Inputs */
.meta-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.input-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Category Checkboxes */
.category-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.check-pill:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--border-glow);
}

.check-pill input[type="checkbox"] {
  accent-color: var(--color-accent);
}

/* Findings Selection List */
.findings-select-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.finding-select-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}

.finding-select-item:hover {
  background: rgba(30, 41, 59, 0.7);
}

.finding-select-item.selected {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.6);
}

.finding-select-item .fid-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
}

.finding-select-item .ftitle {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.quick-btn-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
}

/* Live Report Preview Wrapper */
.report-preview-wrapper {
  background: #020617;
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.preview-toolbar {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Printable Report Document Canvas & Multi-Page Styling
   ========================================================================== */

.printable-report-canvas {
  max-width: 850px;
  margin: 0 auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
}

.printable-report-canvas.dark {
  background: #0b111d;
  color: #f8fafc;
}

.pdf-page {
  padding: 2.5rem 3rem;
  min-height: 1050px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pdf-page:not(:last-child) {
  border-bottom: 2px dashed #cbd5e1;
}

.printable-report-canvas.dark .pdf-page:not(:last-child) {
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Page Header & Breadcrumbs */
.pdf-page-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.printable-report-canvas.dark .pdf-page-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* Cover Page */
.pdf-cover-page {
  justify-content: space-between;
  text-align: left;
}

.pdf-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.printable-report-canvas.dark .pdf-brand-row {
  color: #fff;
}

.pdf-classification-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #f87171;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.pdf-cover-hero {
  margin: 3rem 0;
}

.pdf-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pdf-cover-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.printable-report-canvas.dark .pdf-cover-title {
  color: #fff;
}

.pdf-cover-subtitle {
  font-size: 1.05rem;
  color: #475569;
  margin-top: 0.75rem;
}

.printable-report-canvas.dark .pdf-cover-subtitle {
  color: #94a3b8;
}

.pdf-cover-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.printable-report-canvas.dark .pdf-cover-meta-box {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.pdf-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.pdf-meta-row .meta-lbl {
  color: #64748b;
  font-weight: 500;
}

.pdf-meta-row .meta-val {
  color: #0f172a;
  font-weight: 700;
}

.printable-report-canvas.dark .pdf-meta-row .meta-val {
  color: #f8fafc;
}

.pdf-cover-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

.pdf-seal {
  font-weight: 700;
  color: #0284c7;
}

/* Section Titles */
.pdf-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.printable-report-canvas.dark .pdf-section-title {
  color: #fff;
}

.pdf-sub-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Stats Row */
.pdf-stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pdf-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.printable-report-canvas.dark .pdf-stat-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.pdf-stat-card .stat-big {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.pdf-stat-card.critical .stat-big { color: #dc2626; }
.pdf-stat-card.high .stat-big { color: #ea580c; }
.pdf-stat-card.medium .stat-big { color: #d97706; }
.pdf-stat-card.low .stat-big { color: #2563eb; }

.pdf-stat-card .stat-title {
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.25rem;
}

.pdf-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.printable-report-canvas.dark .pdf-box {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.pdf-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

/* Killchain List */
.pdf-killchain-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdf-kc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
}

.printable-report-canvas.dark .pdf-kc-item {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.kc-step-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: #e2e8f0;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.printable-report-canvas.dark .kc-step-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.kc-info {
  flex: 1;
  margin: 0 1rem;
}

.kc-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
}

/* Finding Cards */
.pdf-findings-stream {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pdf-finding-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.printable-report-canvas.dark .pdf-finding-card {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.pdf-finding-card.critical { border-left: 4px solid #dc2626; }
.pdf-finding-card.high { border-left: 4px solid #ea580c; }
.pdf-finding-card.medium { border-left: 4px solid #d97706; }
.pdf-finding-card.low { border-left: 4px solid #2563eb; }

.finding-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.printable-report-canvas.dark .finding-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.finding-card-header .header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.finding-card-header .fid {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0284c7;
}

.finding-card-header .ftitle {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.pdf-finding-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  background: #f8fafc;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.printable-report-canvas.dark .pdf-finding-meta-grid {
  background: rgba(30, 41, 59, 0.5);
}

.pdf-desc-block {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.pdf-code-block {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.printable-report-canvas.dark .pdf-code-block {
  background: #06090f;
  border-color: rgba(255, 255, 255, 0.1);
}

.pdf-code-block .block-title {
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.pdf-code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-all;
}

.pdf-code-block.diff-box.vuln-code { border-left: 3px solid #dc2626; }
.pdf-code-block.diff-box.fixed-code { border-left: 3px solid #16a34a; }

.pdf-remediation-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
}

.printable-report-canvas.dark .pdf-remediation-callout {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.pdf-remediation-callout ul {
  margin: 0.25rem 0 0 1.25rem;
  padding: 0;
}

/* Roadmap Grid */
.pdf-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.roadmap-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
}

.printable-report-canvas.dark .roadmap-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.roadmap-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.5rem;
}

.roadmap-card ul {
  padding-left: 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Sign-off box */
.pdf-signoff-box {
  border-top: 2px solid #e2e8f0;
  padding-top: 1.5rem;
}

.printable-report-canvas.dark .pdf-signoff-box {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.signoff-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}

.sig-block {
  display: flex;
  flex-direction: column;
}

.sig-line {
  border-top: 1px solid #64748b;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.printable-report-canvas.dark .sig-line {
  color: #fff;
}

.sig-name {
  font-size: 0.8rem;
  color: #0284c7;
  font-weight: 600;
}

.sig-sub {
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   Pentest Report QA Benchmark & Evaluation Hub
   ========================================================================== */
.comparison-modal-backdrop {
  z-index: 1050;
}

.comparison-dialog {
  max-width: 1200px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.comparison-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comp-icon {
  font-size: 1.75rem;
}

.header-right-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comparison-body {
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comp-overview-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.score-badge-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.score-box {
  flex: 1;
  max-width: 320px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.score-box.legacy {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.score-box.v3 {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.score-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.score-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.2rem 0;
}

.score-box.legacy .score-val { color: #ef4444; }
.score-box.v3 .score-val { color: #10b981; }

.score-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.vs-divider {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-muted);
}

.banner-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

.pillar-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.author-credits-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
}

.author-credits-badge code {
  color: var(--color-accent);
}

.comparison-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.comp-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.comp-card-header {
  margin-bottom: 1rem;
}

.comp-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.comp-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.comp-col {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 3px solid transparent;
}

.legacy-col {
  border-left-color: #ef4444;
}

.v3-col {
  border-left-color: #10b981;
}

.col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: auto;
}

.status-tag.defective {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status-tag.gold {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.col-body {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.comp-card-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Document Governance Table & Methodology in PDF canvas */
.pdf-gov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.pdf-gov-table th,
.pdf-gov-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.printable-report-canvas.dark .pdf-gov-table th,
.printable-report-canvas.dark .pdf-gov-table td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pdf-gov-table th {
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.printable-report-canvas.dark .pdf-gov-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: #e2e8f0;
  color: #1e293b;
  border-radius: var(--radius-sm);
}

.version-tag.active {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.pdf-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pdf-method-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.printable-report-canvas.dark .pdf-method-card {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.pdf-method-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.pdf-method-card p {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #475569;
}

.printable-report-canvas.dark .pdf-method-card p {
  color: #94a3b8;
}

/* ==========================================================================
   VERSION 4.0 ULTRA-STANDARD COMPONENTS
   ========================================================================== */

/* 1. Formal Table of Contents */
.pdf-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.printable-report-canvas.dark .pdf-toc-grid {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.toc-section-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.3rem;
}

.printable-report-canvas.dark .toc-section-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc-list li {
  display: flex;
  align-items: baseline;
  font-size: 0.78rem;
}

.toc-title {
  color: #0f172a;
  font-weight: 500;
  white-space: nowrap;
}

.printable-report-canvas.dark .toc-title {
  color: #f8fafc;
}

.toc-dots {
  flex-grow: 1;
  border-bottom: 1px dotted #94a3b8;
  margin: 0 0.4rem;
  height: 0.75em;
}

.toc-page {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.badge-mini {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  margin-right: 0.3rem;
}

/* 2. 5x5 Risk Heatmap & Threat Profiling */
.heatmap-container {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.heatmap-grid-5x5 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hm-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
}

.hm-matrix {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hm-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hm-lvl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  width: 15px;
}

.hm-cell {
  width: 90px;
  height: 48px;
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  transition: all 0.2s ease;
}

.hm-cell.lvl-crit { background: rgba(239, 68, 68, 0.25); border: 1px solid #ef4444; }
.hm-cell.lvl-high { background: rgba(249, 115, 22, 0.22); border: 1px solid #f97316; }
.hm-cell.lvl-med  { background: rgba(245, 158, 11, 0.20); border: 1px solid #f59e0b; }
.hm-cell.lvl-low  { background: rgba(59, 130, 246, 0.15); border: 1px solid #3b82f6; }

.hm-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.hm-x-labels {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.hm-x-labels span {
  width: 90px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.hm-x-labels span:first-child { width: 15px; }

.hm-x-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

/* 3. ASVS v4.0.3 Chapter Ledger */
.asvs-chapter-block {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  overflow: hidden;
}

.printable-report-canvas.dark .asvs-chapter-block {
  background: rgba(30, 41, 59, 0.4);
  border-color: rgba(255, 255, 255, 0.1);
}

.asvs-chapter-title {
  background: #f1f5f9;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
}

.printable-report-canvas.dark .asvs-chapter-title {
  background: rgba(15, 23, 42, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.asvs-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  background: #0284c7;
  color: #fff;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.asvs-table th, .asvs-table td {
  font-size: 0.75rem;
  padding: 0.45rem 0.6rem;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.status-pill.pass {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
}

.status-pill.fail {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* 4. Subscenario Matrix */
.subscenario-table th, .subscenario-table td {
  font-size: 0.73rem;
  padding: 0.4rem 0.5rem;
}

.row-vuln {
  background: rgba(239, 68, 68, 0.04);
}

.cat-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.printable-report-canvas.dark .cat-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* 5. Burp Suite RFC 7230 Raw HTTP Traffic Box */
.burp-traffic-block {
  background: #0f172a !important;
  border: 1px solid #0284c7 !important;
}

.burp-raw-http {
  color: #38bdf8 !important;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  max-height: 250px;
  overflow-y: auto;
}

/* ==========================================================================
   NATIVE PRINT STYLESHEET (@media print) — SINGLE PASS ENGINE
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }

  /* Reset body styling for crisp print */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    overflow: visible !important;
  }

  /* Hide entire interactive UI and all overlays so only the isolated print canvas renders */
  body > *:not(#reportPrintContainer) {
    display: none !important;
  }

  #reportPrintContainer {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .pdf-page {
    padding: 0 !important;
    min-height: auto !important;
    page-break-after: always !important;
    break-after: page !important;
    border: none !important;
    margin-bottom: 25mm !important;
  }

  .pdf-page:last-child {
    page-break-after: avoid !important;
    break-after: avoid !important;
    margin-bottom: 0 !important;
  }

  .pdf-finding-card,
  .pdf-box,
  .pdf-stat-card,
  .roadmap-card,
  .pdf-signoff-box,
  .pdf-method-card,
  .pdf-gov-table {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Print contrast enhancement */
  .pdf-cover-title,
  .pdf-section-title,
  .finding-card-header .ftitle {
    color: #000000 !important;
  }

  .badge-critical { background: #fee2e2 !important; color: #991b1b !important; border: 1px solid #ef4444 !important; }
  .badge-high { background: #ffedd5 !important; color: #9a3412 !important; border: 1px solid #f97316 !important; }
  .badge-medium { background: #fef3c7 !important; color: #92400e !important; border: 1px solid #f59e0b !important; }
  .badge-low { background: #dbeafe !important; color: #1e40af !important; border: 1px solid #3b82f6 !important; }
}



