/* ==========================================================================
   ChainSentinel AI // ClearView — Forensic Platform Stylesheet
   Problem Statement: SIH26146 (NTRO)
   Typography: Inter (Structural) & Outfit (Display/Headings)
   ========================================================================== */

:root {
  --bg-core: #07080a;
  --bg-surface: #0e121a;
  --bg-elevated: #151b26;
  --bg-glass: rgba(14, 18, 26, 0.75);
  
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gold-primary: #f7931a;
  --gold-glow: rgba(247, 147, 26, 0.35);
  
  --risk-critical: #dc2626;
  --risk-critical-bg: rgba(220, 38, 38, 0.12);
  --risk-high: #ea580c;
  --risk-high-bg: rgba(234, 88, 12, 0.12);
  --risk-medium: #d97706;
  --risk-medium-bg: rgba(217, 119, 6, 0.12);
  --risk-low: #16a34a;
  --risk-low-bg: rgba(22, 163, 74, 0.12);
  --tech-blue: #2563eb;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-core);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.font-mono { font-family: var(--font-mono); }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold-primary); }
.text-red { color: var(--risk-critical); }
.text-orange { color: var(--risk-high); }
.text-blue { color: var(--tech-blue); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.max-h-350 { max-height: 350px; overflow-y: auto; }

/* Fixed Background Canvas for Hero Animation */
.canvas-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: #050608;
  transition: opacity 0.5s ease;
}

.canvas-viewport.subdued {
  opacity: 0.15;
}

#scrolly-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(5, 6, 8, 0.7) 80%, #050608 100%);
}

/* ==========================================================================
   APP HEADER & NAVIGATION
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
}

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

.brand-shield {
  color: #ffffff;
}

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

.brand-edition {
  color: var(--gold-primary);
  font-weight: 600;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  font-weight: 600;
}

/* ==========================================================================
   APP NAVIGATION — GLOSSY CURVY FLOATING PILLS WITH MICRO-ANIMATIONS
   ========================================================================== */
.app-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  padding: 2px;
  border: none;
}

.nav-tab {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', 'Outfit', var(--font-heading), sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.28), 0 4px 15px rgba(0, 0, 0, 0.45);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  user-select: none;
}

/* Subtle top glossy specular reflection line */
.nav-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
  transition: opacity 0.25s ease, left 0.3s ease, right 0.3s ease;
}

/* Glossy glass light streak sweep on hover */
.nav-tab::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: left 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

/* Hover effect: Smooth floating lift, radiant glow, and glass shine */
.nav-tab:hover {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(247, 147, 26, 0.55);
  transform: translateY(-2.5px) scale(1.035);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 20px rgba(247, 147, 26, 0.25);
}

.nav-tab:hover::before {
  left: 8%;
  right: 8%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.nav-tab:hover::after {
  left: 140%;
  opacity: 1;
}

.nav-tab svg {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease, filter 0.25s ease;
  flex-shrink: 0;
  color: #94a3b8;
}

.nav-tab:hover svg {
  transform: scale(1.2) rotate(-5deg);
  color: var(--gold-primary);
  filter: drop-shadow(0 0 6px rgba(247, 147, 26, 0.6));
}

/* Click Active compression */
.nav-tab:active {
  transform: translateY(0px) scale(0.96);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition-duration: 0.1s;
}

/* Active Selected Tab: Sovereign Gold/Amber Aura */
.nav-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.28) 0%, rgba(247, 147, 26, 0.08) 100%);
  border: 1px solid rgba(247, 147, 26, 0.68);
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 24px rgba(247, 147, 26, 0.35);
}

.nav-tab.active::before {
  left: 10%;
  right: 10%;
  background: linear-gradient(90deg, transparent, rgba(247, 147, 26, 0.85), transparent);
}

.nav-tab.active svg {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 6px rgba(247, 147, 26, 0.75));
}

/* Highlight Tab: Bulk Ingestion (Special Gold Pill) */
.nav-tab.highlight-tab {
  background: linear-gradient(180deg, rgba(247, 147, 26, 0.15) 0%, rgba(247, 147, 26, 0.04) 100%);
  border-color: rgba(247, 147, 26, 0.38);
  color: #fbbf24;
}

.nav-tab.highlight-tab:hover {
  background: linear-gradient(180deg, rgba(247, 147, 26, 0.26) 0%, rgba(247, 147, 26, 0.09) 100%);
  border-color: rgba(247, 147, 26, 0.8);
  color: #ffffff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(247, 147, 26, 0.3);
}

.nav-tab.highlight-tab.active {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.38) 0%, rgba(247, 147, 26, 0.14) 100%);
  border-color: #f7931a;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 28px rgba(247, 147, 26, 0.45);
}

.nav-tab.highlight-tab svg {
  color: #f7931a;
}

/* Curvy Alerts Count Pill inside Tab */
#tab-alert-count {
  background: rgba(234, 88, 12, 0.28);
  border: 1px solid rgba(234, 88, 12, 0.55);
  color: #fdba74;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 2px;
  box-shadow: 0 0 8px rgba(234, 88, 12, 0.35);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.05em;
}

.status-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.case-badge {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.case-id {
  color: var(--text-white);
  font-weight: 600;
}

/* ==========================================================================
   APP VIEWS CONTROLLER
   ========================================================================== */
.app-view {
  display: none;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding-top: 96px;
  padding-bottom: 4rem;
}

.app-view.active {
  display: block;
}

.view-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   VIEW 1: HERO & VISUAL (Matches Image 1 layout)
   ========================================================================== */
#view-hero {
  padding-top: 0;
}

.hero-content-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 4rem 2rem 4rem;
}

.hero-overlay-card {
  max-width: 620px;
  z-index: 20;
}

.hero-top-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  background: rgba(247, 147, 26, 0.12);
  border: 1px solid rgba(247, 147, 26, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

.corner-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: #94a3b8;
  font-weight: 400;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-button-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: #ffffff;
  color: #07080a;
  border: 1px solid #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-card);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  border-radius: 6px;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  transition: all 0.2s;
}

.btn-outline:hover {
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.tactical-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2rem;
}

.t-sep { opacity: 0.3; }

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-col {
  display: flex;
  flex-direction: column;
}

.stat-big {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
}

.stat-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.stat-divider-vertical {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   HERO CLI TERMINAL SHOWCASE SECTION
   ========================================================================== */
.btn-cli-link {
  background: rgba(247, 147, 26, 0.12);
  color: var(--gold-primary);
  border: 1px solid rgba(247, 147, 26, 0.35);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-cli-link:hover {
  background: rgba(247, 147, 26, 0.22);
  border-color: rgba(247, 147, 26, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(247, 147, 26, 0.2);
}

.btn-cli-icon {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-primary);
}

.hero-cli-container {
  position: relative;
  z-index: 20;
  max-width: 1080px;
  margin: 3rem auto 0 auto;
  padding: 3.5rem 2.5rem 6rem 2.5rem;
  background: radial-gradient(circle at 50% 20%, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.96) 70%, #07080a 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cli-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
}

.cli-section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cli-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Fake Terminal Window */
.fake-terminal-window {
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(247, 147, 26, 0.08);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: border-color 0.3s ease;
}

.fake-terminal-window:hover {
  border-color: rgba(247, 147, 26, 0.3);
}

/* Terminal Titlebar */
.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close { background: #ff5f56; }
.dot-minimize { background: #ffbd2e; }
.dot-expand { background: #27c93f; }

.terminal-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.terminal-os-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.os-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.os-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.os-tab.active {
  background: var(--bg-elevated);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Terminal Body */
.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
}

.terminal-snippet {
  display: none;
}

.terminal-snippet.active {
  display: block;
}

.code-comment {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
  user-select: none;
}

.code-line-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.code-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  font-size: 0.86rem;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.code-line::-webkit-scrollbar {
  display: none;
}

.prompt-symbol {
  color: #22c55e;
  font-weight: 700;
  user-select: none;
}

.prompt-ps {
  color: #38bdf8;
}

.code-cmd {
  color: #f1f5f9;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-copy-cmd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-copy-cmd:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy-cmd.copied {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

/* Terminal Live Logs Simulation */
.terminal-live-preview {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  line-height: 1.7;
}

.term-log-row {
  color: #94a3b8;
}

.log-tag {
  font-weight: 600;
  margin-right: 6px;
}

.log-cyan { color: #38bdf8; }
.log-green { color: #4ade80; }
.log-gold { color: #fbbf24; }

.log-success {
  color: #f8fafc;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.term-highlight {
  color: var(--gold-primary);
  background: rgba(247, 147, 26, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Features Grid below Terminal */
.cli-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .cli-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cli-features-grid {
    grid-template-columns: 1fr;
  }
}

.cli-feat-card {
  background: rgba(14, 18, 26, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.35rem;
  transition: all 0.25s ease;
}

.cli-feat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(21, 27, 38, 0.8);
}

.feat-badge-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feat-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.feat-card-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.card-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

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

/* ==========================================================================
   VIEW 2: RESULT (Overview & Telemetry)
   ========================================================================== */
.result-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.75) 0%, rgba(10, 14, 22, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.result-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  margin-bottom: 2px;
}

.result-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.result-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.15);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.kpi-card.border-critical {
  border-left: 4px solid var(--risk-critical);
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.08) 0%, rgba(10, 14, 22, 0.9) 100%);
}

.kpi-card.border-high {
  border-left: 4px solid var(--risk-high);
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.08) 0%, rgba(10, 14, 22, 0.9) 100%);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kpi-footer {
  font-size: 0.72rem;
}

.dashboard-split {
  display: flex;
  gap: 1.5rem;
}

/* Modules Summary List */
.modules-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.module-summary-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.module-summary-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.mod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.mod-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.mod-weight {
  font-size: 0.7rem;
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-weight: 600;
}

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

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.forensic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.forensic-table th {
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

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

.forensic-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge-tag, .badge-mini {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.badge-risk {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-risk.CRITICAL { background: var(--risk-critical-bg); color: var(--risk-critical); border: 1px solid rgba(220, 38, 38, 0.4); }
.badge-risk.HIGH { background: var(--risk-high-bg); color: var(--risk-high); border: 1px solid rgba(234, 88, 12, 0.4); }
.badge-risk.MEDIUM { background: var(--risk-medium-bg); color: var(--risk-medium); border: 1px solid rgba(217, 119, 6, 0.4); }
.badge-risk.LOW { background: var(--risk-low-bg); color: var(--risk-low); border: 1px solid rgba(22, 163, 74, 0.4); }

/* ==========================================================================
   VIEW 3: BULK INGESTION STUDIO
   ========================================================================== */
.ingest-header-card {
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.ingest-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.sample-triggers {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.sample-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.btn-sample {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-sample:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.file-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.tag-csv { background: rgba(37, 99, 235, 0.25); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.4); }
.tag-xml { background: rgba(247, 147, 26, 0.25); color: #f59e0b; border: 1px solid rgba(247, 147, 26, 0.4); }

/* Dropzone */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  background: linear-gradient(145deg, rgba(14, 18, 26, 0.5) 0%, rgba(8, 12, 18, 0.7) 100%);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--gold-primary);
  background: rgba(247, 147, 26, 0.08);
  box-shadow: 0 0 30px rgba(247, 147, 26, 0.2);
  transform: translateY(-2px);
}

.dropzone-icon {
  color: var(--gold-primary);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px rgba(247, 147, 26, 0.4));
}

.dropzone-text h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dropzone-specs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Ingest Staged Card */
.ingest-staged-card {
  background: linear-gradient(135deg, rgba(20, 32, 50, 0.85) 0%, rgba(10, 16, 26, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(34, 197, 94, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
}

.staged-card-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.staged-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.staged-info-text {
  flex: 1;
}

.staged-pill-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.staged-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.staged-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.staged-action-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-execute-staged {
  background: linear-gradient(135deg, #f7931a 0%, #e67e00 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ffaa40 !important;
  box-shadow: 0 0 24px rgba(247, 147, 26, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  font-weight: 700 !important;
}

.btn-execute-staged:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(247, 147, 26, 0.6) !important;
}

.btn-clear-staged {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
}

.btn-clear-staged:hover {
  background: rgba(220, 38, 38, 0.15) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
  color: #ff8585 !important;
}

.preview-panel {
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

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

/* ==========================================================================
   VIEW 4: TRANSACTION INSPECTOR
   ========================================================================== */
/* ==========================================================================
   VIEW 4: TRANSACTION INSPECTOR
   ========================================================================== */
.inspector-search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 18px;
  color: var(--text-dim);
}

.search-input-wrap input {
  width: 100%;
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.85rem 1.25rem 0.85rem 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-white);
  outline: none;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.search-input-wrap input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.25);
}

/* Multi-Chain Controls & Quick Samples */
.inspector-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.chain-selector-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.chain-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.chain-pills-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chain-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.chain-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.chain-btn.active {
  background: rgba(247, 147, 26, 0.18);
  border-color: var(--gold-primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(247, 147, 26, 0.25);
}

.chain-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.chain-dot.btc { background: #f7931a; box-shadow: 0 0 8px rgba(247, 147, 26, 0.6); }
.chain-dot.eth { background: #627eea; box-shadow: 0 0 8px rgba(98, 126, 234, 0.6); }
.chain-dot.sol { background: #14f195; box-shadow: 0 0 8px rgba(20, 241, 149, 0.6); }

.quick-samples-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-sample-mini {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(6px);
}

.btn-sample-mini:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-sample-mini.alert-tag-btn {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.35);
  color: #ff8585;
}

.btn-sample-mini.alert-tag-btn:hover {
  background: rgba(229, 9, 20, 0.2);
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.3);
}

/* Inline Cyber Progress Indicator */
.inspector-inline-loader {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(10, 18, 32, 0.9) 0%, rgba(6, 12, 22, 0.95) 100%);
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 22px;
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.12);
  backdrop-filter: blur(16px);
  animation: pulseCyanGlow 2s infinite ease-in-out;
}

@keyframes pulseCyanGlow {
  0%, 100% { border-color: rgba(0, 212, 255, 0.3); box-shadow: 0 0 15px rgba(0, 212, 255, 0.08); }
  50% { border-color: rgba(0, 212, 255, 0.65); box-shadow: 0 0 35px rgba(0, 212, 255, 0.25); }
}

.loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00d4ff;
  margin-bottom: 2px;
}

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

/* Clean Initial Empty State Card */
.inspector-empty-card {
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.85) 0%, rgba(8, 12, 20, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem 2.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.empty-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.empty-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.empty-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
}

.empty-system-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

.empty-baseline-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: rgba(247, 147, 26, 0.1);
  border: 1px solid rgba(247, 147, 26, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
}

.empty-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

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

.empty-metric-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(8px);
}

.emt-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.emt-val {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
}

.emt-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 400;
}

.emt-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.empty-card-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
}

.empty-prompt-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px rgba(247, 147, 26, 0.3));
}

.empty-prompt-text strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.empty-prompt-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* NTRO Threat Intel Alert Banner */
.threat-alert-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(139, 0, 0, 0.35) 0%, rgba(229, 9, 20, 0.18) 100%);
  border: 1px solid #e50914;
  border-radius: 22px;
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 28px rgba(229, 9, 20, 0.28);
  backdrop-filter: blur(14px);
  animation: threatPulse 2.4s infinite ease-in-out;
}

@keyframes threatPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(229, 9, 20, 0.2); }
  50% { box-shadow: 0 0 36px rgba(229, 9, 20, 0.48); }
}

.threat-alert-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.threat-alert-icon {
  font-size: 1.8rem;
}

.threat-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff4d4f;
  margin-bottom: 2px;
}

.threat-action {
  font-size: 0.8rem;
  color: #ffd1d1;
}

.threat-pill {
  background: #e50914;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.5);
}

/* Wallet Telemetry Banner */
.wallet-telemetry-banner {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 1.25rem;
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.85) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.wt-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  display: block;
}

.wt-status {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.wt-balance-label, .wt-tokens-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.wt-balance-val {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
}

.wt-tokens-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.token-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-white);
}

.tx-header-banner {
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.85) 0%, rgba(10, 14, 22, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.label-caps {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.25rem;
}

.tx-banner-left h2 {
  font-size: 1.45rem;
  word-break: break-all;
  margin-bottom: 0.75rem;
}

.tx-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-chip strong {
  color: var(--text-white);
}

.risk-gauge-box {
  background: linear-gradient(135deg, rgba(20, 26, 38, 0.9) 0%, rgba(12, 16, 26, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 1.5rem 2.25rem;
  text-align: center;
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.risk-gauge-score {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.risk-gauge-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.risk-confidence {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* 5 Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module-card {
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.8) 0%, rgba(10, 14, 22, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.35rem 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.module-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mod-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.mod-score {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.fee-rate-gauge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1rem;
  border-radius: 16px;
  margin-bottom: 0.75rem;
}

.rate-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
}

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

.rate-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.metric-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mod-explanation {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.pattern-tags-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.p-tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(247, 147, 26, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(247, 147, 26, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-block;
}

/* Explainable Factors List */
.factors-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.factor-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  border-left: 4px solid var(--gold-primary);
  backdrop-filter: blur(8px);
}

.factor-name {
  font-weight: 600;
  font-size: 0.82rem;
  min-width: 220px;
}

.factor-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
}

.factor-score {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

/* UTXO Split */
.utxo-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.utxo-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.utxo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1.15rem;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.placeholder-box {
  background: var(--bg-surface);
  border: 1px dashed var(--border-card);
  border-radius: 12px;
  padding: 5rem 2rem;
  text-align: center;
}

.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   VIEW 5: NETWORK GRAPH
   ========================================================================== */
.graph-layout {
  display: flex;
  height: calc(100vh - 120px);
  gap: 1rem;
  padding: 0 2rem;
}

.graph-canvas-container {
  flex: 3;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}

#entity-graph-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-floating-toolbar {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
}

.graph-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.graph-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.dot-critical { background: var(--risk-critical); box-shadow: 0 0 6px var(--risk-critical); }
.dot-high { background: var(--risk-high); }
.dot-low { background: var(--risk-low); }
.dot-ip { background: var(--tech-blue); }

.graph-sidebar {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-y: auto;
}

.sidebar-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   VIEW 6: ALERTS FEED
   ========================================================================== */
.alerts-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

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

.filter-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.filter-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.3);
}

.pill-critical.active { background: var(--risk-critical-bg); color: #f87171; border-color: var(--risk-critical); }
.pill-high.active { background: var(--risk-high-bg); color: #fb923c; border-color: var(--risk-high); }
.pill-medium.active { background: var(--risk-medium-bg); color: #fbbf24; border-color: var(--risk-medium); }
.pill-low.active { background: var(--risk-low-bg); color: #4ade80; border-color: var(--risk-low); }

/* ==========================================================================
   VIEW 7: INVESTIGATION DOSSIER (Printable Report)
   ========================================================================== */
.dossier-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.dossier-document {
  background: #ffffff;
  color: #0f172a;
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  max-width: 960px;
  margin: 0 auto;
  font-family: var(--font-body);
}

.dossier-official-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dossier-crest {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.dossier-gov-titles h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.dossier-gov-titles h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.dossier-gov-titles p {
  font-size: 0.75rem;
  color: #64748b;
}

.dossier-classification {
  margin-left: auto;
}

.class-stamp {
  border: 2px solid #dc2626;
  color: #dc2626;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 8px;
  letter-spacing: 0.08em;
}

.dossier-hr {
  border: none;
  border-top: 2px solid #0f172a;
  margin: 1.25rem 0;
}

.dossier-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

.dossier-score-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
}

.dossier-big-score {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #dc2626;
  line-height: 1;
}

.dossier-risk-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #dc2626;
  margin-top: 0.25rem;
}

.dossier-score-right h4 {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.dossier-score-right p {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
}

.dossier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.dossier-table th {
  background: #f1f5f9;
  color: #0f172a;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.dossier-table td {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}

.dossier-evidence-list {
  padding-left: 1.25rem;
  font-size: 0.8rem;
  color: #1e293b;
  line-height: 1.6;
}

.dossier-disclaimer {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #991b1b;
  line-height: 1.5;
}

/* ==========================================================================
   MODAL: 8-STEP ANIMATED SCANNING
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.scan-modal-card {
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.94) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  width: min(92vw, 580px);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 45px rgba(247, 147, 26, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(28px);
}

.scan-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.scan-radar-icon {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gold-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(247, 147, 26, 0.4);
  flex-shrink: 0;
}

.stepper-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  padding: 9px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-item.active {
  background: linear-gradient(90deg, rgba(247, 147, 26, 0.22) 0%, rgba(247, 147, 26, 0.06) 100%);
  color: var(--text-white);
  border: 1px solid rgba(247, 147, 26, 0.6);
  box-shadow: 0 6px 20px rgba(247, 147, 26, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.stepper-item.completed {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.18) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.stepper-item.active .step-num {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 10px rgba(247, 147, 26, 0.6);
}

.stepper-item.completed .step-num {
  background: #22c55e;
  color: #000;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.step-text {
  flex: 1;
  font-weight: 500;
}

.step-status {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stepper-item.completed .step-status {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.modal-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.modal-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), #00d4ff, #22c55e);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
  transition: width 0.2s ease-out;
}

/* ==========================================================================
   NETFLIX-STYLE CINEMATIC OPENING INTRO
   ========================================================================== */
.netflix-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #040406;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s ease;
  user-select: none;
}

.netflix-intro-overlay.netflix-fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.08);
  filter: blur(14px);
  pointer-events: none;
}

/* Atmospheric Ambient Red Core & Vignette */
.netflix-bg-ambient {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at center, rgba(229, 9, 20, 0.22) 0%, rgba(131, 16, 16, 0.12) 35%, rgba(4, 4, 6, 0.95) 70%, #040406 100%);
  pointer-events: none;
  animation: netflixAmbientBreathe 3.2s ease-in-out infinite alternate;
}

@keyframes netflixAmbientBreathe {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.05); opacity: 0.9; }
}

.netflix-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

/* Horizontal Anamorphic Lens Flare Line */
.netflix-beam-horizon {
  position: absolute;
  top: 50%;
  left: -10%;
  right: -10%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(229, 9, 20, 0.6) 35%, #ffffff 50%, rgba(229, 9, 20, 0.6) 65%, transparent 100%);
  filter: drop-shadow(0 0 12px #e50914) drop-shadow(0 0 35px #ff2b35);
  opacity: 0;
  transform: translateY(-50%) scaleX(0.2);
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.netflix-beam-horizon.active {
  opacity: 0.85;
  transform: translateY(-50%) scaleX(1);
}

/* Stage Container */
.netflix-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

/* Letter Wrapper */
.netflix-letters {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1px, 0.5vw, 8px);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Individual Netflix Letter Character */
.netflix-char {
  display: inline-block;
  font-family: 'Bebas Neue', 'Outfit', sans-serif;
  font-weight: 400;
  font-size: clamp(5.2rem, 14vw, 10.5rem);
  line-height: 0.92;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e50914;
  background: linear-gradient(180deg, #ffffff 0%, #ff2530 22%, #e50914 60%, #75050c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(229, 9, 20, 0.75));
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale3d(1.15, 1.15, 1);
  transition: transform 0.22s cubic-bezier(0.18, 1, 0.32, 1.25),
              opacity 0.18s ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Spacer between NEX and CHAIN */
.netflix-char.char-break {
  margin-left: clamp(14px, 2.5vw, 36px);
}

/* Visible Letter State (Crisp Pop-in) */
.netflix-char.pop-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Explosive Zoom Phase (Smooth 60fps GPU Blast) */
.netflix-letters.netflix-zoom-blast {
  animation: netflixLogoExplode 0.95s cubic-bezier(0.14, 0.96, 0.22, 1) forwards;
}

.netflix-letters.netflix-zoom-blast::after {
  content: '';
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle at center, rgba(255, 43, 53, 0.9) 0%, rgba(229, 9, 20, 0.35) 45%, transparent 75%);
  pointer-events: none;
  animation: netflixRadialBurst 0.85s ease-out forwards;
}

@keyframes netflixRadialBurst {
  0% { transform: scale3d(0.2, 0.2, 1); opacity: 0; }
  15% { transform: scale3d(1.1, 1.1, 1); opacity: 1; }
  100% { transform: scale3d(2.6, 2.6, 1); opacity: 0; }
}

@keyframes netflixLogoExplode {
  0% {
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    opacity: 1;
  }
  14% {
    transform: translate3d(0, 0, 0) scale3d(1.06, 1.06, 1);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale3d(8.5, 8.5, 1);
    opacity: 0;
  }
}

/* Subtitle / Meta Badge */
.netflix-meta {
  margin-top: 1.5rem;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  will-change: transform, opacity;
}

.netflix-meta.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.netflix-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.38);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff4d55;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.25);
}

.netflix-meta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e50914;
  box-shadow: 0 0 10px #ff2b35;
  animation: pulseDotRed 1.2s infinite alternate;
}

@keyframes pulseDotRed {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; }
}

.netflix-meta-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

/* Vertical Spectrum Light Ribbons (Hardware-Accelerated Stream) */
.netflix-ribbons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-around;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: opacity;
}

.netflix-ribbons.active {
  opacity: 1;
}

.netflix-ribbon-bar {
  width: var(--r-w, 4px);
  height: 100%;
  background: var(--r-grad, linear-gradient(180deg, transparent, #e50914, #ff2b35, transparent));
  opacity: var(--r-op, 0.7);
  transform: scaleY(0);
  transform-origin: center;
  will-change: transform, opacity;
}

.netflix-ribbons.active .netflix-ribbon-bar {
  animation: netflixRibbonBurst 0.85s cubic-bezier(0.12, 0.9, 0.25, 1) forwards;
  animation-delay: var(--r-delay, 0s);
}

@keyframes netflixRibbonBurst {
  0% {
    transform: scaleY(0) scaleX(1);
    opacity: 0;
  }
  25% {
    transform: scaleY(1.2) scaleX(1.3);
    opacity: 0.95;
  }
  100% {
    transform: scaleY(2) scaleX(2.5);
    opacity: 0;
  }
}

/* Skip Intro Button */
.netflix-skip-btn {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.netflix-skip-btn:hover {
  background: rgba(229, 9, 20, 0.25);
  border-color: #e50914;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.netflix-skip-btn:active {
  transform: translateY(0);
}

/* Print CSS */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .app-header, .dossier-actions-bar, .canvas-viewport {
    display: none !important;
  }
  .app-view {
    display: none !important;
    padding: 0 !important;
  }
  #view-dossier {
    display: block !important;
  }
  .dossier-document {
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
}
