/* =====================================================
   KuesiAI — Design System
   ===================================================== */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #0d0d1a;
  --bg2: #13132a;
  --bg3: #1a1a35;
  --card: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --sidebar-w: 260px;
  --header-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font: 'Outfit', sans-serif;
}

/* ---- Light Theme ---- */
[data-theme="light"] {
  --bg: #f4f6fb;
  --bg2: #eef0f8;
  --bg3: #e4e7f3;
  --card: rgba(255,255,255,0.85);
  --card-border: rgba(99,102,241,0.12);
  --glass: rgba(255,255,255,0.7);
  --glass-border: rgba(99,102,241,0.15);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow: 0 8px 32px rgba(99,102,241,0.1);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.12);
}
[data-theme="light"] body { background: var(--bg); }
[data-theme="light"] .sidebar { background: var(--bg2); border-color: var(--card-border); }
[data-theme="light"] .header { background: rgba(244,246,251,0.9); border-color: var(--card-border); }
[data-theme="light"] .card { background: var(--card); border-color: var(--card-border); }
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea { background: rgba(255,255,255,0.9); border-color: var(--card-border); color: var(--text); }
[data-theme="light"] .search-input { background: rgba(255,255,255,0.9); color: var(--text); }
[data-theme="light"] .btn-ghost { background: rgba(255,255,255,0.7); color: var(--text-muted); }
[data-theme="light"] .header-btn { background: rgba(255,255,255,0.7); color: var(--text-muted); }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg2); }



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

html { scroll-behavior: smooth; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =====================================================
   LAYOUT
   ===================================================== */
#app { min-height: 100vh; }

.app-layout {
  display: flex;
  min-height: 100vh;
}

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

.page-content {
  flex: 1;
  padding: 28px 32px;
  margin-top: var(--header-h);
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--bg2);
  border-right: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition: transform var(--transition);
}

.sidebar-logo {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--card-border);
}

.logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.logo-text { font-size: 1.2rem; font-weight: 700; }
.logo-text span { color: var(--primary-light); }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 12px 8px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--glass);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(99,102,241,0.2), rgba(139,92,246,0.1));
  color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.2);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 0 3px 3px 0;
}

.nav-icon { font-size: 1.1rem; flex-shrink: 0; }

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--card-border);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition);
}

.user-card:hover { background: var(--card); }

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 0.85rem; font-weight: 600; }
.user-role { font-size: 0.7rem; color: var(--text-muted); }
.user-chevron { color: var(--text-dim); font-size: 0.8rem; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  height: var(--header-h);
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  padding: 0 32px;
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 90;
  gap: 16px;
}

.header-title { font-size: 1.1rem; font-weight: 600; flex: 1; }
.header-title small { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  position: relative;
}

.header-btn:hover { background: var(--card); color: var(--text); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: pulse 2s infinite;
}

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

/* =====================================================
   CARDS & COMPONENTS
   ===================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.card:hover { border-color: rgba(99,102,241,0.2); }

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Stats Cards */
.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.08;
  transform: translate(30px, -30px);
}

.stat-card.indigo::before { background: var(--primary); }
.stat-card.purple::before { background: var(--secondary); }
.stat-card.cyan::before { background: var(--accent); }
.stat-card.green::before { background: var(--success); }

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.25);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.stat-icon.indigo { background: rgba(99,102,241,0.15); }
.stat-icon.purple { background: rgba(139,92,246,0.15); }
.stat-icon.cyan   { background: rgba(6,182,212,0.15); }
.stat-icon.green  { background: rgba(16,185,129,0.15); }

.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 20px;
}
.stat-change.up { background: rgba(16,185,129,0.15); color: var(--success); }
.stat-change.down { background: rgba(239,68,68,0.15); color: var(--danger); }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99,102,241,0.5);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

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

.btn-ghost {
  background: var(--glass);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { color: var(--text); background: var(--card); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 14px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 8px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-active { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.badge-draft { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.badge-closed { background: rgba(148,163,184,0.1); color: var(--text-muted); border: 1px solid var(--card-border); }
.badge-primary { background: rgba(99,102,241,0.15); color: var(--primary-light); border: 1px solid rgba(99,102,241,0.2); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  cursor: pointer;
  display: inline-block;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition);
}
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}
.toggle-switch input:checked ~ .toggle-track { background: rgba(99,102,241,0.3); border-color: var(--primary); }
.toggle-switch input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(20px);
  background: var(--primary);
}

/* Search */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition);
}
.search-input:focus { border-color: var(--primary); background: rgba(99,102,241,0.05); }
.search-input::placeholder { color: var(--text-dim); }

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; }
.page-header p { color: var(--text-muted); font-size: 0.875rem; margin-top: 4px; }

/* Tabs */
.tabs { display: flex; gap: 4px; background: var(--glass); border-radius: var(--radius-sm); padding: 4px; }
.tab-btn {
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { cursor: pointer; color: var(--text-muted); font-size: 1.2rem; background: none; border: none; color: var(--text-muted); padding: 4px; }
.modal-close:hover { color: var(--text); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--success); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--danger); }
.alert-info { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: var(--primary-light); }

/* =====================================================
   UTILITIES
   ===================================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.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; }
.rounded { border-radius: var(--radius-sm); }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--card-border); margin: 20px 0; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease both; }
.slide-in { animation: slideIn 0.3s ease both; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--glass) 25%, rgba(255,255,255,0.08) 50%, var(--glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(99,102,241,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =====================================================
   LUCIDE ICONS
   ===================================================== */
.icon {
  width: 18px; height: 18px;
  stroke-width: 1.75;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-xs  { width: 14px; height: 14px; }
.icon-sm  { width: 16px; height: 16px; }
.icon-md  { width: 20px; height: 20px; }
.icon-lg  { width: 24px; height: 24px; }
.icon-xl  { width: 32px; height: 32px; }
.icon-2xl { width: 40px; height: 40px; }
.icon-stat { width: 28px; height: 28px; stroke-width: 1.5; }

/* Nav icon override */
.nav-icon { display: flex; align-items: center; }
.nav-icon .icon { width: 18px; height: 18px; }

/* =====================================================
   TOAST
   ===================================================== */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 14px 18px;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  min-width: 280px;
}
.toast-success { border-color: rgba(16,185,129,0.3); }
.toast-error   { border-color: rgba(239,68,68,0.3); }
.toast-info    { border-color: rgba(99,102,241,0.3); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main-content { margin-left: 0; }
  .header { left: 0; padding: 0 16px; }
  .page-content { padding: 20px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =====================================================
   NOTIFICATION DROPDOWN
   ===================================================== */
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 300;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}
.notif-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-panel-header h4 { font-size: 0.95rem; font-weight: 700; }
.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--glass); }
.notif-item.unread { background: rgba(99,102,241,0.04); }
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-body p { font-size: 0.82rem; line-height: 1.4; margin-bottom: 3px; }
.notif-body span { font-size: 0.72rem; color: var(--text-dim); }
.notif-unread-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}

/* =====================================================
   SEARCH MODAL
   ===================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.search-modal-overlay.open { opacity: 1; pointer-events: all; }
.search-modal-box {
  width: 100%;
  max-width: 600px;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  transform: translateY(-20px);
  transition: transform 0.2s ease;
}
.search-modal-overlay.open .search-modal-box { transform: translateY(0); }
.search-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--card-border);
}
.search-modal-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
}
.search-modal-input::placeholder { color: var(--text-dim); }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--card-border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--glass); }
.search-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

