/* ==========================================================================
   SPECTRA // CYBER STEGANOGRAPHY STUDIO — TACTICAL HUD STYLESHEET
   ========================================================================== */

:root {
  --bg-deep: #050811;
  --bg-card: rgba(11, 18, 34, 0.86);
  --bg-input: rgba(6, 11, 22, 0.92);
  --border-hud: rgba(0, 229, 255, 0.22);
  --border-glow: rgba(0, 255, 157, 0.55);
  --neon-green: #00ff9d;
  --neon-cyan: #00e5ff;
  --neon-purple: #b366ff;
  --neon-amber: #ffb800;
  --neon-red: #ff3366;
  --text-main: #e8f1ff;
  --text-muted: #8ca2c0;
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-ar);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

/* Cyber Background Grid & Scanlines */
.cyber-bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 18% 15%, rgba(0, 255, 157, 0.08), transparent 36%),
    radial-gradient(circle at 82% 80%, rgba(0, 229, 255, 0.08), transparent 40%),
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.16) 4px
  );
}

/* Header */
.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 2rem;
  background: rgba(7, 12, 24, 0.92);
  border-bottom: 1px solid var(--border-hud);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.65);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-emblem {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.4);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-green);
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.18);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  font-weight: 600;
}

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

.telemetry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pill-green {
  color: var(--neon-green);
  border-color: rgba(0, 255, 157, 0.35);
  background: rgba(0, 255, 157, 0.08);
}

.pill-cyan {
  color: var(--neon-cyan);
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.pill-purple {
  color: var(--neon-purple);
  border-color: rgba(179, 102, 255, 0.35);
  background: rgba(179, 102, 255, 0.08);
}

.pill-amber {
  color: var(--neon-amber);
  border-color: rgba(255, 184, 0, 0.35);
  background: rgba(255, 184, 0, 0.08);
}

/* 1-Click Show-off Demo Strip */
.demo-strip {
  margin: 1rem 2rem 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.09), rgba(0, 229, 255, 0.07), rgba(179, 102, 255, 0.09));
  border: 1px solid rgba(0, 255, 157, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo-strip-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spark-icon {
  font-size: 1.5rem;
}

.demo-strip-label strong {
  display: block;
  font-size: 0.95rem;
  color: var(--neon-green);
}

.demo-strip-label span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.demo-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.demo-btn {
  cursor: pointer;
  font-family: var(--font-ar);
  background: rgba(8, 14, 28, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.demo-btn:hover {
  transform: translateY(-2px);
  border-color: var(--neon-green);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.25);
}

.demo-tag {
  font-size: 0.72rem;
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  background: rgba(0, 255, 157, 0.16);
  color: var(--neon-green);
  font-weight: 700;
}

/* Navigation Tabs */
.hud-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0.75rem 2rem;
}

.tab-btn {
  cursor: pointer;
  font-family: var(--font-ar);
  background: rgba(11, 18, 34, 0.78);
  border: 1px solid var(--border-hud);
  border-radius: 11px;
  padding: 0.8rem 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: right;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: rgba(0, 229, 255, 0.5);
  color: var(--text-main);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.14), rgba(0, 229, 255, 0.08));
  border-color: var(--neon-green);
  color: #fff;
  box-shadow: 0 0 22px rgba(0, 255, 157, 0.16);
}

.tab-icon {
  font-size: 1.45rem;
}

.tab-text strong {
  display: block;
  font-size: 0.94rem;
}

.tab-text small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-cyan);
  opacity: 0.85;
}

/* Main Workspace */
.workspace {
  padding: 0.5rem 2rem 2.5rem;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.panel-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .hud-tabs { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
}

/* HUD Card */
.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hud);
  border-radius: 14px;
  padding: 1.35rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
}

.card-header h2 {
  font-size: 1.08rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.accent-bar {
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--neon-cyan);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: #d0e2ff;
}

.hud-input,
.hud-textarea,
.hud-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hud-input:focus,
.hud-textarea:focus,
.hud-select:focus {
  outline: none;
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.2);
}

.mono-input {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  color: var(--neon-green);
}

.key-input-row {
  display: flex;
  gap: 0.6rem;
}

.entropy-meter {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 0.45rem;
}

.entropy-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
  transition: width 0.3s ease;
}

.hint-text {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Preset Buttons & Dropzone */
.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.preset-btn {
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--text-main);
  transition: all 0.18s;
}

.preset-btn:hover,
.preset-btn.active {
  background: rgba(0, 255, 157, 0.15);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.file-dropzone {
  cursor: pointer;
  border: 1.5px dashed rgba(0, 229, 255, 0.38);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  background: rgba(5, 10, 22, 0.65);
  transition: all 0.2s;
}

.file-dropzone:hover {
  border-color: var(--neon-green);
  background: rgba(0, 255, 157, 0.06);
}

.dropzone-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.drop-icon {
  font-size: 1.65rem;
}

.dropzone-content strong {
  display: block;
  font-size: 0.86rem;
  color: var(--neon-cyan);
}

.dropzone-content small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Attachment Bar */
.attachment-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

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

.btn-clear {
  cursor: pointer;
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  border-radius: 5px;
  padding: 0.1rem 0.45rem;
}

/* Dual-Vault Box */
.dual-vault-box {
  background: linear-gradient(135deg, rgba(179, 102, 255, 0.1), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(179, 102, 255, 0.38);
  border-radius: 11px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.dual-vault-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.dual-vault-header strong {
  font-size: 0.9rem;
  color: #e6ccff;
}

.dual-vault-header p {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.dual-vault-fields {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(179, 102, 255, 0.3);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.14);
  border-radius: 25px;
  transition: 0.25s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.25s;
}

.toggle-switch input:checked + .slider {
  background-color: var(--neon-purple);
  box-shadow: 0 0 12px var(--neon-purple);
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(21px);
}

/* Buttons */
.btn-primary {
  cursor: pointer;
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--neon-green);
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.22), rgba(0, 229, 255, 0.22));
  color: #fff;
  font-family: var(--font-ar);
  font-size: 0.96rem;
  font-weight: 800;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: linear-gradient(90deg, rgba(0, 255, 157, 0.36), rgba(0, 229, 255, 0.34));
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  cursor: pointer;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 229, 255, 0.38);
  background: rgba(0, 229, 255, 0.1);
  color: var(--neon-cyan);
  font-family: var(--font-ar);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.2);
  border-color: var(--neon-cyan);
}

.btn-success {
  cursor: pointer;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--neon-green);
  background: rgba(0, 255, 157, 0.18);
  color: var(--neon-green);
  font-family: var(--font-ar);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-success:hover {
  background: rgba(0, 255, 157, 0.3);
  box-shadow: 0 0 16px rgba(0, 255, 157, 0.3);
}

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

/* Viewer Stage & Tabs */
.viewer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.vtab {
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.4rem;
  border-radius: 8px;
  background: rgba(6, 11, 22, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.22);
  color: var(--text-muted);
  transition: all 0.18s;
}

.vtab.active {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--neon-cyan);
  color: #fff;
}

.image-stage {
  position: relative;
  background: #03060c;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  overflow: hidden;
  min-height: 270px;
  max-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-stage img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
}

.stage-overlay-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(5, 8, 17, 0.86);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--neon-green);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.metric-box {
  background: rgba(5, 10, 20, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 9px;
  padding: 0.65rem 0.85rem;
}

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

.metric-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.15rem 0;
}

.metric-val.cyan { color: var(--neon-cyan); }
.metric-val.green { color: var(--neon-green); }
.metric-val.purple { color: var(--neon-purple); }
.metric-val.amber { color: var(--neon-amber); }

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

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 229, 255, 0.16);
}

/* Quick Load Chips & Terminal */
.quick-load-box {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.quick-load-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.quick-load-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.btn-chip {
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 7px;
  background: rgba(0, 255, 157, 0.14);
  border: 1px solid rgba(0, 255, 157, 0.45);
  color: var(--neon-green);
  transition: all 0.18s;
}

.btn-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
}

.btn-chip-amber {
  background: rgba(255, 184, 0, 0.14);
  border-color: rgba(255, 184, 0, 0.45);
  color: var(--neon-amber);
}

.btn-chip-cyan {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.45);
  color: var(--neon-cyan);
}

.terminal-box {
  margin-top: 1rem;
  background: #03060d;
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 10px;
  overflow: hidden;
}

.terminal-header {
  background: rgba(0, 255, 157, 0.1);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-dots i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  margin-right: 4px;
  opacity: 0.7;
}

.terminal-body {
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #9ef8d2;
  white-space: pre-wrap;
  max-height: 155px;
  overflow-y: auto;
  direction: ltr;
  text-align: left;
}

/* Decrypted Output */
.vault-status-banner {
  padding: 0.75rem 1rem;
  border-radius: 9px;
  margin-bottom: 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.vault-status-primary {
  background: rgba(0, 255, 157, 0.15);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
}

.vault-status-decoy {
  background: rgba(255, 184, 0, 0.16);
  border: 1px solid var(--neon-amber);
  color: var(--neon-amber);
}

.decrypted-output-box {
  background: rgba(3, 7, 15, 0.92);
  border: 1px solid rgba(0, 255, 157, 0.35);
  border-radius: 10px;
  padding: 1rem;
  min-height: 120px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: #fff;
}

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

.extracted-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(179, 102, 255, 0.12);
  border: 1px solid var(--neon-purple);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
}

.extracted-file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.extracted-file-info strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #fff;
}

.extracted-file-info small {
  color: var(--text-muted);
  font-size: 0.76rem;
}

.decode-carrier-preview {
  margin-top: 0.9rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.22);
  max-height: 200px;
  background: #03060c;
  display: flex;
  justify-content: center;
}

.decode-carrier-preview img {
  max-height: 195px;
  object-fit: contain;
}

/* Spectrogram & Audio */
.section-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
}

.spectrogram-Player-box {
  margin-top: 1rem;
  background: rgba(4, 8, 18, 0.9);
  border: 1px solid rgba(0, 229, 255, 0.26);
  border-radius: 11px;
  padding: 0.9rem;
}

.audio-controls-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.audio-controls-row audio {
  flex: 1;
  min-width: 220px;
  height: 38px;
}

.canvas-Group {
  margin-top: 0.75rem;
}

.canvas-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--neon-green);
  margin-bottom: 0.35rem;
}

.mono-tag {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

#live-waterfall-canvas {
  width: 100%;
  height: 190px;
  background: #030710;
  border: 1px solid rgba(0, 255, 157, 0.35);
  border-radius: 8px;
  display: block;
}

.spec-preview-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 8px;
  display: block;
}

.audio-result-card {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(0, 255, 157, 0.3);
}

/* Forensics Split Grid */
.suspicion-card {
  background: rgba(5, 10, 22, 0.88);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.9rem;
}

.suspicion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.score-badge {
  font-family: var(--font-mono);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.18);
  color: var(--neon-amber);
}

.findings-list {
  margin-top: 0.65rem;
  padding-right: 1.2rem;
  font-size: 0.81rem;
  color: #d6e4ff;
}

.findings-list li {
  margin-bottom: 0.3rem;
}

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

@media (max-width: 720px) {
  .xray-split-grid { grid-template-columns: 1fr; }
}

.pane-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin-bottom: 0.4rem;
}

.xray-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: rgba(4, 8, 16, 0.8);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

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

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.sw-black { background: #060b18; border: 1px solid #334; }
.sw-cyan { background: #008cb4; }
.sw-green { background: #00ff88; }
.sw-magenta { background: #ff2a85; }

/* Toast */
.hud-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: rgba(6, 14, 26, 0.96);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 18px rgba(0, 255, 157, 0.25);
}
