/* ============================================================
   ROBOT AI Neural System - Cyberpunk Gaming Theme
   Version: 3.0 | Dark Futuristic | Glassmorphism | Neon
   ============================================================ */

:root {
  --neon-cyan: #00f0ff;
  --neon-cyan-rgb: 0, 240, 255;
  --neon-cyan-dim: rgba(0, 240, 255, 0.15);
  --neon-cyan-glow: 0 0 10px rgba(0, 240, 255, 0.7), 0 0 30px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
  --electric-blue: #0066ff;
  --electric-blue-rgb: 0, 102, 255;
  --electric-blue-dim: rgba(0, 102, 255, 0.15);
  --accent-magenta: #ff00aa;
  --accent-magenta-rgb: 255, 0, 170;
  --accent-magenta-dim: rgba(255, 0, 170, 0.15);
  --success-green: #00ff88;
  --success-green-rgb: 0, 255, 136;
  --success-green-dim: rgba(0, 255, 136, 0.15);
  --warning-gold: #ffbb00;
  --warning-gold-rgb: 255, 187, 0;
  --warning-gold-dim: rgba(255, 187, 0, 0.15);
  --danger-red: #ff3355;
  --danger-red-rgb: 255, 51, 85;
  --danger-red-dim: rgba(255, 51, 85, 0.15);

  --bg-primary: #050510;
  --bg-secondary: #0a0a1a;
  --bg-tertiary: #0f0f24;
  --bg-card: rgba(15, 15, 36, 0.7);
  --bg-card-hover: rgba(20, 20, 48, 0.85);
  --bg-glass: rgba(5, 5, 16, 0.5);
  --bg-glass-light: rgba(255, 255, 255, 0.02);
  --bg-glass-hover: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(0, 240, 255, 0.04);

  --text-primary: #e0e0ff;
  --text-secondary: #8888bb;
  --text-muted: #555580;
  --text-cyan: var(--neon-cyan);
  --text-dark: #050510;

  --border-cyan: rgba(0, 240, 255, 0.25);
  --border-cyan-bright: rgba(0, 240, 255, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 0 20px rgba(0, 240, 255, 0.12);
  --shadow-magenta: 0 0 20px rgba(255, 0, 170, 0.12);

  --font-heading: 'Orbitron', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-very-slow: 0.8s ease;

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-notification: 500;
  --z-tooltip: 600;
}

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: #66f5ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

code, pre, kbd {
  font-family: var(--font-code);
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* ============================================================
   2. BACKGROUND: ANIMATED GRADIENT + OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 0% 20%, rgba(0, 102, 255, 0.08), transparent),
    radial-gradient(ellipse 80% 50% at 100% 80%, rgba(255, 0, 170, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 240, 255, 0.03), transparent),
    var(--bg-primary);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 50% 50%; }
  100% { background-position: 100% 100%; }
}

/* Animated grid overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Scanlines overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.015) 2px,
    rgba(0, 240, 255, 0.015) 4px
  );
}

/* Floating orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.15;
  animation: floatOrb 15s ease-in-out infinite alternate;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4), transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 0, 170, 0.3), transparent);
  bottom: -80px;
  right: -80px;
  animation-delay: -5s;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.3), transparent);
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(10px, -15px) scale(1.05); }
}

/* ============================================================
   3. PARTICLES
   ============================================================ */
.particles-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
  animation: floatParticle linear infinite;
  opacity: 0;
}
.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 2px; height: 2px; }
.particle:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 1s; width: 4px; height: 4px; background: var(--accent-magenta); box-shadow: 0 0 8px rgba(255,0,170,0.6); }
.particle:nth-child(3) { left: 30%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-duration: 14s; animation-delay: 0.5s; width: 2px; height: 2px; background: var(--warning-gold); box-shadow: 0 0 6px rgba(255,187,0,0.6); }
.particle:nth-child(5) { left: 50%; animation-duration: 16s; animation-delay: 3s; width: 5px; height: 5px; background: var(--success-green); box-shadow: 0 0 10px rgba(0,255,136,0.6); }
.particle:nth-child(6) { left: 60%; animation-duration: 13s; animation-delay: 1.5s; }
.particle:nth-child(7) { left: 70%; animation-duration: 17s; animation-delay: 2.5s; width: 2px; height: 2px; background: var(--electric-blue); box-shadow: 0 0 6px rgba(0,102,255,0.6); }
.particle:nth-child(8) { left: 80%; animation-duration: 19s; animation-delay: 0.8s; width: 3px; height: 3px; }
.particle:nth-child(9) { left: 90%; animation-duration: 11s; animation-delay: 3.5s; width: 4px; height: 4px; background: var(--accent-magenta); box-shadow: 0 0 8px rgba(255,0,170,0.6); }
.particle:nth-child(10) { left: 15%; animation-duration: 20s; animation-delay: 4s; width: 3px; height: 3px; background: var(--warning-gold); box-shadow: 0 0 6px rgba(255,187,0,0.6); }
.particle:nth-child(11) { left: 35%; animation-duration: 14s; animation-delay: 2s; width: 2px; height: 2px; }
.particle:nth-child(12) { left: 55%; animation-duration: 16s; animation-delay: 1s; width: 4px; height: 4px; background: var(--success-green); box-shadow: 0 0 8px rgba(0,255,136,0.6); }
.particle:nth-child(13) { left: 75%; animation-duration: 12s; animation-delay: 3s; width: 3px; height: 3px; }
.particle:nth-child(14) { left: 85%; animation-duration: 18s; animation-delay: 0.3s; width: 2px; height: 2px; background: var(--electric-blue); box-shadow: 0 0 6px rgba(0,102,255,0.6); }
.particle:nth-child(15) { left: 95%; animation-duration: 15s; animation-delay: 2.2s; width: 5px; height: 5px; background: var(--accent-magenta); box-shadow: 0 0 10px rgba(255,0,170,0.6); }
.particle:nth-child(16) { left: 5%; animation-duration: 17s; animation-delay: 1.7s; width: 3px; height: 3px; background: var(--warning-gold); box-shadow: 0 0 6px rgba(255,187,0,0.6); }
.particle:nth-child(17) { left: 45%; animation-duration: 13s; animation-delay: 0.7s; width: 2px; height: 2px; }
.particle:nth-child(18) { left: 65%; animation-duration: 19s; animation-delay: 4.5s; width: 4px; height: 4px; background: var(--success-green); box-shadow: 0 0 8px rgba(0,255,136,0.6); }
.particle:nth-child(19) { left: 25%; animation-duration: 11s; animation-delay: 3.2s; width: 3px; height: 3px; }
.particle:nth-child(20) { left: 50%; animation-duration: 16s; animation-delay: 1.2s; width: 2px; height: 2px; background: var(--electric-blue); box-shadow: 0 0 6px rgba(0,102,255,0.6); }

@keyframes floatParticle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============================================================
   4. GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-lg), var(--shadow-cyan), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card .card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.glass-card-border-cyan { border-color: var(--border-cyan); }
.glass-card-border-magenta { border-color: rgba(255, 0, 170, 0.25); }
.glass-card-border-green { border-color: rgba(0, 255, 136, 0.25); }
.glass-card-border-gold { border-color: rgba(255, 187, 0, 0.25); }
.glass-card-border-red { border-color: rgba(255, 51, 85, 0.25); }

.glass-card-ghost {
  background: transparent;
  backdrop-filter: none;
  border-color: var(--border-subtle);
}
.glass-card-ghost:hover {
  background: rgba(255,255,255,0.02);
}

.glass-card-solid {
  background: var(--bg-tertiary);
  backdrop-filter: none;
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  outline: none;
  user-select: none;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

/* Neon button base */
.btn-neon {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(0, 102, 255, 0.08));
  border-color: var(--border-cyan);
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.05), 0 0 10px rgba(0, 240, 255, 0.05);
}
.btn-neon:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 102, 255, 0.15));
  border-color: var(--neon-cyan);
  box-shadow: var(--shadow-cyan), 0 0 30px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 240, 255, 0.08);
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  transform: translateY(-1px);
}

/* Filled neon */
.btn-neon-filled {
  background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue));
  border-color: var(--neon-cyan);
  color: var(--bg-primary);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-neon-filled:hover {
  background: linear-gradient(135deg, #22f5ff, #2277ff);
  box-shadow: 0 4px 30px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.1), inset 0 1px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

/* Magenta */
.btn-magenta {
  background: linear-gradient(135deg, rgba(255, 0, 170, 0.12), rgba(200, 0, 140, 0.08));
  border-color: rgba(255, 0, 170, 0.3);
  color: var(--accent-magenta);
  text-shadow: 0 0 8px rgba(255, 0, 170, 0.4);
  box-shadow: inset 0 0 20px rgba(255, 0, 170, 0.05);
}
.btn-magenta:hover {
  background: linear-gradient(135deg, rgba(255, 0, 170, 0.25), rgba(200, 0, 140, 0.15));
  border-color: var(--accent-magenta);
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.15), 0 0 40px rgba(255, 0, 170, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.btn-magenta-filled {
  background: linear-gradient(135deg, var(--accent-magenta), #cc0088);
  border-color: var(--accent-magenta);
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 20px rgba(255, 0, 170, 0.25);
}
.btn-magenta-filled:hover {
  background: linear-gradient(135deg, #ff22bb, #dd0099);
  box-shadow: 0 4px 30px rgba(255, 0, 170, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* Blue */
.btn-blue {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 50, 200, 0.08));
  border-color: rgba(0, 102, 255, 0.3);
  color: var(--electric-blue);
  text-shadow: 0 0 8px rgba(0, 102, 255, 0.4);
}
.btn-blue:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.25), rgba(0, 50, 200, 0.15));
  border-color: var(--electric-blue);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.btn-blue-filled {
  background: linear-gradient(135deg, var(--electric-blue), #0044cc);
  border-color: var(--electric-blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.25);
}
.btn-blue-filled:hover {
  background: linear-gradient(135deg, #2277ff, #0055dd);
  box-shadow: 0 4px 30px rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
}

/* Green */
.btn-green {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(0, 200, 100, 0.08));
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--success-green);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}
.btn-green:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 200, 100, 0.15));
  border-color: var(--success-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.btn-green-filled {
  background: linear-gradient(135deg, var(--success-green), #00cc66);
  border-color: var(--success-green);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.25);
}
.btn-green-filled:hover {
  background: linear-gradient(135deg, #22ff99, #00dd77);
  box-shadow: 0 4px 30px rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
}

/* Gold */
.btn-gold {
  background: linear-gradient(135deg, rgba(255, 187, 0, 0.12), rgba(200, 150, 0, 0.08));
  border-color: rgba(255, 187, 0, 0.3);
  color: var(--warning-gold);
  text-shadow: 0 0 8px rgba(255, 187, 0, 0.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, rgba(255, 187, 0, 0.25), rgba(200, 150, 0, 0.15));
  border-color: var(--warning-gold);
  box-shadow: 0 0 20px rgba(255, 187, 0, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gold-filled {
  background: linear-gradient(135deg, var(--warning-gold), #dd9900);
  border-color: var(--warning-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(255, 187, 0, 0.25);
}
.btn-gold-filled:hover {
  background: linear-gradient(135deg, #ffcc22, #eeaa00);
  box-shadow: 0 4px 30px rgba(255, 187, 0, 0.4);
  transform: translateY(-2px);
}

/* Red */
.btn-red {
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.12), rgba(200, 30, 60, 0.08));
  border-color: rgba(255, 51, 85, 0.3);
  color: var(--danger-red);
  text-shadow: 0 0 8px rgba(255, 51, 85, 0.4);
}
.btn-red:hover {
  background: linear-gradient(135deg, rgba(255, 51, 85, 0.25), rgba(200, 30, 60, 0.15));
  border-color: var(--danger-red);
  box-shadow: 0 0 20px rgba(255, 51, 85, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.btn-red-filled {
  background: linear-gradient(135deg, var(--danger-red), #dd2244);
  border-color: var(--danger-red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 51, 85, 0.25);
}
.btn-red-filled:hover {
  background: linear-gradient(135deg, #ff4466, #ee3355);
  box-shadow: 0 4px 30px rgba(255, 51, 85, 0.4);
  transform: translateY(-2px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-cyan);
  color: var(--neon-cyan);
}

/* Cyber button (angular corners) */
.btn-cyber {
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), 100% 100%, calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  position: relative;
}
.btn-cyber::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid currentColor;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), 100% 100%, calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  opacity: 0.4;
  pointer-events: none;
}

/* Sizes */
.btn-sm {
  font-size: 0.7rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
}
.btn-block {
  width: 100%;
}
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.1rem;
}
.btn-icon.btn-sm { width: 2rem; height: 2rem; font-size: 0.9rem; }
.btn-icon.btn-lg { width: 3rem; height: 3rem; font-size: 1.3rem; }

/* Disabled */
.btn:disabled, .btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   6. INPUTS & FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.input-neon {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-normal);
  position: relative;
}

.input-neon:focus {
  border-color: var(--border-cyan-bright);
  background: rgba(0, 240, 255, 0.03);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08), var(--shadow-cyan);
}

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

.input-neon.input-error {
  border-color: var(--danger-red);
  box-shadow: 0 0 0 3px rgba(255, 51, 85, 0.1);
}

.input-neon.input-success {
  border-color: var(--success-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

textarea.input-neon {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

select.input-neon {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238888bb' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.input-neon option {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.input-neon-group {
  display: flex;
  align-items: stretch;
}
.input-neon-group .input-neon {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-neon-group .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-left: -1px;
}

/* Checkbox */
.checkbox-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.checkbox-neon input[type="checkbox"] {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.checkbox-neon input[type="checkbox"]:checked {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.checkbox-neon input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-neon:hover { color: var(--text-primary); }
.checkbox-neon:hover input[type="checkbox"] { border-color: var(--border-cyan); }

/* Radio */
.radio-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.radio-neon input[type="radio"] {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.radio-neon input[type="radio"]:checked {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.radio-neon input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--neon-cyan);
}
.radio-neon:hover { color: var(--text-primary); }
.radio-neon:hover input[type="radio"] { border-color: var(--border-cyan); }

/* Switch */
.switch-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.switch-neon .switch-track {
  width: 2.5rem;
  height: 1.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  position: relative;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}
.switch-neon .switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.4rem - 6px);
  height: calc(1.4rem - 6px);
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition-normal);
}
.switch-neon input[type="checkbox"] {
  display: none;
}
.switch-neon input[type="checkbox"]:checked + .switch-track {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}
.switch-neon input[type="checkbox"]:checked + .switch-track::after {
  left: calc(100% - (1.4rem - 6px) - 2px);
  background: var(--neon-cyan);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}
.switch-neon:hover { color: var(--text-primary); }

/* Range */
.range-neon {
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}
.range-neon::-webkit-slider-thumb {
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.range-neon::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.7);
}
.range-neon::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: var(--neon-cyan);
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  cursor: pointer;
}
.range-neon:focus {
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}

/* Form help text */
.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger-red);
  margin-top: 0.3rem;
}

/* ============================================================
   7. CYBER TABLE
   ============================================================ */
.table-cyber {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.table-cyber thead {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.table-cyber th {
  padding: 0.85rem 1rem;
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  user-select: none;
}

.table-cyber td {
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all var(--transition-fast);
}

.table-cyber tbody tr {
  transition: all var(--transition-fast);
}

.table-cyber tbody tr:hover td {
  background: rgba(0, 240, 255, 0.03);
  color: var(--text-primary);
}

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

.table-cyber-striped tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,0.01);
}

.table-cyber-bordered th,
.table-cyber-bordered td {
  border: 1px solid var(--border-subtle);
}

.table-cyber tbody tr.active td {
  background: rgba(0, 240, 255, 0.06);
  border-left: 2px solid var(--neon-cyan);
}

.table-cyber tbody tr.selected td {
  background: rgba(0, 240, 255, 0.08);
  border-left: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.04);
}

.table-cyber td .neon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.table-cyber td .neon-dot.green { background: var(--success-green); box-shadow: 0 0 6px rgba(0,255,136,0.6); }
.table-cyber td .neon-dot.cyan { background: var(--neon-cyan); box-shadow: 0 0 6px rgba(0,240,255,0.6); }
.table-cyber td .neon-dot.magenta { background: var(--accent-magenta); box-shadow: 0 0 6px rgba(255,0,170,0.6); }
.table-cyber td .neon-dot.gold { background: var(--warning-gold); box-shadow: 0 0 6px rgba(255,187,0,0.6); }
.table-cyber td .neon-dot.red { background: var(--danger-red); box-shadow: 0 0 6px rgba(255,51,85,0.6); }

/* ============================================================
   8. MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 240, 255, 0.04);
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-normal);
  position: relative;
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-header h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  background: rgba(255, 51, 85, 0.1);
  border-color: var(--danger-red);
  color: var(--danger-red);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.modal-sm { max-width: 400px; }
.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }

/* ============================================================
   9. ALERTS & NOTIFICATIONS
   ============================================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.alert-cyan {
  border-color: var(--border-cyan);
  background: rgba(0, 240, 255, 0.04);
}
.alert-cyan::before { background: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.4); }

.alert-magenta {
  border-color: rgba(255, 0, 170, 0.25);
  background: rgba(255, 0, 170, 0.04);
}
.alert-magenta::before { background: var(--accent-magenta); box-shadow: 0 0 10px rgba(255,0,170,0.4); }

.alert-green {
  border-color: rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.04);
}
.alert-green::before { background: var(--success-green); box-shadow: 0 0 10px rgba(0,255,136,0.4); }

.alert-gold {
  border-color: rgba(255, 187, 0, 0.25);
  background: rgba(255, 187, 0, 0.04);
}
.alert-gold::before { background: var(--warning-gold); box-shadow: 0 0 10px rgba(255,187,0,0.4); }

.alert-red {
  border-color: rgba(255, 51, 85, 0.25);
  background: rgba(255, 51, 85, 0.04);
}
.alert-red::before { background: var(--danger-red); box-shadow: 0 0 10px rgba(255,51,85,0.4); }

.alert-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.alert-content { flex: 1; }
.alert-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.alert-message { color: var(--text-secondary); line-height: 1.5; }

.alert-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.alert-dismiss:hover { color: var(--text-primary); }

/* Toast / Notification */
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: var(--z-notification);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transform: translateX(120%);
  opacity: 0;
  transition: all var(--transition-normal);
  animation: slideInRight 0.4s ease forwards;
}

.notification-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notification-content { flex: 1; }
.notification-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.notification-message {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}
.notification-close:hover { color: var(--text-primary); }

.notification-success { border-left: 3px solid var(--success-green); }
.notification-success .notification-icon { color: var(--success-green); }
.notification-error { border-left: 3px solid var(--danger-red); }
.notification-error .notification-icon { color: var(--danger-red); }
.notification-warning { border-left: 3px solid var(--warning-gold); }
.notification-warning .notification-icon { color: var(--warning-gold); }
.notification-info { border-left: 3px solid var(--neon-cyan); }
.notification-info .notification-icon { color: var(--neon-cyan); }

/* ============================================================
   10. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  line-height: 1.4;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  text-shadow: 0 0 4px rgba(0, 240, 255, 0.3);
}
.badge-magenta {
  background: rgba(255, 0, 170, 0.1);
  border-color: rgba(255, 0, 170, 0.3);
  color: var(--accent-magenta);
  text-shadow: 0 0 4px rgba(255, 0, 170, 0.3);
}
.badge-green {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--success-green);
  text-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
}
.badge-gold {
  background: rgba(255, 187, 0, 0.1);
  border-color: rgba(255, 187, 0, 0.3);
  color: var(--warning-gold);
  text-shadow: 0 0 4px rgba(255, 187, 0, 0.3);
}
.badge-red {
  background: rgba(255, 51, 85, 0.1);
  border-color: rgba(255, 51, 85, 0.3);
  color: var(--danger-red);
  text-shadow: 0 0 4px rgba(255, 51, 85, 0.3);
}
.badge-blue {
  background: rgba(0, 102, 255, 0.1);
  border-color: rgba(0, 102, 255, 0.3);
  color: var(--electric-blue);
  text-shadow: 0 0 4px rgba(0, 102, 255, 0.3);
}

.badge-filled.badge-cyan {
  background: var(--neon-cyan);
  color: var(--bg-primary);
  border-color: var(--neon-cyan);
  text-shadow: none;
}
.badge-filled.badge-magenta {
  background: var(--accent-magenta);
  color: #fff;
  border-color: var(--accent-magenta);
}
.badge-filled.badge-green {
  background: var(--success-green);
  color: var(--bg-primary);
  border-color: var(--success-green);
}
.badge-filled.badge-gold {
  background: var(--warning-gold);
  color: var(--bg-primary);
  border-color: var(--warning-gold);
}
.badge-filled.badge-red {
  background: var(--danger-red);
  color: #fff;
  border-color: var(--danger-red);
}
.badge-filled.badge-blue {
  background: var(--electric-blue);
  color: #fff;
  border-color: var(--electric-blue);
}

.badge-sm {
  font-size: 0.55rem;
  padding: 0.15rem 0.45rem;
}
.badge-lg {
  font-size: 0.72rem;
  padding: 0.3rem 0.9rem;
}

/* ============================================================
   11. STATUS INDICATORS
   ============================================================ */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}
.status-dot.online {
  background: var(--success-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}
.status-dot.online::after {
  background: rgba(0, 255, 136, 0.2);
}
.status-dot.offline {
  background: var(--text-muted);
  box-shadow: 0 0 4px rgba(85, 85, 119, 0.3);
}
.status-dot.offline::after { display: none; }
.status-dot.busy {
  background: var(--warning-gold);
  box-shadow: 0 0 8px rgba(255, 187, 0, 0.5);
}
.status-dot.busy::after {
  background: rgba(255, 187, 0, 0.2);
}
.status-dot.error {
  background: var(--danger-red);
  box-shadow: 0 0 8px rgba(255, 51, 85, 0.5);
}
.status-dot.error::after {
  background: rgba(255, 51, 85, 0.2);
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.8); opacity: 0; }
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   12. LOADING & SPINNERS
   ============================================================ */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm { width: 1rem; height: 1rem; border-width: 1.5px; }
.spinner-lg { width: 2.5rem; height: 2.5rem; border-width: 3px; }

.spinner-cyan { border-top-color: var(--neon-cyan); }
.spinner-magenta { border-top-color: var(--accent-magenta); }
.spinner-green { border-top-color: var(--success-green); }
.spinner-gold { border-top-color: var(--warning-gold); }
.spinner-red { border-top-color: var(--danger-red); }
.spinner-blue { border-top-color: var(--electric-blue); }

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

/* Pulse dots loading */
.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: loadingDot 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px rgba(0, 240, 255, 0.6); }
}

/* Cyber loader */
.loader-cyber {
  display: inline-block;
  position: relative;
  width: 60px;
  height: 60px;
}
.loader-cyber div {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  animation: cyberLoader 1.5s ease-in-out infinite;
}
.loader-cyber div:nth-child(2) {
  border-color: var(--accent-magenta);
  animation-delay: -0.5s;
}
.loader-cyber div:nth-child(3) {
  border-color: var(--electric-blue);
  animation-delay: -1s;
}

@keyframes cyberLoader {
  0%, 100% { transform: scale(0.3); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--electric-blue), var(--neon-cyan));
  position: relative;
  transition: width var(--transition-slow);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

.progress-bar-fill.magenta { background: linear-gradient(90deg, #cc0088, var(--accent-magenta)); box-shadow: 0 0 10px rgba(255,0,170,0.3); }
.progress-bar-fill.green { background: linear-gradient(90deg, #00cc66, var(--success-green)); box-shadow: 0 0 10px rgba(0,255,136,0.3); }
.progress-bar-fill.gold { background: linear-gradient(90deg, #dd9900, var(--warning-gold)); box-shadow: 0 0 10px rgba(255,187,0,0.3); }
.progress-bar-fill.red { background: linear-gradient(90deg, #dd2244, var(--danger-red)); box-shadow: 0 0 10px rgba(255,51,85,0.3); }

/* ============================================================
   13. TOOLTIP
   ============================================================ */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: var(--z-tooltip);
  backdrop-filter: blur(12px);
}
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* ============================================================
   14. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 240, 255, 0.3), 0 0 15px rgba(0, 240, 255, 0.1); }
  50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 40px rgba(0, 240, 255, 0.2), 0 0 60px rgba(0, 240, 255, 0.05); }
}

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes cyberPulse {
  0%, 100% {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.1);
  }
  50% {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), 0 0 40px rgba(0, 240, 255, 0.05);
  }
}

@keyframes glitchText {
  0% { text-shadow: 2px 0 red, -2px 0 cyan; }
  25% { text-shadow: -2px 0 red, 2px 0 cyan; }
  50% { text-shadow: 2px 2px red, -2px -2px cyan; }
  75% { text-shadow: -2px 2px red, 2px -2px cyan; }
  100% { text-shadow: 2px 0 red, -2px 0 cyan; }
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 0 0 7px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.8;
  }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

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

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

@keyframes tiltShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(0.5deg); }
  50% { transform: rotate(-0.5deg); }
  75% { transform: rotate(0.3deg); }
}

@keyframes dataStream {
  0% { background-position: 0 0; }
  100% { background-position: 0 20px; }
}

/* ============================================================
   15. UTILITY: NEON GLOW TEXT
   ============================================================ */
.text-neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 7px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.2);
}
.text-neon-magenta {
  color: var(--accent-magenta);
  text-shadow: 0 0 7px rgba(255, 0, 170, 0.5), 0 0 20px rgba(255, 0, 170, 0.2);
}
.text-neon-blue {
  color: var(--electric-blue);
  text-shadow: 0 0 7px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 102, 255, 0.2);
}
.text-neon-green {
  color: var(--success-green);
  text-shadow: 0 0 7px rgba(0, 255, 136, 0.5), 0 0 20px rgba(0, 255, 136, 0.2);
}
.text-neon-gold {
  color: var(--warning-gold);
  text-shadow: 0 0 7px rgba(255, 187, 0, 0.5), 0 0 20px rgba(255, 187, 0, 0.2);
}
.text-neon-red {
  color: var(--danger-red);
  text-shadow: 0 0 7px rgba(255, 51, 85, 0.5), 0 0 20px rgba(255, 51, 85, 0.2);
}

.text-glow-cyan { text-shadow: 0 0 10px rgba(0,240,255,0.6), 0 0 30px rgba(0,240,255,0.3), 0 0 60px rgba(0,240,255,0.1); }
.text-glow-magenta { text-shadow: 0 0 10px rgba(255,0,170,0.6), 0 0 30px rgba(255,0,170,0.3), 0 0 60px rgba(255,0,170,0.1); }
.text-glow-green { text-shadow: 0 0 10px rgba(0,255,136,0.6), 0 0 30px rgba(0,255,136,0.3), 0 0 60px rgba(0,255,136,0.1); }
.text-glow-gold { text-shadow: 0 0 10px rgba(255,187,0,0.6), 0 0 30px rgba(255,187,0,0.3), 0 0 60px rgba(255,187,0,0.1); }
.text-glow-red { text-shadow: 0 0 10px rgba(255,51,85,0.6), 0 0 30px rgba(255,51,85,0.3), 0 0 60px rgba(255,51,85,0.1); }
.text-glow-blue { text-shadow: 0 0 10px rgba(0,102,255,0.6), 0 0 30px rgba(0,102,255,0.3), 0 0 60px rgba(0,102,255,0.1); }

/* ============================================================
   16. UTILITY: TEXT GRADIENTS
   ============================================================ */
.text-gradient-cyan {
  background: linear-gradient(135deg, var(--neon-cyan), var(--electric-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-magenta {
  background: linear-gradient(135deg, var(--accent-magenta), #ff66cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--warning-gold), #ff8800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--success-green), #00cc88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-rainbow {
  background: linear-gradient(90deg, var(--neon-cyan), var(--electric-blue), var(--accent-magenta), var(--warning-gold), var(--success-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 100%;
  animation: shimmer 4s ease-in-out infinite;
}
.text-gradient-fire {
  background: linear-gradient(135deg, var(--warning-gold), var(--danger-red), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   17. UTILITY: LAYOUT & SPACING
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.8rem; }
.text-base { font-size: 0.9rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.6rem; }
.text-3xl { font-size: 2rem; }

.font-heading { font-family: var(--font-heading); }
.font-code { font-family: var(--font-code); }
.font-body { font-family: var(--font-body); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.08em; }
.leading-tight { line-height: 1.2; }
.leading-normal { line-height: 1.6; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.m-0 { margin: 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.p-sm { padding: 0.5rem; }
.p-md { padding: 1rem; }
.p-lg { padding: 1.5rem; }
.p-xl { padding: 2rem; }
.px-md { padding-left: 1rem; padding-right: 1rem; }
.py-md { padding-top: 1rem; padding-bottom: 1rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border-subtle); }
.border-cyan { border-color: var(--border-cyan); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-cyan { box-shadow: var(--shadow-cyan); }

.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

/* ============================================================
   18. ANIMATION UTILITY CLASSES
   ============================================================ */
.animate-fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.5s ease forwards; }
.animate-slide-in-right { animation: slideInRight 0.4s ease forwards; }
.animate-slide-in-left { animation: slideInLeft 0.4s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow-pulse { animation: glowPulse 2s ease-in-out infinite; }
.animate-glow-pulse-fast { animation: glowPulse 1s ease-in-out infinite; }
.animate-spin { animation: spin 0.7s linear infinite; }
.animate-spin-slow { animation: spin 2s linear infinite; }
.animate-cyber-pulse { animation: cyberPulse 2s ease-in-out infinite; }
.animate-glitch { animation: glitchText 0.3s ease infinite; }
.animate-neon-flicker { animation: neonFlicker 3s ease infinite; }
.animate-blink { animation: blink 1s step-end infinite; }
.animate-tilt-shake { animation: tiltShake 0.3s ease; }

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }
.animate-delay-700 { animation-delay: 0.7s; }
.animate-delay-1000 { animation-delay: 1s; }

.animate-duration-fast { animation-duration: 0.3s; }
.animate-duration-normal { animation-duration: 0.5s; }
.animate-duration-slow { animation-duration: 1s; }
.animate-duration-very-slow { animation-duration: 2s; }

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}

@media (max-width: 992px) {
  .container { max-width: 720px; }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
  .hide-tablet { display: none; }
}

@media (max-width: 768px) {
  .container { max-width: 100%; padding: 0 1rem; }
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-2 { grid-template-columns: 1fr; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .mobile-flex-col { flex-direction: column; }
  .mobile-w-full { width: 100%; }
  .hide-mobile { display: none; }

  .modal { border-radius: var(--radius-lg); margin: 0.5rem; }
  .notification-container { left: 0.5rem; right: 0.5rem; max-width: none; }

  .table-cyber thead { display: none; }
  .table-cyber tbody tr {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .table-cyber tbody tr:hover td { background: transparent; }
  .table-cyber td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border: none;
    text-align: right;
  }
  .table-cyber td::before {
    content: attr(data-label);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
  }
  .table-cyber tbody tr:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .grid-cols-3 { grid-template-columns: 1fr; }
  .grid-cols-4 { grid-template-columns: 1fr; }

  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1rem; }

  .btn { font-size: 0.78rem; padding: 0.55rem 1.2rem; }
  .btn-lg { font-size: 0.9rem; padding: 0.7rem 1.5rem; }

  .glass-card { padding: 1rem; border-radius: var(--radius-md); }
  .modal-body { padding: 1rem; }
  .modal-header, .modal-footer { padding: 1rem; }
}

/* ============================================================
   20. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body::before { animation: none; }
  .grid-overlay { animation: none; }
  .orb { animation: none; }
  .particle { animation: none; display: none; }
  .scanlines { display: none; }
  .glass-card { transform: none !important; }
  .btn { transform: none !important; }
  .btn:hover { transform: none !important; }
  .notification { animation: none; opacity: 1; transform: none; }
  .progress-bar-fill::after { animation: none; }
  .modal { transform: none; }
  .modal-overlay.active .modal { transform: none; }
  .status-dot::after { animation: none; display: none; }
  .loading-dots span { animation: none; opacity: 0.6; }
  .loader-cyber div { animation: none; opacity: 0.6; }
}
