/* ══════════════════════════════════════════════════════════
   AfStack Design System
   The Operating System for African Startups
   ══════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Brand Colors - Premium Teal & Warm Ochre/Amber */
  --brand-primary: #0f172a;         /* Teal 600 */
  --brand-primary-light: #334155;   /* Teal 500 */
  --brand-primary-dark: #000000;    /* Teal 700 */
  --brand-accent: #10b981;         /* Amber 500 */
  --brand-accent-light: #34d399;   /* Amber 400 */
  --brand-accent-dark: #059669;    /* Amber 600 */

  /* Surface Colors (Light Mode) */
  --bg-base: #f2f2f2;              /* Slate 50 */
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;          /* Slate 100 */
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-sidebar: #ffffff;           /* Clean white sidebar */

  /* Border & Dividers */
  --border-default: #e2e8f0;       /* Slate 200 */
  --border-subtle: #f1f5f9;        /* Slate 100 */
  --border-strong: #cbd5e1;        /* Slate 300 */
  --border-accent: rgba(13, 148, 136, 0.2);

  /* Text Colors */
  --text-primary: #0f172a;         /* Slate 900 */
  --text-secondary: #475569;       /* Slate 600 */
  --text-tertiary: #64748b;        /* Slate 500 */
  --text-muted: #94a3b8;           /* Slate 400 */
  --text-inverse: #ffffff;

  /* Status Colors */
  --status-success: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.08);
  --status-warning: #f59e0b;
  --status-warning-bg: rgba(245, 158, 11, 0.08);
  --status-danger: #ef4444;
  --status-danger-bg: rgba(239, 68, 68, 0.08);
  --status-info: #06b6d4;          /* Cyan 500 */
  --status-info-bg: rgba(6, 182, 212, 0.08);

  /* Glassmorphism (Light Mode adjusted) */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(13, 148, 136, 0.08);
  --glass-blur: 16px;

  /* Gradients - Teal & Emerald / Ocean */
  --gradient-brand: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --gradient-card: linear-gradient(135deg, rgba(13, 148, 136, 0.04) 0%, rgba(16, 185, 129, 0.02) 100%);
  --gradient-sidebar: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  /* Shadows - Adjusted for Light Mode depth */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 30px rgba(13, 148, 136, 0.1);
  --shadow-glow-accent: 0 0 30px rgba(245, 158, 11, 0.1);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

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

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
  --nav-bg: #000000;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

body.mobile-menu-lock {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

img,
svg,
canvas {
  max-width: 100%;
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.93rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--brand-primary-light);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ── App Layout ───────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--gradient-sidebar);
  border-right: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width var(--transition-base);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-brand-text h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.sidebar-brand-text span {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

.nav-section {
  margin-bottom: var(--space-lg);
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(13, 148, 136, 0.08);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(13, 148, 136, 0.12);
  color: var(--brand-primary-light);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--brand-primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.nav-item-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item-badge {
  margin-left: auto;
  background: var(--brand-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* ── Main Content ─────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-height: 100vh;
  min-width: 0;
  padding-bottom: 160px;
}

/* ── Top Bar ──────────────────────────────────────────────── */
.topbar {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  position: sticky;
  top: 0;
  z-index: 50;
  gap: var(--space-md);
  flex-wrap: wrap;
}

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

.topbar-left h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: #0f172a; }

.topbar-left .stage-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--status-info-bg);
  color: var(--status-info);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
  flex-wrap: wrap;
}

.topbar-search {
  position: relative;
  flex-shrink: 1;
}

.topbar-search input {
  width: 240px;
  padding: 8px 12px 8px 36px;
  background: var(--bg-elevated);
  border-color: var(--border-default);
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.topbar-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 2;
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  position: relative;
}

.topbar-icon-btn:hover {
  background: var(--bg-elevated);
}

.topbar-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.8;
}

.topbar-icon-btn .notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--status-danger);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-base);
}

.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle span {
  width: 16px;
  height: 2px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.topbar.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-scrim {
  display: none;
}

/* ── Page Content ─────────────────────────────────────────── */
.page-content {
  padding: var(--space-xl);
  margin: 0 auto;
  width: min(100%, 1400px);
  max-width: 1400px;
  box-sizing: border-box;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* subtle default shadow to compensate for missing border */
}

.card:hover {
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.79rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.stat-card.purple::before { background: var(--brand-primary); }
.stat-card.green::before { background: var(--brand-accent); }
.stat-card.blue::before { background: var(--status-info); }
.stat-card.yellow::before { background: var(--status-warning); }
.stat-card.red::before { background: var(--status-danger); }
.stat-card.pink::before { background: #ec4899; }

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.stat-card.purple .stat-card-icon { background: rgba(13, 148, 136, 0.12); color: var(--brand-primary-light); }
.stat-card.green .stat-card-icon { background: rgba(16, 185, 129, 0.12); color: var(--brand-accent-light); }
.stat-card.blue .stat-card-icon { background: rgba(59, 130, 246, 0.12); color: var(--status-info); }
.stat-card.yellow .stat-card-icon { background: rgba(245, 158, 11, 0.12); color: var(--status-warning); }
.stat-card.red .stat-card-icon { background: rgba(239, 68, 68, 0.12); color: var(--status-danger); }
.stat-card.pink .stat-card-icon { background: rgba(236, 72, 153, 0.12); color: #f472b6; }

.stat-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.stat-card-label {
  font-size: 0.79rem;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: var(--space-sm);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.stat-card-change.up {
  color: var(--status-success);
  background: var(--status-success-bg);
}

.stat-card-change.down {
  color: var(--status-danger);
  background: var(--status-danger-bg);
}

/* ── Grid Layouts ─────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

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

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
}

.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.79rem;
}

.btn-accent {
  background: var(--brand-accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--brand-accent-dark);
  box-shadow: var(--shadow-glow-accent);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: var(--status-success-bg); color: var(--status-success); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning); }
.badge-danger { background: var(--status-danger-bg); color: var(--status-danger); }
.badge-info { background: var(--status-info-bg); color: var(--status-info); }
.badge-purple { background: rgba(13, 148, 136, 0.12); color: var(--brand-primary-light); }
.badge-neutral { background: rgba(107, 114, 128, 0.15); color: var(--text-secondary); }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  transition: width var(--transition-slow);
}

.progress-bar-fill.green { background: var(--brand-accent); }
.progress-bar-fill.purple { background: var(--brand-primary); }
.progress-bar-fill.blue { background: var(--status-info); }

/* ── Avatar ───────────────────────────────────────────────── */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.79rem;
  color: #fff;
  flex-shrink: 0;
}

.avatar.sm { width: 28px; height: 28px; font-size: 0.68rem; }
.avatar.lg { width: 48px; height: 48px; font-size: 1rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.25rem; }

.avatar-purple { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.avatar-green { background: linear-gradient(135deg, #059669, #34d399); }
.avatar-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.avatar-pink { background: linear-gradient(135deg, #db2777, #f472b6); }
.avatar-yellow { background: linear-gradient(135deg, #d97706, #fbbf24); }
.avatar-orange { background: linear-gradient(135deg, #ea580c, #fb923c); }

/* ── Tables ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-default);
}

.data-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(13, 148, 136, 0.03);
}

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

/* ── Activity Feed ────────────────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.86rem;
}

.activity-icon.doc { background: var(--status-info-bg); color: var(--status-info); }
.activity-icon.check { background: var(--status-success-bg); color: var(--status-success); }
.activity-icon.money { background: rgba(16, 185, 129, 0.12); color: var(--brand-accent-light); }
.activity-icon.flag { background: rgba(13, 148, 136, 0.12); color: var(--brand-primary-light); }
.activity-icon.handshake { background: rgba(245, 158, 11, 0.12); color: var(--status-warning); }
.activity-icon.award { background: rgba(236, 72, 153, 0.12); color: #f472b6; }
.activity-icon.calendar { background: rgba(107, 114, 128, 0.12); color: var(--text-secondary); }

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-message {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.activity-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Milestone Timeline ───────────────────────────────────── */
.milestone-timeline {
  position: relative;
  --milestone-rail-x: 8px;
  --milestone-content-offset: 28px;
  --milestone-dot-size: 14px;
  --milestone-dot-half: 7px;
  padding-left: var(--milestone-content-offset);
}

.milestone-timeline::before {
  content: '';
  position: absolute;
  left: var(--milestone-rail-x);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-default);
}

.milestone-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.milestone-item:last-child {
  padding-bottom: 0;
}

.milestone-dot {
  position: absolute;
  left: calc(var(--milestone-rail-x) - var(--milestone-content-offset) - var(--milestone-dot-half) + 1px);
  top: 4px;
  width: var(--milestone-dot-size);
  height: var(--milestone-dot-size);
  border-radius: var(--radius-full);
  border: 2px solid;
  background: var(--bg-card);
}

.milestone-item.completed .milestone-dot {
  background: var(--status-success);
  border-color: var(--status-success);
}

.milestone-item.active .milestone-dot {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
  animation: milestone-pulse 2s infinite;
}

.milestone-item.upcoming .milestone-dot {
  border-color: var(--border-strong);
}

@keyframes milestone-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.05); }
}

.milestone-title {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.milestone-item.upcoming .milestone-title {
  color: var(--text-secondary);
}

.milestone-desc {
  font-size: 0.79rem;
  color: var(--text-tertiary);
}

.milestone-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Health Score Ring ─────────────────────────────────────── */
.health-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.health-ring svg {
  transform: rotate(-90deg);
}

.health-ring-bg {
  fill: none;
  stroke: var(--bg-elevated);
  stroke-width: 8;
}

.health-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

.health-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.health-ring-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.health-ring-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.empty-state-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 1.5;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.86rem;
  color: var(--text-tertiary);
  max-width: 360px;
  margin-bottom: var(--space-lg);
}

/* ── Chart Bars (CSS-only mini charts) ────────────────────── */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.mini-chart-bar {
  flex: 1;
  background: var(--brand-primary);
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
  transition: all var(--transition-fast);
  min-width: 6px;
}

.mini-chart-bar:hover {
  opacity: 1;
}

.mini-chart-bar:last-child {
  opacity: 1;
  background: var(--brand-accent);
}

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-elevated);
  padding: 3px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.tab {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Filter / Search Bar ──────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-bar .search-input {
  flex: 1;
  min-width: 200px;
}

/* ── Pipeline Stage Cards ─────────────────────────────────── */
.pipeline-stage {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.79rem;
  font-weight: 600;
}

.pipeline-stage.researching { background: rgba(107, 114, 128, 0.12); color: var(--text-secondary); }
.pipeline-stage.applied { background: var(--status-info-bg); color: var(--status-info); }
.pipeline-stage.pitch { background: rgba(245, 158, 11, 0.12); color: var(--status-warning); }
.pipeline-stage.negotiation { background: rgba(13, 148, 136, 0.12); color: var(--brand-primary-light); }
.pipeline-stage.won { background: var(--status-success-bg); color: var(--status-success); }
.pipeline-stage.lost { background: var(--status-danger-bg); color: var(--status-danger); }

/* ── Donut Chart (CSS) ────────────────────────────────────── */
.donut-chart {
  position: relative;
  width: 160px;
  height: 160px;
}

.donut-chart svg {
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.donut-center-label {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 0.86rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Quick Bar Chart ──────────────────────────────────────── */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.bar-chart-label {
  width: 36px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: right;
  flex-shrink: 0;
}

.bar-chart-track {
  flex: 1;
  height: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.bar-chart-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding-left: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: width 0.8s ease-out;
}

.bar-chart-fill.revenue { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.bar-chart-fill.expenses { background: linear-gradient(90deg, #ef4444, #f87171); }

.bar-chart-amount {
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 80px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Document Card ────────────────────────────────────────── */
.doc-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.doc-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.doc-icon.legal { background: rgba(13, 148, 136, 0.12); }
.doc-icon.certificate { background: rgba(16, 185, 129, 0.12); }
.doc-icon.template { background: rgba(59, 130, 246, 0.12); }
.doc-icon.investment { background: rgba(245, 158, 11, 0.12); }
.doc-icon.presentation { background: rgba(236, 72, 153, 0.12); }
.doc-icon.financial { background: rgba(16, 185, 129, 0.12); }
.doc-icon.equity { background: rgba(13, 148, 136, 0.12); }

.doc-info {
  flex: 1;
  min-width: 0;
}

.doc-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-meta {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: 2px;
}

/* ── Grant Card ───────────────────────────────────────────── */
.grant-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.grant-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.grant-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.grant-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.grant-card-amount {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-accent-light);
  margin: var(--space-sm) 0;
}

.grant-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.grant-card-detail {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Team Member Card ─────────────────────────────────────── */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.team-card .avatar {
  margin: 0 auto var(--space-md);
}

.team-card-name {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-primary);
}

.team-card-role {
  font-size: 0.79rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.team-card-dept {
  margin-top: var(--space-sm);
}

/* ── Settings Form ────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
}

.form-textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 100px;
  resize: vertical;
}

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

/* ── Cap Table Visualization ──────────────────────────────── */
.cap-table-bar {
  display: flex;
  height: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.cap-table-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: flex var(--transition-slow);
  min-width: 20px;
}

.topbar-nav {
  min-width: 0;
}

.topbar-nav::-webkit-scrollbar {
  display: none;
}

.responsive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.responsive-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.responsive-card-grid {
  display: grid;
  gap: var(--space-lg);
}

.responsive-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.responsive-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.responsive-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
  gap: var(--space-xl);
}

.responsive-main-aside {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: var(--space-xl);
}

.responsive-overlap-hero {
  padding: 0 var(--space-xl);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.responsive-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table table,
.responsive-table .data-table {
  min-width: 640px;
}

.responsive-stack {
  display: flex;
  gap: var(--space-lg);
}

/* ── Keyframe Animations ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease-out both;
}

.animate-in-delay-1 { animation-delay: 0.05s; }
.animate-in-delay-2 { animation-delay: 0.1s; }
.animate-in-delay-3 { animation-delay: 0.15s; }
.animate-in-delay-4 { animation-delay: 0.2s; }
.animate-in-delay-5 { animation-delay: 0.25s; }
.animate-in-delay-6 { animation-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-2-1, .grid-1-2 {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: var(--space-sm) var(--space-lg);
  }

  .topbar-search input {
    width: 180px;
  }

  .responsive-main-aside,
  .responsive-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .responsive-two-col,
  .responsive-three-col {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: var(--space-lg);
  }

  .responsive-overlap-hero {
    padding: 0;
    margin-top: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .page-content {
    padding: var(--space-md);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    padding: 12px var(--space-md);
    gap: var(--space-sm);
  }

  .topbar.mobile-menu-open {
    z-index: 120;
  }

  .topbar-left {
    grid-column: 1;
    grid-row: 1;
    flex: 0 0 auto;
  }

  .topbar-left a {
    margin-right: 0 !important;
  }

  .topbar-right {
    display: contents;
  }

  .topbar-search {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    margin-top: 2px;
  }

  .topbar-search input {
    width: 100%;
  }

  .mobile-menu-toggle {
    display: flex;
    grid-column: 5;
    grid-row: 1;
    position: relative;
    z-index: 130;
  }

  .topbar-icon-btn {
    grid-row: 1;
  }

  .topbar-icon-btn[data-tooltip="Notifications"] {
    grid-column: 3;
  }

  .topbar-avatar {
    grid-column: 4;
    grid-row: 1;
  }

  .topbar-nav {
    display: flex !important;
    position: fixed;
    top: 0 !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: min(88vw, 320px) !important;
    height: 100dvh;
    background: var(--nav-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -24px 0 0 var(--nav-bg), 24px 0 50px rgba(2, 6, 23, 0.35);
    grid-column: auto !important;
    grid-row: auto !important;
    flex: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 84px 0 24px;
    margin: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--transition-base), visibility var(--transition-base);
    z-index: 90;
  }

  .topbar.mobile-menu-open .topbar-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .topbar-nav::before {
    content: 'Menu';
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0 18px;
    margin: 0 0 10px;
  }

  .topbar-nav a {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    white-space: nowrap;
    padding: 12px !important;
    width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
    border-radius: 10px !important;
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .topbar-nav a > svg:last-child {
    margin-left: auto;
  }

  .topbar-nav a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  .topbar-nav .nav-dropdown {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    margin-left: 0 !important;
  }

  .topbar-nav .nav-dropdown > a svg {
    transition: transform var(--transition-fast);
  }

  .topbar-nav .nav-dropdown.mobile-submenu-open > a svg {
    transform: rotate(180deg);
  }

  .topbar-nav .dropdown-menu,
  .topbar-nav .nav-dropdown:hover .dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: none;
    padding: 6px;
    width: calc(100% - 36px);
    margin: 6px 18px 8px;
  }

  .topbar-nav .nav-dropdown.mobile-submenu-open .dropdown-menu {
    display: flex;
  }

  .topbar-nav .dropdown-menu a {
    background: transparent !important;
    color: #94a3b8 !important;
    padding: 10px 12px !important;
    font-size: 0.9rem;
  }

  .topbar.mobile-menu-open + .mobile-menu-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.48);
    z-index: 80;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .responsive-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
  }
  .responsive-header > div:first-child {
    flex: 1 1 200px;
    min-width: 0;
  }
  .responsive-header h2 {
    font-size: 1.4rem !important;
  }
  .responsive-header p {
    font-size: 0.85rem !important;
  }
  .responsive-header button,
  .responsive-header .btn {
    white-space: nowrap;
    padding: 8px 14px !important;
    font-size: 0.9rem !important;
  }

  .responsive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  
  .card-actions {
    width: 100%;
  }
  .card-actions > * {

    flex: 1 1 100%;
    justify-content: center;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1 1 auto;
    text-align: center;
  }

  .responsive-table table,
  .responsive-table .data-table {
    min-width: 560px;
  }

  .responsive-stack {
    flex-direction: column;
  }
}

/* ── Scrollbar Styling ────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Tooltip ──────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

[data-tooltip]:hover::after {
  opacity: 1;
}

/* ── Kanban / Task Cards ──────────────────────────────────── */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-fast);
}

.task-card:hover {
  border-color: var(--border-strong);
}

.task-card + .task-card {
  margin-top: var(--space-sm);
}

.task-card-title {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.task-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.task-card-assignee {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.task-card-due {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.priority-dot.high { background: var(--status-danger); }
.priority-dot.medium { background: var(--status-warning); }
.priority-dot.low { background: var(--status-info); }

/* Dropdown Menu Styles */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-menu { 
  display: none; 
  position: absolute; 
  top: 100%; 
  left: 0; 
  background: var(--bg-surface); 
  box-shadow: var(--shadow-md); 
  border-radius: var(--radius-md); 
  border: 1px solid var(--border-default); 
  min-width: 180px; 
  z-index: 100; 
  padding: var(--space-sm) 0; 
  flex-direction: column;
}
.nav-dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu a { 
  padding: 8px 16px; 
  color: var(--text-secondary); 
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.dropdown-menu a:hover { 
  background: var(--bg-base); 
  color: var(--brand-primary); 
}
