/* ============================================================
   ServiJuridicos Design System v1.0
   Brand: Deep Indigo + Gold Accent + Glassmorphism
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ══════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand Colors ── */
  --color-primary: #0F172A;
  --color-primary-light: #1E293B;
  --color-primary-dark: #020617;
  --color-secondary: #3B82F6;
  --color-secondary-light: #60A5FA;
  --color-accent: #EAB308;
  --color-accent-light: #FDE047;
  --color-accent-dark: #A16207;

  /* ── RGB Channels (for rgba usage) ── */
  --color-primary-rgb: 15, 23, 42;
  --color-accent-rgb: 234, 179, 8;

  /* ── Neutrals ── */
  --color-bg-deep: #020617;
  --color-bg-primary: #0F172A;
  --color-bg-elevated: #1E293B;
  --color-bg-surface: #334155;
  --color-bg-hover: #475569;
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.25);
  --color-divider: rgba(255, 255, 255, 0.08);

  /* ── Semantic ── */
  --color-success: #10B981;
  --color-success-bg: rgba(16, 185, 129, 0.15);
  --color-warning: #F59E0B;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-error: #EF4444;
  --color-error-bg: rgba(239, 68, 68, 0.15);
  --color-info: #3B82F6;
  --color-info-bg: rgba(59, 130, 246, 0.15);

  /* ── Card Surfaces (solid colors — no backdrop-filter blur) ── */
  --glass-bg: #1e293b;                            /* Solid slate-800 — always visible */
  --glass-bg-strong: #0f172a;                     /* Darker slate-900 */
  --glass-bg-light: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-accent: rgba(234, 179, 8, 0.25);
  --glass-blur: 0px;
  --glass-blur-heavy: 0px;
  --glass-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.06);
  --glass-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.08);

  /* ── Typography ── */
  --font-heading: 'Outfit', 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

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

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;

  /* ── Spacing ── */
  --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;

  /* ── Borders ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow-gold: 0 0 20px rgba(201, 169, 110, 0.25);
  --shadow-glow-blue: 0 0 20px rgba(46, 49, 146, 0.35);
  --shadow-inner: inset 0 2px 8px rgba(0,0,0,0.3);

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* ── Z-Index Scale ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-toast: 600;
  --z-tooltip: 700;
  --z-max: 9999;

  /* ── Layout ── */
  --sidebar-width: 280px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
  --content-max-width: 1400px;
}

/* ══════════════════════════════════════════════════════════════
   2. 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;
  text-rendering: optimizeLegibility;
}

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

/* ── Animated Background Gradient ── */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(46, 49, 146, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(18, 24, 75, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-accent-light); }

img, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection {
  background: rgba(201, 169, 110, 0.35);
  color: var(--color-text-primary);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ══════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); margin-bottom: var(--space-6); }
h2 { font-size: var(--text-4xl); margin-bottom: var(--space-5); }
h3 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h5 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
h6 { font-size: var(--text-lg); margin-bottom: var(--space-2); }

.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-warning { color: var(--color-warning); }

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  font-weight: 600;
  font-family: var(--font-body);
}

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

.section-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: var(--space-3);
}

/* ══════════════════════════════════════════════════════════════
   4. GLASSMORPHISM SYSTEM
   ══════════════════════════════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: var(--space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(234,179,8,0.03) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-lg);
  border-color: rgba(234, 179, 8, 0.3);
}

.glass-panel {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
  backdrop-filter: blur(var(--glass-blur-heavy));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg);
  padding: var(--space-8);
}

.glass-input {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  transition: all var(--duration-fast) var(--ease-out);
  width: 100%;
}

.glass-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.glass-input::placeholder {
  color: var(--color-text-muted);
}

/* ══════════════════════════════════════════════════════════════
   5. BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}
.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(201, 169, 110, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover {
  background: rgba(201, 169, 110, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-text-secondary);
  background: var(--glass-bg-light);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, var(--color-error));
  color: white;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, #059669, var(--color-success));
  color: white;
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(16,185,129,0.35);
}

/* ── btn-accent (alias for btn-primary — gold themed) ── */
.btn-accent {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(234, 179, 8, 0.45);
  color: var(--color-primary-dark);
}

/* ── btn-outline (transparent with border) ── */
.btn-outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

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

.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   6. FORM ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  transition: all var(--duration-fast) var(--ease-out);
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}
.form-input.error { border-color: var(--color-error); }
.form-input.success { border-color: var(--color-success); }

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B8BCC8' d='M6 8.825L.35 3.175l.7-.7L6 7.45l4.95-4.975.7.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
}

.form-checkbox, .form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.form-checkbox input, .form-radio input {
  width: 18px; height: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   7. CARDS & SURFACES
   ══════════════════════════════════════════════════════════════ */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.stat-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}
.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-card .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-card .card-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(46, 49, 146, 0.15));
  border-radius: var(--radius-lg);
  font-size: 24px;
  margin-bottom: var(--space-4);
  transition: all var(--duration-normal) var(--ease-out);
}
.feature-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-gold);
}

/* ══════════════════════════════════════════════════════════════
   8. BADGES & TAGS
   ══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-gold {
  background: rgba(201, 169, 110, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(201, 169, 110, 0.3);
}
.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
}

/* ── Missing badge variants used in dashboard ── */
.badge-primary {
  background: rgba(59,130,246,0.15);
  color: var(--color-info);
  border: 1px solid rgba(59,130,246,0.3);
}
.badge-neutral {
  background: rgba(148,163,184,0.12);
  color: var(--color-text-muted);
  border: 1px solid rgba(148,163,184,0.2);
}

/* ── Spinner variants (sm, lg) ── */
.spinner-sm {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
.spinner-lg {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ── avatar-md (missing size between default and lg) ── */
.avatar-md { width: 48px; height: 48px; }

/* ══════════════════════════════════════════════════════════════
   9. RATING & STARS
   ══════════════════════════════════════════════════════════════ */
.rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.rating .star {
  color: var(--color-text-muted);
  font-size: 16px;
}
.rating .star.filled { color: var(--color-accent); }
.rating .star.half {
  background: linear-gradient(90deg, var(--color-accent) 50%, var(--color-text-muted) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-value {
  font-weight: 700;
  margin-left: var(--space-2);
  color: var(--color-accent);
}
.rating-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

/* ══════════════════════════════════════════════════════════════
   10. AVATARS
   ══════════════════════════════════════════════════════════════ */
.avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; border-width: 3px; }
.avatar-verified {
  position: relative;
}
.avatar-verified::after {
  content: '✓';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 18px; height: 18px;
  background: var(--color-success);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-bg-primary);
}

.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent-dark));
  color: white;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ══════════════════════════════════════════════════════════════
   11. MODAL & OVERLAY
   ══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  padding: var(--space-4);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.modal-header h3 {
  margin: 0;
  font-size: var(--text-xl);
}
.modal-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  font-size: 18px;
  transition: all var(--duration-fast);
}
.modal-close:hover {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.modal-body { padding: var(--space-6); }
.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* ══════════════════════════════════════════════════════════════
   12. TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 320px;
  max-width: 420px;
  pointer-events: all;
  animation: slideInRight var(--duration-normal) var(--ease-spring);
  border-left: 4px solid var(--color-info);
}
.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-error { border-left-color: var(--color-error); }
.toast.toast-warning { border-left-color: var(--color-warning); }

.toast-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.toast-content { flex: 1; }
.toast-title { font-weight: 600; font-size: var(--text-sm); margin-bottom: 2px; }
.toast-message { font-size: var(--text-xs); color: var(--color-text-secondary); }
.toast-dismiss {
  background: none; border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 2px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   13. PROGRESS & LOADING
   ══════════════════════════════════════════════════════════════ */
.progress-bar {
  height: 8px;
  background: var(--color-bg-surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

.skeleton {
  background: linear-gradient(90deg, var(--color-bg-surface) 25%, var(--color-bg-hover) 50%, var(--color-bg-surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-dots {
  display: flex; gap: 4px; align-items: center;
}
.loading-dots span {
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   14. STEPPER / WIZARD
   ══════════════════════════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-8);
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  position: relative;
}

.stepper-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--color-bg-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  z-index: 2;
}

.stepper-item.active .stepper-circle {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-glow-gold);
}

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

.stepper-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.stepper-item.active .stepper-label { color: var(--color-accent); font-weight: 600; }
.stepper-item.completed .stepper-label { color: var(--color-success); }

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 var(--space-2);
}
.stepper-item.completed + .stepper-item .stepper-line,
.stepper-line.completed {
  background: var(--color-success);
}

/* ══════════════════════════════════════════════════════════════
   15. TABS
   ══════════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}
.tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast);
  white-space: nowrap;
}
.tab:hover { color: var(--color-text-secondary); }
.tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.tab-content { display: none; animation: fadeIn var(--duration-normal) var(--ease-out); }
.tab-content.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   16. TABLES
   ══════════════════════════════════════════════════════════════ */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}
.table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-secondary);
}
.table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ══════════════════════════════════════════════════════════════
   17. EMPTY STATES & ILLUSTRATIONS
   ══════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}
.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--space-6);
  opacity: 0.4;
}
.empty-state h4 {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}
.empty-state p {
  color: var(--color-text-muted);
  max-width: 400px;
  font-size: var(--text-sm);
}

/* ══════════════════════════════════════════════════════════════
   18. ANIMATIONS & KEYFRAMES
   ══════════════════════════════════════════════════════════════ */
@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 slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(201, 169, 110, 0.2); }
  50% { box-shadow: 0 0 25px rgba(201, 169, 110, 0.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Utility Animation Classes ── */
.animate-fadeIn { animation: fadeIn var(--duration-normal) var(--ease-out); }
.animate-fadeInUp { animation: fadeInUp var(--duration-slow) var(--ease-out); }
.animate-fadeInDown { animation: fadeInDown var(--duration-slow) var(--ease-out); }
.animate-slideInLeft { animation: slideInLeft var(--duration-slow) var(--ease-out); }
.animate-slideInRight { animation: slideInRight var(--duration-slow) var(--ease-out); }
.animate-scaleIn { animation: scaleIn var(--duration-normal) var(--ease-spring); }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-glow { animation: glowPulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }

.delay-1 { animation-delay: 100ms; }
.delay-2 { animation-delay: 200ms; }
.delay-3 { animation-delay: 300ms; }
.delay-4 { animation-delay: 400ms; }
.delay-5 { animation-delay: 500ms; }

/* ══════════════════════════════════════════════════════════════
   19. UTILITY CLASSES
   ══════════════════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.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; }
.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); }

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

.w-full { width: 100%; }
.h-full { height: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

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

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.pointer-events-none { pointer-events: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ══════════════════════════════════════════════════════════════
   20. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 0px;
  }
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

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

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

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

  .modal { max-width: 100%; border-radius: var(--radius-lg); }

  .toast-container {
    top: auto; bottom: var(--space-4);
    left: var(--space-4); right: var(--space-4);
  }
  .toast { min-width: auto; }

  .stepper { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .stepper-line { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-2xl); }
  .btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-sm); }
  .glass-panel { padding: var(--space-4); }
}

/* ══════════════════════════════════════════════════════════════
   PAYMENT MODAL — Stripe Elements Style
   ══════════════════════════════════════════════════════════════ */
#paymentModalOverlay {
  position: fixed; inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}
#paymentModalOverlay.hidden { display: none; }

#paymentModal {
  background: linear-gradient(135deg, rgba(15,23,42,0.97) 0%, rgba(30,41,59,0.97) 100%);
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  width: 100%; max-width: 440px;
  padding: var(--space-8);
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.payment-header {
  display: flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.payment-header .payment-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(234,179,8,0.2), rgba(234,179,8,0.05));
  border: 1px solid rgba(234,179,8,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.payment-header h3 { margin: 0; font-size: var(--text-lg); }
.payment-header p  { margin: 2px 0 0; font-size: var(--text-sm); color: var(--color-text-muted); }

.payment-amount-display {
  text-align: center;
  background: rgba(234,179,8,0.07);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.payment-amount-display .amount-label {
  font-size: var(--text-xs); color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: var(--tracking-wider);
}
.payment-amount-display .amount-value {
  font-size: var(--text-4xl); font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-heading);
  margin: var(--space-2) 0 var(--space-1);
}
.payment-amount-display .amount-desc {
  font-size: var(--text-sm); color: var(--color-text-secondary);
}

.card-input-group { margin-bottom: var(--space-4); }
.card-input-group label {
  display: block; font-size: var(--text-xs);
  color: var(--color-text-muted); text-transform: uppercase;
  letter-spacing: var(--tracking-wider); margin-bottom: var(--space-2);
}
.card-input-group input {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary); font-size: var(--text-base);
  font-family: var(--font-mono); letter-spacing: 1px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.card-input-group input:focus {
  outline: none;
  border-color: rgba(234,179,8,0.5);
  box-shadow: 0 0 0 3px rgba(234,179,8,0.1);
}
.card-input-group input::placeholder { color: var(--color-text-muted); letter-spacing: 0; }

.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

.card-brand-row {
  display: flex; gap: var(--space-2); margin-bottom: var(--space-4);
}
.card-brand {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: var(--space-1) var(--space-2);
  font-size: 10px; color: var(--color-text-muted); font-weight: 600;
}
.card-brand.visa   { color: #1a73e8; }
.card-brand.master { color: #eb001b; }
.card-brand.amex   { color: #007bc4; }

/* Processing animation */
.payment-processing {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; padding: var(--space-8);
  gap: var(--space-4); text-align: center;
}
.payment-processing.active { display: flex; }
.payment-form.hidden { display: none; }

.processing-ring {
  width: 64px; height: 64px;
  border: 3px solid rgba(234,179,8,0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.processing-steps { width: 100%; }
.processing-step {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; font-size: var(--text-sm);
  color: var(--color-text-muted); opacity: 0.4;
  transition: all 0.4s ease;
}
.processing-step.active   { color: var(--color-text-primary); opacity: 1; }
.processing-step.done     { color: var(--color-success); opacity: 1; }
.processing-step .step-icon { font-size: 16px; width: 20px; text-align: center; }

/* Success state */
.payment-success {
  display: none; flex-direction: column; align-items: center;
  justify-content: center; padding: var(--space-8);
  gap: var(--space-4); text-align: center;
}
.payment-success.active { display: flex; }
.success-checkmark {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 3px solid var(--color-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popIn {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.secure-badges {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); margin-top: var(--space-4);
  padding-top: var(--space-4); border-top: 1px solid var(--color-divider);
}
.secure-badge {
  display: flex; align-items: center; gap: var(--space-1);
  font-size: 10px; color: var(--color-text-muted);
}

/* ══════════════════════════════════════════════════════════════
   NOTIFICATION CENTER — Slideout Panel
   ══════════════════════════════════════════════════════════════ */
.notif-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 8000;
  backdrop-filter: blur(2px);
  transition: opacity 0.25s ease;
}
.notif-backdrop.hidden { display: none; }

.notif-panel {
  position: fixed; top: 0; right: 0;
  width: 380px; max-width: 95vw;
  height: 100vh;
  height: 100dvh; /* modern browsers: real viewport height */
  background: linear-gradient(160deg, rgba(15,23,42,0.98) 0%, rgba(10,16,32,0.98) 100%);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -12px 0 40px rgba(0,0,0,0.5);
  z-index: 8100;
  display: flex; flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0.3s;
  visibility: visible;
}
.notif-panel.hidden {
  transform: translateX(110%);
  visibility: hidden;
  pointer-events: none;
}

.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.notif-list {
  flex: 1; overflow-y: auto;
  padding: var(--space-3);
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.notif-item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
  margin-bottom: var(--space-1);
  position: relative;
}
.notif-item:hover { background: rgba(255,255,255,0.05); }
.notif-item.unread {
  background: rgba(234,179,8,0.05);
  border-left: 3px solid rgba(234,179,8,0.5);
  padding-left: calc(var(--space-4) - 3px);
}
.notif-item .notif-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.notif-item .notif-content { flex: 1; min-width: 0; }
.notif-item .notif-title {
  font-weight: 600; font-size: var(--text-sm);
  margin-bottom: 2px;
}
.notif-item .notif-body {
  font-size: var(--text-xs); color: var(--color-text-secondary);
  line-height: 1.4;
}
.notif-item .notif-time {
  font-size: 10px; color: var(--color-text-muted);
  margin-top: 4px;
}
.notif-item .unread-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0; margin-top: 4px;
}

/* Notification bell badge */
.topbar-notification { position: relative; }
.notif-badge {
  position: absolute; top: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-error);
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--color-bg-primary);
  animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.notif-dot {
  position: absolute; top: 2px; right: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-error);
  border: 2px solid var(--color-bg-primary);
}

/* Notification type colors */
.notif-type-booking  { background: rgba(16,185,129,0.15); }
.notif-type-case     { background: rgba(59,130,246,0.15); }
.notif-type-payment  { background: rgba(234,179,8,0.15); }
.notif-type-system   { background: rgba(148,163,184,0.15); }
.notif-type-alert    { background: rgba(239,68,68,0.15); }

/* Document upload zone */
.doc-upload-zone {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.doc-upload-zone:hover, .doc-upload-zone.drag-over {
  border-color: rgba(234,179,8,0.5);
  background: rgba(234,179,8,0.05);
}
.doc-file-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  transition: background 0.15s;
}
.doc-file-row:hover { background: rgba(255,255,255,0.06); }
