/**
 * RugScope AI - Premium Web3 Security Dashboard Stylesheet
 * Institutional Fintech Aesthetic, Dark / Light / System Theme Architecture,
 * Subtle Background Grids, and Fluid Micro-Interactions.
 */

:root {
  /* Common typography and dimensions */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Risk Signals (Consistent Across Themes) */
  --risk-low: #10b981;
  --risk-mod: #f59e0b;
  --risk-high: #f97316;
  --risk-crit: #ef4444;

  /* Theme Transition Speed */
  --theme-transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* ==========================================================================
   Dark Theme (Default & [data-theme="dark"])
   ========================================================================== */
:root,
[data-theme="dark"] {
  /* Surfaces */
  --bg-dark: #05060a;
  --bg-surface: #0d111c;
  --bg-panel: #111827;
  --bg-panel-elevated: #162032;
  --bg-glass: rgba(13, 17, 28, 0.82);
  --bg-glass-elevated: rgba(22, 32, 50, 0.80);
  --bg-input: #0b0f19;
  --bg-card: #0d111c;
  --bg-hover: rgba(255, 255, 255, 0.05);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-bright: rgba(255, 255, 255, 0.24);
  --border-glow: rgba(139, 92, 246, 0.35);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #05060a;

  /* Brand Accents */
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-cyan: #00f2fe;
  --accent-emerald: #10b981;
  --accent: #8b5cf6;
  --accent-secondary: #00f2fe;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-glow-purple: 0 0 28px rgba(139, 92, 246, 0.25);
  --shadow-glow-cyan: 0 0 28px rgba(0, 242, 254, 0.25);

  /* Background Grid & Ambient Glows */
  --body-bg: #05060a;
  --bg-grid-line: rgba(255, 255, 255, 0.02);
  --radial-glow-primary: rgba(139, 92, 246, 0.10);
  --radial-glow-secondary: rgba(0, 242, 254, 0.03);

  /* Radar visual tokens */
  --radar-bg: radial-gradient(circle at center, rgba(139, 92, 246, 0.10), rgba(11, 15, 25, 0.75) 70%);
  --radar-ring: rgba(139, 92, 246, 0.18);
  --radar-sweep: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(139, 92, 246, 0.04) 310deg, rgba(0, 242, 254, 0.25) 360deg);
}

/* ==========================================================================
   Light Theme ([data-theme="light"])
   ========================================================================== */
[data-theme="light"] {
  /* Surfaces */
  --bg-dark: #f7f8fc;
  --bg-surface: #ffffff;
  --bg-panel: #ffffff;
  --bg-panel-elevated: #f1f3f8;
  --bg-glass: rgba(247, 248, 252, 0.88);
  --bg-glass-elevated: rgba(255, 255, 255, 0.92);
  --bg-input: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: rgba(15, 23, 42, 0.05);

  /* Borders */
  --border-subtle: #dde1ea;
  --border-medium: #cbd5e1;
  --border-bright: #94a3b8;
  --border-glow: rgba(124, 58, 237, 0.25);

  /* Typography */
  --text-primary: #0b0f19;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Brand Accents */
  --accent-purple: #7c3aed;
  --accent-indigo: #4f46e5;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent: #7c3aed;
  --accent-secondary: #0284c7;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-glow-purple: 0 0 24px rgba(124, 58, 237, 0.12);
  --shadow-glow-cyan: 0 0 24px rgba(2, 132, 199, 0.12);

  /* Background Grid & Ambient Glows */
  --body-bg: #f7f8fc;
  --bg-grid-line: rgba(15, 23, 42, 0.035);
  --radial-glow-primary: rgba(124, 58, 237, 0.05);
  --radial-glow-secondary: rgba(2, 132, 199, 0.03);

  /* Radar visual tokens */
  --radar-bg: radial-gradient(circle at center, rgba(124, 58, 237, 0.07), rgba(241, 243, 248, 0.85) 70%);
  --radar-ring: rgba(124, 58, 237, 0.14);
  --radar-sweep: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, rgba(124, 58, 237, 0.03) 310deg, rgba(2, 132, 199, 0.20) 360deg);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--body-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% -10%, var(--radial-glow-primary), transparent 65%),
    radial-gradient(circle at 90% 30%, var(--radial-glow-secondary), transparent 50%),
    linear-gradient(to right, var(--bg-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
  transition: var(--theme-transition);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Navigation Bar (Sticky, Glassmorphic on scroll)
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.topbar.scrolled {
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(139, 92, 246, 0.75));
}

[data-theme="light"] .brand-logo {
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.25));
}

[data-theme="light"] .brand:hover .brand-logo {
  filter: drop-shadow(0 4px 14px rgba(124, 58, 237, 0.45));
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

/* ==========================================================================
   Theme Switcher Control
   ========================================================================== */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}

.desktop-theme-switcher {
  display: inline-flex;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
}

.theme-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.theme-btn.active {
  background: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}

.theme-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.theme-btn:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

.mobile-theme-row {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.mobile-theme-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px;
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Action Controls
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 14px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9d6fff, #6d70ff);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-panel-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

/* ==========================================================================
   Hero Section & Security Radar
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(90vh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 64px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseGreen 2.2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-title {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-title span.highlight {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-title span.highlight {
  background: linear-gradient(135deg, #0b0f19 30%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

/* Scanner Input Module */
.hero-scanner-box {
  margin-top: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-md), 0 0 30px rgba(139, 92, 246, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-scanner-box:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: var(--shadow-md), 0 0 35px rgba(139, 92, 246, 0.2);
}

.scanner-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scanner-icon {
  margin-left: 10px;
  color: var(--text-muted);
}

.scanner-input {
  flex: 1;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 4px;
}

.scanner-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.preset-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-pill:hover {
  background: var(--bg-hover);
  border-color: var(--border-bright);
  color: var(--text-primary);
}

.preset-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

/* Radar & Shield Visual */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-container {
  position: relative;
  width: min(420px, 90vw);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--radar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.12);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--radar-ring);
}

.radar-ring.r1 { width: 33%; height: 33%; }
.radar-ring.r2 { width: 66%; height: 66%; }
.radar-ring.r3 { width: 100%; height: 100%; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--radar-sweep);
  animation: radarSpin 6s linear infinite;
  pointer-events: none;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-shield {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  background: var(--bg-glass-elevated);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
  z-index: 3;
}

.radar-shield svg {
  width: 48px;
  height: 48px;
  fill: var(--accent-cyan);
}

.radar-blip {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: blipPulse 3s infinite ease-in-out;
}

.radar-blip.b1 { top: 22%; left: 30%; animation-delay: 0.4s; }
.radar-blip.b2 { top: 68%; right: 26%; animation-delay: 1.2s; background: var(--risk-high); box-shadow: 0 0 12px var(--risk-high); }
.radar-blip.b3 { bottom: 25%; left: 24%; animation-delay: 1.8s; background: var(--risk-low); box-shadow: 0 0 12px var(--risk-low); }

@keyframes blipPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.floating-data-card {
  position: absolute;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-glass-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  z-index: 5;
  animation: floatSlow 5s ease-in-out infinite alternate;
}

.floating-data-card.top-left {
  top: 10px;
  left: -20px;
}

.floating-data-card.bottom-right {
  bottom: 20px;
  right: -20px;
  animation-delay: -2.5s;
}

@keyframes floatSlow {
  from { transform: translateY(0px); }
  to { transform: translateY(-8px); }
}

/* Loading State Bar */
.scan-loading-card {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.scan-loading-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Scan Results Section & Risk Gauge
   ========================================================================== */
.section-wrapper {
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 650px;
  margin-top: 6px;
}

.results-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.risk-summary-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.score-ring-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 18px;
}

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

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

.score-ring-progress {
  fill: none;
  stroke: var(--accent-purple);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.score-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 42px;
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
}

.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.pulse-danger {
  animation: ringPulse 1.8s infinite ease-in-out;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.2)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5)); }
}

.badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.risk-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid;
}

.origin-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid;
  transition: all 0.2s ease;
}

.origin-badge.live {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #10b981;
}

.origin-badge.demo {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

.token-name-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.token-addr-text {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 260px;
  word-break: break-all;
  margin-bottom: 10px;
}

.token-price-tag {
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* Evidence & Findings Grid */
.details-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.fact-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.fact-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.fact-value {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.flags-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flag-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flag-card:hover {
  transform: translateY(-2px);
}

.flag-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.flag-critical .flag-indicator { background: var(--risk-crit); box-shadow: 0 0 10px var(--risk-crit); }
.flag-high .flag-indicator { background: var(--risk-high); box-shadow: 0 0 8px var(--risk-high); }
.flag-moderate .flag-indicator { background: var(--risk-mod); box-shadow: 0 0 8px var(--risk-mod); }
.flag-low .flag-indicator { background: var(--risk-low); box-shadow: 0 0 8px var(--risk-low); }

.flag-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.flag-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

/* AI Security Verdict Card */
.ai-verdict-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(6, 8, 15, 0.8));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ai-icon-shield {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.ai-verdict-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c4b5fd;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ai-verdict-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ==========================================================================
   Live Event Monitoring Stream
   ========================================================================== */
.live-monitor-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.live-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.live-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGreen 1.8s infinite;
}

.live-feed-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.live-feed-item {
  display: grid;
  grid-template-columns: 80px 75px 1fr 12px;
  align-items: center;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 18px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-feed-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-panel-elevated);
}

.live-feed-item.event-enter {
  animation: eventSlideFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-color: rgba(139, 92, 246, 0.4);
}

@keyframes eventSlideFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.feed-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.feed-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.evt-danger .feed-badge { background: rgba(239, 68, 68, 0.16); color: var(--risk-crit); }
.evt-warn .feed-badge { background: rgba(249, 115, 22, 0.16); color: var(--risk-high); }
.evt-safe .feed-badge { background: rgba(16, 185, 129, 0.16); color: var(--risk-low); }
.evt-info .feed-badge { background: rgba(0, 242, 254, 0.16); color: var(--accent-cyan); }

.feed-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.feed-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-impact {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  white-space: nowrap;
}

.feed-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.evt-danger .feed-pulse-dot { background: var(--risk-crit); box-shadow: 0 0 6px var(--risk-crit); }

/* ==========================================================================
   Investigation Timeline
   ========================================================================== */
.timeline-section {
  position: relative;
}

.timeline-flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-left: 36px;
  margin-top: 28px;
}

.timeline-flow::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple), rgba(255, 255, 255, 0.08));
}

.timeline-step {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 22px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -31px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
  transition: all 0.3s ease;
}

.timeline-step.timeline-danger::before {
  border-color: var(--risk-crit);
  box-shadow: 0 0 12px var(--risk-crit);
}

.timeline-step.timeline-danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.04);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.timeline-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
}

.timeline-time {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.timeline-step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-step-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Wallet Relationship Graph
   ========================================================================== */
.wallet-graph-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.canvas-card {
  position: relative;
  width: 100%;
  height: 440px;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#walletGraphCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.graph-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--bg-glass-elevated);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1000;
}

.tooltip-title {
  font-weight: 700;
  color: var(--text-primary);
}

.tooltip-role {
  color: var(--accent-purple);
  font-size: 11px;
}

.tooltip-val {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   Signals & Defense Overview Grid
   ========================================================================== */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.signal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.signal-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.signal-icon-bar {
  width: 38px;
  height: 5px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.signal-icon-bar.red { background: var(--risk-crit); box-shadow: 0 0 10px var(--risk-crit); }
.signal-icon-bar.amber { background: var(--risk-mod); box-shadow: 0 0 10px var(--risk-mod); }
.signal-icon-bar.emerald { background: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); }
.signal-icon-bar.cyan { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }

.signal-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.signal-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Installation Guide Steps
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.step-card code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  padding: 64px clamp(20px, 5vw, 64px) 36px;
  position: relative;
  overflow: hidden;
}

.app-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-brand-header:hover .footer-brand-logo {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.6));
}

[data-theme="light"] .footer-brand-logo {
  filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.2));
}

[data-theme="light"] .footer-brand-header:hover .footer-brand-logo {
  filter: drop-shadow(0 4px 10px rgba(124, 58, 237, 0.35));
}

.footer-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
  display: inline-block;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-motto-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-motto-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 18px;
  transition: color 0.25s ease;
}

.footer-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-list a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-col-list a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  cursor: pointer;
}

.social-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  transition: fill 200ms ease;
  flex-shrink: 0;
}

.social-btn:hover {
  background: var(--bg-panel-elevated);
  border-color: rgba(139, 92, 246, 0.45);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.22), 0 0 10px rgba(0, 242, 254, 0.12);
}

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

.footer-bottom-bar {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.solana-ecosystem-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}

.solana-circle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
  display: inline-block;
}

/* ==========================================================================
   Scroll Triggered Animation Utilities
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px) scale(0.99);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

.hidden {
  display: none !important;
}

/* ==========================================================================
   Reduced Motion Preferences
   ========================================================================== */
@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-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .radar-sweep, .status-dot, .radar-blip, .floating-data-card {
    animation: none !important;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .status-pill {
    margin: 0 auto;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: span 2;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-medium);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .desktop-theme-switcher {
    display: none;
  }

  .mobile-theme-row {
    display: flex;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .footer-brand-logo {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 580px) {
  .live-feed-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feed-details {
    flex-direction: column;
    align-items: flex-start;
  }

  .scanner-input-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: span 1;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   Documentation Page Styles
   ========================================================================== */
.docs-main {
  padding: 40px clamp(20px, 5vw, 64px) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.docs-hero {
  margin-bottom: 40px;
}

.docs-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 12px 0 16px;
}

.docs-hero .lede {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 760px;
}

.docs-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.doc-panel h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.doc-panel h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.doc-panel p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.doc-list {
  margin-left: 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.6;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.doc-grid > div {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
}

.risk-scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.risk-item {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
}

.risk-item.low { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.risk-item.moderate { border-color: rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.05); }
.risk-item.high { border-color: rgba(249, 115, 22, 0.3); background: rgba(249, 115, 22, 0.05); }
.risk-item.critical { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }

.risk-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.risk-item span {
  font-size: 13px;
  color: var(--text-secondary);
}

.doc-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   HACKATHON UPGRADE: 5-PILLAR METRICS, MODALS, TOP HOLDERS, SANDBOX & RPC
   ========================================================================== */

/* Mode Toggle & RPC Badges */
.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-toggle-btn:hover {
  background: var(--bg-panel-elevated);
  border-color: var(--border-focus);
}

.mode-toggle-btn.sandbox-active {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

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

.mode-dot.live {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.mode-dot.sandbox {
  background: var(--risk-mod);
  box-shadow: 0 0 8px var(--risk-mod);
}

.rpc-status-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* Demo Banner */
.demo-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-primary);
  position: relative;
  z-index: 99;
}

.demo-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-banner-tag {
  background: var(--risk-mod);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Scan Action Cluster */
.scan-action-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  justify-content: center;
}

.btn-xs {
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 6px;
}

/* AI Verdict Disclaimer */
.ai-verdict-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}

/* Section Sub-blocks */
.section-subblock {
  margin-top: 24px;
}

.subblock-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.subblock-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin: 0;
}

.subblock-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* 5-Pillar Score Cards */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.pillar-card {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pillar-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.pillar-score {
  font-size: 12px;
  color: var(--text-secondary);
}

.pillar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="light"] .pillar-track {
  background: rgba(0, 0, 0, 0.08);
}

.pillar-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-detail {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Top Holders Table */
.table-responsive {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
}

.holders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.holders-table th {
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.holders-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

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

.holder-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
}

.holder-link:hover {
  text-decoration: underline;
}

.holder-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

.holder-badge.pool {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

/* Watch Target Indicator in Live Feed */
.watch-target-indicator {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.feed-link {
  font-size: 13px;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  padding: 0 4px;
}

.feed-link:hover {
  color: #fff;
}

/* History Section */
.history-section {
  padding-top: 10px;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.history-item-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.history-item-btn:hover {
  background: var(--bg-panel-elevated);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.history-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.history-time {
  font-size: 11px;
  color: var(--text-muted);
}

.history-score {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.history-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--bg-panel);
  border: 1px dashed var(--border-medium);
  border-radius: 12px;
}

/* Score Breakdown Modal */
.score-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.score-modal-overlay.hidden {
  display: none;
}

.score-modal-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-focus);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.score-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.score-modal-body {
  padding: 20px 28px 28px;
}

.modal-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

.pillar-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-guide-card {
  background: var(--bg-panel-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
}

.guide-pillar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.guide-pillar-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-pillar-weight {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.pillar-guide-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.pillar-guide-card code {
  font-family: var(--font-mono);
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 11px;
}

.modal-scale-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.scale-tier {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-elevated);
  text-align: center;
}

.scale-tier.low { border-color: rgba(16, 185, 129, 0.3); }
.scale-tier.moderate { border-color: rgba(245, 158, 11, 0.3); }
.scale-tier.high { border-color: rgba(249, 115, 22, 0.3); }
.scale-tier.critical { border-color: rgba(239, 68, 68, 0.3); }

.scale-tier strong {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}

.scale-tier span {
  font-size: 10px;
  color: var(--text-muted);
}


