/* ==========================================================================
   CyberShield - Editorial Luxury Tech Design System
   Inspired by Design Monks / AgentFlow Dribbble Award-Winning Aesthetic
   Deep Obsidian, Warm Amber Gold Accents, Editorial Serif Headlines
   ========================================================================== */

:root {
  /* Core Luxury Palette */
  --bg-deep: #070709;
  --bg-canvas: #0c0d12;
  --bg-card: rgba(18, 19, 26, 0.75);
  --bg-card-hover: rgba(24, 26, 36, 0.85);
  --bg-card-elevated: #151620;

  /* Crystalline Glass & Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(251, 176, 52, 0.32);
  --border-hover: rgba(255, 225, 140, 0.65);
  --border-focus: #fbb034;

  /* Signature Starlight Amber Gold Glowing Borders (Matching Neural Brain) */
  --starlight-gold: #ffdf88;
  --amber-core: #fbb034;
  --amber-dark: #ff8c00;
  --amber-gradient: linear-gradient(135deg, #fbb034 0%, #ff8c00 100%);
  --amber-glow: rgba(251, 176, 52, 0.45);
  --amber-subtle: rgba(251, 176, 52, 0.15);
  --brain-shine-border: 1px solid rgba(251, 176, 52, 0.38);
  --brain-shine-glow: 0 0 24px -3px rgba(251, 176, 52, 0.25), inset 0 1px 1px 0 rgba(255, 235, 170, 0.35);
  --brain-shine-glow-hover: 0 0 35px 2px rgba(251, 176, 52, 0.45), 0 20px 50px -10px rgba(0, 0, 0, 0.8), inset 0 1px 2px 0 rgba(255, 245, 200, 0.55);

  /* Status Indicators */
  --color-safe: #10b981;
  --color-safe-bg: rgba(16, 185, 129, 0.12);
  --color-safe-border: rgba(16, 185, 129, 0.35);

  --color-danger: #f43f5e;
  --color-danger-bg: rgba(244, 63, 94, 0.12);
  --color-danger-border: rgba(244, 63, 94, 0.35);

  /* Typography Colors */
  --text-white: #ffffff;
  --text-primary: #f1f2f6;
  --text-secondary: #9da3b4;
  --text-tertiary: #6b7280;
  --text-muted: #4b5262;

  /* Font Families */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius & Curves */
  --radius-shell: 28px;
  --radius-card: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-luxury);
  --transition-smooth: 0.35s var(--ease-luxury);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.luxury-dark {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, #171822 0%, #070709 60%);
}

/* Ambient Ambient Radial Glows */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-radial {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
}

.glow-amber {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 176, 52, 0.15) 0%, transparent 70%);
  top: -150px;
  right: 5%;
}

.glow-slate {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, transparent 70%);
  bottom: 0;
  left: -100px;
}

/* ==========================================================================
   Outer Device Canvas Shell (AgentFlow Showcase Frame)
   ========================================================================== */
.canvas-shell {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 1.5rem auto 3rem;
  background-color: var(--bg-canvas);
  border: 1px solid rgba(251, 176, 52, 0.28);
  border-radius: var(--radius-shell);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.85), 0 0 40px -10px rgba(251, 176, 52, 0.22), inset 0 1px 1px 0 rgba(255, 235, 170, 0.35);
  overflow: hidden;
}

/* ==========================================================================
   Agency Navigation Bar
   ========================================================================== */
.app-navbar {
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 13, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-pebble {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--amber-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  box-shadow: 0 4px 15px var(--amber-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-dot {
  color: var(--amber-core);
}

/* Center Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--amber-core);
  font-weight: 600;
  background: rgba(251, 176, 52, 0.08);
  border: 1px solid rgba(251, 176, 52, 0.25);
}

/* Right Status & Engine Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-safe);
  background: var(--color-safe-bg);
  border: 1px solid var(--color-safe-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: var(--color-safe);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-safe);
}

.select-pill select {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-pill select:hover,
.select-pill select:focus {
  color: #ffffff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.09);
}

.select-pill select option {
  background: #111218;
  color: #ffffff;
}

/* ==========================================================================
   Hero Split Section (AgentFlow Signature Showcase)
   ========================================================================== */
.main-stage {
  padding: 2.5rem 3rem 4rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 176, 52, 0.05);
  border: 1px solid rgba(251, 176, 52, 0.4);
  box-shadow: 0 0 18px rgba(251, 176, 52, 0.18), inset 0 1px 0 0 rgba(255, 235, 170, 0.3);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

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

.hero-headline {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2.25rem;
}

/* Hero CTA Buttons */
.hero-cta-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-primary-amber {
  background: var(--amber-gradient);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 10px 30px var(--amber-glow);
  transition: var(--transition-fast);
}

.btn-primary-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(251, 176, 52, 0.48);
}

.btn-secondary-glass {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 176, 52, 0.3);
  box-shadow: inset 0 1px 0 0 rgba(255, 235, 170, 0.15);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-secondary-glass:hover {
  background: rgba(251, 176, 52, 0.08);
  border-color: rgba(255, 225, 140, 0.5);
  box-shadow: 0 0 20px rgba(251, 176, 52, 0.2);
  transform: translateY(-2px);
}

/* Hero Visual (Brain Constellation Graphic) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-glow-halo {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 176, 52, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.brain-graphic-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: var(--radius-card);
  position: relative;
  z-index: 2;
  mask-image: radial-gradient(circle at 50% 50%, black 65%, transparent 95%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 65%, transparent 95%);
  animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.visual-tag {
  position: absolute;
  bottom: 10px;
  right: 20px;
  z-index: 3;
  background: rgba(14, 15, 20, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 176, 52, 0.45);
  box-shadow: 0 0 25px rgba(251, 176, 52, 0.25), inset 0 1px 1px 0 rgba(255, 235, 170, 0.4);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
}

.visual-tag-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.visual-tag-sub {
  font-size: 0.68rem;
  color: var(--amber-core);
  font-weight: 600;
}

/* ==========================================================================
   Scanner Input Island
   ========================================================================== */
.scanner-section {
  margin-bottom: 3rem;
}

.scanner-box {
  background: var(--bg-card);
  border: 1px solid rgba(251, 176, 52, 0.35);
  border-radius: var(--radius-card);
  padding: 2rem 2.5rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 32px -6px rgba(251, 176, 52, 0.22), inset 0 1px 1px 0 rgba(255, 235, 170, 0.3);
  transition: all var(--transition-smooth);
}

.scanner-box:hover {
  border-color: rgba(255, 225, 140, 0.65);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 45px -2px rgba(251, 176, 52, 0.35), inset 0 1px 2px 0 rgba(255, 245, 200, 0.5);
}

.scanner-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.box-subtitle {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.input-island {
  display: flex;
  align-items: center;
  background: #090a0d;
  border: 1px solid rgba(251, 176, 52, 0.42);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 22px -4px rgba(251, 176, 52, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.55rem 0.45rem 1.5rem;
  transition: var(--transition-fast);
}

.input-island:focus-within {
  border-color: #fbb034;
  box-shadow: 0 0 0 3px rgba(251, 176, 52, 0.25), 0 0 35px rgba(251, 176, 52, 0.4);
}

.url-icon {
  color: var(--amber-core);
  display: flex;
  align-items: center;
  margin-right: 0.85rem;
  flex-shrink: 0;
}

.input-island input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.input-island input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.btn-amber-action {
  background: var(--amber-gradient);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px var(--amber-glow);
  transition: var(--transition-fast);
}

.btn-amber-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(251, 176, 52, 0.45);
}

.btn-loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Sample Test Chips */
.samples-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.samples-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.chip-cluster {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.test-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(251, 176, 52, 0.25);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.test-chip:hover {
  background: rgba(251, 176, 52, 0.08);
  color: #ffffff;
  border-color: rgba(255, 225, 140, 0.65);
  box-shadow: 0 0 16px rgba(251, 176, 52, 0.25);
  transform: translateY(-1px);
}

.chip-safe:hover {
  border-color: var(--color-safe-border);
  color: var(--color-safe);
}

.chip-danger:hover {
  border-color: var(--color-danger-border);
  color: var(--color-danger);
}

/* ==========================================================================
   Obsidian Glass Cards & Threat Verdict
   ========================================================================== */
.results-container {
  animation: slideFadeIn 0.35s var(--ease-luxury);
}

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

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.results-grid .features-card {
  grid-column: 1 / -1;
}

.obsidian-card {
  background: var(--bg-card);
  border: 1px solid rgba(251, 176, 52, 0.28);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.45), 0 0 28px -6px rgba(251, 176, 52, 0.16), inset 0 1px 1px 0 rgba(255, 235, 170, 0.25);
  transition: all var(--transition-smooth);
}

.obsidian-card:hover {
  border-color: rgba(255, 225, 140, 0.6);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), 0 0 45px -2px rgba(251, 176, 52, 0.32), inset 0 1px 2px 0 rgba(255, 245, 200, 0.45);
  transform: translateY(-2px);
}

.card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bar-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.telemetry-pill,
.count-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

/* Circular Gauge & Verdict */
.verdict-layout {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.gauge-pod {
  flex-shrink: 0;
}

.circular-progress {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: conic-gradient(var(--color-safe) 0deg, rgba(255, 255, 255, 0.05) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: background 0.5s var(--ease-luxury);
}

.inner-circle {
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: #0d0e14;
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.risk-val {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-safe);
}

.risk-sub {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.verdict-meta {
  flex: 1;
}

.verdict-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.verdict-status-pill {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.status-safe {
  color: var(--color-safe);
}

.status-threat {
  color: var(--color-danger);
}

.risk-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-safe-bg);
  color: var(--color-safe);
  border: 1px solid var(--color-safe-border);
}

.risk-pill.threat {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger-border);
}

.verdict-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.engine-indicator {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

.engine-indicator strong {
  color: var(--amber-core);
}

/* Explainability Flags */
.flags-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.flag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-danger);
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #ffffff;
}

.flag-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-border);
}

.empty-flags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-safe-bg);
  border: 1px solid var(--color-safe-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--color-safe);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Key Features Grid */
.feature-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.metric-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(251, 176, 52, 0.22);
  box-shadow: 0 0 15px -5px rgba(251, 176, 52, 0.12), inset 0 1px 0 0 rgba(255, 235, 170, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  transition: all var(--transition-fast);
}

.metric-cell:hover {
  border-color: rgba(255, 225, 140, 0.55);
  box-shadow: 0 0 20px rgba(251, 176, 52, 0.25);
  transform: translateY(-1px);
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* 51 Features Collapsible Drawer */
.feature-drawer {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-header-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-core);
  margin-bottom: 0.85rem;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.45rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.drawer-cell {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.drawer-cell span:first-child {
  color: var(--text-tertiary);
}

.drawer-cell span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--amber-core);
}

.amber-link-btn {
  background: transparent;
  border: none;
  color: var(--amber-core);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.amber-link-btn:hover {
  background: var(--amber-subtle);
}

/* ==========================================================================
   Batch Audit Section
   ========================================================================== */
.section-title-wrap {
  margin-bottom: 2rem;
}

.subpage-headline {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.subpage-subtext {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.batch-shell {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.batch-textarea {
  width: 100%;
  height: 140px;
  background: #090a0d;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 1rem;
  outline: none;
  resize: vertical;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.batch-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(251, 176, 52, 0.15);
}

.batch-button-row {
  display: flex;
  gap: 0.85rem;
}

/* KPI Pods */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-pod {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(251, 176, 52, 0.25);
  box-shadow: 0 0 20px -5px rgba(251, 176, 52, 0.14), inset 0 1px 0 0 rgba(255, 235, 170, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.kpi-pod:hover {
  border-color: rgba(255, 225, 140, 0.55);
  box-shadow: 0 0 25px rgba(251, 176, 52, 0.25);
  transform: translateY(-2px);
}

.kpi-digit {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.kpi-danger .kpi-digit { color: var(--color-danger); }
.kpi-safe .kpi-digit { color: var(--color-safe); }
.kpi-amber .kpi-digit { color: var(--amber-core); }

/* ==========================================================================
   Luxury Tables
   ========================================================================== */
.table-scroll-frame {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 176, 52, 0.2);
}

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

.luxury-table thead {
  background: rgba(255, 255, 255, 0.04);
}

.luxury-table th {
  padding: 0.85rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.luxury-table td {
  padding: 0.85rem 1.15rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.luxury-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.luxury-table tbody tr.row-best td {
  background: rgba(251, 176, 52, 0.08);
  color: #ffffff;
  font-weight: 600;
}

.luxury-table tbody tr.row-best td:first-child {
  border-left: 3px solid var(--amber-core);
}

/* ==========================================================================
   Model Gallery & Charts
   ========================================================================== */
.gallery-header {
  margin: 2rem 0 1.25rem;
}

.gallery-headline {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-sub {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.chart-pod {
  background: var(--bg-card);
  border: 1px solid rgba(251, 176, 52, 0.28);
  border-radius: var(--radius-card);
  padding: 1.35rem;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4), 0 0 24px -6px rgba(251, 176, 52, 0.16), inset 0 1px 1px 0 rgba(255, 235, 170, 0.25);
  transition: all var(--transition-smooth);
}

.chart-pod:hover {
  border-color: rgba(255, 225, 140, 0.6);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 38px -2px rgba(251, 176, 52, 0.32), inset 0 1px 2px 0 rgba(255, 245, 200, 0.45);
  transform: translateY(-2px);
}

.chart-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.chart-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #090a0e;
  display: block;
}

.chart-caption {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ==========================================================================
   Viva QA Deck
   ========================================================================== */
.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.qa-card {
  padding: 1.75rem;
}

.qa-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--amber-core);
  background: var(--amber-subtle);
  border: 1px solid rgba(251, 176, 52, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.85rem;
}

.qa-query {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.qa-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.qa-text strong {
  color: #ffffff;
}

.qa-text code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  color: var(--amber-core);
}

/* ==========================================================================
   Report View
   ========================================================================== */
.report-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.report-viewer {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-height: 700px;
  overflow-y: auto;
  padding-right: 1.25rem;
}

.report-viewer h1,
.report-viewer h2,
.report-viewer h3 {
  color: #ffffff;
  font-weight: 700;
  margin: 1.75rem 0 0.85rem;
}

.report-viewer h1 { font-size: 1.65rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; }
.report-viewer h2 { font-size: 1.3rem; color: #ffffff; }

.report-viewer pre {
  background: #090a0d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.report-viewer code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  color: var(--amber-core);
}

.report-viewer table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.85rem;
}

.report-viewer th,
.report-viewer td {
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.85rem;
}

.report-viewer th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 3rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-dim {
  color: var(--text-muted);
}

.footer-dot {
  margin: 0 0.35rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

.mb-6 {
  margin-bottom: 2rem;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #090a0d;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber-core);
}

/* Responsive Adaptations */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .results-grid, .gallery-grid, .qa-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .main-stage { padding: 2rem 1.5rem 3rem; }
}

@media (max-width: 768px) {
  .app-navbar { padding: 1rem; }
  .nav-menu { display: none; }
  .hero-headline { font-size: 2.8rem; }
  .input-island { flex-direction: column; border-radius: var(--radius-card); padding: 0.85rem; gap: 0.75rem; }
  .input-island input { width: 100%; }
  .btn-amber-action { width: 100%; justify-content: center; }
  .verdict-layout { flex-direction: column; text-align: center; }
  .kpi-grid { grid-template-columns: 1fr; }
}
