/**
 * ═══════════════════════════════════════════════════════════════════════════════
 * VELLUNOX DESIGN SYSTEM v2.0 - FUTURISTIC EDITION
 * A stunning, competition-crushing design language
 * ═══════════════════════════════════════════════════════════════════════════════
 */

/* ═══════════════════════════════════════════════════════════════════════════════
   FONTS - Premium Typography
   ═══════════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════════
   ROOT VARIABLES - The Vellunox Signature Palette
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
  /* === VOID DEPTHS - Ultra Dark Backgrounds === */
  --void-abyss: #030305;
  --void-deep: #050507;
  --void-dark: #08080c;
  --void-surface: #0a0a10;
  --void-elevated: #0f0f18;
  --void-card: #12121c;
  --void-panel: #16162a;
  --void-hover: #1a1a30;
  
  /* === CYBER GOLD - Primary Brand Color === */
  --gold-dim: #8b7355;
  --gold-muted: #b8956a;
  --gold-primary: #e2a04a;
  --gold-bright: #f4b84a;
  --gold-glow: #ffc857;
  --gold-radiant: #ffe066;
  
  /* === NEON SPECTRUM - Accent Colors === */
  --neon-cyan: #3b82f6;
  --neon-cyan-dim: #00b8c5;
  --neon-magenta: #ff00ff;
  --neon-magenta-dim: #c500c5;
  --neon-green: #00ff88;
  --neon-green-dim: #00c566;
  --neon-red: #ff3366;
  --neon-red-dim: #cc2952;
  --neon-orange: #ff7700;
  --neon-orange-dim: #cc5f00;
  --neon-purple: #9945ff;
  --neon-purple-dim: #7a37cc;
  --neon-blue: #4488ff;
  --neon-blue-dim: #366acc;
  
  /* === STATUS COLORS === */
  --status-online: #00ff88;
  --status-offline: #ff3366;
  --status-warning: #ffaa00;
  --status-pending: #ff7700;
  --status-deployed: #9945ff;
  
  /* === TEXT COLORS === */
  --text-pure: #ffffff;
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.75);
  --text-muted: rgba(240, 240, 245, 0.7);
  --text-dim: rgba(240, 240, 245, 0.5);
  
  /* === BORDERS & GLOWS === */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-bright: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(226, 160, 74, 0.3);
  --border-cyan: rgba(59, 130, 246, 0.3);
  
  /* === GLOWS & SHADOWS === */
  --glow-gold: 0 0 30px rgba(226, 160, 74, 0.4), 0 0 60px rgba(226, 160, 74, 0.2);
  --glow-cyan: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
  --glow-green: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.2);
  --glow-red: 0 0 30px rgba(255, 51, 102, 0.4), 0 0 60px rgba(255, 51, 102, 0.2);
  --glow-purple: 0 0 30px rgba(153, 69, 255, 0.4), 0 0 60px rgba(153, 69, 255, 0.2);
  
  --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  --shadow-elevated: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  
  /* === GRADIENTS === */
  --gradient-gold: linear-gradient(135deg, #e2a04a, #ffc857);
  --gradient-gold-dark: linear-gradient(135deg, #8b7355, #e2a04a);
  --gradient-cyber: linear-gradient(135deg, #3b82f6, #9945ff);
  --gradient-fire: linear-gradient(135deg, #ff3366, #ff7700);
  --gradient-nature: linear-gradient(135deg, #00ff88, #3b82f6);
  --gradient-void: linear-gradient(180deg, var(--void-surface), var(--void-abyss));
  --gradient-panel: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  
  /* === FONTS - Accessible Typography === */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* === TRANSITIONS === */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* === SPACING === */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* === BORDER RADIUS === */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* ═══════════════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND - The Living Canvas
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--void-abyss);
  overflow: hidden;
}

.vx-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(226, 160, 74, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(153, 69, 255, 0.03) 0%, transparent 60%);
  animation: bgPulse 15s ease-in-out infinite;
}

.vx-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
.vx-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.vx-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s infinite;
}

.vx-particle:nth-child(2n) { background: var(--neon-cyan); animation-delay: -5s; }
.vx-particle:nth-child(3n) { background: var(--neon-purple); animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, .vx-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h4, h5, h6, .vx-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vx-title-hero {
  font-size: clamp(2rem, 5vw, 4rem);
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(226, 160, 74, 0.5);
}

.vx-title-lg { font-size: 2rem; }
.vx-title-md { font-size: 1.5rem; }
.vx-title-sm { font-size: 1.25rem; }

.vx-text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vx-text-gradient-cyber {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GLASSMORPHIC CARDS & PANELS
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-card {
  background: linear-gradient(135deg, rgba(18, 18, 28, 0.9), rgba(10, 10, 16, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.vx-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.5;
}

.vx-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated), var(--glow-gold);
}

.vx-card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.vx-card-body {
  padding: var(--space-lg);
}

.vx-card-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

/* Panel Variants */
.vx-panel-cyber {
  border-color: var(--border-cyan);
}

.vx-panel-cyber::before {
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
}

.vx-panel-cyber:hover {
  box-shadow: var(--shadow-elevated), var(--glow-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FUTURISTIC BUTTONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-normal);
}

.vx-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
}

.vx-btn:hover::before {
  left: 100%;
}

/* Primary Button - Gold */
.vx-btn-primary {
  background: var(--gradient-gold);
  color: var(--void-abyss);
  box-shadow: 0 4px 20px rgba(226, 160, 74, 0.3);
}

.vx-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glow-gold);
}

/* Cyber Button */
.vx-btn-cyber {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.vx-btn-cyber:hover {
  background: rgba(59, 130, 246, 0.1);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
}

/* Ghost Button */
.vx-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.vx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
}

/* Danger Button */
.vx-btn-danger {
  background: var(--gradient-fire);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.3);
}

.vx-btn-danger:hover {
  box-shadow: var(--glow-red);
  transform: translateY(-3px);
}

/* Success Button */
.vx-btn-success {
  background: var(--gradient-nature);
  color: var(--void-abyss);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.vx-btn-success:hover {
  box-shadow: var(--glow-green);
  transform: translateY(-3px);
}

/* Button Sizes */
.vx-btn-sm { padding: var(--space-sm) var(--space-md); font-size: 0.8rem; }
.vx-btn-lg { padding: var(--space-lg) var(--space-2xl); font-size: 1.1rem; }
.vx-btn-xl { padding: var(--space-xl) var(--space-3xl); font-size: 1.25rem; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HOLOGRAPHIC STATS
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.vx-stat {
  background: linear-gradient(135deg, rgba(18, 18, 28, 0.8), rgba(10, 10, 16, 0.9));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.vx-stat::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--gold-primary), transparent, transparent);
  animation: statRotate 8s linear infinite;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.vx-stat:hover::before {
  opacity: 0.1;
}

@keyframes statRotate {
  100% { transform: rotate(360deg); }
}

.vx-stat-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
  position: relative;
}

.vx-stat-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vx-stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  opacity: 0.8;
}

/* Stat Color Variants */
.vx-stat-gold .vx-stat-value { color: var(--gold-primary); text-shadow: 0 0 30px rgba(226, 160, 74, 0.5); }
.vx-stat-cyan .vx-stat-value { color: var(--neon-cyan); text-shadow: 0 0 30px rgba(59, 130, 246, 0.5); }
.vx-stat-green .vx-stat-value { color: var(--neon-green); text-shadow: 0 0 30px rgba(0, 255, 136, 0.5); }
.vx-stat-red .vx-stat-value { color: var(--neon-red); text-shadow: 0 0 30px rgba(255, 51, 102, 0.5); }
.vx-stat-purple .vx-stat-value { color: var(--neon-purple); text-shadow: 0 0 30px rgba(153, 69, 255, 0.5); }
.vx-stat-orange .vx-stat-value { color: var(--neon-orange); text-shadow: 0 0 30px rgba(255, 119, 0, 0.5); }
.vx-stat-blue .vx-stat-value { color: var(--neon-blue); text-shadow: 0 0 30px rgba(68, 136, 255, 0.5); }

/* ═══════════════════════════════════════════════════════════════════════════════
   CYBER TABLES
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: rgba(10, 10, 16, 0.6);
}

.vx-table {
  width: 100%;
  border-collapse: collapse;
}

.vx-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.vx-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

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

.vx-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(226, 160, 74, 0.05), transparent);
}

.vx-table tbody tr:hover td {
  color: var(--text-pure);
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.vx-badge-online {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.vx-badge-offline {
  background: rgba(255, 51, 102, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.vx-badge-warning {
  background: rgba(255, 170, 0, 0.15);
  color: var(--status-warning);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.vx-badge-pending {
  background: rgba(255, 119, 0, 0.15);
  color: var(--neon-orange);
  border: 1px solid rgba(255, 119, 0, 0.3);
}

.vx-badge-deployed {
  background: rgba(153, 69, 255, 0.15);
  color: var(--neon-purple);
  border: 1px solid rgba(153, 69, 255, 0.3);
  box-shadow: 0 0 15px rgba(153, 69, 255, 0.2);
}

.vx-badge-gold {
  background: rgba(226, 160, 74, 0.15);
  color: var(--gold-primary);
  border: 1px solid rgba(226, 160, 74, 0.3);
}

/* Pulsing Online Dot */
.vx-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   CYBER SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, var(--void-panel) 0%, var(--void-abyss) 100%);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition-normal);
}

.vx-sidebar-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.vx-sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.vx-sidebar-logo img {
  height: 40px;
  width: auto;
}

.vx-sidebar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vx-sidebar-nav {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.vx-nav-section {
  margin-bottom: var(--space-xl);
}

.vx-nav-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}

.vx-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.vx-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-primary);
  transform: scaleY(0);
  transition: var(--transition-fast);
}

.vx-nav-item:hover {
  background: rgba(226, 160, 74, 0.08);
  color: var(--text-primary);
}

.vx-nav-item.active {
  background: rgba(226, 160, 74, 0.12);
  color: var(--gold-primary);
}

.vx-nav-item.active::before {
  transform: scaleY(1);
}

.vx-nav-icon {
  font-size: 1.25rem;
  width: 28px;
  text-align: center;
}

.vx-nav-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOPBAR / HEADER
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-topbar {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  height: 70px;
  background: linear-gradient(90deg, rgba(10, 10, 16, 0.95), rgba(18, 18, 28, 0.95));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  z-index: 99;
}

.vx-topbar-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.vx-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-main {
  margin-left: 280px;
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  padding: var(--space-xl);
}

.vx-container {
  max-width: 1600px;
  margin: 0 auto;
}

.vx-page-header {
  margin-bottom: var(--space-2xl);
}

.vx-page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.vx-page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-light);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: vxSpin 1s linear infinite;
}

@keyframes vxSpin {
  100% { transform: rotate(360deg); }
}

.vx-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  gap: var(--space-lg);
}

.vx-loading-text {
  font-family: var(--font-heading);
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* Skeleton Loading */
.vx-skeleton {
  background: linear-gradient(90deg, var(--void-elevated) 25%, var(--void-hover) 50%, var(--void-elevated) 75%);
  background-size: 200% 100%;
  animation: vxSkeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes vxSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(10, 10, 16, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  outline: none;
  transition: var(--transition-fast);
}

.vx-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(226, 160, 74, 0.15);
}

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

.vx-input-group {
  position: relative;
}

.vx-input-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.vx-input-group .vx-input {
  padding-left: calc(var(--space-3xl) + var(--space-sm));
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOASTS & NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  min-width: 320px;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--void-panel), var(--void-card));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 9999;
}

.vx-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.vx-toast-success { border-color: var(--neon-green); }
.vx-toast-error { border-color: var(--neon-red); }
.vx-toast-warning { border-color: var(--status-warning); }

.vx-toast-icon {
  font-size: 1.5rem;
}

.vx-toast-content {
  flex: 1;
}

.vx-toast-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 2px;
}

.vx-toast-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PROGRESS BARS
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-progress {
  height: 8px;
  background: var(--void-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.vx-progress-bar {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  position: relative;
}

.vx-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s infinite;
}

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

/* ═══════════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════════════ */
.vx-flex { display: flex; }
.vx-flex-center { display: flex; align-items: center; justify-content: center; }
.vx-flex-between { display: flex; align-items: center; justify-content: space-between; }
.vx-flex-col { flex-direction: column; }
.vx-gap-sm { gap: var(--space-sm); }
.vx-gap-md { gap: var(--space-md); }
.vx-gap-lg { gap: var(--space-lg); }
.vx-gap-xl { gap: var(--space-xl); }

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

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

.vx-mt-sm { margin-top: var(--space-sm); }
.vx-mt-md { margin-top: var(--space-md); }
.vx-mt-lg { margin-top: var(--space-lg); }
.vx-mt-xl { margin-top: var(--space-xl); }
.vx-mb-sm { margin-bottom: var(--space-sm); }
.vx-mb-md { margin-bottom: var(--space-md); }
.vx-mb-lg { margin-bottom: var(--space-lg); }
.vx-mb-xl { margin-bottom: var(--space-xl); }

.vx-p-sm { padding: var(--space-sm); }
.vx-p-md { padding: var(--space-md); }
.vx-p-lg { padding: var(--space-lg); }
.vx-p-xl { padding: var(--space-xl); }

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

.vx-hidden { display: none; }
.vx-visible { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .vx-sidebar { width: 240px; }
  .vx-main { margin-left: 240px; }
  .vx-topbar { left: 240px; }
}

@media (max-width: 992px) {
  .vx-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .vx-sidebar.open { transform: translateX(0); }
  .vx-main { margin-left: 0; }
  .vx-topbar { left: 0; }
  .vx-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .vx-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .vx-grid-3, .vx-grid-2 { grid-template-columns: 1fr; }
  .vx-page-title { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SPECIAL EFFECTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Hover Glow Effect */
.vx-glow-hover {
  transition: var(--transition-normal);
}
.vx-glow-hover:hover {
  filter: drop-shadow(0 0 20px var(--gold-primary));
}

/* Scanning Line Animation */
.vx-scan-line {
  position: relative;
  overflow: hidden;
}

.vx-scan-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Pulse Ring */
.vx-pulse-ring {
  position: relative;
}

.vx-pulse-ring::before,
.vx-pulse-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

.vx-pulse-ring::after {
  animation-delay: 1s;
}

@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Typing Cursor */
.vx-typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Neon Border Animation */
.vx-neon-border {
  position: relative;
}

.vx-neon-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold-primary), var(--neon-cyan), var(--neon-purple), var(--gold-primary));
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: neonBorder 4s ease infinite;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.vx-neon-border:hover::before {
  opacity: 1;
}

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

