/* ═══════════════════════════════════════════════════════════════
   ✨ ZAD AL-MUSLIM — PREMIUM DESIGN SYSTEM v3.0
   Cinematic Islamic-themed UI with glassmorphism & animations
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&display=swap');

/* ────────────────────────────────────────────
   🎨 COLOR TOKENS — DARK COSMIC THEME
   ──────────────────────────────────────────── */
:root {
  /* Base Surfaces */
  --bg-void:       #05080f;
  --bg-deep:       #080d1a;
  --bg-base:       #0c1222;
  --bg-elevated:   #111a2e;
  --bg-surface:    #162040;
  --bg-hover:      #1a2850;

  /* Glass */
  --glass-bg:      rgba(12, 18, 34, 0.65);
  --glass-border:  rgba(255, 255, 255, 0.06);
  --glass-hover:   rgba(20, 30, 55, 0.75);
  --glass-glow:    rgba(16, 185, 129, 0.04);
  --glass-blur:    20px;

  /* Text Hierarchy */
  --text-primary:    #f0f4fc;
  --text-secondary:  #94a3c4;
  --text-muted:      #5f6f8f;
  --text-dim:        #3a4a6a;

  /* Borders */
  --border-subtle:   rgba(255,255,255,0.04);
  --border-light:    rgba(255,255,255,0.08);
  --border-medium:   rgba(255,255,255,0.12);
  --border-strong:   rgba(255,255,255,0.18);

  /* Emerald (Primary) */
  --emerald-50:  #ecfdf5; --emerald-100: #d1fae5; --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7; --emerald-400: #34d399; --emerald-500: #10b981;
  --emerald-600: #059669; --emerald-700: #047857; --emerald-800: #065f46;
  --emerald-glow: rgba(16, 185, 129, 0.15);
  --emerald-soft: rgba(16, 185, 129, 0.08);

  /* Gold (Accent) */
  --gold-50:  #fffbeb; --gold-100: #fef3c7; --gold-200: #fde68a;
  --gold-300: #fcd34d; --gold-400: #fbbf24; --gold-500: #f59e0b;
  --gold-600: #d97706; --gold-700: #b45309;
  --gold-glow: rgba(251, 191, 36, 0.15);
  --gold-soft: rgba(251, 191, 36, 0.06);

  /* Blue (Info) */
  --blue-400: #60a5fa; --blue-500: #3b82f6; --blue-600: #2563eb;
  --blue-glow: rgba(59, 130, 246, 0.15);

  /* Red (Danger) */
  --red-400: #f87171; --red-500: #ef4444; --red-600: #dc2626;

  /* Purple (Premium) */
  --purple-400: #a78bfa; --purple-500: #8b5cf6; --purple-600: #7c3aed;
  --purple-glow: rgba(139, 92, 246, 0.12);

  /* Cyan */
  --cyan-400: #22d3ee; --cyan-500: #06b6d4;

  /* Premium Gradients */
  --grad-emerald:  linear-gradient(135deg, #10b981, #059669);
  --grad-gold:     linear-gradient(135deg, #fbbf24, #f59e0b);
  --grad-blue:     linear-gradient(135deg, #3b82f6, #2563eb);
  --grad-purple:   linear-gradient(135deg, #8b5cf6, #7c3aed);
  --grad-cosmic:   linear-gradient(135deg, #0c1222 0%, #162040 50%, #0c1222 100%);
  --grad-card:     linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  --grad-hero:     linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
  --grad-mesh:     radial-gradient(ellipse at 20% 30%, rgba(16,185,129,0.06) 0%, transparent 60%),
                   radial-gradient(ellipse at 80% 70%, rgba(251,191,36,0.04) 0%, transparent 60%),
                   radial-gradient(ellipse at 50% 50%, rgba(59,130,246,0.03) 0%, transparent 50%);
  --grad-glow-emerald: radial-gradient(circle, rgba(16,185,129,0.2), transparent 70%);
  --grad-islamic:  conic-gradient(from 0deg, rgba(16,185,129,0.04), rgba(251,191,36,0.04), rgba(59,130,246,0.04), rgba(16,185,129,0.04));

  /* Typography */
  --font-body:     'Cairo', 'Segoe UI', sans-serif;
  --font-display:  'Amiri', 'Cairo', serif;
  --font-mono:     'Inter', 'Cascadia Code', monospace;

  --fs-2xs: 0.65rem; --fs-xs: 0.75rem; --fs-sm: 0.875rem; --fs-base: 1rem;
  --fs-md: 1.125rem; --fs-lg: 1.25rem; --fs-xl: 1.5rem; --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem; --fs-4xl: 3rem; --fs-5xl: 3.75rem; --fs-6xl: 4.5rem;

  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --fw-bold: 700; --fw-extrabold: 800; --fw-black: 900;

  --lh-tight: 1.25; --lh-snug: 1.375; --lh-normal: 1.5; --lh-relaxed: 1.75;
  --ls-tight: -0.025em; --ls-normal: 0; --ls-wide: 0.025em;

  /* Spacing */
  --space-0: 0; --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem;
  --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;
  --space-24: 6rem; --space-32: 8rem;

  /* Radii */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --radius-xl: 18px; --radius-2xl: 24px; --radius-3xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.4);
  --shadow-xl:   0 16px 50px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(16,185,129,0.12);
  --shadow-gold: 0 0 30px rgba(251,191,36,0.1);
  --shadow-inner: inset 0 1px 2px rgba(0,0,0,0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   0.15s var(--ease-smooth);
  --t-normal: 0.3s var(--ease-out);
  --t-slow:   0.5s var(--ease-out);
  --t-spring: 0.4s var(--ease-spring);

  /* Z-index */
  --z-base: 1; --z-dropdown: 100; --z-sticky: 200;
  --z-overlay: 300; --z-modal: 400; --z-toast: 500; --z-max: 9999;
}

/* ────────────────────────────────────────────
   🌞 LIGHT THEME
   ──────────────────────────────────────────── */
[data-theme="light"] {
  --bg-void: #f8fafc; --bg-deep: #f1f5f9; --bg-base: #ffffff;
  --bg-elevated: #f8fafc; --bg-surface: #f1f5f9; --bg-hover: #e2e8f0;
  --glass-bg: rgba(255,255,255,0.75); --glass-border: rgba(0,0,0,0.06);
  --text-primary: #0f172a; --text-secondary: #475569; --text-muted: #94a3b8;
  --border-subtle: rgba(0,0,0,0.04); --border-light: rgba(0,0,0,0.08);
  --border-medium: rgba(0,0,0,0.12); --border-strong: rgba(0,0,0,0.18);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06); --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1); --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
  --grad-card: linear-gradient(160deg, rgba(0,0,0,0.01), rgba(0,0,0,0.03));
}

/* ────────────────────────────────────────────
   🧱 GLOBAL RESET & BASE
   ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  direction: rtl;
  line-height: var(--lh-normal);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(16,185,129,0.25); color: var(--text-primary); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

a { color: var(--emerald-400); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--emerald-300); }

img { max-width: 100%; height: auto; }

/* ────────────────────────────────────────────
   ✍️ TYPOGRAPHY
   ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

.section-title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-black);
  text-align: center;
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--text-primary), var(--emerald-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-md);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  line-height: var(--lh-relaxed);
}

/* ────────────────────────────────────────────
   🧩 GLASS CARD SYSTEM
   ──────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--t-normal);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.glass-card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all var(--t-normal);
}
.card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ────────────────────────────────────────────
   🔘 BUTTONS
   ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--grad-emerald);
  color: white;
  box-shadow: 0 2px 12px rgba(16,185,129,0.3);
}
.btn-primary:hover { box-shadow: 0 4px 20px rgba(16,185,129,0.4); transform: translateY(-1px); }

.btn-gold {
  background: var(--grad-gold);
  color: #1a1a2e;
  box-shadow: 0 2px 12px rgba(251,191,36,0.3);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }

.btn-danger { background: linear-gradient(135deg, var(--red-500), var(--red-600)); color: white; }

.btn-sm { padding: 6px 14px; font-size: var(--fs-xs); border-radius: var(--radius-md); }
.btn-lg { padding: 14px 32px; font-size: var(--fs-base); border-radius: var(--radius-xl); }
.btn-xl { padding: 18px 40px; font-size: var(--fs-md); border-radius: var(--radius-2xl); }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 6px; align-items: center; }

.btn-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* ────────────────────────────────────────────
   📝 FORM ELEMENTS
   ──────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  transition: all var(--t-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-soft), var(--shadow-sm);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-row { display: grid; gap: var(--space-4); }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .form-row-2, .form-row-3 { grid-template-columns: 1fr; } }

/* ────────────────────────────────────────────
   🏷️ BADGES
   ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--fs-2xs); font-weight: var(--fw-semibold);
  background: rgba(255,255,255,0.06); color: var(--text-secondary);
}
.badge-emerald { background: var(--emerald-soft); color: var(--emerald-400); }
.badge-gold    { background: var(--gold-soft); color: var(--gold-400); }
.badge-blue    { background: var(--blue-glow); color: var(--blue-400); }
.badge-red     { background: rgba(239,68,68,0.1); color: var(--red-400); }
.badge-purple  { background: var(--purple-glow); color: var(--purple-400); }
.badge-gray    { background: rgba(255,255,255,0.04); color: var(--text-muted); }

/* ────────────────────────────────────────────
   📊 DATA GRID & TABLE
   ──────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); } .gap-6 { gap: var(--space-6); }

.table-container { overflow-x: auto; border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px; text-align: right; font-size: var(--fs-xs);
  font-weight: var(--fw-semibold); color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.02);
}
.table td {
  padding: 14px 16px; font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border-subtle);
}
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ────────────────────────────────────────────
   🔔 TOAST SYSTEM
   ──────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 20px; left: 20px;
  z-index: var(--z-toast); display: flex; flex-direction: column-reverse; gap: 10px;
  max-width: 400px;
}
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); animation: toastIn 0.4s var(--ease-spring);
  position: relative; overflow: hidden;
  font-size: var(--fs-sm);
}
.toast-progress {
  position: absolute; bottom: 0; right: 0; height: 3px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ────────────────────────────────────────────
   📦 MODAL SYSTEM
   ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.2s;
}
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); animation: modalIn 0.3s var(--ease-spring);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-subtle);
}
.modal-header h3 { font-size: var(--fs-lg); }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04); border: none;
  color: var(--text-muted); cursor: pointer; font-size: 1.1rem;
  transition: all var(--t-fast);
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-subtle); display: flex; gap: 10px; justify-content: flex-start; }

/* Confirm Dialog */
.confirm-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
.confirm-box {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl); padding: 32px; max-width: 420px; width: 100%;
  text-align: center; animation: modalIn 0.3s var(--ease-spring);
}
.confirm-icon { font-size: 3rem; margin-bottom: 16px; }
.confirm-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: 8px; }
.confirm-msg { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: 24px; line-height: var(--lh-relaxed); }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* Loading Overlay */
.loader-overlay {
  position: fixed; inset: 0; z-index: var(--z-max);
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.loader-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border-light); border-top-color: var(--emerald-400);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ────────────────────────────────────────────
   🎬 ANIMATIONS
   ──────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(-20px) scale(0.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastTimer { from { width: 100%; } to { width: 0%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 15px rgba(16,185,129,0.1); } 50% { box-shadow: 0 0 30px rgba(16,185,129,0.2); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes orbit { from { transform: rotate(0deg) translateX(120px) rotate(0deg); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }
@keyframes strokeDraw { to { stroke-dashoffset: 0; } }
@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-200px) rotate(720deg); opacity: 0; }
}
@keyframes ripple {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-fade-in { animation: fadeIn 0.5s; }
.animate-fade-up { animation: fadeInUp 0.5s var(--ease-out); }
.animate-scale   { animation: scaleIn 0.4s var(--ease-spring); }
.animate-float   { animation: float 6s ease-in-out infinite; }
.animate-glow    { animation: glow 3s ease-in-out infinite; }
.animate-breathe { animation: breathe 4s ease-in-out infinite; }

/* Staggered children */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }

/* ────────────────────────────────────────────
   🛠️ UTILITY CLASSES
   ──────────────────────────────────────────── */
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.justify-center { justify-content: center; } .flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); } .mb-12 { margin-bottom: var(--space-12); }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.p-4 { padding: var(--space-4); } .p-6 { padding: var(--space-6); }
.text-center { text-align: center; } .text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* Empty States */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-10); text-align: center; color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: var(--space-4); opacity: 0.5; }

/* Section Panel */
.section-panel {
  background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
  padding: var(--space-6); position: relative; overflow: hidden;
}
.section-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* Filter Bar */
.filter-bar {
  display: flex; gap: var(--space-3); margin-bottom: var(--space-6);
  flex-wrap: wrap; align-items: center;
}
.filter-bar .form-control { max-width: 200px; padding: 8px 14px; font-size: var(--fs-xs); }

/* Page Header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-8); flex-wrap: wrap; gap: var(--space-4);
}
.page-header h1 { font-size: var(--fs-2xl); font-weight: var(--fw-black); }
.page-header p { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 4px; }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
