/* ==========================================================================
   RugSnitch Pro — Cyber Forensic Terminal Stylesheet
   Modern Cyberpunk / Solana High-Tech Dark Mode Architecture
   ========================================================================== */

:root {
  /* Cyber Palette */
  --bg-deep: #070913;
  --bg-surface: #0c1020;
  --bg-card: #12182e;
  --bg-card-hover: #18223f;
  --bg-input: #090d1a;
  
  --border-dim: #1e2942;
  --border-focus: #3b82f6;
  --border-glow-red: rgba(239, 68, 68, 0.4);
  --border-glow-amber: rgba(245, 158, 11, 0.4);
  --border-glow-green: rgba(16, 185, 129, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark: #0f172a;

  /* Neon Signal Colors */
  --sol-purple: #9945ff;
  --sol-green: #14f195;
  --sol-cyan: #00f2fe;
  
  --color-danger: #ef4444;
  --color-danger-glow: rgba(239, 68, 68, 0.25);
  --color-danger-bg: rgba(239, 68, 68, 0.12);

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

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

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

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Mandatory CSS Constraints */
input, select, textarea {
  min-width: 0;
  font-family: inherit;
  box-sizing: border-box;
}

.brand {
  min-width: 0;
}

.brand-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switcher {
  flex-shrink: 0;
}

/* Global Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(153, 69, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(20, 241, 149, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 60%, rgba(239, 68, 68, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(18, 24, 46, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 46, 0.3) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  background-attachment: fixed;
}

/* Utility Typography */
.font-mono {
  font-family: var(--font-mono);
}

.text-red { color: var(--color-danger); }
.text-amber { color: var(--color-warning); }
.text-green { color: var(--color-clean); }
.text-cyan { color: var(--sol-cyan); }
.text-purple { color: var(--sol-purple); }
.text-dim { color: var(--text-dim); }

/* Layout Shell */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 80px 16px;
  flex: 1;
}

@media (min-width: 768px) {
  .main-container {
    padding: 0 24px 100px 24px;
  }
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.header {
  border-bottom: 1px solid var(--border-dim);
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 24px;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 16px 24px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(153, 69, 255, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.brand-icon {
  font-size: 22px;
}

.brand-sub-icon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  font-size: 13px;
  filter: drop-shadow(0 0 4px #000);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sol-cyan);
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.radar-status-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-clean);
}

@media (min-width: 900px) {
  .radar-status-pill {
    display: flex;
  }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-clean);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-clean);
  animation: pulseAnim 2s infinite ease-in-out;
}

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

.quick-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-focus);
}

.cta-glow-sm {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2));
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.cta-glow-sm:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(245, 158, 11, 0.3));
  border-color: var(--color-danger);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--sol-purple), #7c3aed);
  color: #fff;
  box-shadow: 0 0 10px rgba(153, 69, 255, 0.4);
}

.lang-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Threat Alert Banner (Hero)
   ========================================================================== */
.threat-alert-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.9) 60%, rgba(153, 69, 255, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(239, 68, 68, 0.08);
  position: relative;
  overflow: hidden;
}

.threat-alert-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-danger), var(--sol-purple), transparent);
}

.threat-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 900px) {
  .threat-banner-inner {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
}

.threat-badge-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.threat-pulse-icon {
  font-size: 2.2rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
  animation: threatPulse 2s infinite ease-in-out;
}

@keyframes threatPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(239, 68, 68, 0.5); }
}

.threat-content-col {
  flex: 1;
}

.threat-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

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

.threat-cta-col {
  flex-shrink: 0;
}

.trojan-btn-pulse {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  transition: all var(--transition-fast);
}

.trojan-btn-pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 28px rgba(124, 58, 237, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.trojan-icon {
  font-size: 1.4rem;
  color: #fef08a;
}

.trojan-btn-text {
  display: flex;
  flex-direction: column;
}

.btn-top {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-sub {
  font-size: 0.68rem;
  color: #ddd6fe;
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ==========================================================================
   Input Section & Quick Samples
   ========================================================================== */
.input-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .input-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  font-size: 1.2rem;
}

.section-heading h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .input-row {
    flex-direction: row;
    align-items: center;
  }
}

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

.input-prefix-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 1rem;
  pointer-events: none;
}

.target-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  padding: 13px 40px 13px 42px;
  transition: all var(--transition-fast);
}

.target-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: #0d1424;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.clear-input-btn:hover {
  color: #fff;
}

.btn-scan {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-scan:hover {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.scan-icon {
  font-size: 1.1rem;
}

/* Quick Sample Chips */
.samples-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.samples-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

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

@media (min-width: 768px) {
  .samples-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sample-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  transition: all var(--transition-fast);
}

.sample-chip:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.sample-chip.sample-danger {
  border-left: 3px solid var(--color-danger);
}
.sample-chip.sample-danger:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

.sample-chip.sample-warning {
  border-left: 3px solid var(--color-warning);
}
.sample-chip.sample-warning:hover {
  border-color: rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.sample-chip.sample-clean {
  border-left: 3px solid var(--color-clean);
}
.sample-chip.sample-clean:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.chip-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.chip-badge.red {
  background: var(--color-danger-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.chip-badge.yellow {
  background: var(--color-warning-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chip-badge.green {
  background: var(--color-clean-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chip-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* ==========================================================================
   Results Container
   ========================================================================== */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   Verdict Banner (Top Grade & Threat Index)
   ========================================================================== */
.verdict-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), var(--bg-card) 60%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.15);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .verdict-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.verdict-banner.grade-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), var(--bg-card) 60%);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2);
}

.verdict-banner.grade-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), var(--bg-card) 60%);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.verdict-banner.grade-clean {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), var(--bg-card) 60%);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.2);
}

.verdict-banner-left {
  flex: 1;
}

.verdict-grade-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.verdict-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.verdict-text-group {
  display: flex;
  flex-direction: column;
}

.verdict-caption {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.verdict-title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-danger);
  line-height: 1.2;
}

.verdict-banner.grade-warning .verdict-title {
  color: var(--color-warning);
}

.verdict-banner.grade-clean .verdict-title {
  color: var(--color-clean);
}

.verdict-summary {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 680px;
  line-height: 1.5;
}

/* Score Radial Gauge */
.verdict-score-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.score-radial-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.score-circle-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.score-circle-bar {
  fill: none;
  stroke: var(--color-danger);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 6; /* 314 * (1 - 0.98) */
  transition: stroke-dashoffset 0.8s ease, stroke 0.4s ease;
}

.score-number-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: 1.7rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  color: #fff;
}

.score-max {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.score-label {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   4 Key Forensic HUD Metric Cards Grid
   ========================================================================== */
.hud-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .hud-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .hud-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.hud-card.glow-red {
  border-top: 3px solid var(--color-danger);
}
.hud-card.glow-amber {
  border-top: 3px solid var(--color-warning);
}
.hud-card.glow-purple {
  border-top: 3px solid var(--sol-purple);
}
.hud-card.glow-cyan {
  border-top: 3px solid var(--sol-cyan);
}

.hud-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hud-icon {
  font-size: 1.1rem;
}

.hud-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hud-main-val-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.hud-stat-highlight {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}

.hud-stat-highlight.red { color: var(--color-danger); }
.hud-stat-highlight.amber { color: var(--color-warning); }
.hud-stat-highlight.green { color: var(--color-clean); }
.hud-stat-highlight.purple { color: #c084fc; }
.hud-stat-highlight.cyan { color: var(--sol-cyan); }

.hud-stat-subtag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.hud-stat-subtag.danger {
  background: var(--color-danger-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.hud-stat-subtag.warning {
  background: var(--color-warning-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hud-stat-subtag.clean {
  background: var(--color-clean-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hud-stat-subtag.purple {
  background: rgba(153, 69, 255, 0.15);
  color: #d8b4fe;
  border: 1px solid rgba(153, 69, 255, 0.3);
}

.hud-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  gap: 6px;
}

.item-k {
  color: var(--text-dim);
}

.item-v {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

/* Bonding Curve Progress Bar */
.bonding-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.bonding-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
}

.bonding-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  border-radius: 9999px;
  transition: width 0.6s ease;
}

.bonding-danger-zone {
  position: absolute;
  left: 15%;
  width: 25%;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(239, 68, 68, 0.25),
    rgba(239, 68, 68, 0.25) 4px,
    rgba(239, 68, 68, 0.1) 4px,
    rgba(239, 68, 68, 0.1) 8px
  );
  border-left: 1px dashed rgba(239, 68, 68, 0.6);
  border-right: 1px dashed rgba(239, 68, 68, 0.6);
  pointer-events: none;
}

.bonding-markers {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.marker-danger {
  color: #f87171;
  font-weight: 700;
}

/* ==========================================================================
   Big Action CTA Banner (Trojan on Solana)
   ========================================================================== */
.cta-banner-large {
  position: relative;
  background: linear-gradient(135deg, #131d3b, #0f172a 60%, #1c1438);
  border: 1px solid rgba(153, 69, 255, 0.4);
  border-radius: 16px;
  padding: 22px 24px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(153, 69, 255, 0.15);
}

.cta-banner-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(153, 69, 255, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 900px) {
  .cta-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-left {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.cta-icon-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fef08a;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
}

.cta-text-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-headline {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.cta-subhead {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  max-width: 720px;
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .cta-right {
    align-items: flex-end;
  }
}

.trojan-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.trojan-btn-main:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.6);
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.trojan-btn-main:hover .btn-arrow {
  transform: translateX(4px);
}

.cta-micro-note {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Telemetry Section & Navigation Tabs
   ========================================================================== */
.telemetry-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.telemetry-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.telemetry-nav::-webkit-scrollbar {
  height: 4px;
}
.telemetry-nav::-webkit-scrollbar-thumb {
  background: var(--border-dim);
  border-radius: 4px;
}

.t-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.t-nav-btn:hover {
  color: #fff;
  background: var(--bg-card-hover);
}

.t-nav-btn.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(153, 69, 255, 0.15));
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.tab-pill {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.tab-pill.red {
  background: var(--color-danger-bg);
  color: #f87171;
}

.tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease;
}

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

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

/* ==========================================================================
   TAB 1: Radar Canvas & Cluster Table
   ========================================================================== */
.radar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.radar-card-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 900px) {
  .radar-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.radar-card-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.legend-dot.dev {
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.legend-dot.insider-dumping {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.legend-dot.insider-holding {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.legend-dot.clean {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Canvas Display */
.radar-canvas-wrap {
  position: relative;
  width: 100%;
  background: #080c18;
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

#clusterRadarCanvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}

.radar-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10;
}

/* Cluster Wallets Table */
.cluster-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.table-header-row h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.action-btn-outline {
  background: transparent;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.action-btn-outline:hover {
  border-color: var(--border-focus);
  color: #fff;
}

.responsive-table-box {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-dim);
  border-radius: 12px;
}

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

.data-table thead {
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border-dim);
}

.data-table th {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

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

.data-table td {
  padding: 12px 14px;
  color: var(--text-main);
  white-space: nowrap;
}

/* Status Badges in Table */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 9999px;
}

.status-pill.danger {
  background: var(--color-danger-bg);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.warning {
  background: var(--color-warning-bg);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.clean {
  background: var(--color-clean-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   TAB 2: Dev Dossier & Rap Sheet
   ========================================================================== */
.rapsheet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 20px;
}

.rapsheet-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .rapsheet-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.rapsheet-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.rapsheet-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dev-address-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.badge-label {
  color: var(--text-dim);
}

.badge-val {
  color: var(--sol-cyan);
}

.copy-tiny-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
}

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

/* ==========================================================================
   TAB 3: Bonding Curve & Drain Simulator
   ========================================================================== */
.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 20px;
}

.sim-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .sim-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sim-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.sim-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sim-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f87171;
}

.sim-dot.red {
  width: 7px;
  height: 7px;
  background: var(--color-danger);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-danger);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 860px) {
  .sim-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 18px;
}

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

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slider-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--sol-cyan);
}

.sim-slider {
  width: 100%;
  accent-color: var(--color-danger);
  cursor: pointer;
}

.sim-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sim-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

.stat-k {
  color: var(--text-dim);
}

.stat-v {
  font-weight: 700;
}

.sim-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.action-btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.action-btn-trojan {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.action-btn-trojan:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* Impact Meter Panel */
.sim-results-panel {
  display: flex;
  flex-direction: column;
}

.impact-meter-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.impact-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.impact-big-value {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin: 6px 0;
}

.impact-sub {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 20px;
  line-height: 1.4;
}

.impact-bars-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.impact-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drain-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.drain-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.drain-bar-fill.red {
  background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.drain-bar-fill.amber {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* ==========================================================================
   TAB 4: Forensic Red Flags Checklist
   ========================================================================== */
.checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 16px;
  padding: 20px;
}

.checklist-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .checklist-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.checklist-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.checklist-header p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.check-summary-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.checks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .checks-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  transition: all var(--transition-fast);
}

.check-item:hover {
  background: var(--bg-card-hover);
}

.check-item.fail {
  border-left: 3px solid var(--color-danger);
}

.check-item.warn {
  border-left: 3px solid var(--color-warning);
}

.check-item.pass {
  border-left: 3px solid var(--color-clean);
}

.check-icon-col {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.check-content-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.check-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Export & Share Utility Bar
   ========================================================================== */
.export-utility-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .export-utility-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.export-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.export-icon {
  font-size: 1.4rem;
}

.export-text {
  display: flex;
  flex-direction: column;
}

.export-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

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

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

.btn-export-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-export-secondary:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-focus);
}

/* ==========================================================================
   Toast Notification Box
   ========================================================================== */
.toast-box {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-box.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Sticky Bottom CTA Bar
   ========================================================================== */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 16, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(153, 69, 255, 0.3);
  padding: 10px 16px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sticky-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sticky-lightning {
  font-size: 1.1rem;
  color: #fef08a;
  flex-shrink: 0;
}

.sticky-text {
  font-size: 0.8rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.sticky-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #022c22;
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.sticky-btn:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.sticky-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
}

.sticky-close:hover {
  color: #fff;
}

/* ==========================================================================
   Portal Return Footer
   ========================================================================== */
.portal-footer {
  border-top: 1px solid var(--border-dim);
  background: rgba(7, 9, 19, 0.9);
  padding: 24px 16px 80px 16px;
  margin-top: auto;
  text-align: center;
}

.portal-backlink-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.portal-backlink {
  color: var(--sol-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.portal-backlink:hover {
  color: #fff;
  text-decoration: underline;
}

.portal-divider {
  color: var(--text-dim);
}

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

.portal-disclaimer {
  max-width: 800px;
  margin: 0 auto;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .header, .sticky-cta-bar, .input-card, .trojan-btn-pulse, .trojan-btn-main, 
  .samples-wrap, .export-utility-bar, .portal-footer, .telemetry-nav {
    display: none !important;
  }
  .tab-content {
    display: block !important;
  }
  .hud-card, .verdict-banner, .radar-card, .rapsheet-card, .checklist-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #000 !important;
    break-inside: avoid;
  }
}
