/* ===========================
   ABEINGO BOSTON BENEVOLENT FUND
   Design System – CSS Tokens & Base
   =========================== */

:root {
  /* Brand Colors */
  --clr-primary: #1a3a5c;
  --clr-primary-light: #234e7a;
  --clr-primary-dark: #0f2238;
  --clr-accent: #c8963e;
  --clr-accent-light: #e5b96a;
  --clr-accent-dark: #a07030;
  --clr-gold: #d4a840;

  /* Status Colors */
  --clr-active: #16a34a;
  --clr-active-bg: #dcfce7;
  --clr-grace: #d97706;
  --clr-grace-bg: #fef3c7;
  --clr-suspended: #dc2626;
  --clr-suspended-bg: #fee2e2;
  --clr-terminated: #6b7280;
  --clr-terminated-bg: #f3f4f6;

  /* Neutrals */
  --clr-bg: #f0f4f8;
  --clr-surface: #ffffff;
  --clr-surface-2: #f8fafc;
  --clr-border: #e2e8f0;
  --clr-border-focus: #3b82f6;
  --clr-text: #0f172a;
  --clr-text-muted: #64748b;
  --clr-text-light: #94a3b8;

  /* Dark Mode */
  --clr-dark-bg: #0a1628;
  --clr-dark-surface: #0d1f35;
  --clr-dark-surface-2: #112240;
  --clr-dark-border: #1e3a5f;
  --clr-dark-text: #e2e8f0;
  --clr-dark-text-muted: #94a3b8;

  /* Typography */
  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --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;

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

  /* Radii */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.2);
  --shadow-glow: 0 0 20px rgba(200,150,62,0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;

  /* Sidebar */
  --sidebar-width: 260px;
  --topbar-height: 64px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 50%, var(--clr-primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.fade-out { opacity: 0; visibility: hidden; }

.loading-content {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.loading-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.logo-emblem {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: white;
  font-weight: 700;
  box-shadow: 0 0 40px rgba(200,150,62,0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.loading-text {
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-8);
  opacity: 0.9;
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}
.loading-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-gold));
  border-radius: var(--radius-full);
  animation: loading-progress 1.5s ease forwards;
}

@keyframes loading-progress {
  to { width: 100%; }
}

/* ===== APP ROOT ===== */
#app-root {
  min-height: 100vh;
}

/* ===== LAYOUT ===== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: var(--sp-8);
  padding-top: calc(var(--topbar-height) + var(--sp-6));
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--topbar-height);
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-8);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.topbar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--clr-text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}
.topbar-user:hover { background: var(--clr-surface-2); }

.topbar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
}

.topbar-user-info { text-align: right; }
.topbar-user-name { font-size: var(--text-sm); font-weight: 600; }
.topbar-user-role { font-size: var(--text-xs); color: var(--clr-text-muted); }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: var(--sp-6) var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.sidebar-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(200,150,62,0.4);
}

.sidebar-logo-text {
  flex: 1;
  min-width: 0;
}

.sidebar-logo-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.sidebar-logo-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: var(--sp-4) var(--sp-3);
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: var(--sp-4) var(--sp-3) var(--sp-2);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  position: relative;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-nav-item.active {
  background: rgba(200,150,62,0.2);
  color: var(--clr-accent-light);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--clr-accent-light);
  border-radius: 0 2px 2px 0;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.sidebar-nav-badge {
  margin-left: auto;
  background: var(--clr-accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

.sidebar-bottom {
  padding: var(--sp-4) var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}

.toast {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  color: white;
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.5s forwards;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 260px;
  max-width: 380px;
}

.toast.success { background: linear-gradient(135deg, #16a34a, #15803d); }
.toast.error   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.toast.warning { background: linear-gradient(135deg, #d97706, #b45309); }
.toast.info    { background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light)); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--clr-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s ease;
}

.modal-header {
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--clr-text-muted);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

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

/* ===== PAGE HEADER ===== */
.page-header {
  margin-bottom: var(--sp-8);
}

.page-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.2;
}

.page-subtitle {
  font-size: var(--text-base);
  color: var(--clr-text-muted);
  margin-top: var(--sp-1);
}

.page-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.stat-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-color, var(--clr-primary));
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
  background: var(--stat-icon-bg, #EFF6FF);
}

.stat-card-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat-card-label {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  font-weight: 500;
}

.stat-card-trend {
  font-size: var(--text-xs);
  color: var(--clr-active);
  margin-top: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ===== DATA TABLES ===== */
.table-wrapper {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  background: var(--clr-surface);
}

.table-header-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

.table-search {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap input {
  padding: var(--sp-2) var(--sp-4) var(--sp-2) calc(var(--sp-4) + 20px);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--clr-text);
  background: var(--clr-surface-2);
  width: 220px;
  transition: all var(--transition-fast);
}
.search-input-wrap input:focus {
  outline: none;
  border-color: var(--clr-primary);
  width: 280px;
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.search-icon {
  position: absolute;
  left: var(--sp-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--clr-surface-2);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.data-table td {
  padding: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--clr-text);
  border-bottom: 1px solid var(--clr-border);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background var(--transition-fast);
}
.data-table tbody tr:hover { background: var(--clr-surface-2); }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-active    { background: var(--clr-active-bg);     color: var(--clr-active); }
.badge-active .badge-dot { background: var(--clr-active); }
.badge-grace     { background: var(--clr-grace-bg);      color: var(--clr-grace); }
.badge-grace .badge-dot { background: var(--clr-grace); }
.badge-suspended { background: var(--clr-suspended-bg);  color: var(--clr-suspended); }
.badge-suspended .badge-dot { background: var(--clr-suspended); }
.badge-terminated{ background: var(--clr-terminated-bg); color: var(--clr-terminated); }
.badge-terminated .badge-dot { background: var(--clr-terminated); }
.badge-pending   { background: #ede9fe; color: #7c3aed; }
.badge-pending .badge-dot { background: #7c3aed; }

/* ===== CARDS ===== */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
}

.card-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--clr-text);
}

.card-body { padding: var(--sp-6); }

/* ===== MEMBER AVATAR ===== */
.member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.member-info { display: flex; align-items: center; gap: var(--sp-3); }
.member-name { font-weight: 600; font-size: var(--text-sm); }
.member-email { font-size: var(--text-xs); color: var(--clr-text-muted); }

/* ===== ACTION BUTTONS IN TABLE ===== */
.action-btn-group {
  display: flex;
  gap: var(--sp-1);
}

.action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  color: var(--clr-text-muted);
}
.action-btn:hover { background: var(--clr-surface-2); color: var(--clr-text); }

/* ===== AUTH / OTP PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 100%);
  padding: var(--sp-4);
}

.auth-card {
  background: var(--clr-surface);
  padding: var(--sp-10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.action-btn.danger:hover { background: #fee2e2; color: #dc2626; }
.action-btn.primary:hover { background: #eff6ff; color: var(--clr-primary); }
.action-btn.success:hover { background: #dcfce7; color: #16a34a; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes fadeOut {
  to { opacity: 0; transform: translateX(100%); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(200,150,62,0.4); }
  50% { box-shadow: 0 0 40px rgba(200,150,62,0.8); }
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar { left: 0; }
  .mobile-menu-btn { display: flex !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: var(--sp-4); padding-top: calc(var(--topbar-height) + var(--sp-4)); }
  .page-header-top { flex-direction: column; }
}

.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--clr-text);
}

/* ===== LANG SELECTOR ===== */
.lang-select {
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-text);
  background: var(--clr-surface-2);
  cursor: pointer;
}

/* ===== SIDEBAR OVERLAY (mobile) ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
.sidebar-overlay.active { display: block; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-8);
  color: var(--clr-text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--sp-4); }
.empty-state-title { font-size: var(--text-xl); font-weight: 600; color: var(--clr-text); margin-bottom: var(--sp-2); }
.empty-state-text { font-size: var(--text-sm); }
