/*
================================================================================
  LINKGUARD.IO - ULTRA DARK FUTURISTIC DESIGN SYSTEM
  Version: 2.0
  Theme: Ultra Dark with Electric Blue Accents
  Design System: Glassmorphism, Neon Glow, Data-Driven Interface
================================================================================
*/

/* ============================================================================
   1. CSS VARIABLES - DESIGN TOKENS
   ============================================================================ */

:root {
  /* ===== COLOR PALETTE ===== */

  /* Electric Blue (Primary) */
  --electric-blue: #1E88E5;
  --electric-blue-light: #42A5F5;
  --electric-blue-dark: #0284C7;
  --electric-blue-hover: #1976D2;

  /* Semantic Colors */
  --success: #4CAF50;
  --success-light: #81C784;
  --success-dark: #388E3C;
  --success-glow: rgba(76, 175, 80, 0.3);

  --warning: #FF9800;
  --warning-light: #FFB74D;
  --warning-dark: #F57C00;
  --warning-glow: rgba(255, 152, 0, 0.3);

  --danger: #F44336;
  --danger-light: #FF5252;
  --danger-dark: #D32F2F;
  --danger-glow: rgba(244, 67, 54, 0.3);

  --info: #00BCD4;
  --info-light: #4DD0E1;
  --info-dark: #0097A7;

  --purple: #9C27B0;
  --purple-light: #AB47BC;
  --purple-dark: #7B1FA2;

  /* Dark Background Colors */
  --black-pure: #000000;
  --black-soft: #0a0a0a;
  --dark-navy: #1a1a2e;
  --dark-blue: #16213e;

  /* White/Transparency Scale */
  --white: rgba(255, 255, 255, 0.95);
  --white-90: rgba(255, 255, 255, 0.9);
  --white-80: rgba(255, 255, 255, 0.8);
  --white-70: rgba(255, 255, 255, 0.7);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-30: rgba(255, 255, 255, 0.3);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-08: rgba(255, 255, 255, 0.08);
  --white-05: rgba(255, 255, 255, 0.05);
  --white-02: rgba(255, 255, 255, 0.02);

  /* ===== TYPOGRAPHY ===== */

  /* Font Families */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.75rem;
  /* 28px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */
  --text-6xl: 4rem;
  /* 64px */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ===== SPACING SCALE (8px base) ===== */
  --space-0: 0px;
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */
  --space-10: 2.5rem;
  /* 40px */
  --space-12: 3rem;
  /* 48px */
  --space-16: 4rem;
  /* 64px */
  --space-20: 5rem;
  /* 80px */
  --space-24: 6rem;
  /* 96px */

  /* ===== BORDER RADIUS ===== */
  --radius-sm: 0.75rem;
  /* 12px */
  --radius-md: 1rem;
  /* 16px */
  --radius-lg: 1.25rem;
  /* 20px */
  --radius-xl: 1.5rem;
  /* 24px */
  --radius-2xl: 2rem;
  /* 32px */
  --radius-full: 9999px;

  /* ===== SHADOWS & GLOWS ===== */
  --shadow-sm: 0 4px 16px rgba(30, 136, 229, 0.2);
  --shadow-md: 0 8px 32px rgba(30, 136, 229, 0.3);
  --shadow-lg: 0 16px 48px rgba(30, 136, 229, 0.2);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);

  --glow-blue: 0 8px 32px rgba(30, 136, 229, 0.4);
  --glow-green: 0 8px 32px rgba(76, 175, 80, 0.3);
  --glow-red: 0 8px 32px rgba(244, 67, 54, 0.3);
  --glow-orange: 0 8px 32px rgba(255, 152, 0, 0.3);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Z-INDEX SCALE ===== */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
}


/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--white-90);
  background: linear-gradient(135deg, var(--black-soft) 0%, var(--dark-navy) 50%, var(--dark-blue) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-4);
  color: var(--white-80);
}

/* Links */
a {
  color: var(--electric-blue-light);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--electric-blue);
  text-decoration: underline;
  text-decoration-color: var(--white-30);
  text-underline-offset: 4px;
}

/* Text Utilities */
.text-white {
  color: var(--white);
}

.text-white-90 {
  color: var(--white-90);
}

.text-white-80 {
  color: var(--white-80);
}

.text-white-70 {
  color: var(--white-70);
}

.text-white-60 {
  color: var(--white-60);
}

.text-white-50 {
  color: var(--white-50);
}

.text-blue {
  color: var(--electric-blue);
}

.text-green {
  color: var(--success);
}

.text-red {
  color: var(--danger);
}

.text-orange {
  color: var(--warning);
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-white {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-green {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-red {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.font-mono {
  font-family: var(--font-mono);
}


/* ============================================================================
   4. BUTTONS
   ============================================================================ */

/* Base Button Styles */
.btn,
.btn-ultra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.5rem;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  font-family: var(--font-primary);
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-slow);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

/* Primary Button - Electric Blue Gradient */
.btn-ultra.btn-primary,
.btn-primary {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-ultra.btn-primary:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

.btn-ultra.btn-primary:active,
.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button - Glassmorphic */
.btn-ultra.btn-secondary,
.btn-secondary {
  background: var(--white-10);
  color: var(--white);
  border: 2px solid var(--white-20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ultra.btn-secondary:hover,
.btn-secondary:hover {
  background: var(--white-15);
  border-color: var(--white-30);
}

.btn-ultra.btn-secondary:active,
.btn-secondary:active {
  background: var(--white-20);
}

/* Danger Button */
.btn-ultra.btn-danger,
.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
  color: #ffffff;
  box-shadow: var(--glow-red);
}

.btn-ultra.btn-danger:hover,
.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(244, 67, 54, 0.4);
}

/* Success Button */
.btn-ultra.btn-success,
.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
  color: #ffffff;
  box-shadow: var(--glow-green);
}

.btn-ultra.btn-success:hover,
.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(76, 175, 80, 0.4);
}

/* Ghost Button */
.btn-ultra.btn-ghost,
.btn-ghost {
  background: transparent;
  color: var(--white-90);
  border: none;
}

.btn-ultra.btn-ghost:hover,
.btn-ghost:hover {
  background: var(--white-05);
}

.btn-ultra.btn-ghost:active,
.btn-ghost:active {
  background: var(--white-10);
}

/* Button Sizes */
.btn-ultra.btn-sm,
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-ultra.btn-lg,
.btn-lg {
  padding: 0.75rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-md);
}

/* Icon Button */
.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-sm);
}

.btn-icon:hover {
  background: var(--white-10);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-sm);
}

/* Disabled State */
.btn-ultra:disabled,
.btn:disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Focus State */
.btn-ultra:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--electric-blue-light);
  outline-offset: 2px;
}


/* ============================================================================
   5. FORMS & INPUTS
   ============================================================================ */

/* Form Group */
.form-group {
  margin-bottom: var(--space-6);
}

/* Labels */
.label,
.label-ultra,
label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white-90);
  margin-bottom: var(--space-2);
}

.label-required::after {
  content: ' *';
  color: var(--danger);
}

/* Text Inputs */
.input-ultra,
.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="date"] {
  width: 100%;
  height: 2.5rem;
  padding: 0.625rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--white-90);
  background: var(--white-05);
  border: 1px solid var(--white-20);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.input-ultra::placeholder,
.input::placeholder,
input::placeholder {
  color: var(--white-50);
}

.input-ultra:hover,
.input:hover,
input:hover {
  border-color: var(--white-30);
}

.input-ultra:focus,
.input:focus,
input:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
  background: var(--white-08);
}

/* Textarea */
.textarea-ultra,
.textarea,
textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--white-90);
  background: var(--white-05);
  border: 1px solid var(--white-20);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
  resize: vertical;
}

.textarea-ultra::placeholder,
.textarea::placeholder,
textarea::placeholder {
  color: var(--white-50);
}

.textarea-ultra:hover,
.textarea:hover,
textarea:hover {
  border-color: var(--white-30);
}

.textarea-ultra:focus,
.textarea:focus,
textarea:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
  background: var(--white-08);
}

/* Select Dropdown */
.select-ultra,
.select,
select {
  width: 100%;
  height: 2.5rem;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--white-90);
  background: var(--white-05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231E88E5' 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 0.75rem center;
  background-size: 1.25rem;
  border: 1px solid var(--white-20);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all var(--transition-normal);
}

.select-ultra:hover,
.select:hover,
select:hover {
  border-color: var(--white-30);
}

.select-ultra:focus,
.select:focus,
select:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
  background-color: var(--white-08);
}

/* Select Options - Dark Theme */
.select-ultra option,
.select option,
select option {
  background-color: #1a1a2e;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.625rem 1rem;
  font-size: var(--text-base);
  font-weight: 500;
}

.select-ultra option:hover,
.select option:hover,
select option:hover {
  background-color: #252545;
  color: #42A5F5;
}

.select-ultra option:checked,
.select option:checked,
select option:checked {
  background-color: #1E88E5;
  color: #ffffff;
  font-weight: 600;
}

/* Checkbox & Radio */
.checkbox-ultra,
.radio-ultra,
input[type="checkbox"],
input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--white-05);
  border: 2px solid var(--white-30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition-normal);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

input[type="checkbox"] {
  border-radius: 0.375rem;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  border-color: var(--electric-blue);
}

input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem;
}

input[type="radio"]:checked {
  background-image: radial-gradient(circle, white 40%, transparent 40%);
}

/* Error State */
.input-ultra.error,
.input.error,
input.error,
textarea.error,
select.error {
  border-color: var(--danger);
}

.input-ultra.error:focus,
.input.error:focus,
input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

/* Helper Text */
.helper-text {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--white-60);
}

.error-text {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--danger-light);
}

/* Disabled State */
.input-ultra:disabled,
.input:disabled,
.textarea-ultra:disabled,
.textarea:disabled,
.select-ultra:disabled,
.select:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============================================================================
   6. CARDS
   ============================================================================ */

/* Base Glassmorphic Card */
.card-ultra,
.card {
  position: relative;
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-slower);
  overflow: hidden;
}

/* Card Hover (if clickable) */
.card-ultra.clickable:hover,
.card.clickable:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--white-08) 0%, var(--white-15) 100%);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

/* Card with Gradient Top Border */
.card-ultra.bordered::before,
.card.bordered::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  opacity: 0.7;
}

/* Card Header */
.card-header {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--white-10);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin: 0;
}

/* Card Body */
.card-body {
  font-size: var(--text-base);
  color: var(--white-90);
}

/* Card Footer */
.card-footer {
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  border-top: 1px solid var(--white-10);
  font-size: var(--text-sm);
  color: var(--white-70);
}

/* Colored Gradient Cards */
.card-ultra.gradient-blue,
.card.gradient-blue {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15) 0%, rgba(66, 165, 245, 0.2) 100%);
  border-color: rgba(30, 136, 229, 0.3);
}

.card-ultra.gradient-green,
.card.gradient-green {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(129, 199, 132, 0.2) 100%);
  border-color: rgba(76, 175, 80, 0.3);
}

.card-ultra.gradient-green::before,
.card.gradient-green::before {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

.card-ultra.gradient-red,
.card.gradient-red {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(255, 82, 82, 0.2) 100%);
  border-color: rgba(244, 67, 54, 0.3);
}

.card-ultra.gradient-red::before,
.card.gradient-red::before {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
}

/* Compact Card */
.card-ultra.compact,
.card.compact {
  padding: var(--space-5);
}

/* Spacious Card */
.card-ultra.spacious,
.card.spacious {
  padding: var(--space-8);
}


/* ============================================================================
   7. BADGES & TAGS
   ============================================================================ */

/* Base Badge */
.badge-ultra,
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--white-15);
  color: var(--white-90);
  border: 1px solid var(--white-20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Semantic Badges */
.badge-ultra.badge-success,
.badge.badge-success {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-light);
  border-color: rgba(76, 175, 80, 0.3);
}

.badge-ultra.badge-warning,
.badge.badge-warning {
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning-light);
  border-color: rgba(255, 152, 0, 0.3);
}

.badge-ultra.badge-danger,
.badge.badge-danger {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger-light);
  border-color: rgba(244, 67, 54, 0.3);
}

.badge-ultra.badge-info,
.badge.badge-info {
  background: rgba(30, 136, 229, 0.2);
  color: var(--electric-blue-light);
  border-color: rgba(30, 136, 229, 0.3);
}

/* Gradient Badge */
.badge-ultra.badge-gradient,
.badge.badge-gradient {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  color: white;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   PRIORITY BADGE VARIANTS
   ============================================================================ */

.badge-ultra.priority-critical,
.badge.priority-critical,
.priority-critical {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger-light);
  border: 1px solid rgba(244, 67, 54, 0.4);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-ultra.priority-high,
.badge.priority-high,
.priority-high {
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning-light);
  border: 1px solid rgba(255, 152, 0, 0.4);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-ultra.priority-medium,
.badge.priority-medium,
.priority-medium {
  background: rgba(30, 136, 229, 0.2);
  color: var(--electric-blue-light);
  border: 1px solid rgba(30, 136, 229, 0.4);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}

.badge-ultra.priority-low,
.badge.priority-low,
.priority-low {
  background: rgba(76, 175, 80, 0.15);
  color: rgba(129, 199, 132, 0.9);
  border: 1px solid rgba(76, 175, 80, 0.3);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
}


/* ============================================================================
   8. TABLES
   ============================================================================ */

/* Table Container */
.table-container {
  background: var(--white-05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-top: var(--space-2);
}

/* Links Table Specific Styles */
.links-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
}

.links-table th,
.links-table td {
  padding: var(--space-4) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--white-08);
}

.links-table th {
  background: var(--white-08);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.links-table td {
  font-size: var(--text-sm);
  color: var(--white-90);
}

.links-table tr:hover {
  background: var(--white-05);
}

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

/* Table */
.table-ultra,
.table {
  width: 100%;
  border-collapse: collapse;
}

/* Table Header */
.table-ultra thead,
.table thead {
  background: var(--white-08);
  border-bottom: 1px solid var(--white-10);
}

.table-ultra thead th,
.table thead th {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white-70);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Table Body */
.table-ultra tbody tr,
.table tbody tr {
  border-bottom: 1px solid var(--white-05);
  transition: background-color var(--transition-fast);
}

.table-ultra tbody tr:hover,
.table tbody tr:hover {
  background: var(--white-05);
  border-left: 3px solid var(--electric-blue);
}

.table-ultra tbody td,
.table tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  color: var(--white-90);
  vertical-align: middle;
}

/* First Column Bold */
.table-ultra tbody td:first-child,
.table tbody td:first-child {
  font-weight: var(--font-semibold);
  color: var(--white);
}

/* Numeric Columns */
.table-ultra .numeric,
.table .numeric {
  font-family: var(--font-mono);
  text-align: right;
}


/* ============================================================================
   9. MODALS
   ============================================================================ */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  animation: fade-in 300ms ease;
}

.modal-overlay.active {
  display: flex;
}

/* Modal Container */
.modal-ultra,
.modal {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 37.5rem;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-10);
  z-index: var(--z-modal);
  animation: modal-appear 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Header */
.modal-header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--white-10);
}

.modal-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin: 0;
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-sm);
  color: var(--white-70);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background: var(--white-10);
  color: var(--white);
}

/* Modal Body */
.modal-body {
  margin-bottom: var(--space-8);
}

/* Modal Footer */
.modal-footer {
  padding-top: var(--space-6);
  border-top: 1px solid var(--white-10);
  display: flex;
  gap: var(--space-4);
  justify-content: flex-end;
}

/* Custom Modal (alias for modal-ultra) */
.custom-modal {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--white-15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 37.5rem;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-10);
  z-index: var(--z-modal);
  animation: modal-appear 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Subtitle */
.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--white-60);
  margin: var(--space-2) 0 0 0;
}

/* Modal Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Modal Field */
.modal-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Modal Label */
.modal-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white-90);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Modal Input */
.modal-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--text-base);
  transition: all var(--transition-normal);
}

.modal-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white-20);
}

.modal-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.modal-input::placeholder {
  color: var(--white-40);
}

.modal-input.error {
  border-color: var(--danger-red);
  background: rgba(244, 67, 54, 0.05);
}

.modal-input.error:focus {
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.15);
}

/* Modal Select */
.modal-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white-20);
}

.modal-select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* Modal Hint */
.modal-hint {
  font-size: var(--text-xs);
  color: var(--white-50);
  margin-top: var(--space-1);
}

/* Modal Error */
.modal-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--danger-red);
  margin-top: var(--space-1);
}

.modal-error.active,
.modal-error.show {
  display: block;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--white-10);
}

/* Modal Buttons */
.modal-btn {
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.modal-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--white-10);
  color: var(--white-70);
}

.modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white-20);
  color: var(--white);
}

.modal-btn-apply {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1976D2 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.modal-btn-apply:hover {
  background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
  transform: translateY(-1px);
}

/* Modal Preview Animation */
#modalPreview {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================================
   10. ALERTS & NOTIFICATIONS
   ============================================================================ */

/* Toast Notification */
.toast-ultra,
.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 22.5rem;
  max-width: calc(100vw - 2.5rem);
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.98) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--white-20);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  animation: slide-in-right 300ms ease;
}

/* Toast Types */
.toast-ultra.toast-success,
.toast.toast-success {
  border-left-color: var(--success);
  box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
}

.toast-ultra.toast-warning,
.toast.toast-warning {
  border-left-color: var(--warning);
  box-shadow: 0 12px 40px rgba(255, 152, 0, 0.2);
}

.toast-ultra.toast-danger,
.toast.toast-danger {
  border-left-color: var(--danger);
  box-shadow: 0 12px 40px rgba(244, 67, 54, 0.2);
}

.toast-ultra.toast-info,
.toast.toast-info {
  border-left-color: var(--electric-blue);
  box-shadow: 0 12px 40px rgba(30, 136, 229, 0.2);
}


/* ============================================================================
   11. PROGRESS BARS
   ============================================================================ */

/* Progress Container */
.progress-bar {
  height: 0.5rem;
  background: var(--white-20);
  border-radius: var(--radius-full);
  overflow: hidden;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Progress Fill */
.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  border-radius: var(--radius-full);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.6);
}

/* Progress Variants */
.progress-fill.green {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}

.progress-fill.red {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
  box-shadow: 0 0 12px rgba(244, 67, 54, 0.6);
}

.progress-fill.orange {
  background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
  box-shadow: 0 0 12px rgba(255, 152, 0, 0.6);
}


/* ============================================================================
   12. DECORATIVE ELEMENTS
   ============================================================================ */

/* Floating Spheres */
.decoration-sphere {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(66, 165, 245, 0.2));
  filter: blur(40px);
  pointer-events: none;
  animation: float-sphere 8s ease-in-out infinite;
}

.sphere-1 {
  width: 25rem;
  height: 25rem;
  top: -12.5rem;
  right: -6.25rem;
  animation-delay: -2s;
}

.sphere-2 {
  width: 18.75rem;
  height: 18.75rem;
  bottom: -9.375rem;
  left: -6.25rem;
  animation-delay: -4s;
}


/* ============================================================================
   13. ANIMATIONS
   ============================================================================ */

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float-sphere {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(30px, 30px) rotate(240deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.3);
  }

  50% {
    box-shadow: 0 8px 32px rgba(30, 136, 229, 0.6);
  }
}

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

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

  100% {
    background-position: 200% 0;
  }
}


/* ============================================================================
   14. LOADING STATES
   ============================================================================ */

/* Spinner */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--white-20);
  border-top-color: var(--electric-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, var(--white-05) 0%, var(--white-10) 50%, var(--white-05) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-sm);
}


/* ============================================================================
   15. UTILITIES
   ============================================================================ */

/* Display */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

.block {
  display: block;
}

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

.hidden {
  display: none;
}

/* Flex Utilities */
.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Gaps */
.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

/* Spacing */
.m-0 {
  margin: 0;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}

.p-4 {
  padding: var(--space-4);
}

.p-6 {
  padding: var(--space-6);
}

.p-8 {
  padding: var(--space-8);
}

/* Width */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

/* Text Alignment */
.text-left {
  text-align: left;
}

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

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

/* Font Sizes */
.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-base {
  font-size: var(--text-base);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-xl {
  font-size: var(--text-xl);
}

.text-2xl {
  font-size: var(--text-2xl);
}

.text-3xl {
  font-size: var(--text-3xl);
}

/* Font Weights */
.font-normal {
  font-weight: var(--font-normal);
}

.font-medium {
  font-weight: var(--font-medium);
}

.font-semibold {
  font-weight: var(--font-semibold);
}

.font-bold {
  font-weight: var(--font-bold);
}

/* Opacity */
.opacity-50 {
  opacity: 0.5;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-90 {
  opacity: 0.9;
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}


/* ============================================================================
   16. PROJECT SPECIFIC COMPONENTS
   ============================================================================ */

/* Dashboard Layout */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.dashboard-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16rem;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 1px solid var(--white-10);
  padding: var(--space-6);
  overflow-y: auto;
  z-index: var(--z-fixed);
}

.dashboard-main {
  flex: 1;
  margin-left: 16rem;
  padding: 0;
  width: calc(100% - 16rem);
  max-width: 100%;
  transition: margin-left var(--transition-normal), width var(--transition-normal);
}

.dashboard-content {
  padding: var(--space-8);
  max-width: 1600px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ============================================================================
   UNIFIED CONTAINER SYSTEM - STANDARD MAX-WIDTHS
   ============================================================================ */

/* Wizard/Multi-Step Form Container (create-project wizard, multi-page forms) */
.wizard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  min-height: 100vh;
}

/* Single Form Container Narrow (create-group, add-link, simple forms) */
.form-container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  min-height: 100vh;
}

/* Project/Detail Pages Container (project-dashboard, group-detail) */
.page-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: var(--space-8);
  min-height: 100vh;
}

/* Navigation Logo */
.nav-logo {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: var(--space-2);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--white-70);
  background: transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--white);
  background: var(--white-05);
  text-decoration: none;
}

.nav-link.active {
  color: var(--electric-blue-light);
  background: rgba(30, 136, 229, 0.1);
  border-left: 3px solid var(--electric-blue);
  font-weight: var(--font-semibold);
}

.nav-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ============================================================================
   SIDEBAR COLLAPSE FUNCTIONALITY
   ============================================================================ */

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo svg {
  flex-shrink: 0;
}

.nav-logo-text {
  transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar-toggle {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
}

.sidebar-toggle:hover {
  background: rgba(30, 136, 229, 0.2);
  border-color: var(--electric-blue);
}

.sidebar-toggle svg {
  stroke: var(--white-70);
  transition: transform 0.3s ease;
}

.nav-text {
  transition: opacity 0.3s ease;
}

/* Collapsed State */
.dashboard-sidebar.collapsed {
  width: 70px !important;
}

.dashboard-sidebar.collapsed .nav-logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.dashboard-sidebar.collapsed .nav-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.dashboard-sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.dashboard-sidebar.collapsed .nav-link {
  justify-content: center;
  padding: var(--space-3);
}

.dashboard-sidebar.collapsed .nav-logo {
  justify-content: center;
}

/* Main content adjustment when sidebar collapsed */
.dashboard-main {
  transition: margin-left 0.3s ease, width 0.3s ease;
}

.dashboard-sidebar.collapsed~.dashboard-main {
  margin-left: 70px;
  width: calc(100% - 70px);
}

/* Wizard Progress */
.wizard-progress {
  margin-bottom: var(--space-12);
  padding: 0 var(--space-4);
}

.progress-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white-20);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-line-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 1;
}

.progress-step-circle {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--white-50);
  background: var(--white-10);
  border: 2px solid var(--white-20);
  border-radius: 50%;
  transition: all var(--transition-slow);
}

.progress-step.active .progress-step-circle {
  color: white;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  border-color: var(--electric-blue);
  box-shadow: var(--glow-blue);
}

.progress-step.completed .progress-step-circle {
  color: white;
  background: var(--success);
  border-color: var(--success);
}

.progress-step-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white-50);
  transition: color var(--transition-normal);
}

.progress-step.active .progress-step-label {
  color: var(--electric-blue-light);
}

.progress-step.completed .progress-step-label {
  color: var(--white-70);
}

/* Priority Grid */
.priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.priority-card {
  position: relative;
  padding: var(--space-5);
  background: var(--white-05);
  border: 2px solid var(--white-10);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-slow);
  text-align: center;
}

.priority-card:hover {
  background: var(--white-08);
  border-color: var(--white-20);
}

.priority-card.selected {
  background: rgba(30, 136, 229, 0.1);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-sm);
}

.priority-card.critical.selected {
  background: rgba(244, 67, 54, 0.1);
  border-color: var(--danger);
}

.priority-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.priority-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--white-70);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.priority-card.selected .priority-icon svg {
  stroke: var(--electric-blue);
}

.priority-card.critical.selected .priority-icon svg {
  stroke: var(--danger);
}

.priority-card .priority-label {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--white-90);
}

/* Preset Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.preset-card {
  position: relative;
  padding: var(--space-5);
  background: var(--white-05);
  border: 2px solid var(--white-10);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-slow);
}

.preset-card:hover {
  background: var(--white-08);
  border-color: var(--white-20);
}

.preset-card.selected {
  background: rgba(30, 136, 229, 0.1);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-sm);
}

.preset-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-3);
}

.preset-name {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white-90);
}

.preset-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-light);
  border-radius: var(--radius-sm);
}

.preset-description {
  font-size: var(--text-sm);
  color: var(--white-70);
  margin-bottom: var(--space-2);
}

.preset-tokens {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--electric-blue-light);
}

/* Summary Grid */
.summary-grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.summary-item {
  padding: var(--space-4);
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-sm);
}

.summary-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-60);
  margin-bottom: var(--space-2);
}

.summary-value {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--white-90);
}

/* Token Forecast Card */
.token-forecast {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(66, 165, 245, 0.15) 100%);
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
}

.forecast-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white-70);
  margin-bottom: var(--space-3);
}

.forecast-value {
  font-size: var(--text-6xl);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.forecast-description {
  font-size: var(--text-sm);
  color: var(--white-60);
}

/* Wizard Navigation */
.wizard-navigation {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--white-10);
}

/* Wizard Step Content */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fade-in 300ms ease;
}

.step-header {
  margin-bottom: var(--space-6);
}

.step-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: var(--text-base);
  color: var(--white-70);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Preset Frequency */
.preset-frequency {
  font-size: var(--text-xs);
  color: var(--white-60);
  margin-top: var(--space-1);
}

/* Token Calculator */
.token-calculator {
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

/* Calculator Components */
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.calc-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--white-90);
}

.calc-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.calc-label {
  font-size: var(--text-sm);
  color: var(--white-70);
}

.calc-value {
  font-family: var(--font-mono);
  color: var(--electric-blue-light);
  font-weight: var(--font-semibold);
}

.calc-input-wrapper {
  position: relative;
  flex: 1;
}

.calc-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  transition: all var(--transition-normal);
}

.calc-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white-20);
}

.calc-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.calc-plus,
.calc-multiply,
.calc-times,
.calc-equals {
  font-size: var(--text-lg);
  color: var(--white-50);
  font-weight: var(--font-medium);
}

.calc-formula {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--white-60);
  margin-bottom: var(--space-4);
}

.calc-desc {
  font-size: var(--text-xs);
  color: var(--white-50);
  font-style: italic;
  margin-top: var(--space-2);
}

.calc-total {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 2px solid var(--white-15);
}

.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(66, 165, 245, 0.15) 100%);
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: var(--radius-md);
}

.calc-result-label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white-70);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-result-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc-result-subtext {
  font-size: var(--text-xs);
  color: var(--white-60);
}

/* Token Forecast Ultra */
.token-forecast-ultra {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.1) 0%, rgba(66, 165, 245, 0.15) 100%);
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-6);
}

.token-forecast-header {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--white-70);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.token-forecast-value {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.token-forecast-note {
  font-size: var(--text-xs);
  color: var(--white-60);
}

/* ============================================================================
   STATS GRID COMPONENTS
   ============================================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  position: relative;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slower);
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  opacity: 0.7;
}

.stat-card.success::before {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
}

.stat-card.warning::before {
  background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
}

.stat-card.danger::before {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-4);
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-70);
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-10);
  border-radius: var(--radius-sm);
  color: var(--electric-blue-light);
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-description {
  font-size: var(--text-sm);
  color: var(--white-60);
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  margin-top: var(--space-2);
}

.stat-change.positive {
  color: var(--success-light);
}

.stat-change.negative {
  color: var(--danger-light);
}

/* ============================================================================
   EMPTY STATE COMPONENT
   ============================================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  margin-top: var(--space-12);
  text-align: center;
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px dashed var(--white-15);
  border-radius: var(--radius-xl);
  min-height: 400px;
}

.empty-icon {
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  background: var(--white-10);
  border-radius: var(--radius-full);
  color: var(--white-50);
}

.empty-icon svg {
  width: 3rem;
  height: 3rem;
  stroke: currentColor;
  stroke-width: 1.5;
}

.empty-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.empty-description {
  font-size: var(--text-base);
  color: var(--white-70);
  max-width: 32rem;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.empty-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================================
   GROUP CARD COMPONENT
   ============================================================================ */

.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slower);
  overflow: hidden;
  cursor: pointer;
}

.group-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.group-card:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, var(--white-08) 0%, var(--white-15) 100%);
  box-shadow: var(--shadow-lg);
}

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

.group-card-header {
  display: flex;
  align-items: start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.group-icon-wrapper {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-10);
  border-radius: var(--radius-md);
  font-size: var(--text-2xl);
}

.group-card-title {
  flex: 1;
}

.group-name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.group-description {
  font-size: var(--text-sm);
  color: var(--white-70);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--white-10);
}

.group-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.group-stat-label {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-60);
}

.group-stat-value {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  color: var(--white);
}

.group-stat-value.success {
  color: var(--success-light);
}

.group-stat-value.warning {
  color: var(--warning-light);
}

.group-stat-value.danger {
  color: var(--danger-light);
}

.group-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--white-10);
}

.group-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--white-60);
}

/* ============================================================================
   GROUP DETAIL PAGE COMPONENTS
   ============================================================================ */

/* Priority Badge */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.priority-badge.critical {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(229, 115, 115, 0.3));
  color: var(--danger-light);
  border: 1px solid var(--danger);
}

.priority-badge.high {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 183, 77, 0.3));
  color: var(--warning-light);
  border: 1px solid var(--warning);
}

.priority-badge.medium {
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.2), rgba(100, 181, 246, 0.3));
  color: var(--electric-blue-light);
  border: 1px solid var(--electric-blue);
}

.priority-badge.low {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(129, 199, 132, 0.3));
  color: var(--success-light);
  border: 1px solid var(--success);
}

/* Group Icon */
.group-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(66, 165, 245, 0.3));
  border: 2px solid var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.group-icon svg {
  color: var(--electric-blue-light);
  stroke-width: 2.5;
}

/* Two-Column Layout */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.main-column {
  min-width: 0;
}

/* Right Sidebar */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.sidebar-section {
  background: var(--card-bg);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--white-90);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--white-10);
}

.sidebar-section-title svg {
  color: var(--electric-blue-light);
  flex-shrink: 0;
}

/* Setting Item */
.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--white-05);
}

.setting-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.setting-label {
  font-size: var(--text-sm);
  color: var(--white-60);
  font-weight: var(--font-medium);
}

.setting-value {
  font-size: var(--text-sm);
  color: var(--white-90);
  font-weight: var(--font-semibold);
}

.setting-value.font-mono {
  font-family: var(--font-mono);
}

/* Activity Item */
.activity-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--white-05);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-time {
  font-size: var(--text-xs);
  color: var(--white-50);
  margin-bottom: var(--space-1);
}

.activity-message {
  font-size: var(--text-sm);
  color: var(--white-80);
  line-height: 1.5;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--white-10);
}

/* Page Title Section with Icon */
.page-title-section {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
}

.page-title-section > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Hint Text (for form labels, descriptions, etc.) */
.hint-text {
  font-size: var(--text-sm);
  color: var(--white-60);
  line-height: 1.5;
  font-weight: var(--font-regular);
}

/* Accordion / Collapsible Section */
.accordion-section {
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.accordion-header:hover {
  background: var(--white-05);
}

.accordion-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.accordion-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(66, 165, 245, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accordion-icon svg {
  color: var(--electric-blue-light);
}

.accordion-text {
  flex: 1;
}

.accordion-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--white-90);
  margin-bottom: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.accordion-description {
  font-size: var(--text-sm);
  color: var(--white-60);
  line-height: 1.4;
}

.accordion-toggle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.accordion-toggle svg {
  transition: transform var(--transition-fast);
  color: var(--white-70);
}

.accordion-section.expanded .accordion-toggle {
  background: var(--electric-blue);
}

.accordion-section.expanded .accordion-toggle svg {
  transform: rotate(180deg);
  color: white;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-section.expanded .accordion-body {
  max-height: 2000px;
}

.accordion-content {
  padding: 0 var(--space-6) var(--space-6);
}

/* Stat Card Trend (small explanatory text) */
.stat-card-trend {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--white-50);
  font-weight: var(--font-regular);
}

/* Utility Text Color Classes */
.text-grey,
.text-tertiary {
  color: var(--white-60);
}

.text-secondary {
  color: var(--white-70);
}


/* ============================================================================
   17. RESPONSIVE - MEDIA QUERIES
   ============================================================================ */

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  h3 {
    font-size: var(--text-2xl);
  }

  .card-ultra,
  .card {
    padding: var(--space-4);
  }

  .modal-ultra,
  .modal {
    padding: var(--space-6);
    width: 95%;
  }

  .modal-title {
    font-size: var(--text-2xl);
  }

  .btn-ultra,
  .btn {
    width: 100%;
    justify-content: center;
  }

  .toast-ultra,
  .toast {
    right: var(--space-4);
    left: var(--space-4);
    width: auto;
  }

  .priority-grid,
  .preset-grid {
    grid-template-columns: 1fr;
  }

  .forecast-value {
    font-size: var(--text-5xl);
  }

  /* New Components Responsive */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .stat-value {
    font-size: var(--text-3xl);
  }

  .group-card {
    padding: var(--space-4);
  }

  .group-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .group-stat-value {
    font-size: var(--text-base);
  }

  .empty-state {
    padding: var(--space-12) var(--space-4);
    min-height: 300px;
  }

  .empty-icon {
    width: 4rem;
    height: 4rem;
  }

  .empty-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .wizard-container,
  .form-container-narrow,
  .page-container {
    padding: var(--space-4);
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-content {
    margin-left: 0;
    padding: var(--space-4);
  }

  .wizard-progress {
    padding: 0;
  }

  .progress-circle {
    width: 2.5rem;
    height: 2.5rem;
    font-size: var(--text-base);
  }

  .progress-label {
    font-size: 0.625rem;
  }

  /* Container adjustments */
  .dashboard-main {
    margin-left: 0;
  }

  .wizard-container,
  .form-container-narrow,
  .page-container {
    padding: var(--space-6) var(--space-4);
  }

  /* New components adjustments */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .group-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet Landscape (min-width: 768px) */
@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:grid {
    display: grid;
  }

  .md\:hidden {
    display: none;
  }
}

/* Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 14rem;
  }

  .dashboard-content {
    margin-left: 14rem;
  }
}

/* ===========================================================================
   DASHBOARD SPECIFIC COMPONENTS
   =========================================================================== */

/* Chart Placeholder - Container for Chart.js canvas elements */
.chart-placeholder {
  position: relative;
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  min-height: 300px;
  overflow: hidden;
}

.chart-placeholder canvas {
  background: transparent !important;
  max-width: 100%;
  height: auto;
}

/* Chart Card Wrapper */
.chart-card {
  margin-bottom: var(--space-6);
}

.chart-card canvas {
  border-radius: var(--radius-md);
}

/* AI Insights Components */
.insight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: all var(--transition-normal);
}

.insight-card:hover {
  background: linear-gradient(135deg, var(--white-08) 0%, var(--white-10) 100%);
  border-color: var(--white-15);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.insight-card--warning {
  border-left: 4px solid var(--warning);
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 183, 77, 0.08) 100%);
}

.insight-card--success {
  border-left: 4px solid var(--success);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(129, 199, 132, 0.08) 100%);
}

.insight-card--danger {
  border-left: 4px solid var(--danger);
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.05) 0%, rgba(239, 83, 80, 0.08) 100%);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.insight-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--electric-blue);
}

.insight-card--warning .insight-icon {
  color: var(--warning);
}

.insight-card--success .insight-icon {
  color: var(--success);
}

.insight-card--danger .insight-icon {
  color: var(--danger);
}

.insight-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.insight-message {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.insight-probability {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--warning) 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
  letter-spacing: -0.02em;
}

.insight-card--success .insight-probability {
  background: linear-gradient(135deg, var(--success) 0%, #81C784 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================================================================
   GROUP DETAIL PAGE COMPONENTS
   =========================================================================== */

/* Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
}

.action-bar-left,
.action-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Search Input Wrapper */
.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 1;
}

.search-input-wrapper .input-ultra {
  padding-left: var(--space-10);
}

/* Row Actions - Table action buttons */
.row-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: flex-end;
}

.row-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.row-action-btn:hover {
  background: var(--white-10);
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  transform: translateY(-1px);
}

.row-action-btn:active {
  transform: translateY(0);
}

.row-action-btn svg {
  width: 16px;
  height: 16px;
}

/* Table Cell Specific Styles */
.url-cell,
.anchor-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url-cell a,
.anchor-cell a {
  color: var(--electric-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.url-cell a:hover,
.anchor-cell a:hover {
  color: var(--electric-blue-light);
  text-decoration: underline;
}

/* Link Type Badge */
.link-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.link-type-badge.dofollow {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-light);
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.link-type-badge.nofollow {
  background: rgba(158, 158, 158, 0.2);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(158, 158, 158, 0.4);
}

/* Last Checked Cell */
.last-checked {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Status Indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.healthy {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-light);
  border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-indicator.healthy::before {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-indicator.warning {
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning-light);
  border: 1px solid rgba(255, 152, 0, 0.4);
}

.status-indicator.warning::before {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}

.status-indicator.error {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger-light);
  border: 1px solid rgba(244, 67, 54, 0.4);
}

.status-indicator.error::before {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.status-indicator.checking {
  background: rgba(30, 136, 229, 0.2);
  color: var(--electric-blue-light);
  border: 1px solid rgba(30, 136, 229, 0.4);
}

.status-indicator.checking::before {
  background: var(--electric-blue);
  box-shadow: 0 0 8px var(--electric-blue);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ===========================================================================
   RESPONSIVE ADJUSTMENTS FOR NEW COMPONENTS
   =========================================================================== */

@media (max-width: 640px) {
  .chart-placeholder {
    min-height: 200px;
    padding: var(--space-3);
  }

  .insight-card {
    padding: var(--space-4);
  }

  .insight-probability {
    font-size: var(--text-3xl);
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar-left,
  .action-bar-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-input-wrapper {
    max-width: 100%;
  }

  .row-actions {
    gap: var(--space-1);
  }

  .row-action-btn {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 768px) {
  .action-bar {
    padding: var(--space-3);
  }

  .url-cell,
  .anchor-cell {
    max-width: 200px;
  }

  /* Group Detail Page - Single Column on Mobile */
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .right-sidebar {
    order: -1;
  }

  .group-icon {
    width: 56px;
    height: 56px;
  }

  .priority-badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-2);
  }

  /* Page Header on Mobile */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .page-title-section {
    flex-direction: column;
    gap: var(--space-3);
  }
}

/* ===========================================================================
   DASHBOARD ADDITIONAL COMPONENTS (CRITICAL)
   =========================================================================== */

/* Critical Alerts Section */
.critical-alerts-section {
  margin-bottom: var(--space-8);
}

.critical-alerts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.critical-alerts-header h2 {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.critical-alerts-time {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.critical-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

/* Alert Card */
.alert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.alert-card--danger {
  border-color: rgba(244, 67, 54, 0.3);
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.05) 0%, rgba(239, 83, 80, 0.08) 100%);
}

.alert-card--warning {
  border-color: rgba(255, 152, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05) 0%, rgba(255, 183, 77, 0.08) 100%);
}

.alert-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
}

.alert-card__badge--high {
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger-light);
  border: 1px solid rgba(244, 67, 54, 0.4);
}

.alert-card__badge--medium {
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning-light);
  border: 1px solid rgba(255, 152, 0, 0.4);
}

.alert-card__top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.alert-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.alert-card__icon--danger {
  background: rgba(244, 67, 54, 0.15);
  color: var(--danger);
}

.alert-card__icon--warning {
  background: rgba(255, 152, 0, 0.15);
  color: var(--warning);
}

.alert-card__icon svg {
  width: 20px;
  height: 20px;
}

.alert-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  font-family: var(--font-mono);
  line-height: 1;
}

.alert-card__value--danger {
  color: var(--danger-light);
}

.alert-card__value--warning {
  color: var(--warning-light);
}

.alert-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Dashboard Header */
.dashboard-header {
  margin-bottom: var(--space-6);
}

.dashboard-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.dashboard-subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Stat Card Enhancements */
.stat-card__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.stat-card__label svg {
  width: 20px;
  height: 20px;
  color: var(--electric-blue);
}

.stat-card__value {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-card__subtitle {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.stat-card__trend {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
}

.stat-card__trend svg {
  width: 16px;
  height: 16px;
}

.stat-card__trend--positive {
  color: var(--success);
}

.stat-card__trend--negative {
  color: var(--danger);
}

.stat-card__progress {
  width: 100%;
  height: 4px;
  background: var(--white-10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-3);
}

.stat-card__progress-bar {
  height: 100%;
  transition: width 0.6s ease;
}

/* Chart Card */
.chart-card {
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.chart-card__header {
  margin-bottom: var(--space-5);
}

.chart-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

/* Financial Panel */
.financial-panel {
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.financial-panel__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.financial-panel__header h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.financial-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.financial-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.financial-metric__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.financial-metric__value {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.financial-metric__progress {
  width: 100%;
  height: 6px;
  background: var(--white-10);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.financial-metric__progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Link Types List */
.link-types-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.link-type-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.link-type-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.link-type-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.link-type-name {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.link-type-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

.link-type-progress {
  width: 100%;
  height: 8px;
  background: var(--white-10);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.link-type-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.link-type-details {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

/* Geo List */
.geo-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.geo-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.geo-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.geo-flag {
  font-size: var(--text-2xl);
  line-height: 1;
}

.geo-info {
  flex: 1;
}

.geo-country {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.geo-stats {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.geo-progress {
  flex-shrink: 0;
  width: 60px;
}

.geo-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--white-10);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, var(--white-08) 0%, var(--white-10) 100%);
  border-color: var(--electric-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  color: var(--electric-blue);
}

.quick-action-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-align: center;
}

/* Domains Table */
.domains-table {
  width: 100%;
  border-collapse: collapse;
}

.domains-table thead {
  background: var(--white-08);
  border-bottom: 1px solid var(--white-10);
}

.domains-table thead th {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--white-70);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.domains-table tbody tr {
  border-bottom: 1px solid var(--white-05);
  transition: background-color var(--transition-fast);
}

.domains-table tbody tr:hover {
  background: var(--white-05);
}

.domains-table tbody td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--white-90);
}

.domain-name {
  font-family: var(--font-mono);
  color: var(--electric-blue);
}

.severity-high {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(244, 67, 54, 0.2);
  color: var(--danger-light);
  border: 1px solid rgba(244, 67, 54, 0.4);
  border-radius: var(--radius-full);
}

.severity-medium {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning-light);
  border: 1px solid rgba(255, 152, 0, 0.4);
  border-radius: var(--radius-full);
}

/* Activity Items */
.activity-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.activity-time {
  flex-shrink: 0;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-weight: var(--font-semibold);
}

.activity-message {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Grid Utilities */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* Responsive for Dashboard Components */
@media (max-width: 640px) {
  .critical-alerts-grid {
    grid-template-columns: 1fr;
  }

  .financial-metrics {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
  }

  .dashboard-title {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 768px) {
  .critical-alerts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-type-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-type-stats {
    flex-wrap: wrap;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:grid {
    display: grid;
  }

  .lg\:hidden {
    display: none;
  }
}

/* Large Desktop (min-width: 1280px) */
@media (min-width: 1280px) {
  .xl\:flex {
    display: flex;
  }

  .xl\:grid {
    display: grid;
  }

  .xl\:hidden {
    display: none;
  }
}


/* ============================================================================
   18. INDEX/MOCKUP PAGE COMPONENTS
   ============================================================================ */

/* Page Header */
.header {
  text-align: center;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--white-10);
}

.logo {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  color: var(--white);
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--white) 0%, var(--electric-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: var(--text-lg);
  color: var(--white-70);
  margin-bottom: var(--space-2);
}

.version {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(30, 136, 229, 0.1);
  border: 1px solid rgba(30, 136, 229, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--electric-blue-light);
}

/* Section */
.section {
  margin-bottom: var(--space-12);
}

.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--white);
  margin-bottom: var(--space-8);
}

.section-icon {
  font-size: var(--text-4xl);
}

/* Grid Layout for Index Page Cards */
.section .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

/* Card Link */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--electric-blue);
}

/* Card Badge */
.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: var(--success-light);
}

/* Featured Card */
.card.featured {
  border-color: var(--electric-blue);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.05) 0%, rgba(66, 165, 245, 0.1) 100%);
}

.card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
}

/* Card Description */
.card-description {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--white-70);
  margin-bottom: var(--space-4);
}

/* Card Features */
.card-features {
  margin-bottom: var(--space-4);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-tag {
  padding: 0.375rem 0.75rem;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--electric-blue-light);
  transition: all var(--transition-normal);
}

.feature-tag:hover {
  background: var(--white-08);
  border-color: var(--electric-blue);
}

/* Card Meta */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--white-10);
  font-size: var(--text-xs);
  color: var(--white-50);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Footer */
.footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--white-10);
  text-align: center;
}

.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white-60);
}

.footer-tagline {
  margin-top: var(--space-2);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--white-60);
}

.breadcrumb-link {
  color: var(--white-60);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.breadcrumb-link:hover {
  color: var(--electric-blue);
}

.breadcrumb-separator {
  color: var(--white-30);
}

.breadcrumb-current {
  color: var(--white-90);
  font-weight: var(--font-medium);
}

/* Project Header */
.project-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-6);
}

.project-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--white);
  margin: 0 0 var(--space-2) 0;
}

.project-meta {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--white-60);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Section  Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--space-12) 0 var(--space-6);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin: 0;
}

/* Groups Grid */
.groups-grid {
  display: grid;
  gap: var(--space-6);
}

.group-actions {
  display: flex;
  gap: var(--space-3);
}

/* Responsive for Index Page */
@media (max-width: 768px) {
  .logo {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section .grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .stats {
    flex-direction: column;
    gap: var(--space-4);
  }
}


/* ============================================================================
   19. ACCESSIBILITY
   ============================================================================ */

/* Focus Visible (keyboard navigation only) */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--electric-blue-light);
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}



/* Utility Classes for Refactoring */
.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-sm {
  gap: var(--space-2);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mt-12 {
  margin-top: var(--space-12);
}

.stat-card__progress-bar--success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.6);
}


/* ============================================================================
   CREATE GROUP PAGE STYLES
   ============================================================================ */

/* Inherited Banner */
.inherited-banner {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(66, 165, 245, 0.12) 100%);
  border: 1px solid rgba(30, 136, 229, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.inherited-banner-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--electric-blue-light);
  margin-bottom: var(--space-4);
}

.inherited-banner-title svg {
  color: var(--electric-blue);
}

.inherited-banner-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.inherited-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.inherited-label {
  font-size: var(--text-xs);
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-medium);
}

.inherited-value {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--white-90);
  font-family: var(--font-mono);
}

/* Override Sections */
.override-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.override-section {
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

.override-section:hover {
  border-color: var(--white-20);
  background: linear-gradient(135deg, var(--white-08) 0%, var(--white-10) 100%);
}

.override-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.override-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white-90);
  margin: 0;
}

.override-title svg {
  color: var(--electric-blue);
}

.override-content {
  opacity: 0.4;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.override-content.active {
  opacity: 1;
  pointer-events: auto;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white-10);
  border: 1px solid var(--white-15);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--white-50);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  border-color: var(--electric-blue);
  box-shadow: 0 0 12px rgba(30, 136, 229, 0.4);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  background: var(--white);
}

.toggle-switch:hover .toggle-slider {
  background: var(--white-15);
  border-color: var(--white-20);
}

.toggle-switch input:checked:hover + .toggle-slider {
  background: linear-gradient(135deg, var(--electric-blue-light) 0%, var(--electric-blue) 100%);
}

/* Color Picker Grid */
.color-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--space-2);
  max-width: 600px;
}

.color-option {
  width: 100%;
  aspect-ratio: 1;
  max-height: 48px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: var(--white-30);
}

.color-option.selected {
  border-color: var(--white);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(1.15);
}

.color-option.selected::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Icon Picker Grid */
.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--space-2);
  max-width: 600px;
}

.icon-option {
  width: 100%;
  aspect-ratio: 1;
  max-height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  border: 2px solid var(--white-10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.icon-option svg {
  width: 20px;
  height: 20px;
  color: var(--white-70);
  transition: all var(--transition-normal);
}

.icon-option:hover {
  background: linear-gradient(135deg, var(--white-08) 0%, var(--white-12) 100%);
  border-color: var(--white-20);
  transform: scale(1.05);
}

.icon-option:hover svg {
  color: var(--white-90);
}

.icon-option.selected {
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.2) 0%, rgba(66, 165, 245, 0.3) 100%);
  border-color: var(--electric-blue);
  box-shadow: 0 0 20px rgba(30, 136, 229, 0.4);
  transform: scale(1.1);
}

.icon-option.selected svg {
  color: var(--electric-blue-light);
}

/* Appearance Section */
.appearance-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.appearance-section {
  display: flex;
  flex-direction: column;
}

.appearance-section .label-ultra {
  margin-bottom: var(--space-3);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--white-10);
}

.form-actions-right {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* Responsive - Create Group */
@media (max-width: 1024px) {
  .override-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .color-picker-grid,
  .icon-picker-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .inherited-banner-content {
    grid-template-columns: 1fr;
  }

  .color-picker-grid,
  .icon-picker-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .color-picker-grid,
  .icon-picker-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================================
   IMPORT LINKS PAGE STYLES
   ============================================================================ */

/* Import Layout */
.import-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.import-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.import-sidebar {
  position: sticky;
  top: var(--space-6);
  align-self: start;
}

/* Step Cards */
.step-card {
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

.step-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.step-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--electric-blue-light) 100%);
  color: var(--white);
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(30, 136, 229, 0.4);
}

.step-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin: 0;
}

/* Group Settings Preview */
.group-settings-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.setting-label {
  font-size: var(--text-xs);
  color: var(--white-60);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: var(--font-medium);
}

.setting-value {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--white-90);
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--white-20);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.03) 0%, rgba(66, 165, 245, 0.05) 100%);
}

.upload-zone:hover {
  border-color: var(--electric-blue);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(66, 165, 245, 0.12) 100%);
}

.upload-zone.dragover {
  border-color: var(--electric-blue);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15) 0%, rgba(66, 165, 245, 0.2) 100%);
}

.upload-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.15) 0%, rgba(66, 165, 245, 0.25) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-blue-light);
}

.upload-icon svg {
  width: 40px;
  height: 40px;
}

.upload-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white-90);
  margin: 0 0 var(--space-2) 0;
}

.upload-subtitle {
  font-size: var(--text-base);
  color: var(--white-70);
  margin: 0 0 var(--space-2) 0;
}

.upload-formats {
  font-size: var(--text-sm);
  color: var(--white-50);
  margin: 0;
}

/* Import Actions */
.import-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--white-10);
  margin-top: var(--space-8);
}

/* Instructions Card */
.instructions-card {
  background: linear-gradient(135deg, var(--white-05) 0%, var(--white-08) 100%);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.instructions-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--white);
  margin: 0 0 var(--space-6) 0;
}

.instructions-title svg {
  width: 24px;
  height: 24px;
  color: var(--electric-blue);
}

.instructions-section {
  margin-bottom: var(--space-6);
}

.instructions-section:last-child {
  margin-bottom: 0;
}

.instructions-section .section-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--white-90);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-3) 0;
}

.column-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.column-list li {
  font-size: var(--text-sm);
  color: var(--white-70);
  padding-left: var(--space-4);
  position: relative;
}

.column-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--electric-blue);
  font-weight: var(--font-bold);
}

.column-list li strong {
  color: var(--white-90);
  font-family: var(--font-mono);
  font-weight: var(--font-semibold);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.info-item:not(:last-child) {
  border-bottom: 1px solid var(--white-10);
}

.info-label {
  color: var(--white-60);
  font-weight: var(--font-medium);
}

.info-value {
  color: var(--white-90);
  font-weight: var(--font-semibold);
  font-family: var(--font-mono);
}

/* Responsive - Import Page */
@media (max-width: 1024px) {
  .import-layout {
    grid-template-columns: 1fr;
  }

  .import-sidebar {
    position: static;
  }

  .group-settings-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .import-actions {
    flex-direction: column-reverse;
  }

  .import-actions .btn-ultra {
    width: 100%;
  }

  .upload-zone {
    padding: var(--space-6);
  }

  .upload-icon {
    width: 60px;
    height: 60px;
  }

  .upload-icon svg {
    width: 30px;
    height: 30px;
  }
}


/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */