/* ============================================================
   RecruiterIQ — Dark Glassmorphism Design System
   hrm.digitalanthem.io
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:    #020617; /* Even deeper black */
  --bg-secondary:  #0f172a;
  --bg-card:       rgba(30, 41, 59, 0.7); /* More opaque */
  --bg-card-hover: rgba(51, 65, 85, 0.85); /* More opaque */
  --glass-border:  rgba(255, 255, 255, 0.2); /* Much brighter borders */
  --glass-shadow:  0 20px 60px rgba(0,0,0,0.8);

  --accent-purple: #7c5cfc;
  --accent-cyan:   #00d4ff;
  --accent-green:  #00e5a0;
  --accent-orange: #ff8c42;
  --accent-pink:   #ff4d8d;
  --accent-yellow: #ffd166;

  --gradient-main: linear-gradient(135deg, #7c5cfc 0%, #00d4ff 100%);
  --gradient-card: linear-gradient(135deg, rgba(124,92,252,0.15) 0%, rgba(0,212,255,0.08) 100%);
  --gradient-green: linear-gradient(135deg, #00e5a0, #00b4d8);
  --gradient-orange: linear-gradient(135deg, #ff8c42, #ff4d8d);

  --text-primary:   #ffffff;
  --text-secondary: #f1f5f9; /* Brightest Slate */
  --text-muted:     #cbd5e1; /* Much brighter */

  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(124,92,252,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0,212,255,0.06) 0%, transparent 50%);
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(124,92,252,0.4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }

/* ── Glass Card ─────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,92,252,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,92,252,0.1);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-main); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: var(--transition);
}
.btn:hover::before { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient-main); color: #fff;
  box-shadow: 0 4px 20px rgba(124,92,252,0.4);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(124,92,252,0.6); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(124,92,252,0.15); color: var(--accent-purple);
  border: 1px solid rgba(124,92,252,0.3);
}
.btn-secondary:hover { background: rgba(124,92,252,0.25); }

.btn-success { background: var(--gradient-green); color: #fff; box-shadow: 0 4px 20px rgba(0,229,160,0.3); }
.btn-danger  { background: var(--gradient-orange); color: #fff; box-shadow: 0 4px 20px rgba(255,77,141,0.3); }
.btn-ghost   { background: transparent; color: var(--text-secondary); border: 1px solid var(--glass-border); }
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; }
.btn-icon-lg { padding: 10px; width: 44px; height: 44px; }

/* ── Form Controls ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.form-control {
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  padding: 10px 14px; font-size: 14px; font-family: var(--font-main);
  width: 100%; transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: var(--accent-purple);
  background: rgba(124,92,252,0.08);
  box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
}
.form-control::placeholder { color: #64748b; }
select.form-control option { background: var(--bg-secondary); color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: rgba(10, 16, 35, 0.95);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(30px);
  z-index: 100; display: flex; flex-direction: column;
  transition: var(--transition-slow);
  overflow: hidden;
}
.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  font-family: var(--font-display);
  box-shadow: 0 4px 15px rgba(124,92,252,0.5);
}
.sidebar-logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.sidebar-logo-text span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sidebar-logo-sub { font-size: 10px; color: var(--text-muted); margin-top: 1px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-section-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 12px 12px 6px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: var(--transition);
  margin-bottom: 2px; cursor: pointer;
  position: relative;
}
.sidebar-item:hover { background: rgba(124,92,252,0.1); color: var(--text-primary); }
.sidebar-item.active {
  background: rgba(124,92,252,0.18); color: var(--accent-purple);
  font-weight: 600;
}
.sidebar-item.active::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--accent-purple);
  border-radius: 0 4px 4px 0;
}
.sidebar-item-icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-badge {
  margin-left: auto; background: var(--accent-purple);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
}

.sidebar-footer {
  padding: 16px; border-top: 1px solid var(--glass-border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
}
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }

/* ── Main Layout ─────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.main-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-height);
  background: rgba(6, 11, 23, 0.85);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
}
.header-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.main-content { flex: 1; padding: 24px; }

/* ── KPI Cards ───────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.kpi-card::before {
  content: ''; position: absolute;
  top: 0; right: 0; width: 80px; height: 80px;
  border-radius: 50%; opacity: 0.12;
  transition: var(--transition);
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow); }
.kpi-card:hover::before { opacity: 0.2; transform: scale(1.2); }
.kpi-card.purple::before { background: var(--accent-purple); }
.kpi-card.cyan::before   { background: var(--accent-cyan); }
.kpi-card.green::before  { background: var(--accent-green); }
.kpi-card.orange::before { background: var(--accent-orange); }
.kpi-card.pink::before   { background: var(--accent-pink); }

.kpi-icon { font-size: 28px; margin-bottom: 12px; }
.kpi-value {
  font-family: var(--font-display); font-size: 32px; font-weight: 800;
  background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.kpi-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.kpi-change { font-size: 11px; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.kpi-up   { color: var(--accent-green); }
.kpi-down { color: var(--accent-pink); }

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

/* ── Pills / Badges / Status ─────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-purple { background: rgba(124,92,252,0.2); color: var(--accent-purple); border: 1px solid rgba(124,92,252,0.3); }
.badge-cyan   { background: rgba(0,212,255,0.15); color: var(--accent-cyan);   border: 1px solid rgba(0,212,255,0.3); }
.badge-green  { background: rgba(0,229,160,0.15); color: var(--accent-green);  border: 1px solid rgba(0,229,160,0.3); }
.badge-orange { background: rgba(255,140,66,0.15); color: var(--accent-orange); border: 1px solid rgba(255,140,66,0.3); }
.badge-pink   { background: rgba(255,77,141,0.15); color: var(--accent-pink);  border: 1px solid rgba(255,77,141,0.3); }
.badge-gray   { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--glass-border); }
.badge-yellow { background: rgba(255,209,102,0.15); color: var(--accent-yellow); border: 1px solid rgba(255,209,102,0.3); }

/* Stage badge colors */
.stage-new_lead         { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
/* ... (remaining classes follow same pattern) */
.stage-contacted        { background: rgba(0,212,255,0.15); color: #00d4ff; }
.stage-shortlisted      { background: rgba(124,92,252,0.15); color: #7c5cfc; }
.stage-resume_sent      { background: rgba(255,209,102,0.15); color: #ffd166; }
.stage-interview_scheduled { background: rgba(255,140,66,0.15); color: #ff8c42; }
.stage-interview_done   { background: rgba(0,212,255,0.15); color: #00d4ff; }
.stage-selected         { background: rgba(0,229,160,0.15); color: #00e5a0; }
.stage-joined           { background: rgba(0,229,160,0.25); color: #00e5a0; border: 1px solid rgba(0,229,160,0.5); }
.stage-rejected         { background: rgba(255,77,141,0.15); color: #ff4d8d; }
.stage-not_reachable    { background: rgba(255,255,255,0.06); color: #8b9cc4; }

/* ── Pipeline Kanban ─────────────────────────────────────── */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; min-height: 60vh; }
.kanban-column {
  min-width: 240px; max-width: 260px; flex-shrink: 0;
  background: rgba(10, 16, 35, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 200px); overflow: hidden;
}
.kanban-header {
  padding: 14px 16px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--glass-border); flex-shrink: 0;
}
.kanban-count {
  background: rgba(255,255,255,0.1); color: var(--text-secondary);
  font-size: 11px; padding: 2px 8px; border-radius: 20px;
}
.kanban-cards { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: grab; transition: var(--transition);
  position: relative;
}
.kanban-card:hover { border-color: rgba(124,92,252,0.4); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.kanban-card.dragging { opacity: 0.5; cursor: grabbing; }
.kanban-card-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.kanban-card-meta { font-size: 11px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 3px; }
.kanban-card-actions { display: flex; gap: 6px; margin-top: 8px; }

/* ── 3D Candidate Cards ──────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.candidate-card-3d {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(15,25,50,0.9) 0%, rgba(10,16,35,0.95) 100%);
}
.candidate-card-3d::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-card);
  opacity: 0; transition: opacity 0.3s ease;
  border-radius: var(--radius-xl);
}
.candidate-card-3d:hover { transform: perspective(800px) rotateX(4deg) rotateY(-4deg) translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,92,252,0.2); }
.candidate-card-3d:hover::before { opacity: 1; }
.card-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient-main); display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(124,92,252,0.4);
}
.card-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.card-role { font-size: 12px; color: var(--accent-cyan); font-weight: 500; margin-bottom: 12px; }
.card-details { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.card-detail-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.card-actions { display: flex; gap: 8px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,11,23,0.85);
  backdrop-filter: blur(8px); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: rgba(13, 21, 38, 0.98);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 90%; max-width: 700px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--glass-border); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,0.04); border-radius: var(--radius-md); padding: 4px; margin-bottom: 24px; }
.tab {
  flex: 1; padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition); text-align: center;
  border: none; background: transparent;
}
.tab.active { background: var(--gradient-main); color: #fff; box-shadow: 0 2px 12px rgba(124,92,252,0.4); }
.tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* ── Filters Bar ─────────────────────────────────────────── */
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.filter-chip.active { background: rgba(124,92,252,0.2); color: var(--accent-purple); border-color: rgba(124,92,252,0.4); }
.filter-chip:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

/* ── WhatsApp Chat Panel ─────────────────────────────────── */
.wa-chat {
  display: flex; flex-direction: column; height: 400px;
  background: rgba(5, 10, 20, 0.8);
  border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
  overflow: hidden;
}
.wa-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.wa-msg { max-width: 75%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; }
.wa-msg-in  { background: rgba(255,255,255,0.07); color: var(--text-primary); align-self: flex-start; border-radius: 4px 16px 16px 16px; }
.wa-msg-out { background: rgba(124,92,252,0.25); color: var(--text-primary); align-self: flex-end; border-radius: 16px 4px 16px 16px; border: 1px solid rgba(124,92,252,0.3); }
.wa-msg-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.wa-ai-tag { font-size: 10px; color: var(--accent-cyan); background: rgba(0,212,255,0.1); padding: 2px 6px; border-radius: 4px; display: inline-block; margin-bottom: 4px; }
.wa-input-bar { padding: 12px; display: flex; gap: 8px; border-top: 1px solid var(--glass-border); background: rgba(10,16,35,0.6); }
.wa-input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); border-radius: 24px; padding: 10px 16px; color: var(--text-primary); font-size: 13px; outline: none; resize: none; }
.wa-input:focus { border-color: var(--accent-purple); }

/* ── Notifications ───────────────────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(13,21,38,0.98); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: slideInRight 0.3s ease;
  min-width: 280px; max-width: 400px;
}
.toast.success { border-color: rgba(0,229,160,0.3); }
.toast.error   { border-color: rgba(255,77,141,0.3); }
.toast.info    { border-color: rgba(0,212,255,0.3); }
.toast-icon { font-size: 20px; }
.toast-msg  { flex: 1; font-size: 13px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes slideUp   { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideInRight { from{opacity:0;transform:translateX(30px)} to{opacity:1;transform:translateX(0)} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes spin  { to{transform:rotate(360deg)} }
@keyframes glow  { 0%,100%{box-shadow:0 0 10px rgba(124,92,252,0.3)} 50%{box-shadow:0 0 30px rgba(124,92,252,0.6)} }

.animate-in { animation: slideUp 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s infinite; }
.spinning { animation: spin 1s linear infinite; }

/* ── Utility ─────────────────────────────────────────────── */
.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; } .p-6 { padding: 24px; }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.text-muted { color: var(--text-secondary); }
.font-bold { font-weight: 700; } .font-display { font-family: var(--font-display); }
.w-full { width: 100%; } .text-center { text-align: center; }
.text-gradient { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rounded { border-radius: var(--radius-sm); } .rounded-lg { border-radius: var(--radius-lg); }
.border-glass { border: 1px solid var(--glass-border); }
.hidden { display: none !important; }
.section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.divider { border: none; border-top: 1px solid var(--glass-border); margin: 20px 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) { :root { --sidebar-width: 220px; } }
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
}
