/* ==========================================================================
   NEURAL-SVM // TACTICAL CYBER-AI DESIGN SYSTEM & TELEMETRY ENGINE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Orbitron:wght@400;600;700;900&family=Space+Grotesk:wght@300;400;600;700&family=Syne:wght@700;800&display=swap');

@font-face {
  font-family: 'Berkeley Mono';
  src: url('../fonts/BerkeleyMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Berkeley Mono';
  src: url('../fonts/BerkeleyMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Architecture - Pure Pitch Black Cyberpunk */
  --bg-primary: #000000;
  --bg-secondary: #050608;
  --bg-tertiary: #0a0c10;
  --bg-card: rgba(6, 8, 12, 0.92);
  --bg-card-hover: rgba(12, 16, 24, 0.98);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-tactical: rgba(0, 255, 102, 0.25);
  --border-cyan: rgba(0, 240, 255, 0.25);
  --border-hazard: rgba(255, 51, 102, 0.3);
  
  --neon-lime: #00FF66;
  --neon-lime-glow: rgba(0, 255, 102, 0.4);
  --neon-cyan: #00F0FF;
  --neon-cyan-glow: rgba(0, 240, 255, 0.4);
  --neon-amber: #FFB800;
  --neon-red: #FF3366;
  --neon-red-glow: rgba(255, 51, 102, 0.4);
  --neon-violet: #A855F7;
  
  --text-main: #F0F4F8;
  --text-muted: #8899A6;
  --text-dim: #4B5563;
  --text-inverse: #000000;
  
  /* Typographic Stacks */
  --font-mono: 'Berkeley Mono', 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heavy: 'Syne', sans-serif;

  /* Layout & Geometry */
  --header-height: 64px;
  --status-bar-height: 32px;
  --bottom-console-height: 42px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
}

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

html {
  font-size: 14px;
  color-scheme: dark;
  scroll-behavior: smooth;
  background-color: #000000;
  background: #000000;
}

/* Pure Black Background */
body {
  font-family: var(--font-mono);
  background-color: #000000;
  background: #000000;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

/* Dynamic Neural Canvas Backdrop */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background: #000000;
}

/* Cyber Grid Backdrop - Fully Removed */
.cyber-grid-backdrop {
  display: none !important;
}

/* Ambient Glow - Subtle on Pure Black */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 10%, rgba(0, 255, 102, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 85% 80%, rgba(0, 240, 255, 0.03) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

/* App Wrapper */
.app-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Autonomous AI Telemetry Header Strip */
.ai-telemetry-strip {
  background: rgba(5, 6, 8, 0.95);
  border-bottom: 1px solid var(--border-tactical);
  height: var(--status-bar-height);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.ai-telemetry-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ai-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--neon-lime);
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--neon-lime);
  box-shadow: 0 0 8px var(--neon-lime);
  animation: pulseNeon 1.5s infinite alternate ease-in-out;
}

.pulse-dot.hazard {
  background-color: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
}

.pulse-dot.cyan {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

@keyframes pulseNeon {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.telemetry-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}

.telemetry-item strong {
  color: var(--text-main);
  font-weight: 600;
}

.telemetry-item .val-cyan {
  color: var(--neon-cyan);
}

.telemetry-item .val-lime {
  color: var(--neon-lime);
}

/* Main Navigation Bar */
.tactical-navbar {
  height: var(--header-height);
  background: rgba(8, 10, 15, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  position: sticky;
  top: var(--status-bar-height);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border: 1px solid var(--neon-lime);
  background: rgba(0, 255, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.brand-symbol svg {
  width: 20px;
  height: 20px;
  stroke: var(--neon-lime);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name span.highlight {
  color: var(--neon-lime);
  text-shadow: 0 0 10px var(--neon-lime-glow);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 2px 6px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: var(--neon-lime);
  background: rgba(0, 255, 102, 0.08);
  border-color: var(--border-tactical);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

.nav-link.active::before {
  content: "»";
  color: var(--neon-lime);
  font-weight: 700;
}

/* Action Controls (Audio, Wallet, AI Status) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tactical-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 14px;
  border: 1px solid var(--border-tactical);
  background: rgba(0, 255, 102, 0.05);
  color: var(--neon-lime);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.tactical-btn:hover {
  background: var(--neon-lime);
  color: #000000;
  box-shadow: 0 0 18px var(--neon-lime-glow);
  transform: translateY(-1px);
}

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

.tactical-btn.btn-cyan {
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.05);
  color: var(--neon-cyan);
}

.tactical-btn.btn-cyan:hover {
  background: var(--neon-cyan);
  color: #000000;
  box-shadow: 0 0 18px var(--neon-cyan-glow);
}

.tactical-btn.btn-hazard {
  border-color: var(--border-hazard);
  background: rgba(255, 51, 102, 0.05);
  color: var(--neon-red);
}

.tactical-btn.btn-hazard:hover {
  background: var(--neon-red);
  color: #000000;
  box-shadow: 0 0 18px var(--neon-red-glow);
}

.icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* Tactical HUD Framing Panels */
.hud-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hud-panel:hover {
  border-color: rgba(0, 255, 102, 0.3);
}

.hud-panel.hazard:hover {
  border-color: rgba(255, 51, 102, 0.4);
}

/* Corner Reticle Brackets */
.hud-panel::before,
.hud-panel::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}

.hud-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--neon-lime);
  border-left: 2px solid var(--neon-lime);
}

.hud-panel::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--neon-lime);
  border-right: 2px solid var(--neon-lime);
}

.hud-panel.hazard::before,
.hud-panel.hazard::after {
  border-color: var(--neon-red);
}

.hud-panel.cyan::before,
.hud-panel.cyan::after {
  border-color: var(--neon-cyan);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hud-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--border-tactical);
  color: var(--neon-lime);
  text-transform: uppercase;
  font-weight: 700;
}

/* Main Content Area */
main.main-content {
  flex: 1;
  padding: 2rem 1.5rem 6rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero-tactical {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.hero-tagline-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 102, 0.06);
  border: 1px solid var(--border-tactical);
  padding: 4px 14px;
  font-size: 11px;
  color: var(--neon-lime);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0, 255, 102, 0.2);
}

.hero-headline span.glitch-text {
  color: var(--neon-lime);
  position: relative;
  display: inline-block;
}

.hero-description {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* AI Command & Natural Language Query Search Bar */
.ai-search-container {
  max-width: 860px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.ai-search-box {
  display: flex;
  align-items: stretch;
  background: rgba(6, 9, 14, 0.9);
  border: 1px solid var(--border-tactical);
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.12);
  position: relative;
  transition: all 0.2s ease;
}

.ai-search-box:focus-within {
  border-color: var(--neon-lime);
  box-shadow: 0 0 35px rgba(0, 255, 102, 0.25);
}

.ai-search-prefix {
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background: rgba(0, 255, 102, 0.08);
  border-right: 1px solid var(--border-tactical);
  color: var(--neon-lime);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

.ai-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 1rem 1.25rem;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ai-search-input::placeholder {
  color: var(--text-dim);
}

.ai-search-btn {
  background: var(--neon-lime);
  color: #000000;
  border: none;
  padding: 0 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.ai-search-btn:hover {
  background: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Quick AI Action Chips */
.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ai-chip {
  background: rgba(16, 20, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.ai-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

/* Metrics Dashboard Grid (Top Telemetry Cards) */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.telemetry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.telemetry-card:hover {
  border-color: var(--border-tactical);
  background: var(--bg-card-hover);
}

.telemetry-card-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-card-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.telemetry-card-val.val-lime {
  color: var(--neon-lime);
  text-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
}

.telemetry-card-val.val-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.telemetry-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-card-sub .tag-up {
  color: var(--neon-lime);
  font-weight: 700;
}

.telemetry-card-sub .tag-down {
  color: var(--neon-red);
  font-weight: 700;
}

.progress-bar-tactical {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
}

.progress-fill-tactical {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-lime));
  box-shadow: 0 0 10px var(--neon-lime);
  transition: width 0.3s ease;
}

/* Two Column Live Activity Grid */
.dual-stream-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 960px) {
  .dual-stream-grid {
    grid-template-columns: 1fr;
  }
}

/* High-Density Data Tables */
.tactical-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tactical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--font-mono);
  text-align: left;
}

.tactical-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}

.tactical-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  vertical-align: middle;
}

.tactical-table tr.clickable-row {
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tactical-table tr.clickable-row:hover {
  background: rgba(0, 255, 102, 0.06);
}

.tactical-table tr.clickable-row:active {
  background: rgba(0, 255, 102, 0.12);
}

.tactical-table tr.hazard-row:hover {
  background: rgba(255, 51, 102, 0.08);
}

/* AI Classification Badges in Table */
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
}

.ai-tag.tag-safe {
  background: rgba(0, 255, 102, 0.15);
  border: 1px solid var(--neon-lime);
  color: var(--neon-lime);
}

.ai-tag.tag-arb {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.ai-tag.tag-mev {
  background: rgba(255, 184, 0, 0.15);
  border: 1px solid var(--neon-amber);
  color: var(--neon-amber);
}

.ai-tag.tag-threat {
  background: rgba(255, 51, 102, 0.2);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
}

.ai-tag.tag-violet {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid var(--neon-violet);
  color: var(--neon-violet);
}

/* Truncated Hashes */
.hash-truncate {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-weight: 500;
}

.hash-truncate:hover {
  text-decoration: underline;
}

/* AI Deep Inspector Modal & Overlay */
.ai-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 3, 5, 0.88);
  backdrop-filter: blur(16px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.ai-modal-card {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: #080A10;
  border: 1px solid var(--neon-lime);
  box-shadow: 0 0 50px rgba(0, 255, 102, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.ai-modal-header {
  background: rgba(0, 255, 102, 0.08);
  border-bottom: 1px solid var(--border-tactical);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ai-scan-animation {
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.03);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  line-height: 1.6;
}

.ai-verdict-banner {
  background: rgba(0, 255, 102, 0.08);
  border-left: 3px solid var(--neon-lime);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 12px;
}

.ai-score-meter {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.meter-box {
  flex: 1;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem;
}

.meter-box-title {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.meter-box-val {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

/* Bottom AI Neural Console Bar & Drawer */
.bottom-neural-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(5, 7, 10, 0.95);
  border-top: 1px solid var(--border-tactical);
  backdrop-filter: blur(14px);
  z-index: 95;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-neural-header {
  height: var(--bottom-console-height);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  font-family: var(--font-mono);
}

.bottom-neural-header:hover {
  background: rgba(0, 255, 102, 0.05);
}

.ai-stream-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--neon-lime);
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 70%;
}

.ai-console-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #06080D;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom-neural-bar.expanded .ai-console-drawer {
  max-height: 240px;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.ai-log-line {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  padding: 3px 0;
  display: flex;
  gap: 10px;
}

.ai-log-line .timestamp {
  color: var(--text-dim);
}

.ai-log-line .agent-id {
  color: var(--neon-cyan);
  font-weight: 600;
}

.ai-log-line .log-text {
  color: var(--text-main);
}

.ai-log-line.hazard .log-text {
  color: var(--neon-red);
}

.ai-log-line.success .log-text {
  color: var(--neon-lime);
}

/* Floating AI Copilot Tactical Orb Button */
.floating-ai-copilot {
  position: fixed;
  bottom: 56px;
  right: 24px;
  z-index: 96;
}

.ai-copilot-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #00FF66;
  color: #000000;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-copilot-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(0, 255, 102, 0.9);
}

/* Floating AI Chat Drawer */
.ai-copilot-window {
  position: fixed;
  bottom: 116px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #080A10;
  border: 1px solid var(--border-tactical);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.2);
  z-index: 97;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-copilot-window.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.copilot-header {
  background: rgba(0, 255, 102, 0.08);
  border-bottom: 1px solid var(--border-tactical);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.copilot-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  max-width: 90%;
}

.copilot-msg.bot {
  background: rgba(0, 255, 102, 0.08);
  border-left: 2px solid var(--neon-lime);
  color: var(--text-main);
  align-self: flex-start;
}

.copilot-msg.user {
  background: rgba(0, 240, 255, 0.1);
  border-right: 2px solid var(--neon-cyan);
  color: #FFFFFF;
  align-self: flex-end;
}

.copilot-input-bar {
  padding: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  background: #06080D;
  display: flex;
  gap: 6px;
}

.copilot-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
}

.copilot-input-bar input:focus {
  border-color: var(--neon-lime);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ai-telemetry-strip {
    display: none;
  }
  .tactical-navbar {
    top: 0;
    padding: 0 1rem;
  }
  .nav-menu {
    display: none;
  }
  .hero-headline {
    font-size: 2rem;
  }
  .ai-search-box {
    flex-direction: column;
  }
  .ai-search-btn {
    padding: 0.75rem;
    justify-content: center;
  }
  .ai-copilot-window {
    width: calc(100vw - 32px);
    right: 16px;
    height: 440px;
  }
}

/* ==========================================================================
   Tactical Markdown Styling & Code Blocks
   ========================================================================== */
.markdown-content {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-main);
}

.markdown-content .md-h1,
.markdown-content h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--neon-lime);
  margin: 1rem 0 0.5rem;
  border-bottom: 1px solid var(--border-tactical);
  padding-bottom: 4px;
  text-transform: uppercase;
}

.markdown-content .md-h2,
.markdown-content h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neon-cyan);
  margin: 0.85rem 0 0.4rem;
  text-transform: uppercase;
}

.markdown-content .md-h3,
.markdown-content h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-lime);
  margin: 0.75rem 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.markdown-content .md-h4,
.markdown-content h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.6rem 0 0.3rem;
}

.markdown-content .md-bold,
.markdown-content strong {
  color: #FFFFFF;
  font-weight: 700;
}

.markdown-content .md-em,
.markdown-content em {
  color: var(--neon-cyan);
  font-style: italic;
}

.markdown-content .md-li,
.markdown-content li {
  margin-left: 1.25rem;
  margin-bottom: 0.35rem;
  list-style-type: square;
  color: var(--text-main);
}

.markdown-content .md-spacer {
  height: 0.75rem;
}

.markdown-content blockquote {
  border-left: 3px solid var(--neon-cyan);
  background: rgba(0, 240, 255, 0.05);
  padding: 8px 12px;
  margin: 0.75rem 0;
  font-size: 11px;
  color: var(--text-muted);
}

.tactical-code-block,
.markdown-content pre {
  background: #030406;
  border: 1px solid var(--border-tactical);
  padding: 1rem;
  margin: 0.75rem 0;
  position: relative;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.code-lang-tag {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  color: var(--neon-lime);
  background: rgba(0, 255, 102, 0.1);
  padding: 1px 6px;
  border: 1px solid var(--border-tactical);
}

.tactical-inline-code,
.markdown-content code:not(pre code) {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border-tactical);
  color: var(--neon-lime);
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 11px;
}

.markdown-content th {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  color: var(--neon-lime);
  text-align: left;
}

.markdown-content td {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  color: var(--text-main);
}

.ai-typing-cursor {
  display: inline-block;
  color: var(--neon-lime);
  font-weight: 900;
  font-size: 13px;
  animation: blinkCursor 0.5s infinite alternate ease-in-out;
  margin-left: 2px;
  text-shadow: 0 0 8px var(--neon-lime);
}

@keyframes blinkCursor {
  0% { opacity: 0.1; }
  100% { opacity: 1; }
}

/* Token & NFT Authentic Visual Badges */
.token-logo-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-tactical);
  background: #080A10;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.2);
}

.token-logo-badge.large {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--neon-lime);
  box-shadow: 0 0 16px rgba(0, 255, 102, 0.3);
}

.nft-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-cyan);
  background: #080A10;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.nft-avatar-badge.large {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

