/* ==========================================================================
   TURKEY4SHELL (CVE-2026-1126) — Tactical Dark Terminal Design System
   ========================================================================== */

:root {
  --bg-base: #07080c;
  --surface: #0f1117;
  --surface-alt: #131722;
  --surface-terminal: #090b10;
  --border: #262b36;
  --border-subtle: #1b202b;
  --border-crit: #7f1d1d;

  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --red-glow: rgba(239, 68, 68, 0.28);
  --gravy-red: #991b1b;
  --gravy-bright: #f87171;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-glow: rgba(34, 197, 94, 0.25);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --cyan: #38bdf8;

  --text: #f3f4f6;
  --text-soft: #d1d5db;
  --muted: #9ca3af;

  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background-color: var(--bg-base);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: filter 0.5s ease;
}

/* ==========================================================================
   Ambient Background Layers (Grid, Red Vignette, Subtle Scanlines, Side Logs)
   ========================================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(34, 197, 94, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 197, 94, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 65% at 50% 0%, rgba(239, 68, 68, 0.11), transparent 62%),
    radial-gradient(ellipse 40% 90% at 0% 50%, rgba(153, 27, 27, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 90% at 100% 50%, rgba(153, 27, 27, 0.16), transparent 70%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.65) 100%);
}

.bg-scanlines {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255, 255, 255, 0.8) 3px,
    transparent 4px
  );
}

.bg-side-logs {
  display: none;
}

@media (min-width: 1360px) {
  .bg-side-logs {
    display: block;
    position: fixed;
    top: 96px;
    bottom: 24px;
    width: 190px;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.55;
    color: rgba(34, 197, 94, 0.16);
    white-space: pre;
    user-select: none;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  }

  .bg-side-logs--left {
    left: 14px;
  }

  .bg-side-logs--right {
    right: 14px;
    color: rgba(239, 68, 68, 0.15);
    text-align: right;
  }
}

.stuffcon-canvas {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.stuffcon-active {
  background-color: #05050a;
}

body.stuffcon-active .stuffcon-canvas {
  opacity: 1;
}

body.stuffcon-active main,
body.stuffcon-active .site-footer {
  filter: brightness(0.76) saturate(0.85) contrast(1.06);
  transition: filter 0.5s ease;
}

body.stuffcon-active .bg-vignette {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(239, 68, 68, 0.24), transparent 65%),
    radial-gradient(circle at 50% 50%, rgba(12, 10, 28, 0.2) 35%, rgba(127, 29, 29, 0.32) 100%);
}

/* ==========================================================================
   Accessibility & Utilities
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--green);
  color: #05080c;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 44px;
}

.section-header {
  margin-bottom: 24px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.title-sub {
  font-weight: 500;
  color: var(--muted);
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 68ch;
}

.subsection-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-gravy-bright { color: var(--gravy-bright); }
.dim { color: #525b6e; }

/* Inline Code Tokens */
.inline-code,
.inline-path,
.inline-error {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.inline-path {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.inline-error {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.highlight-amber { color: var(--amber); font-family: var(--font-mono); }
.highlight-green { color: var(--green); font-family: var(--font-mono); }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Top Sticky Alert Ticker
   ========================================================================== */

.alert-ticker {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #2a0a0d 0%, #450a0a 50%, #2a0a0d 100%);
  border-bottom: 1px solid var(--border-crit);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
}

.alert-ticker__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.alert-ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.tag-gravy {
  background: var(--gravy-red);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.tag-red {
  color: #fca5a5;
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.35);
  margin-inline: 4px;
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 30px;
  z-index: 50;
  background: rgba(7, 8, 12, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand-logo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: #0d1017;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.brand-logo-btn:hover {
  transform: scale(1.08);
  border-color: var(--red);
}

.pixel-emblem {
  display: block;
  image-rendering: pixelated;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--font-mono);
}

.brand-name {
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.brand-cve {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-links a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 500;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.star-icon {
  color: var(--amber);
}

.star-count {
  padding-left: 5px;
  border-left: 1px solid var(--border);
  color: var(--text);
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 20px 16px;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.97);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 10px 8px;
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 6px 11px;
  font-size: 0.76rem;
}

.btn--lg {
  padding: 12px 20px;
  font-size: 0.88rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--red);
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.28);
}

.btn--primary:hover {
  background: #dc2626;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.45);
}

.btn--terminal {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
}

.btn--terminal:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 18px var(--green-glow);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}

.btn--ghost:hover {
  background: var(--surface-alt);
  border-color: #475569;
  color: #fff;
}

.btn--danger {
  background: var(--gravy-red);
  border-color: var(--red);
  color: #fff;
}

.btn--danger:hover,
.btn--danger[aria-pressed="true"] {
  background: var(--red);
  box-shadow: 0 0 18px var(--red-glow);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: var(--green);
}

.copy-btn.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: #05080c;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75);
  animation: pulse-ring 1.6s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.75); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ==========================================================================
   Panels & HUD Framing
   ========================================================================== */

.panel {
  position: relative;
  background: rgba(15, 17, 23, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.panel--critical {
  border-color: var(--border-crit);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.16),
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 0 40px rgba(153, 27, 27, 0.08);
}

.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.hud-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  border-top-left-radius: var(--radius-md);
}

.hud-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--red);
  border-right: 2px solid var(--red);
  border-bottom-right-radius: var(--radius-md);
}

.hud-frame--green {
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: 0 0 32px rgba(34, 197, 94, 0.08), 0 18px 44px rgba(0, 0, 0, 0.5);
}

.hud-frame--green::before {
  border-top-color: var(--green);
  border-left-color: var(--green);
}

.hud-frame--green::after {
  border-bottom-color: var(--green);
  border-right-color: var(--green);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding-top: 44px;
  padding-bottom: 34px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__seal-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 10px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(153, 27, 27, 0.7);
  background: rgba(15, 17, 23, 0.9);
  box-shadow: 0 0 24px rgba(153, 27, 27, 0.25);
}

.dirt-seal {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.22));
}

.hero__classification {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  text-align: left;
}

.hero__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(239, 68, 68, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.8);
}

.hero__cve-line {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero__subtitle {
  margin: 14px 0 0;
  max-width: 680px;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  color: var(--text-soft);
  font-weight: 500;
}

.severity-badges {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.badge--critical {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(153, 27, 27, 0.26);
  color: #fecaca;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.18);
}

.badge--alert {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.badge--warn {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
}

.badge--muted {
  border-color: var(--border);
  color: var(--muted);
}

.badge--green {
  border-color: rgba(34, 197, 94, 0.45);
  background: var(--green-soft);
  color: #86efac;
  font-weight: 700;
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Section 1: The Exploit
   ========================================================================== */

.panel__header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(127, 29, 29, 0.55);
}

.exploit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: center;
}

.advisory-box {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 8, 12, 0.72);
}

.advisory-box p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.advisory-box p:last-child {
  margin-bottom: 0;
}

.threat-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.threat-metric {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 11, 16, 0.85);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.threat-metric__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.threat-metric__val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.mascot-col {
  display: flex;
  justify-content: center;
}

.mascot-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: radial-gradient(circle at 50% 42%, rgba(234, 88, 12, 0.14), rgba(7, 8, 12, 0.9) 72%);
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mascot-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  box-shadow: 0 0 26px rgba(245, 158, 11, 0.2);
}

.mascot-card:active {
  transform: scale(0.97);
}

.pixel-mascot {
  display: block;
  width: 164px;
  height: 164px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

.mascot-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
}

.mascot-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.mascot-hint {
  font-size: 0.68rem;
  color: var(--muted);
}

/* Payload Selector Workbench */
.payload-workbench {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

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

.pill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-tab {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill-tab:hover {
  color: var(--text);
  border-color: #475569;
}

.pill-tab.is-active {
  background: rgba(239, 68, 68, 0.16);
  border-color: var(--red);
  color: #fecaca;
}

.payload-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-crit);
  background: var(--surface-terminal);
  box-shadow: inset 0 0 18px rgba(239, 68, 68, 0.08);
}

.payload-code {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--amber);
  word-break: break-all;
}

.payload-caption {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   Section 2: Interactive Terminal PoC
   ========================================================================== */

.terminal-window {
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.6);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #141821;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.terminal-chrome__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.terminal-filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

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

.dot--red { background: #ef4444; }
.dot--amber { background: #f59e0b; }
.dot--green { background: #22c55e; }

.terminal-chrome__winbtns {
  display: inline-flex;
  gap: 12px;
  color: #64748b;
  font-size: 0.82rem;
}

.terminal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #0d1017;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 0;
}

.toolbar-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.terminal-select {
  width: 100%;
  max-width: 440px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.terminal-body {
  min-height: 310px;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.72;
  color: var(--text-soft);
  overflow-x: auto;
}

.term-line {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  animation: termFadeIn 0.16s ease forwards;
}

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

.term-cmd { color: #ffffff; font-weight: 700; }
.term-prompt { color: var(--green); font-weight: 800; }
.term-info { color: var(--cyan); }
.term-ok { color: var(--green); }
.term-warn { color: var(--amber); font-weight: 700; }
.term-crit { color: var(--red); font-weight: 700; }
.term-muted { color: var(--muted); }

.term-cursor {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  vertical-align: -2px;
  background: var(--green);
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ==========================================================================
   Section 3: Interactive "Is My Uncle Vulnerable?" Live Scanner
   ========================================================================== */

.scanner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
}

.scanner-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fieldset-reset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}

.form-hint {
  font-weight: 400;
  color: var(--muted);
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.text-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  outline: none;
}

.value-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.range-input {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
  height: 22px;
}

.range-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--muted);
  padding-inline: 2px;
}

.segmented-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.9fr);
  gap: 6px;
}

.seg-btn {
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.seg-btn small {
  font-weight: 500;
  color: var(--muted);
}

.seg-btn:hover {
  border-color: #475569;
}

.seg-btn.is-active {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--red);
  color: #ffffff;
}

.seg-btn.is-active small {
  color: #fecaca;
}

.radio-stack,
.check-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.choice-card:hover {
  border-color: #475569;
}

.choice-card:has(input:checked) {
  border-color: var(--red);
  background: rgba(239, 68, 68, 0.08);
}

.choice-card input,
.check-item input {
  margin-top: 3px;
  accent-color: var(--red);
  cursor: pointer;
  flex-shrink: 0;
}

.choice-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.choice-card__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.choice-card__sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(9, 11, 16, 0.65);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-soft);
  transition: border-color 0.15s ease;
}

.check-item:hover {
  border-color: var(--border);
}

.check-item__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inline-note {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #fca5a5;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: fit-content;
}

.inline-note--amber {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
}

.risk-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
}

.risk-tag--red { background: var(--red-soft); color: #fca5a5; }
.risk-tag--amber { background: var(--amber-soft); color: #fde68a; }
.risk-tag--green { background: var(--green-soft); color: #86efac; }
.risk-tag--muted { background: rgba(156, 163, 175, 0.12); color: var(--muted); }

/* Scanner Output Telemetry Panel */
.scanner-output {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scanner-output__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.telemetry-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
  word-break: break-word;
}

.status-badge {
  display: inline-block;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid var(--red);
  background: var(--red-soft);
  color: #fecaca;
}

.status-badge.level-low {
  border-color: var(--green);
  background: var(--green-soft);
  color: #86efac;
}

.status-badge.level-high {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #fde68a;
}

.status-badge.level-critical {
  border-color: var(--red);
  background: var(--red-soft);
  color: #fecaca;
}

.status-badge.level-stuffcon {
  border-color: #f87171;
  background: var(--gravy-red);
  color: #ffffff;
  box-shadow: 0 0 22px var(--red-glow);
}

.dial-wrap {
  flex-shrink: 0;
}

.dial-fill {
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
}

.dial-pct {
  fill: #ffffff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.dial-sub {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Overflow Meter */
.meter-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.meter-score {
  color: var(--text);
  font-weight: 700;
}

.meter-track {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: #141925;
  border: 1px solid var(--border);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0%, var(--amber) 55%, var(--red) 84%, #ff2a55 100%);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.meter-threshold {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 83.333%;
  width: 2px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 6px #fff;
}

.meter-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--muted);
}

.status-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--red);
  background: rgba(7, 8, 12, 0.75);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.telemetry-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-terminal);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-box__label {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stat-box__value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--amber);
}

.stat-box__value--sm {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-soft);
}

.ioc-live-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ioc-pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ioc-pill-list li {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.ioc-pill-list li.ioc-pill--amber {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.ioc-pill-list li.ioc-pill--green {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.scanner-output__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.report-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ==========================================================================
   Section 4: Indicators of Compromise & SHA-256 Table
   ========================================================================== */

.ioc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.ioc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-color: rgba(127, 29, 29, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.ioc-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(7, 8, 12, 0.8);
  border: 1px solid var(--border-subtle);
}

.ioc-card__art svg {
  max-width: 100%;
  height: auto;
}

.ioc-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
}

.ioc-card__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.ioc-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.hash-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.hash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.hash-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.hash-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.hash-table tr:last-child td {
  border-bottom: none;
}

.hash-phrase {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.hash-val {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  word-break: break-all;
}

.th-action,
.td-action {
  text-align: right;
  white-space: nowrap;
}

/* ==========================================================================
   Section 5: Incident & Disclosure Timeline
   ========================================================================== */

.timeline-panel {
  background: rgba(8, 12, 14, 0.94);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(34, 197, 94, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 19, 27, 0.62);
  border: 1px solid var(--border-subtle);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 10px var(--green);
}

.timeline-item:nth-last-child(-n+2)::before {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.timeline-content {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.log-sev {
  font-weight: 800;
  margin-right: 6px;
}

.log-sev--info { color: var(--cyan); }
.log-sev--warn { color: var(--amber); }
.log-sev--crit { color: var(--red); }
.log-sev--leak { color: #f472b6; }
.log-sev--cve { color: var(--gravy-bright); }

/* ==========================================================================
   Section 6: Affected Systems & Mitigations
   ========================================================================== */

.affected-panel {
  margin-bottom: 20px;
  border-color: rgba(239, 68, 68, 0.45);
}

.affected-panel__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--gravy-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.affected-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  align-items: center;
}

.affected-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.affected-panel p {
  margin: 0;
  color: var(--text-soft);
}

.eol-callout {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
  font-size: 0.86rem;
}

.eol-callout strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  color: var(--amber);
}

.mitigation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mitigation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.mitigation-card--wide {
  grid-column: 1 / -1;
}

.mitigation-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mitigation-card h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: var(--text);
}

.mitigation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
}

.status-pill--amber {
  background: var(--amber-soft);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-pill--red {
  background: var(--red-soft);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.status-pill--gravy {
  background: var(--gravy-red);
  color: #ffffff;
  border: 1px solid var(--red);
}

.code-block {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-terminal);
  overflow: hidden;
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #131722;
  border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.code-pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: #86efac;
  overflow-x: auto;
}

.warning-callout {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.5);
  background: rgba(153, 27, 27, 0.22);
  color: #fecaca;
  font-size: 0.88rem;
}

/* ==========================================================================
   Section 7: FAQ Accordion
   ========================================================================== */

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 17, 23, 0.92);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(34, 197, 94, 0.45);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--green);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: var(--red);
}

.faq-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-soft);
}

.faq-body p {
  margin: 14px 0 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.94);
  padding: 28px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__disclaimer {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #4b5563;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  color: var(--green);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-btn:hover {
  color: #fff;
}

/* ==========================================================================
   Toasts & Native Dialogs (STUFFCON-1 Kernel Panic + View Source)
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--green);
  background: rgba(9, 13, 18, 0.96);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  animation: toastIn 0.2s ease forwards;
}

.toast--warn {
  border-color: var(--amber);
}

.toast--danger {
  border-color: var(--red);
}

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

dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  max-width: min(640px, calc(100vw - 24px));
  width: 100%;
}

dialog::backdrop {
  background: rgba(3, 4, 8, 0.82);
  backdrop-filter: blur(5px);
}

.panic-dialog__frame {
  border-radius: var(--radius-md);
  border: 2px solid var(--red);
  background: #0b0608;
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.45);
  overflow: hidden;
}

.panic-dialog__bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--gravy-red);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.panic-dialog__body {
  padding: 24px;
  text-align: center;
}

.panic-skull {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.panic-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #fecaca;
  word-break: break-word;
}

.panic-trace {
  margin: 0 0 20px;
  padding: 14px;
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: #07080c;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #86efac;
  overflow-x: auto;
}

.panic-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.info-dialog__frame {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.info-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #131722;
}

.info-dialog__header h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.dialog-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  cursor: pointer;
}

.dialog-close:hover {
  color: #fff;
  border-color: var(--red);
}

.info-dialog__body {
  padding: 18px;
}

.info-dialog__body p {
  margin-top: 0;
  color: var(--text-soft);
}

.muted-small {
  margin-top: 14px;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* ==========================================================================
   Responsive Breakpoints (Desktop -> Tablet -> Mobile 390px)
   ========================================================================== */

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .exploit-grid,
  .scanner-grid,
  .affected-panel__grid {
    grid-template-columns: 1fr;
  }

  .scanner-output {
    position: static;
  }

  .ioc-grid,
  .mitigation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 0;
  }

  .alert-ticker {
    position: static;
    font-size: 10px;
  }

  .container {
    padding-inline: 14px;
  }

  .panel {
    padding: 18px 15px;
  }

  .brand-cve {
    display: none;
  }

  .nav-actions .btn--sm {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 28px;
  }

  .hero__seal-row {
    flex-direction: column;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: center;
  }

  .hero__classification {
    text-align: center;
    font-size: 0.68rem;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .threat-strip {
    grid-template-columns: 1fr;
  }

  .payload-box {
    flex-direction: column;
    align-items: stretch;
  }

  .payload-box .copy-btn {
    align-self: flex-end;
  }

  .segmented-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seg-btn--wide {
    grid-column: 1 / -1;
  }

  .scanner-output__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hash-phrase {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
