/* ═══════════════════════════════════════════════════════════════
   BLOOMY - BOLT.NEW INSPIRED DESIGN SYSTEM
   Liquid Glass Glassmorphism with Volumetric Light Architecture
   Version 3.0 - Bolt.new Design Integration
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ━━━ BASE SCALE ━━━ */
  --base-scale: 1;

  /* ━━━ BOLT.NEW COLOR SYSTEM (Dark Theme - Default) ━━━ */
  /* Surface Colors - Deep Charcoal */
  --bg-primary: #1e1e21;        /* Bolt's depth-1: Deep charcoal */
  --bg-secondary: #333336;      /* Bolt's depth-2: Medium charcoal */
  --bg-tertiary: #3c3c41;       /* Bolt's depth-3: Lighter charcoal */
  --bg-elevated: #404249;       /* Highest elevation */
  --bg-hover: #3f4147;          /* Hover states */
  --bg-active: #35373c;         /* Active/pressed states */
  
  /* Bolt's "Liquid Glass" Surfaces - WITH HEX OPACITY */
  --glass-ultra: #ffffff0d;     /* 5% white opacity */
  --glass-light: #ffffff1a;     /* 10% white opacity */
  --glass-medium: #ffffff26;    /* 15% white opacity */
  --glass-strong: #ffffff33;    /* 20% white opacity */
  
  /* Neomorphic Panels (Kept for compatibility) */
  --neo-base: rgba(56, 58, 64, 0.90);
  --neo-raised: rgba(64, 66, 73, 0.95);
  --neo-pressed: rgba(43, 45, 49, 0.98);
  
  /* Legacy Variables (Backward Compatibility) */
  --bg: #1e1e21;
  --panel: #ffffff1a;           /* Liquid glass */
  --panel-hover: #ffffff26;
  --panel-strong: #ffffff33;
  --card-bg: #ffffff1a;
  
  /* ━━━ BOLT BRAND COLORS - Electric Blue + Purple Accent ━━━ */
  --primary: #1488FC;           /* Bolt's brand blue */
  --primary-light: #2BA6FF;     /* Bolt's bright sky blue */
  --primary-dark: #0D6FE8;      /* Darker blue */
  --primary-glow: rgba(20, 136, 252, 0.35);
  --primary-hover: rgba(43, 166, 255, 0.92);
  
  --secondary: #7E5DE1;         /* Bolt's PURPLE ACCENT - Critical signature! */
  --secondary-light: #9B7EF0;   /* Lighter purple */
  --secondary-glow: rgba(126, 93, 225, 0.35);
  
  --accent: #23a55a;            /* Success Green */
  --accent-light: #41c77a;
  --accent-glow: rgba(35, 165, 90, 0.35);
  
  --success: #23a55a;
  --warning: #f0b232;
  --warn: #f0b232;
  --danger: #f23f43;
  --info: #00a8fc;
  
  /* ━━━ BOLT ELLIPSE SYSTEM COLORS ━━━ */
  --ellipse-border-white: #ffffff;
  --ellipse-border-light-blue: #b7d7f6;
  --ellipse-border-medium-blue: #8fc1f2;
  --ellipse-border-strong-blue: #64acf6;
  --ellipse-border-deep-blue: #1172e2;
  --ellipse-shadow: rgba(17, 114, 226, 0.6);
  
  /* Radial Gradient Blur Colors */
  --gradient-blue-intense: rgba(20, 136, 252, 0.8);    /* 80% brand blue */
  --gradient-blue-medium: rgba(20, 136, 252, 0.35);    /* 35% opacity */
  --gradient-blue-light: rgba(20, 136, 252, 0.18);     /* 18% opacity */
  --gradient-blue-subtle: rgba(20, 136, 252, 0.08);    /* 8% opacity */
  --gradient-shadow: rgba(17, 17, 20, 0.2);
  
  /* ━━━ TYPOGRAPHY ━━━ */
  --text-primary: #ffffff;      /* Pure white for dark theme */
  --text-secondary: #a3a3ac;    /* Bolt's secondary gray */
  --text-tertiary: #73737b;     /* Bolt's tertiary gray */
  --text-muted: #80848e;
  --text: #ffffff;
  --muted: #80848e;
  
  /* Font Sizes */
  --font-xs: 11px;
  --font-sm: 13px;
  --font-md: 15px;
  --font-lg: 17px;
  --font-xl: 19px;
  --font-2xl: 23px;
  --font-3xl: 28px;
  --font-4xl: 34px;
  
  /* ━━━ BORDERS & DIVIDERS - HEX OPACITY PATTERN ━━━ */
  --border-subtle: #ffffff0a;   /* 4% white opacity */
  --border-default: #ffffff1a;  /* 10% white opacity */
  --border-strong: #ffffff26;   /* 15% white opacity */
  --border-emphasis: #ffffff3d; /* 24% white opacity */
  --border: #ffffff1a;
  --border-color: #ffffff1a;
  
  /* ━━━ FOLDER COLORS ━━━ */
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --pink: #ec4899;
  --teal: #14b8a6;
  --yellow: #eab308;
  --gray: #6b7280;

  /* ━━━ SPACING SYSTEM ━━━ */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* ━━━ BORDER RADIUS - BOLT STYLE ━━━ */
  --radius-xs: 3px;
  --radius-sm: 6px;           /* Bolt uses 6px for nested elements */
  --radius-md: 8px;           /* Bolt's standard radius */
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;
  --radius: 8px;
  
  /* ━━━ BOLT'S FOUR-PART SHADOW SYSTEM (Liquid Glass) ━━━ */
  /* Standard Glass Shadow - Four parts */
  --shadow-glass: 
    inset 0 1px #fff3,              /* Top "wet" highlight - 20% white */
    inset 0 -1px #0000001a,         /* Bottom depth - 10% black */
    0 8px 32px -8px #0000001a,      /* Drop shadow */
    0 0 0 1px #ffffff14;            /* Atmospheric glow - 8% white */
  
  --shadow-glass-hover:
    inset 0 1px #fff3,
    inset 0 -1px #00000026,         /* Stronger depth on hover */
    0 12px 40px -8px #00000026,     /* Larger drop shadow */
    0 0 0 1px #ffffff1f;            /* Brighter glow */
  
  /* Neomorphic shadows (kept for compatibility) */
  --shadow-neo-sm: 
    3px 3px 8px rgba(0, 0, 0, 0.4),
    -2px -2px 6px rgba(255, 255, 255, 0.008);
  --shadow-neo-md: 
    6px 6px 16px rgba(0, 0, 0, 0.5),
    -4px -4px 12px rgba(255, 255, 255, 0.012);
  --shadow-neo-lg: 
    10px 10px 24px rgba(0, 0, 0, 0.6),
    -6px -6px 18px rgba(255, 255, 255, 0.015);
  
  /* Simple shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  
  --glow-primary: 0 0 24px var(--primary-glow);
  --glow-secondary: 0 0 24px var(--secondary-glow);
  --glow-accent: 0 0 24px var(--accent-glow);
  
  /* ━━━ BLUR EFFECTS - BOLT SPECIFICATIONS ━━━ */
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 17px;            /* Bolt uses 17px for specific states */
  --blur-xl: 20px;            /* Bolt's standard blur */
  --backdrop-blur: 20px;      /* Bolt's liquid glass blur */
  
  /* ━━━ BOLT'S CUSTOM TRANSITIONS ━━━ */
  --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bolt: 0.4s cubic-bezier(0.32, 0.72, 0, 1);  /* BOLT'S SIGNATURE EASING */
  --transition-bounce: 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ━━━ GRADIENTS - BOLT STYLE WITH PURPLE ACCENT ━━━ */
  --gradient-primary: linear-gradient(135deg, #1488FC 0%, #0D6FE8 100%);
  --gradient-secondary: linear-gradient(135deg, #7E5DE1 0%, #6B47C6 100%);  /* Purple */
  --gradient-accent: linear-gradient(135deg, #23a55a 0%, #1e8e4f 100%);
  
  /* Bolt's prismatic gradient with purple center */
  --gradient-prismatic: linear-gradient(90deg,
    transparent 0%,
    rgba(37, 119, 255, 0.8) 20%,
    rgba(126, 93, 225, 0.8) 50%,    /* PURPLE CENTER - Signature! */
    rgba(59, 130, 246, 0.8) 80%,
    transparent 100%
  );
  
  --gradient-rainbow: linear-gradient(135deg, 
    rgba(20, 136, 252, 0.15) 0%, 
    rgba(126, 93, 225, 0.12) 50%,   /* Purple accent */
    rgba(35, 165, 90, 0.15) 100%);
    
  /* Bolt's diagonal glass gradient */
  --gradient-glass: linear-gradient(135deg, #ffffff1a, #ffffff0d);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL RESETS & BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: var(--font-md);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  /* Bolt typography features */
  font-feature-settings: "cv01" on, "ss03" on;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* BOLT SIGNATURE: Volumetric Light Background (Simplified Ellipse Effect) */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 1500px;
  height: 1200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center top,
    var(--gradient-blue-intense) 0%,
    var(--gradient-blue-medium) 15%,
    var(--gradient-blue-light) 25%,
    var(--gradient-blue-subtle) 35%,
    transparent 50%
  );
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  filter: blur(80px);
  animation: volumetricPulse 8s ease-in-out infinite;
}

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

/* Selection Color - Bolt blue */
::selection {
  background: rgba(20, 136, 252, 0.3);
  color: var(--text-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 3px solid var(--bg-primary);
  border-radius: var(--radius-lg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-elevated);
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT SYSTEM - FULL WIDTH & RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

.layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.container {
  flex: 1;
  padding: var(--spacing-xl);
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .container {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }
}

/* Topbar - BOLT LIQUID GLASS */
.topbar {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  
  /* BOLT SIGNATURE: Liquid Glass (Triple Layer) */
  /* Layer 1: Diagonal gradient background */
  background: var(--gradient-glass);
  
  /* Layer 2: Backdrop with saturation boost */
  backdrop-filter: blur(var(--backdrop-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
  
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  
  /* Layer 3: Four-part shadow system */
  box-shadow: var(--shadow-glass);
  
  transition: all var(--transition-bolt);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

/* Gradient border effect (::before) */
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #fff6, #ffffff1a, #ffffff0d);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--transition-bolt);
}

.topbar:hover::before {
  opacity: 0.8;
}

.topbar .burger {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-md);
  transition: all var(--transition-fast);
}

.topbar .burger:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

@media (max-width: 768px) {
  .topbar .burger {
    display: block;
  }
}

.page-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: -0.02em;
}

.topbar .actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ═══════════════════════════════════════════════════════════════
   PANELS & CARDS - BOLT LIQUID GLASS DESIGN
   ═══════════════════════════════════════════════════════════════ */

.panel {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
  
  /* BOLT LIQUID GLASS SYSTEM */
  /* Layer 1: Diagonal gradient */
  background: var(--gradient-glass);
  
  /* Layer 2: Backdrop with saturation */
  backdrop-filter: blur(var(--backdrop-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
  
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  
  /* Layer 3: Four-part shadow */
  box-shadow: var(--shadow-glass);
  
  transition: all var(--transition-bolt);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

/* Gradient border */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #fff6, #ffffff1a, #ffffff0d);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--transition-bolt);
}

.panel:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glass-hover);
  transform: translateY(-2px);
}

.panel:hover::before {
  opacity: 0.8;
}

.panel-header {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Bolt prismatic gradient with purple accent */
  background: linear-gradient(135deg,
    rgba(20, 136, 252, 0.05) 0%,
    rgba(126, 93, 225, 0.03) 50%,
    rgba(35, 165, 90, 0.02) 100%);
  position: relative;
}

.panel-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-prismatic);
  opacity: 0.3;
}

.panel-header h2 {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-header .actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-wrap: wrap;
}

.panel-body {
  padding: var(--spacing-xl);
}

/* ═══════════════════════════════════════════════════════════════
   STAT CARDS - ENHANCED DESIGN
   ═══════════════════════════════════════════════════════════════ */

.stat-overview {
  margin-bottom: var(--spacing-xl);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 100px;
  
  /* BOLT LIQUID GLASS */
  background: var(--gradient-glass);
  backdrop-filter: blur(var(--backdrop-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
  
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  
  box-shadow: var(--shadow-glass);
  
  transition: all var(--transition-bolt);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-bolt);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glass-hover);
}

.stat-card:hover::after {
  opacity: 0.08;
}

.stat-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 24px;
  color: white;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.stat-card.primary::after { background: var(--primary); }
.stat-card.primary .stat-icon { background: var(--gradient-primary); }

.stat-card.success::after { background: var(--success); }
.stat-card.success .stat-icon { background: var(--gradient-accent); }

.stat-card.warning::after { background: var(--warning); }
.stat-card.warning .stat-icon { 
  background: linear-gradient(135deg, #f0b232 0%, #d4981a 100%);
}

.stat-card.info::after { background: var(--info); }
.stat-card.info .stat-icon { 
  background: linear-gradient(135deg, #00a8fc 0%, #0086c7 100%);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS - BOLT.NEW MINIMAL DESIGN
   Clean, subtle, professional - NOT tacky or colorful
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: var(--font-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-bolt);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

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

/* PRIMARY BUTTON - Subtle gradient, not bright */
.btn-primary {
  background: linear-gradient(135deg, #1488FC, #7E5DE1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 1px rgba(255, 255, 255, 0.2),
    0 4px 16px -4px rgba(20, 136, 252, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #1488FC, #7E5DE1);
  box-shadow: 
    inset 0 1px rgba(255, 255, 255, 0.3),
    0 6px 20px -4px rgba(20, 136, 252, 0.4);
  transform: translateY(-1px);
}

/* SECONDARY BUTTON - Liquid glass style, minimal */
.btn-secondary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    inset 0 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px rgba(0, 0, 0, 0.1),
    0 2px 8px -2px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    inset 0 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px rgba(0, 0, 0, 0.15),
    0 4px 12px -2px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* OUTLINE BUTTON - Clean border only */
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

/* SUCCESS BUTTON - Green tint, still subtle */
.btn-success {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(34, 197, 94, 0.15));
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.25), rgba(34, 197, 94, 0.2));
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 4px 16px -4px rgba(74, 222, 128, 0.3);
  transform: translateY(-1px);
}

/* DANGER BUTTON - Red tint, still subtle */
.btn-danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(239, 68, 68, 0.15));
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.25), rgba(239, 68, 68, 0.2));
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: 0 4px 16px -4px rgba(248, 113, 113, 0.3);
  transform: translateY(-1px);
}

/* WARNING BUTTON - Amber tint, subtle */
.btn-warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.15));
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-warning:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(245, 158, 11, 0.2));
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 4px 16px -4px rgba(251, 191, 36, 0.3);
  transform: translateY(-1px);
}

/* INFO BUTTON - Blue tint, subtle */
.btn-info {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(59, 130, 246, 0.15));
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-info:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.2));
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px -4px rgba(96, 165, 250, 0.3);
  transform: translateY(-1px);
}

/* SMALL BUTTON */
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  gap: 6px;
}

/* LARGE BUTTON */
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  gap: 10px;
}

/* REFRESH BUTTON - Special spinner animation */
.btn-refresh {
  position: relative;
}

.btn-refresh:active:not(:disabled) i {
  animation: spin 0.5s ease-in-out;
}

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

/* ═══════════════════════════════════════════════════════════════
   FORMS & INPUTS - ENHANCED CONTRAST
   ═══════════════════════════════════════════════════════════════ */

.filters-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  /* Darker container for better contrast */
  background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.2));
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.filter-group label {
  font-size: var(--font-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.9);  /* Higher contrast */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-sm);
  font-family: inherit;
  transition: all var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(20, 136, 252, 0.12);  /* Bolt blue focus ring */
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b5bac1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Checkbox Styling */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   TABLES - ENHANCED CONTRAST & READABILITY
   ═══════════════════════════════════════════════════════════════ */

/* Table Container with Dark Overlay */
.table-container {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: var(--radius-lg);
  /* BOLT LIQUID GLASS with darker overlay */
  background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.3));
  backdrop-filter: blur(var(--blur-xl)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(180%);
  border: 1px solid var(--border-default);
  /* BOLT FOUR-PART SHADOW */
  box-shadow: inset 0 1px #fff3,
              inset 0 -1px #0000001a,
              0 8px 32px -8px #0000001a,
              0 0 0 1px #ffffff14;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--font-sm);
  table-layout: auto;
  /* Better text rendering */
  font-feature-settings: "tnum" on, "lnum" on;  /* Tabular numbers */
}

thead {
  position: sticky;
  top: 0;
  z-index: 10;
  /* DARKER header background for contrast */
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.5));
  border-bottom: 2px solid rgba(20, 136, 252, 0.3);
  /* Subtle shadow for depth */
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

th {
  padding: 16px 14px;
  text-align: left;
  font-weight: 700;
  color: rgba(255,255,255,0.9);  /* Higher contrast */
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  /* Prevent text overlap */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

td {
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-primary);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specific column widths for better alignment */
td:first-child,
th:first-child {
  padding-left: 20px;
}

td:last-child,
th:last-child {
  padding-right: 20px;
}

tbody tr {
  transition: all var(--transition-fast);
  /* Darker row background */
  background: rgba(0,0,0,0.2);
}

tbody tr:hover {
  /* BOLT hover with scale */
  background: linear-gradient(135deg, rgba(20, 136, 252, 0.15), rgba(126, 93, 225, 0.1));
  transform: scale(1.002);
  box-shadow: 0 2px 8px rgba(20, 136, 252, 0.2);
}

/* Zebra Striping with darker alternates */
tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.3);
}

tbody tr:nth-child(even):hover {
  background: linear-gradient(135deg, rgba(20, 136, 252, 0.15), rgba(126, 93, 225, 0.1));
}

/* ═══════════════════════════════════════════════════════════════
   BADGES & STATUS INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: var(--font-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: var(--font-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background: rgba(240, 178, 50, 0.15);
  color: #f0b232;
  border: 1px solid rgba(240, 178, 50, 0.3);
}

.status-approved {
  background: rgba(35, 165, 90, 0.15);
  color: #23a55a;
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.status-rejected {
  background: rgba(242, 63, 67, 0.15);
  color: #f23f43;
  border: 1px solid rgba(242, 63, 67, 0.3);
}

.status-paid {
  background: rgba(20, 136, 252, 0.15);   /* Bolt blue */
  color: #1488FC;
  border: 1px solid rgba(20, 136, 252, 0.3);
}

.platform {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: var(--font-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.platform-youtube {
  background: rgba(255, 0, 0, 0.12);
  color: #ff4444;
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.platform-tiktok {
  background: rgba(0, 242, 234, 0.12);
  color: #00f2ea;
  border: 1px solid rgba(0, 242, 234, 0.25);
}

.platform-instagram {
  background: rgba(228, 64, 95, 0.12);
  color: #e4405f;
  border: 1px solid rgba(228, 64, 95, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */

.pagination-info {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-size: var(--font-sm);
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: var(--font-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.pagination .active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL SYSTEM - BOLT LIQUID GLASS DESIGN
   ═══════════════════════════════════════════════════════════════ */

.modal,
.dynamic-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  transition: opacity var(--transition-bolt);
}

.modal.modal-open,
.dynamic-modal.modal-open {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
  /* BOLT LIQUID GLASS */
  background: var(--gradient-glass);
  backdrop-filter: blur(var(--backdrop-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
  
  border: 1px solid var(--border-emphasis);
  border-radius: var(--radius-2xl);
  
  box-shadow: var(--shadow-glass-hover), var(--glow-primary);
  
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all var(--transition-bounce);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Gradient border for modal */
.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #fff6, #ffffff1a, #ffffff0d);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.8;
  pointer-events: none;
}

.modal-open .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  padding: var(--spacing-xl);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Bolt prismatic gradient with purple accent */
  background: linear-gradient(135deg,
    rgba(20, 136, 252, 0.08) 0%,
    rgba(126, 93, 225, 0.05) 50%,
    rgba(35, 165, 90, 0.03) 100%);
  position: relative;
}

/* Animated top border with purple */
.modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  width: 0;
  background: var(--gradient-prismatic);
  opacity: 0;
  transition: all var(--transition-bolt);
}

.modal-open .modal-header::before {
  width: 80%;
  opacity: 1;
  transition-delay: 0.2s;
}

.modal-header h3 {
  margin: 0;
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 24px;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(242, 63, 67, 0.15);
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

.modal-body {
  padding: var(--spacing-xl);
  overflow-y: auto;
  flex: 1;
  color: var(--text-secondary);
  font-size: var(--font-md);
  line-height: 1.6;
}

.modal-footer {
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 1px solid var(--border-default);
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  background: rgba(43, 45, 49, 0.5);
}

body.modal-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.select-column {
  width: 48px;
  text-align: center;
}

.select-column input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
  :root {
    --font-xs: 10px;
    --font-sm: 12px;
    --font-md: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 21px;
  }
}

@media (max-width: 1024px) {
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  table {
    font-size: var(--font-xs);
  }
  
  th, td {
    padding: 10px 8px;
  }
}

@media (max-width: 768px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  
  .panel-header .actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .stat-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-sm);
  }
  
  .btn {
    padding: 8px 14px;
    font-size: var(--font-xs);
  }
  
  .modal-content {
    max-width: 100%;
    margin: var(--spacing-md);
  }
}

/* ═══════════════════════════════════════════════════════════════
   EPIC SIDEBAR / NAVBAR - ULTRA MODERN DESIGN
   ═══════════════════════════════════════════════════════════════ */

.sidebar {
  width: 280px;
  flex: 0 0 280px;
  padding: var(--spacing-xl);
  padding-bottom: calc(var(--spacing-xl) + env(safe-area-inset-bottom, 0));
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  background: linear-gradient(180deg, 
    rgba(49, 51, 56, 0.95) 0%,
    rgba(43, 45, 49, 0.98) 100%);
  border-right: 1px solid var(--border-strong);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3),
              inset -1px 0 0 rgba(88, 101, 242, 0.08);
  z-index: 1000;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  transition: transform var(--transition-base);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent,
    rgba(88, 101, 242, 0.3) 30%,
    rgba(35, 165, 90, 0.2) 70%,
    transparent);
  animation: shimmerVertical 3s ease-in-out infinite;
}

@keyframes shimmerVertical {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-weight: 700;
  margin-bottom: var(--spacing-2xl);
  font-size: var(--font-xl);
  color: var(--text-primary);
  position: relative;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, 
    rgba(88, 101, 242, 0.12) 0%,
    rgba(35, 165, 90, 0.08) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2 0%, #00a8fc 100%);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.2),
              0 0 20px rgba(88, 101, 242, 0.5),
              0 0 40px rgba(88, 101, 242, 0.3);
  animation: pulseGlow 2s ease-in-out infinite;
  position: relative;
  flex-shrink: 0;
}

.brand .dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(45deg, 
    rgba(88, 101, 242, 0.4),
    rgba(0, 168, 252, 0.4));
  animation: rotateSpin 4s linear infinite;
  z-index: -1;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.2),
                0 0 20px rgba(88, 101, 242, 0.5),
                0 0 40px rgba(88, 101, 242, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 6px rgba(88, 101, 242, 0.3),
                0 0 30px rgba(88, 101, 242, 0.7),
                0 0 60px rgba(88, 101, 242, 0.4);
  }
}

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

/* Menu Sections */
.menu {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  flex: 1;
  min-height: 0;
}

.menu .section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.menu .section:last-child {
  margin-top: auto;
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-default);
}

.menu .title {
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: var(--spacing-md) var(--spacing-sm) var(--spacing-sm);
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.menu .title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

/* Menu Links - EPIC DESIGN */
.menu a,
.menu button {
  width: 100%;
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  appearance: none;
  border: 0;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  font-size: var(--font-sm);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  border: 1px solid transparent;
}

.menu a::before,
.menu button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(88, 101, 242, 0.15) 0%,
    rgba(35, 165, 90, 0.12) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.menu a::after,
.menu button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(88, 101, 242, 0.8),
    transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu a:hover,
.menu button:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateX(6px);
  border-color: var(--border-default);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.menu a:hover::before,
.menu button:hover::before {
  opacity: 1;
}

.menu a:hover::after,
.menu button:hover::after {
  left: 100%;
}

/* Active Menu Item - EPIC GLOW */
.menu a.active {
  background: linear-gradient(135deg,
    rgba(88, 101, 242, 0.18) 0%,
    rgba(88, 101, 242, 0.12) 100%);
  color: var(--primary-light);
  border-color: rgba(88, 101, 242, 0.4);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3),
              inset 0 1px 0 rgba(88, 101, 242, 0.2),
              0 0 24px rgba(88, 101, 242, 0.15);
  position: relative;
}

.menu a.active::before {
  opacity: 1;
}

.menu a.active::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  left: auto;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.8),
              0 0 24px rgba(88, 101, 242, 0.4);
  animation: pulseActive 2s ease-in-out infinite;
}

@keyframes pulseActive {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-50%) scale(1.3);
  }
}

.menu a:active,
.menu button:active {
  transform: scale(0.97) translateX(4px);
}

/* Logout Button - DANGER STYLE */
.logout {
  color: var(--danger) !important;
  border: 1px solid rgba(242, 63, 67, 0.3) !important;
  background: rgba(242, 63, 67, 0.08) !important;
}

.logout::before {
  background: linear-gradient(135deg,
    rgba(242, 63, 67, 0.15) 0%,
    rgba(242, 63, 67, 0.08) 100%) !important;
}

.logout:hover {
  background: rgba(242, 63, 67, 0.15) !important;
  border-color: rgba(242, 63, 67, 0.5) !important;
  color: #ff6b6b !important;
  box-shadow: 0 4px 16px rgba(242, 63, 67, 0.3) !important;
}

/* Sidebar Mobile Toggle */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .layout {
    padding-left: 0;
  }
}

/* Add padding to main content for sidebar */
.layout {
  padding-left: 280px;
}

@media (max-width: 768px) {
  .layout {
    padding-left: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DATE & TIME STYLING - ELEGANT FORMATTING
   ═══════════════════════════════════════════════════════════════ */

.date,
.datetime,
.timestamp,
time,
[data-date],
td:has(time),
td:last-child {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
  font-size: var(--font-xs);
  color: var(--text-tertiary);
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.date::before,
.datetime::before,
.timestamp::before {
  content: '📅';
  font-size: 11px;
  opacity: 0.7;
}

.date:hover,
.datetime:hover,
.timestamp:hover,
time:hover {
  background: var(--bg-elevated);
  border-color: var(--border-default);
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Specific date cell styling in tables */
table td time,
table td .date,
table td .datetime {
  font-size: 11px;
  padding: 3px 8px;
}

/* Recent dates get special highlighting */
.date.recent,
.datetime.recent {
  background: rgba(35, 165, 90, 0.1);
  border-color: rgba(35, 165, 90, 0.25);
  color: var(--accent);
}

.date.recent::before,
.datetime.recent::before {
  content: '🆕';
}

/* Old dates get muted styling */
.date.old,
.datetime.old {
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
   EPIC ENHANCEMENTS - SPECTACULAR VISUAL EFFECTS
   ═══════════════════════════════════════════════════════════════ */

/* Epic Hover Effects on Cards */
.panel:hover,
.stat-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(88, 101, 242, 0.2),
              0 0 32px rgba(88, 101, 242, 0.1);
}

/* Epic Focus States */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.15),
              0 4px 16px rgba(88, 101, 242, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Epic Button Hover Enhancements */
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.5),
              0 0 48px rgba(88, 101, 242, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 24px rgba(35, 165, 90, 0.5),
              0 0 48px rgba(35, 165, 90, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 6px 24px rgba(242, 63, 67, 0.5),
              0 0 48px rgba(242, 63, 67, 0.3);
}

/* Epic Table Row Hover */
tbody tr:hover {
  background: var(--bg-hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.005);
  transition: all var(--transition-fast);
}

/* Epic Status Badges with Glow */
.status-approved {
  box-shadow: 0 0 16px rgba(35, 165, 90, 0.3);
}

.status-pending {
  box-shadow: 0 0 16px rgba(240, 178, 50, 0.3);
}

.status-rejected {
  box-shadow: 0 0 16px rgba(242, 63, 67, 0.3);
}

.status-paid {
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.3);
}

/* Epic Platform Badges */
.platform-youtube {
  box-shadow: 0 2px 12px rgba(255, 68, 68, 0.25);
}

.platform-tiktok {
  box-shadow: 0 2px 12px rgba(0, 242, 234, 0.25);
}

.platform-instagram {
  box-shadow: 0 2px 12px rgba(228, 64, 95, 0.25);
}

/* Epic Stat Card Icons with 3D Effect */
.stat-icon {
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--transition-base);
}

.stat-card:hover .stat-icon {
  transform: translateZ(10px) scale(1.1);
}

/* Epic Panel Header with Shimmer */
.panel-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent);
  animation: shimmerHorizontal 3s ease-in-out infinite;
}

@keyframes shimmerHorizontal {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Epic Loading State */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(88, 101, 242, 0.2),
    transparent);
  animation: loading 1.5s ease-in-out infinite;
}

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

/* Epic Topbar Enhancement */
.topbar {
  background: linear-gradient(135deg,
    rgba(49, 51, 56, 0.85) 0%,
    rgba(56, 58, 64, 0.90) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.topbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(88, 101, 242, 0.4) 50%,
    transparent);
}

/* Epic Pagination Hover */
.pagination a:hover {
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
}

/* Selection Enhancement */
::selection {
  background: rgba(88, 101, 242, 0.4);
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(88, 101, 242, 0.5);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Add epic depth to everything */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL STATS IN SIDEBAR - ULTRA MODERN
   ═══════════════════════════════════════════════════════════════ */

.global-stats-modern {
  background: linear-gradient(135deg, 
    rgba(88, 101, 242, 0.08) 0%, 
    rgba(35, 165, 90, 0.06) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-glass-md);
  position: relative;
  overflow: hidden;
}

.global-stats-modern::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-default);
  font-size: var(--font-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.stats-header i {
  font-size: var(--font-sm);
  color: var(--primary-light);
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.stats-grid .stat-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stats-grid .stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.06) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.stats-grid .stat-card:hover {
  border-color: var(--border-default);
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.stats-grid .stat-card:hover::before {
  opacity: 1;
}

.stats-grid .stat-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.stats-grid .stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.stats-grid .stat-icon i {
  font-size: 18px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.stats-grid .stat-card:hover .stat-icon i {
  transform: scale(1.15);
}

.stats-grid .stat-icon.views {
  background: linear-gradient(135deg, 
    rgba(88, 101, 242, 0.2) 0%, 
    rgba(88, 101, 242, 0.1) 100%);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.stats-grid .stat-icon.views i {
  color: var(--primary-light);
}

.stats-grid .stat-icon.claimed {
  background: linear-gradient(135deg, 
    rgba(35, 165, 90, 0.2) 0%, 
    rgba(35, 165, 90, 0.1) 100%);
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.stats-grid .stat-icon.claimed i {
  color: var(--accent-light);
}

.stats-grid .stat-icon.available {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.2) 0%, 
    rgba(139, 92, 246, 0.1) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.stats-grid .stat-icon.available i {
  color: var(--secondary-light);
}

.stats-grid .stat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-grid .stat-value {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stats-grid .stat-label {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════
   TOPBAR ACTIONS FIX - PROPER ALIGNMENT
   ═══════════════════════════════════════════════════════════════ */

.topbar .actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

/* Override any conflicting topbar styles */
.topbar {
  display: flex !important;
  align-items: center !important;
  gap: var(--spacing-md) !important;
  flex-wrap: nowrap !important;
}

.topbar .page-title {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar .burger {
  flex-shrink: 0;
  order: -1;
}

/* ═══════════════════════════════════════════════════════════════
   ADDITIONAL RESPONSIVE FIXES
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap !important;
  }
  
  .topbar .actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: var(--spacing-sm);
  }
  
  .global-stats-modern {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .stats-grid .stat-card {
    padding: 12px;
  }
  
  .stats-grid .stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }
  
  .stats-grid .stat-icon i {
    font-size: 16px;
  }
  
  .stats-grid .stat-value {
    font-size: var(--font-md);
  }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON GROUPS - ACTION ALIGNMENT
   ═══════════════════════════════════════════════════════════════ */

.btn-group {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-group .btn {
  flex-shrink: 0;
  margin: 0;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.table-actions .btn {
  padding: 7px 12px;
  font-size: 11px;
  min-width: auto;
}

/* ═══════════════════════════════════════════════════════════════
   USER INFO CELLS - TWO LINE DISPLAY
   ═══════════════════════════════════════════════════════════════ */

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}

.user-id {
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: -0.3px;
}

.username {
  font-size: var(--font-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source-badge.web {
  background: rgba(35, 165, 90, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(35, 165, 90, 0.3);
}

.source-badge.discord {
  background: rgba(88, 101, 242, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(88, 101, 242, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS - EPIC DESIGN
   ═══════════════════════════════════════════════════════════════ */

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--glass-strong);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  color: var(--text-primary);
  box-shadow: var(--shadow-2xl);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
  z-index: 999999;
  opacity: 0;
  min-width: 320px;
  max-width: 450px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.toast-success {
  border-color: rgba(35, 165, 90, 0.5);
  background: linear-gradient(135deg, 
    rgba(35, 165, 90, 0.25) 0%, 
    rgba(43, 45, 49, 0.95) 100%);
  box-shadow: var(--shadow-2xl), 0 0 32px rgba(35, 165, 90, 0.3);
}

.toast-error {
  border-color: rgba(242, 63, 67, 0.5);
  background: linear-gradient(135deg, 
    rgba(242, 63, 67, 0.25) 0%, 
    rgba(43, 45, 49, 0.95) 100%);
  box-shadow: var(--shadow-2xl), 0 0 32px rgba(242, 63, 67, 0.3);
}

.toast-info {
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(135deg, 
    rgba(88, 101, 242, 0.25) 0%, 
    rgba(43, 45, 49, 0.95) 100%);
  box-shadow: var(--shadow-2xl), 0 0 32px rgba(88, 101, 242, 0.3);
}

.toast-warning {
  border-color: rgba(240, 178, 50, 0.5);
  background: linear-gradient(135deg, 
    rgba(240, 178, 50, 0.25) 0%, 
    rgba(43, 45, 49, 0.95) 100%);
  box-shadow: var(--shadow-2xl), 0 0 32px rgba(240, 178, 50, 0.3);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.toast-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.6));
  transform-origin: left;
  animation: toast-progress linear forwards;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@keyframes toast-progress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATES & SPINNERS
   ═══════════════════════════════════════════════════════════════ */

.btn-loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

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

/* Loading Overlay for Panels */
.panel-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.5;
}

.panel-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 45, 49, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  z-index: 100;
}

/* ═══════════════════════════════════════════════════════════════
   CLAIM LOADING MODAL - EPIC PROGRESS DISPLAY
   ═══════════════════════════════════════════════════════════════ */

.claim-loading-modal {
  max-width: 550px;
  text-align: center;
}

.loading-content {
  padding: var(--spacing-2xl) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.loading-spinner {
  font-size: 64px;
  color: var(--primary-light);
  margin-bottom: 12px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(88, 101, 242, 0.5));
}

.loading-content h3 {
  color: var(--text-primary);
  margin: 0;
  font-size: var(--font-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.loading-content > p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  font-size: var(--font-md);
}

/* Progress Bar Styles */
.progress-info {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  width: 100%;
}

.progress-counter {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.progress-counter span {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--primary-light);
  background: var(--bg-elevated);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  display: inline-block;
  font-family: 'SF Mono', 'Monaco', monospace;
  box-shadow: var(--shadow-md);
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-default);
  position: relative;
}

.progress-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent);
  animation: shimmerProgress 2s ease-in-out infinite;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--primary) 0%, 
    var(--primary-light) 50%,
    var(--primary) 100%);
  background-size: 200% 100%;
  border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  animation: progressGlow 2s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.6);
  position: relative;
  z-index: 1;
}

@keyframes progressGlow {
  0%, 100% { 
    background-position: 0% 50%; 
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.6);
  }
  50% { 
    background-position: 100% 50%; 
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.8);
  }
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  text-align: left;
  width: 100%;
}

.loading-steps .step {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  transition: all var(--transition-base);
}

.loading-steps .step.active {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.3);
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.2);
}

.loading-steps .step.complete {
  background: rgba(35, 165, 90, 0.08);
  border-color: rgba(35, 165, 90, 0.2);
}

.loading-steps .step i {
  color: var(--primary-light);
  font-size: 18px;
  min-width: 20px;
  text-align: center;
}

.loading-steps .step.complete i {
  color: var(--accent-light);
}

.loading-steps .step span {
  color: var(--text-secondary);
  font-size: var(--font-sm);
  flex: 1;
}

.loading-steps .step.complete span {
  color: var(--text-tertiary);
}

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

/* ═══════════════════════════════════════════════════════════════
   CLAIM RESULT MODAL - SUCCESS/ERROR STATES
   ═══════════════════════════════════════════════════════════════ */

.claim-result-modal {
  max-width: 600px;
}

.claim-result-content {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.result-icon {
  font-size: 72px;
  margin-bottom: var(--spacing-lg);
  filter: drop-shadow(0 4px 16px currentColor);
}

.result-icon .success-icon {
  color: var(--accent);
  animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.result-icon .error-icon,
.result-icon .error-warning,
.result-icon .error-danger {
  color: var(--danger);
  animation: errorShake 0.6s ease-out;
}

.result-icon .error-info {
  color: var(--info);
  animation: errorShake 0.6s ease-out;
}

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

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* ═══════════════════════════════════════════════════════════════
   TEXT UTILITIES & TRUNCATION
   ═══════════════════════════════════════════════════════════════ */

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

.text-ellipsis-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-ellipsis-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATES - ELEGANT NO-DATA DISPLAY
   ═══════════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  text-align: center;
  min-height: 400px;
}

.empty-state-icon {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--font-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.empty-state p {
  font-size: var(--font-md);
  color: var(--text-tertiary);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.empty-state .btn {
  margin-top: var(--spacing-md);
}

/* ═══════════════════════════════════════════════════════════════
   BULK ACTIONS BAR - ENHANCED DESIGN
   ═══════════════════════════════════════════════════════════════ */

#bulkRefreshBtn {
  position: relative;
  overflow: hidden;
}

#bulkRefreshBtn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(88, 101, 242, 0.2) 0%,
    rgba(139, 92, 246, 0.15) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

#bulkRefreshBtn:hover::before {
  opacity: 1;
}

/* Selection Counter Enhancement */
#selectionInfo {
  background: var(--bg-tertiary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-family: 'SF Mono', 'Monaco', monospace;
  transition: all var(--transition-base);
}

#selectionInfo strong {
  color: var(--primary-light);
  font-size: var(--font-lg);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED PROGRESS STEPS - LIVE FEEDBACK
   ═══════════════════════════════════════════════════════════════ */

.loading-steps .step.error {
  background: rgba(242, 63, 67, 0.08);
  border-color: rgba(242, 63, 67, 0.3);
}

.loading-steps .step.error i {
  color: var(--danger);
}

.loading-steps .step.processing {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.3);
  animation: pulseStep 2s ease-in-out infinite;
}

@keyframes pulseStep {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(88, 101, 242, 0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED RESULT CARDS
   ═══════════════════════════════════════════════════════════════ */

.result-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.result-stat {
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  text-align: center;
  transition: all var(--transition-base);
}

.result-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.result-stat-value {
  font-size: var(--font-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.result-stat-value.success {
  color: var(--accent);
}

.result-stat-value.error {
  color: var(--danger);
}

.result-stat-label {
  font-size: var(--font-sm);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   LIVE STATUS INDICATORS
   ═══════════════════════════════════════════════════════════════ */

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(35, 165, 90, 0.12);
  border: 1px solid rgba(35, 165, 90, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--accent-light);
}

.status-live::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseLive 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(35, 165, 90, 0.6);
}

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

.status-processing {
  background: rgba(88, 101, 242, 0.12);
  border-color: rgba(88, 101, 242, 0.3);
  color: var(--primary-light);
}

.status-processing::before {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(88, 101, 242, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED DETAIL BOXES
   ═══════════════════════════════════════════════════════════════ */

.detail-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
}

.detail-box-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.detail-box-header i {
  font-size: var(--font-lg);
  color: var(--primary-light);
}

.detail-box-header h4 {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.detail-box-content {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-tertiary);
  font-size: var(--font-sm);
}

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-sm);
}

.detail-value.highlight {
  color: var(--primary-light);
  font-size: var(--font-lg);
}

.detail-value.success {
  color: var(--accent);
}

.detail-value.warning {
  color: var(--warning);
}

.detail-value.error {
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════
   GRID LAYOUT & METRICS SYSTEM
   ═══════════════════════════════════════════════════════════════ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }

@media (max-width: 1200px) {
  .col-6 { grid-column: span 3; }
  .col-4 { grid-column: span 2; }
}

@media (max-width: 768px) {
  .col-6, .col-4, .col-3, .col-2 { grid-column: span 1; }
  .grid {
    grid-template-columns: 1fr;
  }
}

.metric {
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-strong) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.12);
  transform: translateY(-2px);
}

.metric .label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.metric .label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
}

.metric .value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.metric .unit {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-left: var(--spacing-sm);
  font-weight: 500;
}

.metric-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  font-weight: 500;
  opacity: 0.8;
}

/* Metric variants */
.metric.success {
  border-left: 4px solid var(--success);
}

.metric.success .label {
  color: var(--success);
}

.metric.success .value {
  color: var(--success);
}

.metric.warning {
  border-left: 4px solid var(--warning);
}

.metric.warning .label {
  color: var(--warning);
}

.metric.warning .value {
  color: var(--warning);
}

.metric.danger {
  border-left: 4px solid var(--danger);
}

.metric.danger .label {
  color: var(--danger);
}

.metric.danger .value {
  color: var(--danger);
}

.metric.info {
  border-left: 4px solid var(--primary);
}

.metric.info .label {
  color: var(--primary);
}

.metric.info .value {
  color: var(--primary);
}

/* Form control static */
.form-control-static {
  display: block;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--font-base);
  line-height: 1.5;
}

.form-control-static a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.form-control-static a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Action buttons group */
.action-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
}

.action-buttons .btn {
  flex: 0 1 auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .action-buttons {
    gap: var(--spacing-sm);
  }

  .action-buttons .btn {
    font-size: var(--font-xs);
    padding: 6px 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BOLT.NEW SIGNATURE ELEMENTS & UTILITIES
   ═══════════════════════════════════════════════════════════════ */

/* Liquid Glass Button (Enhanced Version) */
.btn-liquid-glass {
  position: relative;
  overflow: hidden;
  background: var(--gradient-glass);
  backdrop-filter: blur(var(--backdrop-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--backdrop-blur)) saturate(180%);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-bolt);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.btn-liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #fff6, #ffffff1a, #ffffff0d);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity var(--transition-bolt);
}

.btn-liquid-glass:hover {
  background: linear-gradient(135deg, #ffffff26, #ffffff14);
  box-shadow: var(--shadow-glass-hover);
  transform: translateY(-2px);
}

.btn-liquid-glass:hover::before {
  opacity: 0.8;
}

/* Shimmer Animation (45° skewed) */
@keyframes boltShimmerLarge {
  0% {
    transform: rotate(45deg) translateX(-150%);
  }
  100% {
    transform: rotate(45deg) translateX(150%);
  }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: boltShimmerLarge 3s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  pointer-events: none;
}

/* Prismatic Border (Top only, with purple) */
.prismatic-border-top {
  position: relative;
}

.prismatic-border-top::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 100px;
  background: var(--gradient-prismatic);
  opacity: 0.6;
  filter: blur(0.5px);
  transition: opacity var(--transition-bolt), width var(--transition-bolt);
}

.prismatic-border-top:hover::before {
  opacity: 1;
  width: calc(100% - 3rem);
}

/* Concentric Ellipse Background System (Optional) */
/* Add .bolt-ellipse-bg to body or main container to enable */
.bolt-ellipse-bg {
  position: relative;
}

.bolt-ellipse-bg::after {
  content: '';
  position: fixed;
  bottom: -40%;
  left: 50%;
  width: min(1500px, 80vw);
  height: min(1400px, 70vh);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  
  /* Simplified concentric ring effect */
  background: 
    radial-gradient(ellipse, transparent 30%, var(--ellipse-border-white) 30.5%, transparent 31%),
    radial-gradient(ellipse, transparent 35%, var(--ellipse-border-light-blue) 35.5%, transparent 36%),
    radial-gradient(ellipse, transparent 40%, var(--ellipse-border-medium-blue) 40.5%, transparent 41%),
    radial-gradient(ellipse, transparent 45%, var(--ellipse-border-strong-blue) 45.5%, transparent 46%),
    radial-gradient(ellipse, transparent 50%, var(--ellipse-border-deep-blue) 50.5%, transparent 51%),
    radial-gradient(
      ellipse at center,
      var(--gradient-blue-intense) 0%,
      var(--gradient-blue-medium) 20%,
      var(--gradient-blue-light) 35%,
      var(--gradient-blue-subtle) 50%,
      transparent 70%
    );
  
  opacity: 0.4;
  filter: blur(2px);
}

/* Loading Bar with Bolt Animation */
@keyframes boltLoadingBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(200%);
  }
}

.bolt-loading-bar {
  position: relative;
  height: 3px;
  background: #ffffff0d;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bolt-loading-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 57%;
  height: 100%;
  background: var(--gradient-prismatic);
  animation: boltLoadingBar 4s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  box-shadow: 0 0 8px rgba(126, 93, 225, 0.5);
}

/* Hardware Acceleration Utilities */
.hw-accelerated {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Bolt Typography Enhancement */
.bolt-text {
  font-feature-settings: "cv01" on, "ss03" on;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inter Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');


/* ═══════════════════════════════════════════════════════════════
   BOLT.NEW STAT CARD SYSTEM - REUSABLE COMPONENTS
   Liquid Glass Cards with Volumetric Icons & Prismatic Gradients
   Usage: Apply .stat-card with variant classes (.stat-primary, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* Container for stat cards grid */
.stats-overview {
  margin: 0 0 32px 0;
}

.stats-grid,
.stats-grid-bolt,
.stats-grid-clipper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  animation: fadeIn 0.5s ease-out;
}

/* Base Stat Card - Liquid Glass Design */
.stat-card {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  
  /* Layer 1: Diagonal gradient background */
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  
  /* Layer 2: Backdrop effects (CRITICAL for liquid glass) */
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Layer 3: Four-part shadow system */
  box-shadow: 
    inset 0 2px rgba(255,255,255,0.2),        /* Top highlight - "wet" look */
    inset 0 -2px rgba(0,0,0,0.1),             /* Bottom depth */
    0 8px 32px -8px rgba(0,0,0,0.2),          /* Drop shadow */
    0 0 0 1px rgba(255,255,255,0.08);         /* Outer glow */
  
  border: 1px solid rgba(255,255,255,0.1);
  
  /* Smooth GPU-accelerated animations */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0); /* Force GPU acceleration */
  
  /* Fixed flex layout for consistent alignment */
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 96px;
}

.stat-card:hover {
  transform: translateY(-4px) translateZ(0);
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  box-shadow: 
    inset 0 2px rgba(255,255,255,0.3),
    inset 0 -2px rgba(0,0,0,0.15),
    0 16px 48px -12px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.15);
}

/* Animated Gradient Border - Optimized */
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.3), 
    rgba(255,255,255,0.1), 
    rgba(255,255,255,0.05));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Shimmer Effect - Smooth & Non-glitchy */
.stat-gradient {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255,255,255,0.08) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  will-change: background-position;
}

.stat-card:hover .stat-gradient {
  opacity: 1;
  animation: shimmerSweep 1.2s ease-in-out;
}

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

/* Icon Container with 3D Volumetric Effect */
.stat-icon-container {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Volumetric Light Effect */
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.1) 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.3),
    inset 0 -1px 2px rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.15);
}

.stat-card:hover .stat-icon-container {
  transform: scale(1.05) translateZ(0);
}

.stat-icon {
  font-size: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Content - Fixed alignment */
.stat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0; /* Prevent text overflow issues */
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  font-feature-settings: 'tnum' on;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-value {
  transform: scale(1.03) translateZ(0);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COLOR VARIANTS - Prismatic Gradients
   Based on Bolt.new's color system with dual-tone gradients
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* PRIMARY - Blue */
.stat-card.stat-primary .stat-icon-container {
  background: linear-gradient(135deg, 
    rgba(20, 136, 252, 0.3) 0%, 
    rgba(20, 136, 252, 0.15) 100%);
}

.stat-card.stat-primary .stat-icon {
  background: linear-gradient(135deg, #1488FC 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* SUCCESS - Green */
.stat-card.stat-success .stat-icon-container {
  background: linear-gradient(135deg, 
    rgba(35, 165, 90, 0.3) 0%, 
    rgba(35, 165, 90, 0.15) 100%);
}

.stat-card.stat-success .stat-icon {
  background: linear-gradient(135deg, #23a55a 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WARNING - Orange */
.stat-card.stat-warning .stat-icon-container {
  background: linear-gradient(135deg, 
    rgba(250, 166, 26, 0.3) 0%, 
    rgba(250, 166, 26, 0.15) 100%);
}

.stat-card.stat-warning .stat-icon {
  background: linear-gradient(135deg, #faa61a 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* INFO - Purple */
.stat-card.stat-info .stat-icon-container {
  background: linear-gradient(135deg, 
    rgba(126, 93, 225, 0.3) 0%, 
    rgba(126, 93, 225, 0.15) 100%);
}

.stat-card.stat-info .stat-icon {
  background: linear-gradient(135deg, #7E5DE1 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ACCENT - Pink */
.stat-card.stat-accent .stat-icon-container {
  background: linear-gradient(135deg, 
    rgba(235, 69, 158, 0.3) 0%, 
    rgba(235, 69, 158, 0.15) 100%);
}

.stat-card.stat-accent .stat-icon {
  background: linear-gradient(135deg, #eb459e 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE BREAKPOINTS
   Mobile-first approach with tablet and desktop optimizations
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1200px) {
  .stats-grid,
  .stats-grid-bolt,
  .stats-grid-clipper {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .stats-grid,
  .stats-grid-bolt,
  .stats-grid-clipper {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
    min-height: 84px;
    gap: 12px;
  }
  
  .stat-icon-container {
    width: 48px;
    height: 48px;
  }
  
  .stat-icon {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .stat-value {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .stats-grid,
  .stats-grid-bolt,
  .stats-grid-clipper {
    grid-template-columns: 1fr;
  }
}

/* Fade-in animation - Optimized */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

/* ═══════════════════════════════════════════════════════════════
   END OF BOLT.NEW STAT CARD SYSTEM
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   FONT AWESOME ICON FIX
   Ensure icons display correctly across all admin pages
   ═══════════════════════════════════════════════════════════════ */

/* Force Font Awesome icons to display properly */
i.fa, i.fas, i.far, i.fal, i.fab, 
.fa, .fas, .far, .fal, .fab,
[class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  display: inline-block !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Solid icons */
.fas {
  font-weight: 900 !important;
}

/* Regular icons */
.far {
  font-weight: 400 !important;
}

/* Light icons */
.fal {
  font-weight: 300 !important;
}

/* Brand icons */
.fab {
  font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
}

/* Ensure icons don't inherit text transformations */
i.fa, i.fas, i.far, i.fal, i.fab {
  text-transform: none !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  white-space: nowrap !important;
  direction: ltr !important;
}

/* Force Font Awesome ::before pseudo-elements to work */
i.fa::before, i.fas::before, i.far::before, i.fal::before, i.fab::before,
.fa::before, .fas::before, .far::before, .fal::before, .fab::before {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  display: inline-block !important;
  text-decoration: inherit !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Specific fix for stat-icon and similar containers */
.stat-icon i.fas, .stat-icon i.far, .stat-icon i.fab,
.stat-card i.fas, .stat-card i.far, .stat-card i.fab,
.container i.fas, .container i.far, .container i.fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro" !important;
  font-weight: 900 !important;
}

.container i.far {
  font-weight: 400 !important;
}

.container i.fab, .stat-icon i.fab, .stat-card i.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}
