/* ============================================================
   VISIONGUARD AI — Enterprise Design System
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  /* Backgrounds */
  --bg-base:        #060B14;
  --bg-surface:     #0D1526;
  --bg-elevated:    #111E35;
  --bg-card:        rgba(255,255,255,0.03);
  --bg-card-hover:  rgba(255,255,255,0.055);
  --bg-overlay:     rgba(6,11,20,0.85);

  /* Brand colors */
  --brand-primary:  #3B82F6;
  --brand-violet:   #6366F1;
  --brand-cyan:     #06B6D4;
  --brand-glow:     rgba(59,130,246,0.35);

  /* Semantic */
  --success:        #10B981;
  --success-soft:   rgba(16,185,129,0.12);
  --warning:        #F59E0B;
  --warning-soft:   rgba(245,158,11,0.12);
  --danger:         #EF4444;
  --danger-soft:    rgba(239,68,68,0.12);
  --info:           #06B6D4;
  --info-soft:      rgba(6,182,212,0.12);

  /* Text */
  --text-primary:   #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted:     #475569;
  --text-accent:    #60A5FA;

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-hover:   rgba(255,255,255,0.14);
  --border-accent:  rgba(59,130,246,0.4);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.25);
  --shadow-glow-sm: 0 0 12px rgba(59,130,246,0.2);

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;

  /* Typography */
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand-primary); text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { outline: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Glassmorphism ── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--border);
}
.glass-dark {
  background: rgba(6,11,20,0.7);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--border);
}
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* ── KPI Cards ── */
.kpi-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-base);
  border-radius: inherit;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-card:hover::before { opacity: 1; }
.kpi-card.blue::before  { background: radial-gradient(circle at top right, rgba(59,130,246,0.1), transparent 70%); }
.kpi-card.green::before { background: radial-gradient(circle at top right, rgba(16,185,129,0.1), transparent 70%); }
.kpi-card.amber::before { background: radial-gradient(circle at top right, rgba(245,158,11,0.1), transparent 70%); }
.kpi-card.red::before   { background: radial-gradient(circle at top right, rgba(239,68,68,0.1), transparent 70%); }
.kpi-card.violet::before{ background: radial-gradient(circle at top right, rgba(99,102,241,0.1), transparent 70%); }
.kpi-card.cyan::before  { background: radial-gradient(circle at top right, rgba(6,182,212,0.1), transparent 70%); }

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}
/* ── Typography ── */
.vg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.mono-nums {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}
.kpi-icon {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 18px;
}
.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-top: var(--space-2);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}
.kpi-trend.up   { color: var(--success); background: var(--success-soft); }
.kpi-trend.down { color: var(--danger);  background: var(--danger-soft); }

/* ── Typography ── */
.text-xs  { font-size: 11px; }
.text-sm  { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg  { font-size: 18px; }
.text-xl  { font-size: 22px; }
.text-2xl { font-size: 28px; }
.text-3xl { font-size: 36px; }
.text-4xl { font-size: 48px; }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

.text-gradient {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-violet));
  color: #fff;
  box-shadow: 0 4px 15px rgba(59,130,246,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(59,130,246,0.5); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.11); border-color: var(--border-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }

.btn-success {
  background: linear-gradient(135deg, #059669, var(--success));
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.btn-success:hover { box-shadow: 0 6px 25px rgba(16,185,129,0.5); transform: translateY(-1px); }

.btn-danger {
  background: linear-gradient(135deg, #DC2626, var(--danger));
  color: #fff;
  box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}
.btn-danger:hover { box-shadow: 0 6px 25px rgba(239,68,68,0.5); transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: var(--radius-md); }
.btn-icon-sm { width: 28px; height: 28px; padding: 0; border-radius: var(--radius-sm); font-size: 12px; }
.btn-pill { border-radius: var(--radius-full); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Loading spinner in button */
.btn.loading { pointer-events: none; }
.btn.loading::before {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: var(--space-2);
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-blue    { background: rgba(59,130,246,0.15);  color: #60A5FA; border: 1px solid rgba(59,130,246,0.25); }
.badge-green   { background: rgba(16,185,129,0.15);  color: #34D399; border: 1px solid rgba(16,185,129,0.25); }
.badge-amber   { background: rgba(245,158,11,0.15);  color: #FCD34D; border: 1px solid rgba(245,158,11,0.25); }
.badge-red     { background: rgba(239,68,68,0.15);   color: #FCA5A5; border: 1px solid rgba(239,68,68,0.25); }
.badge-violet  { background: rgba(99,102,241,0.15);  color: #A5B4FC; border: 1px solid rgba(99,102,241,0.25); }
.badge-cyan    { background: rgba(6,182,212,0.15);   color: #67E8F9; border: 1px solid rgba(6,182,212,0.25); }
.badge-gray    { background: rgba(148,163,184,0.1);  color: #94A3B8; border: 1px solid rgba(148,163,184,0.2); }

.badge-dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-pulse::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ── Forms ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-primary);
  background: rgba(59,130,246,0.05);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--bg-elevated); }
.input-group { position: relative; }
.input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; }
.input-group .form-input { padding-left: 36px; }
.input-group .input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

/* ── Table ── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead { background: rgba(255,255,255,0.03); }
.data-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table thead th.sortable { cursor: pointer; user-select: none; }
.data-table thead th.sortable:hover { color: var(--text-primary); }
.data-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--dur-fast);
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table tbody td { padding: 12px 16px; vertical-align: middle; }

/* ── Avatar ── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-violet));
  color: #fff;
  letter-spacing: 0.03em;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 64px; height: 64px; font-size: 22px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,11,20,0.8);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-6);
  opacity: 0; visibility: hidden;
  transition: all var(--dur-base) var(--ease);
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%; max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--dur-base) var(--ease-spring);
}
.modal-backdrop.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 18px; cursor: pointer;
  transition: all var(--dur-fast);
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: var(--space-2);
}
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  min-width: 300px; max-width: 380px;
  font-size: 14px;
  animation: slideInRight var(--dur-base) var(--ease-spring);
}
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error   { border-color: rgba(239,68,68,0.4); }
.toast.warning { border-color: rgba(245,158,11,0.4); }
.toast.info    { border-color: rgba(59,130,246,0.4); }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-dismiss { margin-left: auto; cursor: pointer; color: var(--text-muted); font-size: 14px; }
.toast-dismiss:hover { color: var(--text-primary); }

/* ── Progress Bar ── */
.progress-bar { background: rgba(255,255,255,0.08); border-radius: var(--radius-full); overflow: hidden; height: 6px; }
.progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-violet));
  transition: width 0.6s var(--ease);
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); }
.divider-vertical { width: 1px; background: var(--border); align-self: stretch; }

/* ── Status Indicator ── */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.online  { background: var(--success); box-shadow: 0 0 0 2px var(--success-soft); }
.status-dot.offline { background: var(--text-muted); }
.status-dot.busy    { background: var(--warning); }
.status-dot.alert   { background: var(--danger); animation: pulse-dot 1.5s infinite; }

/* ── Chip / Tag ── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px; color: var(--text-secondary);
  transition: all var(--dur-fast);
  cursor: pointer;
}
.chip:hover, .chip.active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.4);
  color: var(--text-accent);
}

/* ── Camera / Video overlay ── */
.camera-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.camera-wrapper video { width: 100%; display: block; }
.camera-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.face-box {
  position: absolute;
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3);
  animation: face-pulse 2s ease-in-out infinite;
}
.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute; width: 16px; height: 16px;
  border-color: var(--brand-primary);
  border-style: solid;
}
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }

/* Scan line */
.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
  animation: scanline 2s linear infinite;
  box-shadow: 0 0 8px var(--brand-primary);
}

/* ── Layout Utilities ── */
.flex    { display: flex; }
.flex-col { flex-direction: column; }
.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: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: 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-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }

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

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border); }
.hidden { display: none !important; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opacity-0 { opacity: 0; }
.pointer-events-none { pointer-events: none; }

/* ── Section header ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
  flex-wrap: wrap; gap: var(--space-3);
}
.section-title {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: var(--space-3);
}
.section-title .section-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-violet));
  font-size: 16px;
}

/* ── Animations ── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }
@keyframes scanline { 0% { top: 0%; } 100% { top: 100%; } }
@keyframes face-pulse { 0%,100% { box-shadow: 0 0 0 1px rgba(59,130,246,0.3); } 50% { box-shadow: 0 0 0 4px rgba(59,130,246,0.1); } }
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes glow-pulse { 0%,100% { box-shadow: 0 0 20px var(--brand-glow); } 50% { box-shadow: 0 0 40px var(--brand-glow), 0 0 60px rgba(99,102,241,0.2); } }
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }

.anim-fadein   { animation: fadeIn var(--dur-base) var(--ease) both; }
.anim-fadein-up { animation: fadeInUp var(--dur-slow) var(--ease) both; }
.anim-glow     { animation: glow-pulse 3s ease-in-out infinite; }
.anim-float    { animation: float 4s ease-in-out infinite; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .hide-sm { display: none !important; }
}
