/*
 * NeoPrizes Futuristic Design System
 * A sophisticated, cyberpunk-inspired design language
 * Version 2.0
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Color Palette - Cyberpunk Neon */
  --neo-primary: #00f0ff;
  --neo-primary-dark: #00b8c4;
  --neo-primary-light: #7df9ff;
  --neo-primary-glow: rgba(0, 240, 255, 0.5);

  /* Secondary Colors */
  --neo-secondary: #bc13fe;
  --neo-secondary-dark: #9400d3;
  --neo-secondary-light: #e040fb;
  --neo-secondary-glow: rgba(188, 19, 254, 0.5);

  /* Accent Colors */
  --neo-accent: #f1c40f;
  --neo-accent-dark: #d4a00a;
  --neo-accent-light: #f9d423;
  --neo-accent-glow: rgba(241, 196, 15, 0.5);

  /* Success/Warning/Error States */
  --neo-success: #00ff88;
  --neo-success-glow: rgba(0, 255, 136, 0.4);
  --neo-warning: #ffaa00;
  --neo-warning-glow: rgba(255, 170, 0, 0.4);
  --neo-error: #ff3366;
  --neo-error-glow: rgba(255, 51, 102, 0.4);

  /* Dark Theme Background Palette */
  --neo-bg-primary: #0a0a0f;
  --neo-bg-secondary: #12121a;
  --neo-bg-tertiary: #1a1a25;
  --neo-bg-elevated: #222233;
  --neo-bg-hover: #2a2a3d;

  /* Glass Effect Colors */
  --neo-glass-bg: rgba(255, 255, 255, 0.03);
  --neo-glass-border: rgba(255, 255, 255, 0.08);
  --neo-glass-highlight: rgba(255, 255, 255, 0.1);

  /* Text Colors */
  --neo-text-primary: #ffffff;
  --neo-text-secondary: rgba(255, 255, 255, 0.7);
  --neo-text-muted: rgba(255, 255, 255, 0.4);
  --neo-text-inverse: #0a0a0f;

  /* Border & Divider */
  --neo-border: rgba(255, 255, 255, 0.1);
  --neo-border-strong: rgba(255, 255, 255, 0.2);
  --neo-divider: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);

  /* Shadows */
  --neo-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --neo-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --neo-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --neo-shadow-glow: 0 0 30px var(--neo-primary-glow);
  --neo-shadow-glow-secondary: 0 0 30px var(--neo-secondary-glow);

  /* Typography */
  --neo-font-primary: 'Orbitron', 'Rajdhani', sans-serif;
  --neo-font-secondary: 'Rajdhani', 'Exo 2', sans-serif;
  --neo-font-body: 'Inter', 'Poppins', sans-serif;
  --neo-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --neo-text-xs: 0.75rem;
  --neo-text-sm: 0.875rem;
  --neo-text-base: 1rem;
  --neo-text-lg: 1.125rem;
  --neo-text-xl: 1.25rem;
  --neo-text-2xl: 1.5rem;
  --neo-text-3xl: 2rem;
  --neo-text-4xl: 2.5rem;
  --neo-text-5xl: 3.5rem;
  --neo-text-6xl: 4.5rem;

  /* Spacing Scale */
  --neo-space-1: 0.25rem;
  --neo-space-2: 0.5rem;
  --neo-space-3: 0.75rem;
  --neo-space-4: 1rem;
  --neo-space-5: 1.25rem;
  --neo-space-6: 1.5rem;
  --neo-space-8: 2rem;
  --neo-space-10: 2.5rem;
  --neo-space-12: 3rem;
  --neo-space-16: 4rem;
  --neo-space-20: 5rem;
  --neo-space-24: 6rem;

  /* Border Radius */
  --neo-radius-sm: 4px;
  --neo-radius-md: 8px;
  --neo-radius-lg: 12px;
  --neo-radius-xl: 16px;
  --neo-radius-2xl: 24px;
  --neo-radius-full: 9999px;

  /* Transitions */
  --neo-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --neo-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --neo-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --neo-transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-Index Scale */
  --neo-z-dropdown: 100;
  --neo-z-sticky: 200;
  --neo-z-fixed: 300;
  --neo-z-modal-backdrop: 400;
  --neo-z-modal: 500;
  --neo-z-popover: 600;
  --neo-z-tooltip: 700;
  --neo-z-toast: 800;
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
  /* Light Theme Background Palette */
  --neo-bg-primary: #f5f7fa;
  --neo-bg-secondary: #ffffff;
  --neo-bg-tertiary: #e8ecf1;
  --neo-bg-elevated: #ffffff;
  --neo-bg-hover: #dfe4ea;

  /* Glass Effect Colors - Light */
  --neo-glass-bg: rgba(255, 255, 255, 0.7);
  --neo-glass-border: rgba(0, 0, 0, 0.08);
  --neo-glass-highlight: rgba(255, 255, 255, 0.9);

  /* Text Colors - Light */
  --neo-text-primary: #1a1a2e;
  --neo-text-secondary: rgba(26, 26, 46, 0.7);
  --neo-text-muted: rgba(26, 26, 46, 0.5);
  --neo-text-inverse: #ffffff;

  /* Border & Divider - Light */
  --neo-border: rgba(0, 0, 0, 0.1);
  --neo-border-strong: rgba(0, 0, 0, 0.2);
  --neo-divider: linear-gradient(90deg, transparent, rgba(0, 100, 120, 0.3), transparent);

  /* Shadows - Light */
  --neo-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --neo-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --neo-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);

  /* Adjusted Primary Colors for Light Mode */
  --neo-primary: #0094a8;
  --neo-primary-dark: #007a8a;
  --neo-primary-light: #00c4d9;
  --neo-primary-glow: rgba(0, 148, 168, 0.3);

  /* Adjusted Secondary for Light Mode */
  --neo-secondary: #9400d3;
  --neo-secondary-glow: rgba(148, 0, 211, 0.3);
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--neo-font-body);
  font-size: var(--neo-text-base);
  line-height: 1.6;
  color: var(--neo-text-primary);
  background: var(--neo-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated Background Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 50px 50px;
  pointer-events: none;
  z-index: -1;
}

/* Gradient Orbs Background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 240, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(188, 19, 254, 0.08), transparent);
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: var(--neo-primary);
  color: var(--neo-bg-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--neo-font-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: var(--neo-space-4);
}

h1, .neo-h1 {
  font-size: var(--neo-text-5xl);
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2, .neo-h2 {
  font-size: var(--neo-text-4xl);
}

h3, .neo-h3 {
  font-size: var(--neo-text-3xl);
}

h4, .neo-h4 {
  font-size: var(--neo-text-2xl);
}

h5, .neo-h5 {
  font-size: var(--neo-text-xl);
}

h6, .neo-h6 {
  font-size: var(--neo-text-lg);
}

p {
  margin-bottom: var(--neo-space-4);
  color: var(--neo-text-secondary);
}

a {
  color: var(--neo-primary);
  text-decoration: none;
  transition: var(--neo-transition-fast);
}

a:hover {
  color: var(--neo-primary-light);
  text-shadow: 0 0 10px var(--neo-primary-glow);
}

.neo-text-gradient {
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neo-text-glow {
  text-shadow: 0 0 20px var(--neo-primary-glow), 0 0 40px var(--neo-primary-glow);
}

/* ============================================
   GLASSMORPHISM CARD SYSTEM
   ============================================ */
.neo-card {
  background: var(--neo-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--neo-glass-border);
  border-radius: var(--neo-radius-xl);
  padding: var(--neo-space-6);
  position: relative;
  overflow: hidden;
  transition: var(--neo-transition-base);
}

.neo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--neo-glass-highlight),
    transparent
  );
}

.neo-card:hover {
  border-color: var(--neo-primary);
  box-shadow: var(--neo-shadow-glow);
  transform: translateY(-2px);
}

.neo-card-header {
  padding-bottom: var(--neo-space-4);
  margin-bottom: var(--neo-space-4);
  border-bottom: 1px solid var(--neo-border);
}

.neo-card-title {
  font-family: var(--neo-font-primary);
  font-size: var(--neo-text-xl);
  font-weight: 600;
  color: var(--neo-text-primary);
  margin: 0;
}

.neo-card-body {
  color: var(--neo-text-secondary);
}

.neo-card-footer {
  padding-top: var(--neo-space-4);
  margin-top: var(--neo-space-4);
  border-top: 1px solid var(--neo-border);
}

/* Card Variants */
.neo-card-elevated {
  background: var(--neo-bg-elevated);
  border: 1px solid var(--neo-border);
}

.neo-card-glow {
  border-color: var(--neo-primary);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.1),
    inset 0 0 60px rgba(0, 240, 255, 0.02);
}

.neo-card-glow-secondary {
  border-color: var(--neo-secondary);
  box-shadow:
    0 0 20px rgba(188, 19, 254, 0.1),
    inset 0 0 60px rgba(188, 19, 254, 0.02);
}

.neo-card-glow-accent {
  border-color: var(--neo-accent);
  box-shadow:
    0 0 20px rgba(241, 196, 15, 0.1),
    inset 0 0 60px rgba(241, 196, 15, 0.02);
}

/* ============================================
   BUTTON SYSTEM
   ============================================ */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--neo-space-2);
  padding: var(--neo-space-3) var(--neo-space-6);
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-base);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--neo-radius-md);
  cursor: pointer;
  transition: var(--neo-transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.neo-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(--neo-transition-slow);
}

.neo-btn:hover::before {
  left: 100%;
}

/* Primary Button */
.neo-btn-primary {
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark));
  color: var(--neo-bg-primary);
  border-color: var(--neo-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.neo-btn-primary:hover {
  background: linear-gradient(135deg, var(--neo-primary-light), var(--neo-primary));
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
  transform: translateY(-2px);
}

/* Secondary Button */
.neo-btn-secondary {
  background: linear-gradient(135deg, var(--neo-secondary), var(--neo-secondary-dark));
  color: var(--neo-text-primary);
  border-color: var(--neo-secondary);
  box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

.neo-btn-secondary:hover {
  background: linear-gradient(135deg, var(--neo-secondary-light), var(--neo-secondary));
  box-shadow: 0 0 30px rgba(188, 19, 254, 0.5);
  transform: translateY(-2px);
}

/* Accent Button */
.neo-btn-accent {
  background: linear-gradient(135deg, var(--neo-accent), var(--neo-accent-dark));
  color: var(--neo-bg-primary);
  border-color: var(--neo-accent);
  box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.neo-btn-accent:hover {
  background: linear-gradient(135deg, var(--neo-accent-light), var(--neo-accent));
  box-shadow: 0 0 30px rgba(241, 196, 15, 0.5);
  transform: translateY(-2px);
}

/* Outline Buttons */
.neo-btn-outline {
  background: transparent;
  color: var(--neo-primary);
  border-color: var(--neo-primary);
}

.neo-btn-outline:hover {
  background: var(--neo-primary);
  color: var(--neo-bg-primary);
  box-shadow: var(--neo-shadow-glow);
}

.neo-btn-outline-secondary {
  background: transparent;
  color: var(--neo-secondary);
  border-color: var(--neo-secondary);
}

.neo-btn-outline-secondary:hover {
  background: var(--neo-secondary);
  color: var(--neo-text-primary);
  box-shadow: var(--neo-shadow-glow-secondary);
}

/* Ghost Button */
.neo-btn-ghost {
  background: transparent;
  color: var(--neo-text-secondary);
  border-color: transparent;
}

.neo-btn-ghost:hover {
  background: var(--neo-glass-bg);
  color: var(--neo-text-primary);
  border-color: var(--neo-border);
}

/* Button Sizes */
.neo-btn-sm {
  padding: var(--neo-space-2) var(--neo-space-4);
  font-size: var(--neo-text-sm);
}

.neo-btn-lg {
  padding: var(--neo-space-4) var(--neo-space-8);
  font-size: var(--neo-text-lg);
}

.neo-btn-xl {
  padding: var(--neo-space-5) var(--neo-space-10);
  font-size: var(--neo-text-xl);
}

/* Icon Button */
.neo-btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--neo-radius-md);
}

.neo-btn-icon-sm {
  width: 36px;
  height: 36px;
}

.neo-btn-icon-lg {
  width: 52px;
  height: 52px;
}

/* Button States */
.neo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.neo-btn:disabled::before {
  display: none;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.neo-input-group {
  position: relative;
  margin-bottom: var(--neo-space-6);
}

.neo-label {
  display: block;
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-sm);
  font-weight: 600;
  color: var(--neo-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--neo-space-2);
}

.neo-input {
  width: 100%;
  padding: var(--neo-space-4);
  font-family: var(--neo-font-body);
  font-size: var(--neo-text-base);
  color: var(--neo-text-primary);
  background: var(--neo-bg-tertiary);
  border: 2px solid var(--neo-border);
  border-radius: var(--neo-radius-md);
  outline: none;
  transition: var(--neo-transition-base);
}

.neo-input::placeholder {
  color: var(--neo-text-muted);
}

.neo-input:focus {
  border-color: var(--neo-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1), 0 0 20px rgba(0, 240, 255, 0.1);
}

.neo-input:hover:not(:focus) {
  border-color: var(--neo-border-strong);
}

/* Input with Icon */
.neo-input-icon-left {
  padding-left: var(--neo-space-12);
}

.neo-input-icon-right {
  padding-right: var(--neo-space-12);
}

.neo-input-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neo-text-muted);
  transition: var(--neo-transition-fast);
  pointer-events: none;
}

.neo-input-icon-left-pos {
  left: var(--neo-space-4);
}

.neo-input-icon-right-pos {
  right: var(--neo-space-4);
}

.neo-input:focus ~ .neo-input-icon {
  color: var(--neo-primary);
}

/* Textarea */
.neo-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Select */
.neo-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--neo-space-4) center;
  background-size: 16px;
  padding-right: var(--neo-space-12);
  cursor: pointer;
}

/* Checkbox & Radio */
.neo-checkbox,
.neo-radio {
  display: flex;
  align-items: center;
  gap: var(--neo-space-3);
  cursor: pointer;
  user-select: none;
}

.neo-checkbox input,
.neo-radio input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.neo-checkmark {
  width: 22px;
  height: 22px;
  background: var(--neo-bg-tertiary);
  border: 2px solid var(--neo-border);
  border-radius: var(--neo-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--neo-transition-fast);
}

.neo-radio .neo-checkmark {
  border-radius: var(--neo-radius-full);
}

.neo-checkbox:hover .neo-checkmark,
.neo-radio:hover .neo-checkmark {
  border-color: var(--neo-primary);
}

.neo-checkbox input:checked ~ .neo-checkmark,
.neo-radio input:checked ~ .neo-checkmark {
  background: var(--neo-primary);
  border-color: var(--neo-primary);
}

.neo-checkmark::after {
  content: '';
  display: none;
}

.neo-checkbox input:checked ~ .neo-checkmark::after {
  display: block;
  width: 6px;
  height: 10px;
  border: solid var(--neo-bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.neo-radio input:checked ~ .neo-checkmark::after {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--neo-bg-primary);
  border-radius: var(--neo-radius-full);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.neo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--neo-space-1);
  padding: var(--neo-space-1) var(--neo-space-3);
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--neo-radius-full);
  border: 1px solid transparent;
}

.neo-badge-primary {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neo-primary);
  border-color: var(--neo-primary);
}

.neo-badge-secondary {
  background: rgba(188, 19, 254, 0.1);
  color: var(--neo-secondary);
  border-color: var(--neo-secondary);
}

.neo-badge-accent {
  background: rgba(241, 196, 15, 0.1);
  color: var(--neo-accent);
  border-color: var(--neo-accent);
}

.neo-badge-success {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neo-success);
  border-color: var(--neo-success);
}

.neo-badge-warning {
  background: rgba(255, 170, 0, 0.1);
  color: var(--neo-warning);
  border-color: var(--neo-warning);
}

.neo-badge-error {
  background: rgba(255, 51, 102, 0.1);
  color: var(--neo-error);
  border-color: var(--neo-error);
}

/* Pulse Badge */
.neo-badge-pulse {
  position: relative;
}

.neo-badge-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: neo-pulse 2s infinite;
}

.neo-badge-pulse.neo-badge-primary::before {
  box-shadow: 0 0 0 0 var(--neo-primary);
}

.neo-badge-pulse.neo-badge-success::before {
  box-shadow: 0 0 0 0 var(--neo-success);
}

/* ============================================
   PROGRESS & STATS
   ============================================ */
.neo-progress {
  width: 100%;
  height: 8px;
  background: var(--neo-bg-tertiary);
  border-radius: var(--neo-radius-full);
  overflow: hidden;
  position: relative;
}

.neo-progress-bar {
  height: 100%;
  border-radius: var(--neo-radius-full);
  background: linear-gradient(90deg, var(--neo-primary), var(--neo-secondary));
  transition: width var(--neo-transition-slow);
  position: relative;
}

.neo-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: neo-shimmer 2s infinite;
}

/* Circular Progress */
.neo-progress-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.neo-progress-circle svg {
  transform: rotate(-90deg);
}

.neo-progress-circle-bg {
  fill: none;
  stroke: var(--neo-bg-tertiary);
}

.neo-progress-circle-bar {
  fill: none;
  stroke: url(#neo-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset var(--neo-transition-slow);
}

.neo-progress-circle-text {
  position: absolute;
  font-family: var(--neo-font-primary);
  font-weight: 700;
  font-size: var(--neo-text-2xl);
}

/* Stats Cards */
.neo-stat {
  text-align: center;
  padding: var(--neo-space-6);
}

.neo-stat-value {
  font-family: var(--neo-font-primary);
  font-size: var(--neo-text-4xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--neo-space-2);
}

.neo-stat-label {
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neo-text-muted);
}

.neo-stat-change {
  font-size: var(--neo-text-sm);
  margin-top: var(--neo-space-2);
}

.neo-stat-change-up {
  color: var(--neo-success);
}

.neo-stat-change-down {
  color: var(--neo-error);
}

/* ============================================
   DATA TABLES
   ============================================ */
.neo-table-wrapper {
  overflow-x: auto;
  border-radius: var(--neo-radius-lg);
  border: 1px solid var(--neo-border);
}

.neo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--neo-text-sm);
}

.neo-table th {
  padding: var(--neo-space-4);
  font-family: var(--neo-font-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neo-text-muted);
  background: var(--neo-bg-elevated);
  border-bottom: 1px solid var(--neo-border);
  text-align: left;
  white-space: nowrap;
}

.neo-table td {
  padding: var(--neo-space-4);
  border-bottom: 1px solid var(--neo-border);
  color: var(--neo-text-secondary);
  vertical-align: middle;
}

.neo-table tbody tr {
  transition: var(--neo-transition-fast);
}

.neo-table tbody tr:hover {
  background: var(--neo-bg-hover);
}

.neo-table tbody tr:last-child td {
  border-bottom: none;
}

/* Sortable Headers */
.neo-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.neo-table th.sortable:hover {
  color: var(--neo-primary);
}

.neo-table th.sortable::after {
  content: '↕';
  margin-left: var(--neo-space-2);
  opacity: 0.3;
}

.neo-table th.sorted-asc::after {
  content: '↑';
  opacity: 1;
  color: var(--neo-primary);
}

.neo-table th.sorted-desc::after {
  content: '↓';
  opacity: 1;
  color: var(--neo-primary);
}

/* Mobile table responsiveness */
@media (max-width: 768px) {
  .neo-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .neo-table {
    font-size: 0.813rem;
    min-width: 600px;
  }

  .neo-table th,
  .neo-table td {
    padding: var(--neo-space-2) var(--neo-space-3);
  }

  .neo-table th {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .neo-table {
    font-size: 0.75rem;
  }

  .neo-table th,
  .neo-table td {
    padding: var(--neo-space-2);
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.neo-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--neo-z-fixed);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neo-border);
  padding: var(--neo-space-4) var(--neo-space-8);
}

.neo-navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.neo-navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--neo-space-3);
  font-family: var(--neo-font-primary);
  font-size: var(--neo-text-xl);
  font-weight: 700;
  color: var(--neo-text-primary);
  text-decoration: none;
}

.neo-navbar-brand:hover {
  color: var(--neo-primary);
}

.neo-navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--neo-space-2);
  list-style: none;
}

.neo-navbar-link {
  padding: var(--neo-space-2) var(--neo-space-4);
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neo-text-secondary);
  text-decoration: none;
  border-radius: var(--neo-radius-md);
  transition: var(--neo-transition-fast);
}

.neo-navbar-link:hover,
.neo-navbar-link.active {
  color: var(--neo-primary);
  background: rgba(0, 240, 255, 0.1);
}

/* Mobile Menu Toggle */
.neo-navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--neo-space-2);
}

.neo-navbar-toggle span {
  width: 24px;
  height: 2px;
  background: var(--neo-text-primary);
  transition: var(--neo-transition-fast);
}

/* ============================================
   SIDEBAR (Admin)
   ============================================ */
.neo-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--neo-bg-secondary);
  border-right: 1px solid var(--neo-border);
  padding: var(--neo-space-6);
  display: flex;
  flex-direction: column;
  z-index: var(--neo-z-fixed);
  transition: var(--neo-transition-base);
}

.neo-sidebar-collapsed {
  width: 80px;
}

.neo-sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--neo-space-3);
  padding-bottom: var(--neo-space-6);
  margin-bottom: var(--neo-space-6);
  border-bottom: 1px solid var(--neo-border);
}

.neo-sidebar-brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-secondary));
  border-radius: var(--neo-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--neo-font-primary);
  font-size: var(--neo-text-xl);
  font-weight: 700;
  color: var(--neo-bg-primary);
  flex-shrink: 0;
}

.neo-sidebar-brand-text {
  font-family: var(--neo-font-primary);
  font-size: var(--neo-text-lg);
  font-weight: 700;
  color: var(--neo-text-primary);
}

.neo-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--neo-space-2);
  overflow-y: auto;
}

.neo-sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--neo-space-3);
  padding: var(--neo-space-3) var(--neo-space-4);
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-base);
  font-weight: 500;
  color: var(--neo-text-secondary);
  text-decoration: none;
  border-radius: var(--neo-radius-md);
  transition: var(--neo-transition-fast);
}

.neo-sidebar-nav-item:hover {
  color: var(--neo-text-primary);
  background: var(--neo-bg-hover);
}

.neo-sidebar-nav-item.active {
  color: var(--neo-primary);
  background: rgba(0, 240, 255, 0.1);
  border-left: 3px solid var(--neo-primary);
}

.neo-sidebar-nav-item svg,
.neo-sidebar-nav-item i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.neo-sidebar-section {
  margin-top: var(--neo-space-6);
  padding-top: var(--neo-space-6);
  border-top: 1px solid var(--neo-border);
}

.neo-sidebar-section-title {
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neo-text-muted);
  margin-bottom: var(--neo-space-3);
  padding: 0 var(--neo-space-4);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.neo-toast-container {
  position: fixed;
  top: var(--neo-space-6);
  right: var(--neo-space-6);
  z-index: var(--neo-z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--neo-space-3);
  max-width: 400px;
}

.neo-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--neo-space-3);
  padding: var(--neo-space-4);
  background: var(--neo-bg-elevated);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  box-shadow: var(--neo-shadow-lg);
  animation: neo-slide-in 0.3s ease-out;
}

.neo-toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.neo-toast-content {
  flex: 1;
}

.neo-toast-title {
  font-family: var(--neo-font-secondary);
  font-weight: 600;
  color: var(--neo-text-primary);
  margin-bottom: var(--neo-space-1);
}

.neo-toast-message {
  font-size: var(--neo-text-sm);
  color: var(--neo-text-secondary);
}

.neo-toast-close {
  background: none;
  border: none;
  color: var(--neo-text-muted);
  cursor: pointer;
  padding: var(--neo-space-1);
  transition: var(--neo-transition-fast);
}

.neo-toast-close:hover {
  color: var(--neo-text-primary);
}

/* Toast Variants */
.neo-toast-success {
  border-left: 3px solid var(--neo-success);
}

.neo-toast-success .neo-toast-icon {
  color: var(--neo-success);
}

.neo-toast-error {
  border-left: 3px solid var(--neo-error);
}

.neo-toast-error .neo-toast-icon {
  color: var(--neo-error);
}

.neo-toast-warning {
  border-left: 3px solid var(--neo-warning);
}

.neo-toast-warning .neo-toast-icon {
  color: var(--neo-warning);
}

.neo-toast-info {
  border-left: 3px solid var(--neo-primary);
}

.neo-toast-info .neo-toast-icon {
  color: var(--neo-primary);
}

/* ============================================
   MODALS
   ============================================ */
.neo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--neo-z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--neo-space-6);
  opacity: 0;
  visibility: hidden;
  transition: var(--neo-transition-base);
}

.neo-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.neo-modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--neo-bg-secondary);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-xl);
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: var(--neo-transition-base);
}

.neo-modal-backdrop.active .neo-modal {
  transform: scale(1) translateY(0);
}

.neo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--neo-space-6);
  border-bottom: 1px solid var(--neo-border);
}

.neo-modal-title {
  font-family: var(--neo-font-primary);
  font-size: var(--neo-text-xl);
  font-weight: 600;
  margin: 0;
}

.neo-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neo-bg-hover);
  border: none;
  border-radius: var(--neo-radius-md);
  color: var(--neo-text-secondary);
  cursor: pointer;
  transition: var(--neo-transition-fast);
}

.neo-modal-close:hover {
  background: var(--neo-error);
  color: var(--neo-text-primary);
}

.neo-modal-body {
  padding: var(--neo-space-6);
  overflow-y: auto;
  max-height: 60vh;
}

.neo-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--neo-space-3);
  padding: var(--neo-space-6);
  border-top: 1px solid var(--neo-border);
}

/* Modal Sizes */
.neo-modal-sm {
  max-width: 400px;
}

.neo-modal-lg {
  max-width: 700px;
}

.neo-modal-xl {
  max-width: 900px;
}

/* ============================================
   DROPDOWN MENUS
   ============================================ */
.neo-dropdown {
  position: relative;
  display: inline-block;
}

.neo-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--neo-bg-elevated);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  padding: var(--neo-space-2);
  box-shadow: var(--neo-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--neo-transition-fast);
  z-index: var(--neo-z-dropdown);
}

.neo-dropdown.active .neo-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.neo-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--neo-space-3);
  padding: var(--neo-space-3) var(--neo-space-4);
  font-size: var(--neo-text-sm);
  color: var(--neo-text-secondary);
  text-decoration: none;
  border-radius: var(--neo-radius-md);
  transition: var(--neo-transition-fast);
  cursor: pointer;
}

.neo-dropdown-item:hover {
  color: var(--neo-text-primary);
  background: var(--neo-bg-hover);
}

.neo-dropdown-divider {
  height: 1px;
  background: var(--neo-border);
  margin: var(--neo-space-2) 0;
}

/* ============================================
   TABS
   ============================================ */
.neo-tabs {
  display: flex;
  gap: var(--neo-space-1);
  padding: var(--neo-space-1);
  background: var(--neo-bg-tertiary);
  border-radius: var(--neo-radius-lg);
}

.neo-tab {
  flex: 1;
  padding: var(--neo-space-3) var(--neo-space-6);
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neo-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--neo-radius-md);
  cursor: pointer;
  transition: var(--neo-transition-fast);
}

.neo-tab:hover {
  color: var(--neo-text-primary);
}

.neo-tab.active {
  color: var(--neo-primary);
  background: var(--neo-bg-elevated);
  box-shadow: var(--neo-shadow-sm);
}

.neo-tab-content {
  display: none;
  padding: var(--neo-space-6) 0;
}

.neo-tab-content.active {
  display: block;
  animation: neo-fade-in 0.3s ease-out;
}

/* ============================================
   AVATARS
   ============================================ */
.neo-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--neo-radius-full);
  overflow: hidden;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--neo-font-primary);
  font-weight: 700;
  color: var(--neo-bg-primary);
  border: 2px solid var(--neo-border);
}

.neo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neo-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--neo-text-sm);
}

.neo-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--neo-text-xl);
}

.neo-avatar-xl {
  width: 80px;
  height: 80px;
  font-size: var(--neo-text-2xl);
}

/* Avatar with Status */
.neo-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.neo-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--neo-radius-full);
  border: 2px solid var(--neo-bg-primary);
}

.neo-avatar-status-online {
  background: var(--neo-success);
}

.neo-avatar-status-offline {
  background: var(--neo-text-muted);
}

.neo-avatar-status-busy {
  background: var(--neo-error);
}

/* ============================================
   ALERTS
   ============================================ */
.neo-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--neo-space-4);
  padding: var(--neo-space-4);
  border-radius: var(--neo-radius-lg);
  border: 1px solid var(--neo-border);
}

.neo-alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.neo-alert-content {
  flex: 1;
}

.neo-alert-title {
  font-weight: 600;
  margin-bottom: var(--neo-space-1);
}

.neo-alert-message {
  font-size: var(--neo-text-sm);
  color: var(--neo-text-secondary);
}

.neo-alert-success {
  background: rgba(0, 255, 136, 0.05);
  border-color: var(--neo-success);
}

.neo-alert-success .neo-alert-icon,
.neo-alert-success .neo-alert-title {
  color: var(--neo-success);
}

.neo-alert-error {
  background: rgba(255, 51, 102, 0.05);
  border-color: var(--neo-error);
}

.neo-alert-error .neo-alert-icon,
.neo-alert-error .neo-alert-title {
  color: var(--neo-error);
}

.neo-alert-warning {
  background: rgba(255, 170, 0, 0.05);
  border-color: var(--neo-warning);
}

.neo-alert-warning .neo-alert-icon,
.neo-alert-warning .neo-alert-title {
  color: var(--neo-warning);
}

.neo-alert-info {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--neo-primary);
}

.neo-alert-info .neo-alert-icon,
.neo-alert-info .neo-alert-title {
  color: var(--neo-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.neo-pagination {
  display: flex;
  align-items: center;
  gap: var(--neo-space-2);
}

.neo-pagination-item {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--neo-font-secondary);
  font-size: var(--neo-text-sm);
  font-weight: 600;
  color: var(--neo-text-secondary);
  background: var(--neo-bg-tertiary);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-md);
  text-decoration: none;
  transition: var(--neo-transition-fast);
  cursor: pointer;
}

.neo-pagination-item:hover {
  color: var(--neo-primary);
  border-color: var(--neo-primary);
}

.neo-pagination-item.active {
  background: var(--neo-primary);
  border-color: var(--neo-primary);
  color: var(--neo-bg-primary);
}

.neo-pagination-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   SKELETON LOADERS
   ============================================ */
.neo-skeleton {
  background: linear-gradient(
    90deg,
    var(--neo-bg-tertiary) 0%,
    var(--neo-bg-hover) 50%,
    var(--neo-bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: neo-skeleton 1.5s infinite;
  border-radius: var(--neo-radius-md);
}

.neo-skeleton-text {
  height: 16px;
  margin-bottom: var(--neo-space-2);
}

.neo-skeleton-text:last-child {
  width: 70%;
}

.neo-skeleton-heading {
  height: 28px;
  width: 60%;
  margin-bottom: var(--neo-space-4);
}

.neo-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--neo-radius-full);
}

.neo-skeleton-card {
  height: 200px;
}

/* ============================================
   TOOLTIPS
   ============================================ */
.neo-tooltip {
  position: relative;
}

.neo-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--neo-space-2) var(--neo-space-3);
  font-size: var(--neo-text-xs);
  color: var(--neo-text-primary);
  background: var(--neo-bg-elevated);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-md);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--neo-transition-fast);
  z-index: var(--neo-z-tooltip);
}

.neo-tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes neo-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 currentColor;
  }
  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

@keyframes neo-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes neo-skeleton {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes neo-slide-in {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes neo-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes neo-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes neo-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes neo-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--neo-primary-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--neo-primary-glow), 0 0 60px var(--neo-primary-glow);
  }
}

@keyframes neo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes neo-scan-line {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
/* Display */
.neo-hidden { display: none !important; }
.neo-block { display: block; }
.neo-inline { display: inline; }
.neo-inline-block { display: inline-block; }
.neo-flex { display: flex; }
.neo-inline-flex { display: inline-flex; }
.neo-grid { display: grid; }

/* Flex */
.neo-flex-row { flex-direction: row; }
.neo-flex-col { flex-direction: column; }
.neo-flex-wrap { flex-wrap: wrap; }
.neo-flex-nowrap { flex-wrap: nowrap; }
.neo-items-start { align-items: flex-start; }
.neo-items-center { align-items: center; }
.neo-items-end { align-items: flex-end; }
.neo-justify-start { justify-content: flex-start; }
.neo-justify-center { justify-content: center; }
.neo-justify-end { justify-content: flex-end; }
.neo-justify-between { justify-content: space-between; }
.neo-justify-around { justify-content: space-around; }
.neo-flex-1 { flex: 1; }
.neo-gap-1 { gap: var(--neo-space-1); }
.neo-gap-2 { gap: var(--neo-space-2); }
.neo-gap-3 { gap: var(--neo-space-3); }
.neo-gap-4 { gap: var(--neo-space-4); }
.neo-gap-6 { gap: var(--neo-space-6); }
.neo-gap-8 { gap: var(--neo-space-8); }

/* Grid */
.neo-grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.neo-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.neo-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.neo-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing */
.neo-p-0 { padding: 0; }
.neo-p-2 { padding: var(--neo-space-2); }
.neo-p-4 { padding: var(--neo-space-4); }
.neo-p-6 { padding: var(--neo-space-6); }
.neo-p-8 { padding: var(--neo-space-8); }
.neo-px-4 { padding-left: var(--neo-space-4); padding-right: var(--neo-space-4); }
.neo-py-4 { padding-top: var(--neo-space-4); padding-bottom: var(--neo-space-4); }

.neo-m-0 { margin: 0; }
.neo-m-2 { margin: var(--neo-space-2); }
.neo-m-4 { margin: var(--neo-space-4); }
.neo-m-auto { margin: auto; }
.neo-mx-auto { margin-left: auto; margin-right: auto; }
.neo-mb-2 { margin-bottom: var(--neo-space-2); }
.neo-mb-4 { margin-bottom: var(--neo-space-4); }
.neo-mb-6 { margin-bottom: var(--neo-space-6); }
.neo-mb-8 { margin-bottom: var(--neo-space-8); }
.neo-mt-4 { margin-top: var(--neo-space-4); }
.neo-mt-6 { margin-top: var(--neo-space-6); }
.neo-mt-8 { margin-top: var(--neo-space-8); }

/* Width & Height */
.neo-w-full { width: 100%; }
.neo-h-full { height: 100%; }
.neo-min-h-screen { min-height: 100vh; }

/* Text */
.neo-text-left { text-align: left; }
.neo-text-center { text-align: center; }
.neo-text-right { text-align: right; }
.neo-text-xs { font-size: var(--neo-text-xs); }
.neo-text-sm { font-size: var(--neo-text-sm); }
.neo-text-base { font-size: var(--neo-text-base); }
.neo-text-lg { font-size: var(--neo-text-lg); }
.neo-text-xl { font-size: var(--neo-text-xl); }
.neo-text-2xl { font-size: var(--neo-text-2xl); }
.neo-font-normal { font-weight: 400; }
.neo-font-medium { font-weight: 500; }
.neo-font-semibold { font-weight: 600; }
.neo-font-bold { font-weight: 700; }
.neo-uppercase { text-transform: uppercase; }
.neo-lowercase { text-transform: lowercase; }
.neo-capitalize { text-transform: capitalize; }

/* Colors */
.neo-text-primary { color: var(--neo-text-primary); }
.neo-text-secondary { color: var(--neo-text-secondary); }
.neo-text-muted { color: var(--neo-text-muted); }
.neo-text-accent { color: var(--neo-accent); }
.neo-text-success { color: var(--neo-success); }
.neo-text-warning { color: var(--neo-warning); }
.neo-text-error { color: var(--neo-error); }

/* Background */
.neo-bg-primary { background-color: var(--neo-bg-primary); }
.neo-bg-secondary { background-color: var(--neo-bg-secondary); }
.neo-bg-tertiary { background-color: var(--neo-bg-tertiary); }
.neo-bg-elevated { background-color: var(--neo-bg-elevated); }

/* Border */
.neo-border { border: 1px solid var(--neo-border); }
.neo-border-0 { border: none; }
.neo-rounded { border-radius: var(--neo-radius-md); }
.neo-rounded-lg { border-radius: var(--neo-radius-lg); }
.neo-rounded-xl { border-radius: var(--neo-radius-xl); }
.neo-rounded-full { border-radius: var(--neo-radius-full); }

/* Shadow */
.neo-shadow { box-shadow: var(--neo-shadow-md); }
.neo-shadow-lg { box-shadow: var(--neo-shadow-lg); }
.neo-shadow-glow { box-shadow: var(--neo-shadow-glow); }

/* Overflow */
.neo-overflow-hidden { overflow: hidden; }
.neo-overflow-auto { overflow: auto; }
.neo-overflow-x-auto { overflow-x: auto; }
.neo-overflow-y-auto { overflow-y: auto; }

/* Position */
.neo-relative { position: relative; }
.neo-absolute { position: absolute; }
.neo-fixed { position: fixed; }
.neo-sticky { position: sticky; }

/* Cursor */
.neo-cursor-pointer { cursor: pointer; }
.neo-cursor-not-allowed { cursor: not-allowed; }

/* Transitions */
.neo-transition { transition: var(--neo-transition-base); }
.neo-transition-fast { transition: var(--neo-transition-fast); }
.neo-transition-slow { transition: var(--neo-transition-slow); }

/* Animations */
.neo-animate-pulse { animation: neo-pulse 2s infinite; }
.neo-animate-spin { animation: neo-spin 1s linear infinite; }
.neo-animate-bounce { animation: neo-bounce 1s infinite; }
.neo-animate-glow { animation: neo-glow-pulse 2s infinite; }
.neo-animate-float { animation: neo-float 3s ease-in-out infinite; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1200px) {
  :root {
    --neo-text-5xl: 3rem;
    --neo-text-6xl: 4rem;
  }
}

@media (max-width: 992px) {
  .neo-sidebar {
    transform: translateX(-100%);
  }

  .neo-sidebar.open {
    transform: translateX(0);
  }

  .neo-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .neo-navbar-menu {
    display: none;
  }

  .neo-navbar-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --neo-text-4xl: 2rem;
    --neo-text-5xl: 2.5rem;
  }

  .neo-grid-cols-3,
  .neo-grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .neo-card {
    padding: var(--neo-space-4);
  }

  .neo-modal {
    margin: var(--neo-space-4);
    max-height: calc(100vh - var(--neo-space-8));
  }
}

@media (max-width: 576px) {
  .neo-grid-cols-2,
  .neo-grid-cols-3,
  .neo-grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .neo-btn {
    width: 100%;
  }

  .neo-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */
/* Scan Line Effect */
.neo-scan-effect {
  position: relative;
  overflow: hidden;
}

.neo-scan-effect::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neo-primary), transparent);
  animation: neo-scan-line 3s linear infinite;
  opacity: 0.5;
}

/* Glitch Effect */
.neo-glitch {
  position: relative;
}

.neo-glitch::before,
.neo-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.neo-glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--neo-error);
  clip: rect(24px, 550px, 90px, 0);
  animation: neo-glitch-anim 2s infinite linear alternate-reverse;
}

.neo-glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--neo-primary);
  clip: rect(85px, 550px, 140px, 0);
  animation: neo-glitch-anim 2s infinite linear alternate-reverse;
  animation-delay: -1s;
}

@keyframes neo-glitch-anim {
  0% { clip: rect(51px, 9999px, 28px, 0); }
  10% { clip: rect(70px, 9999px, 63px, 0); }
  20% { clip: rect(30px, 9999px, 16px, 0); }
  30% { clip: rect(80px, 9999px, 88px, 0); }
  40% { clip: rect(10px, 9999px, 50px, 0); }
  50% { clip: rect(65px, 9999px, 75px, 0); }
  60% { clip: rect(45px, 9999px, 95px, 0); }
  70% { clip: rect(90px, 9999px, 35px, 0); }
  80% { clip: rect(20px, 9999px, 70px, 0); }
  90% { clip: rect(55px, 9999px, 45px, 0); }
  100% { clip: rect(75px, 9999px, 60px, 0); }
}

/* Holographic Effect */
.neo-holographic {
  background: linear-gradient(
    45deg,
    var(--neo-primary) 0%,
    var(--neo-secondary) 25%,
    var(--neo-accent) 50%,
    var(--neo-primary) 75%,
    var(--neo-secondary) 100%
  );
  background-size: 400% 400%;
  animation: neo-holographic 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes neo-holographic {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Neon Border Animation */
.neo-neon-border {
  position: relative;
}

.neo-neon-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--neo-primary), var(--neo-secondary), var(--neo-accent), var(--neo-primary));
  background-size: 400% 400%;
  animation: neo-holographic 3s ease infinite;
  border-radius: inherit;
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
}
