:root {
  --bg: #0A0A0F;
  --surface: #12121A;
  --surface-raised: #1C1C2A;
  --surface-high: #232333;
  --border: #2A2A3C;
  --border-subtle: #1E1E2E;
  --primary: #7C3AED;
  --primary-light: #9D6DF7;
  --primary-glow: rgba(124, 58, 237, 0.15);
  --primary-glow-strong: rgba(124, 58, 237, 0.3);
  --accent: #06B6D4;
  --accent-glow: rgba(6, 182, 212, 0.15);
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --text: #F8F8FF;
  --text-secondary: #C4C4D4;
  --text-muted: #6B7280;
  --text-dim: #4B5563;
  --sidebar-width: 240px;
  --topbar-height: 56px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 0 1px var(--primary), 0 4px 24px var(--primary-glow-strong);
}

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

html { font-size: 14px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 600; line-height: 1.3; }

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===================== APP LAYOUT ===================== */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: width 0.25s ease;
  overflow: hidden;
}
.sidebar.collapsed { width: 56px; }
.sidebar.collapsed .sidebar-logo { padding: 0 14px; justify-content: center; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .sidebar-toggle,
.sidebar.collapsed .client-switcher,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .status-dot,
.sidebar.collapsed .user-info { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; }
.sidebar.collapsed .user-profile { justify-content: center; padding: 12px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(124,58,237,0.5));
}
.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  flex: 1;
}
.sidebar-toggle {
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.sidebar-toggle:hover { color: var(--text); background: var(--surface-raised); }

/* Client Switcher */
.client-switcher {
  position: relative;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.client-switcher-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.client-switcher-btn:hover { border-color: var(--primary); background: var(--primary-glow); }
.client-avatar {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}
.client-info { flex: 1; text-align: left; overflow: hidden; }
.client-name { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-status { font-size: 10px; font-weight: 500; }
.client-status.green { color: var(--success); }
.client-status.yellow { color: var(--warning); }

.client-dropdown {
  position: absolute;
  top: calc(100% - 4px);
  left: 12px; right: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 200;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.dropdown-label { padding: 8px 12px 4px; font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  text-align: left; font-size: 13px; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: var(--primary-glow); color: var(--text); }
.dropdown-item.active { color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-item.add-client { color: var(--primary); font-weight: 500; }
.dropdown-client-avatar {
  width: 24px; height: 24px; border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: white;
}

/* Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-section-label {
  padding: 12px 16px 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-item:hover { color: var(--text); background: var(--surface-raised); }
.nav-item.active {
  color: var(--text);
  background: var(--primary-glow);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.nav-item svg { flex-shrink: 0; }
.nav-item span { flex: 1; }
.nav-badge {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.nav-badge.warning { background: var(--warning); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot.running { background: var(--success); box-shadow: 0 0 6px var(--success); animation: pulse 2s infinite; }

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

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}
.user-profile {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #6D28D9, #2563EB);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}
.user-name { display: block; font-size: 13px; font-weight: 600; }
.user-role { font-size: 11px; color: var(--text-muted); }

/* ===================== MAIN CONTENT ===================== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  height: 100vh;
  transition: margin-left 0.25s ease;
  overflow: hidden;
}
.main-content.collapsed { margin-left: 56px; }

/* ===================== TOPBAR ===================== */
.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-menu-btn {
  color: var(--text-muted);
  padding: 6px; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  display: none;
}
.topbar-menu-btn:hover { color: var(--text); background: var(--surface-raised); }
.breadcrumb { font-size: 15px; font-weight: 600; font-family: 'Outfit', sans-serif; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  font-size: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.topbar-btn:hover { color: var(--text); border-color: var(--primary); }
.cmd-hint { color: var(--text-dim); font-size: 11px; }
.notification-btn { position: relative; padding: 7px; }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--error); border-radius: 50%;
  border: 1.5px solid var(--surface);
}
.topbar-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #6D28D9, #2563EB);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}

/* ===================== PAGE CONTAINER ===================== */
.page-container {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
}

/* ===================== COMMON COMPONENTS ===================== */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); font-size: 13.5px; }
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: white; border: 1px solid transparent;
  box-shadow: 0 0 0 0 var(--primary-glow);
}
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 0 20px var(--primary-glow-strong); }
.btn-secondary {
  background: var(--surface-raised); color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--text); background: var(--primary-glow); }
.btn-ghost { color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface-raised); }
.btn-success { background: var(--success); color: white; border: 1px solid transparent; }
.btn-success:hover { background: #0EA572; }
.btn-danger { background: var(--error-bg); color: var(--error); border: 1px solid var(--error); }
.btn-danger:hover { background: var(--error); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 9px; font-size: 11px; border-radius: 5px; }
.btn-icon { padding: 8px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border); }
.card-glow { border-color: var(--primary); background: linear-gradient(135deg, var(--surface), var(--primary-glow)); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 14px; font-weight: 600; font-family: 'Outfit', sans-serif; }
.card-subtitle { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

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

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-primary { background: var(--primary-glow); color: var(--primary-light); border: 1px solid var(--primary); }
.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(239,68,68,0.3); }
.badge-muted { background: var(--surface-raised); color: var(--text-muted); border: 1px solid var(--border); }
.badge-accent { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(6,182,212,0.3); }

/* Platform Icons */
.platform-icon {
  width: 22px; height: 22px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.pi-ig { background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737); color: white; }
.pi-li { background: #0A66C2; color: white; }
.pi-tw { background: #000000; color: white; }
.pi-tt { background: linear-gradient(135deg, #EE1D52, #69C9D0); color: white; }
.pi-fb { background: #1877F2; color: white; }
.pi-em { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; }

/* Metric Cards */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.metric-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.2s;
}
.metric-card:hover::before { opacity: 1; }
.metric-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.metric-value { font-size: 28px; font-weight: 700; font-family: 'Outfit', sans-serif; margin-bottom: 6px; }
.metric-change { font-size: 12px; display: flex; align-items: center; gap: 4px; }
.metric-change.up { color: var(--success); }
.metric-change.down { color: var(--error); }
.metric-icon-wrap {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}

/* Tags */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 500;
  background: var(--surface-raised); color: var(--text-muted);
}

/* Divider */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Avatar */
.avatar {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

/* Input */
.input-group { margin-bottom: 16px; }
.input-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.input {
  width: 100%; padding: 10px 12px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input::placeholder { color: var(--text-dim); }
textarea.input { resize: vertical; min-height: 80px; }

/* Select */
.select {
  width: 100%; padding: 9px 12px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 13px; font-family: 'Inter', sans-serif;
  outline: none; cursor: pointer; appearance: none;
}
.select:focus { border-color: var(--primary); }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-raised); border-radius: var(--radius-sm); border: 1px solid var(--border); width: fit-content; margin-bottom: 20px; }
.tab {
  padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: all 0.15s; cursor: pointer;
}
.tab.active { background: var(--primary); color: white; }
.tab:not(.active):hover { color: var(--text); background: var(--surface-high); }

/* Empty State */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; text-align: center; gap: 12px;
}
.empty-icon { font-size: 40px; margin-bottom: 8px; }
.empty-title { font-size: 18px; font-weight: 600; }
.empty-subtitle { color: var(--text-muted); max-width: 320px; font-size: 13.5px; }

/* ===================== DASHBOARD ===================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.action-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.action-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}
.action-item:last-child { border-bottom: none; }
.action-item-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.action-item-text { flex: 1; }
.action-item-title { font-size: 13px; font-weight: 500; }
.action-item-sub { font-size: 12px; color: var(--text-muted); }
.client-health-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--surface-raised); border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.client-health-card:hover { border-color: var(--primary); }
.health-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hi-green { background: var(--success); }
.hi-yellow { background: var(--warning); }
.hi-red { background: var(--error); }

/* ===================== WHATSAPP HUB ===================== */
.wa-layout {
  display: grid;
  grid-template-columns: 300px 1fr 320px;
  height: calc(100vh - var(--topbar-height) - 56px);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wa-sidebar {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.wa-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.wa-sidebar-title { font-size: 16px; font-weight: 700; font-family: 'Outfit', sans-serif; margin-bottom: 10px; }
.wa-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 10px;
}
.wa-search input { flex: 1; background: none; border: none; color: var(--text); font-size: 13px; outline: none; }
.wa-search input::placeholder { color: var(--text-dim); }
.wa-convo-list { flex: 1; overflow-y: auto; }
.wa-convo-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
  position: relative;
}
.wa-convo-item:hover { background: var(--surface-raised); }
.wa-convo-item.active { background: var(--primary-glow); border-left: 2px solid var(--primary); }
.wa-convo-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}
.wa-convo-info { flex: 1; min-width: 0; }
.wa-convo-name { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.wa-convo-preview { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-convo-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.wa-convo-time { font-size: 11px; color: var(--text-dim); }
.wa-unread {
  background: var(--success); color: white;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.wa-chat {
  display: flex; flex-direction: column;
  background: var(--bg);
  min-height: 0;
  min-width: 0;
}
.wa-chat-header {
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.wa-chat-name { font-size: 15px; font-weight: 700; }
.wa-chat-status { font-size: 12px; color: var(--success); }
.wa-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.wa-msg { max-width: 70%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.wa-msg.client { background: var(--surface-raised); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.wa-msg.agent { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.wa-msg-time { font-size: 10px; margin-top: 4px; opacity: 0.6; }
.wa-msg-sender { font-size: 11px; font-weight: 600; color: var(--primary-light); margin-bottom: 3px; }
.wa-msg-flag {
  font-size: 11px; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px; margin-top: 5px;
  background: var(--warning-bg); color: var(--warning);
}
.wa-input-area {
  padding: 14px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: center;
}
.wa-input {
  flex: 1; padding: 10px 14px;
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 22px; color: var(--text); font-size: 13px; outline: none;
}
.wa-send-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.wa-send-btn:hover { background: var(--primary-light); }
.wa-ai-panel {
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: var(--surface);
}
.wa-ai-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.wa-ai-title { font-size: 14px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.ai-badge { background: var(--primary-glow); color: var(--primary-light); border: 1px solid var(--primary); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.wa-ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-action-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  transition: border-color 0.2s;
}
.ai-action-card:hover { border-color: var(--primary); }
.ai-action-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.ai-suggested-reply {
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
  padding: 10px; background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle); margin-bottom: 10px;
  font-style: italic;
}
.ai-flags { display: flex; flex-direction: column; gap: 6px; }
.ai-flag-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border-subtle);
  font-size: 12px;
}
.ai-flag-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ===================== CALENDAR ===================== */
.calendar-toolbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  flex-wrap: wrap;
}
.cal-week-nav { display: flex; align-items: center; gap: 8px; }
.cal-week-label { font-size: 15px; font-weight: 600; min-width: 160px; text-align: center; }
.cal-grid {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cal-header-cell {
  background: var(--surface);
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.cal-header-cell:last-child { border-right: none; }
.cal-day-name { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.cal-day-num { font-size: 18px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.cal-day-num.today { color: var(--primary); }
.cal-time-col { background: var(--surface); display: flex; flex-direction: column; }
.cal-time-slot { 
  height: 80px; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8px;
  font-size: 11px; color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}
.cal-day-col { background: var(--bg); border-right: 1px solid var(--border); position: relative; }
.cal-day-col:last-child { border-right: none; }
.cal-cell {
  height: 80px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 4px;
  position: relative;
}
.cal-content-block {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  border-left: 3px solid;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 5px;
  transition: transform 0.15s;
}
.cal-content-block:hover { transform: scale(1.02); }
.cal-block-draft { border-left-color: var(--text-dim) !important; }
.cal-block-review { border-left-color: var(--warning) !important; background: var(--warning-bg); }
.cal-block-approved { border-left-color: var(--success) !important; background: var(--success-bg); }
.cal-block-scheduled { border-left-color: var(--accent) !important; background: var(--accent-glow); }
.cal-block-published { border-left-color: var(--primary) !important; background: var(--primary-glow); }

/* ===================== CONTENT STUDIO ===================== */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.content-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.content-card-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--surface-raised);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 32px;
  border-bottom: 1px solid var(--border);
}
.content-card-body { padding: 14px; }
.content-card-platforms { display: flex; gap: 4px; margin-bottom: 8px; }
.content-card-caption { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.content-card-footer { display: flex; align-items: center; justify-content: space-between; }
.tone-score { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); }
.tone-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.tone-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* ===================== ANALYTICS ===================== */
.analytics-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.chart-container { position: relative; height: 200px; }
.insight-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.insight-emoji { font-size: 20px; flex-shrink: 0; }
.insight-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===================== LEAD GEN ===================== */
.kanban-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; }
.kanban-col {
  min-width: 220px; max-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  max-height: calc(100vh - 240px);
}
.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.kanban-col-title { font-size: 13px; font-weight: 600; }
.kanban-col-count { 
  background: var(--surface-raised); color: var(--text-muted);
  font-size: 11px; font-weight: 700; width: 20px; height: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.kanban-cards { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.lead-card {
  background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
  cursor: pointer; transition: border-color 0.15s, transform 0.15s;
}
.lead-card:hover { border-color: var(--primary); transform: translateY(-1px); }
.lead-company { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.lead-contact { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.lead-score { display: flex; align-items: center; gap: 5px; }
.score-bar { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 2px; }
.score-text { font-size: 11px; font-weight: 700; }
.score-high .score-fill { background: var(--success); }
.score-medium .score-fill { background: var(--warning); }
.score-low .score-fill { background: var(--error); }

/* ===================== AGENTS PAGE ===================== */
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.agent-card:hover { border-color: var(--primary); }
.agent-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.agent-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.agent-name { font-size: 14px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.agent-desc { font-size: 12px; color: var(--text-muted); }
.agent-status-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.agent-status-indicator { width: 8px; height: 8px; border-radius: 50%; }
.asi-running { background: var(--success); animation: pulse 2s infinite; }
.asi-idle { background: var(--text-dim); }
.asi-error { background: var(--error); }
.agent-log { 
  background: var(--bg); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); padding: 10px;
  font-family: 'Courier New', monospace; font-size: 11px;
  color: var(--text-muted); line-height: 1.6; max-height: 80px; overflow: hidden;
}
.log-line { display: block; }
.log-line .ts { color: var(--text-dim); }
.log-line .msg { color: var(--text-secondary); }
.log-line.success .msg { color: var(--success); }
.log-line.warn .msg { color: var(--warning); }

/* ===================== ONBOARDING WIZARD ===================== */
.wizard-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.wizard-steps { display: flex; flex-direction: column; gap: 4px; }
.wizard-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.wizard-step.done { opacity: 0.7; }
.wizard-step.active { background: var(--primary-glow); }
.step-number {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  background: var(--surface-raised); border: 2px solid var(--border);
  color: var(--text-muted);
}
.wizard-step.done .step-number { background: var(--success); border-color: var(--success); color: white; }
.wizard-step.active .step-number { background: var(--primary); border-color: var(--primary); color: white; }
.step-label { font-size: 13px; font-weight: 500; }
.wizard-step.active .step-label { color: var(--text); font-weight: 600; }
.wizard-step.done .step-label { color: var(--text-muted); }
.wizard-content-area {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.wizard-step-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.wizard-step-sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 24px; }
.voice-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.voice-card {
  padding: 16px; border-radius: var(--radius);
  border: 2px solid var(--border); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.voice-card:hover { border-color: var(--primary); background: var(--primary-glow); }
.voice-card.selected { border-color: var(--primary); background: var(--primary-glow); }
.voice-card-emoji { font-size: 28px; margin-bottom: 8px; }
.voice-card-name { font-size: 14px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.voice-card-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.channel-toggle {
  padding: 14px 10px; border-radius: var(--radius);
  border: 2px solid var(--border); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.channel-toggle.selected { border-color: var(--primary); background: var(--primary-glow); }
.channel-toggle:hover { border-color: var(--primary); }
.channel-toggle-name { font-size: 12px; font-weight: 600; }

/* ===================== AI GENERATING ANIMATION ===================== */
.ai-generating {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px; gap: 16px;
}
.ai-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-generating-text { font-size: 15px; font-weight: 600; font-family: 'Outfit', sans-serif; }
.ai-generating-sub { font-size: 13px; color: var(--text-muted); text-align: center; }
.ai-progress-bar { width: 200px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.ai-progress-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

/* ===================== CLIENTS PAGE ===================== */
.client-roster-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.client-roster-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.client-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.client-logo-big {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white; flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
}
.client-card-name { font-size: 16px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.client-card-industry { font-size: 12px; color: var(--text-muted); }
.client-card-channels { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; }
.client-mini-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mini-stat { text-align: center; padding: 8px; background: var(--surface-raised); border-radius: var(--radius-sm); }
.mini-stat-val { font-size: 15px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.mini-stat-label { font-size: 10px; color: var(--text-muted); }

/* ===================== SETTINGS ===================== */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; }
.settings-nav-item {
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.settings-nav-item:hover { background: var(--surface-raised); color: var(--text); }
.settings-nav-item.active { background: var(--primary-glow); color: var(--text); }
.settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.settings-section-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.settings-section-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 13.5px; font-weight: 500; }
.toggle-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toggle {
  width: 40px; height: 22px; background: var(--border); border-radius: 11px;
  position: relative; cursor: pointer; transition: background 0.2s;
}
.toggle.on { background: var(--primary); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: white; transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.toggle.on .toggle-thumb { left: calc(100% - 19px); }

/* ===================== NOTIFICATIONS PANEL ===================== */
.notification-panel {
  position: fixed; top: 60px; right: 16px;
  width: 320px; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  z-index: 500; box-shadow: var(--shadow);
  max-height: 420px; display: flex; flex-direction: column;
}
.notif-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700;
}
.notif-list { flex: 1; overflow-y: auto; }
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
  display: flex; gap: 10px; align-items: flex-start;
}
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 4px; flex-shrink: 0; }
.notif-msg { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* ===================== COMMAND PALETTE ===================== */
.cmd-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
}
.cmd-palette {
  width: 540px; background: var(--surface-raised);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: slideDown 0.15s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.cmd-input-wrapper {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.cmd-input-wrapper input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 15px; outline: none;
}
.cmd-input-wrapper input::placeholder { color: var(--text-dim); }
.cmd-input-wrapper kbd {
  background: var(--border); color: var(--text-muted);
  padding: 2px 6px; border-radius: 4px; font-size: 11px;
}
.cmd-results { max-height: 320px; overflow-y: auto; }
.cmd-section-label {
  padding: 8px 14px 4px; font-size: 10px; font-weight: 700;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px;
}
.cmd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  transition: background 0.1s;
}
.cmd-item:hover, .cmd-item.focused { background: var(--primary-glow); }
.cmd-item-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cmd-item-text { flex: 1; }
.cmd-item-label { font-size: 13.5px; font-weight: 500; }
.cmd-item-sub { font-size: 12px; color: var(--text-muted); }

/* ===================== SLIDE-OVER ===================== */
.slideover-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px);
  z-index: 300;
}
.slideover {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 480px; background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 400; overflow-y: auto;
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.slideover-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 10;
}
.slideover-title { font-size: 18px; font-weight: 700; font-family: 'Outfit', sans-serif; }
.slideover-body { padding: 24px; }

/* ===================== REVENUE TRACKER ===================== */
.revenue-strip {
  background: linear-gradient(135deg, var(--surface), rgba(124,58,237,0.08));
  border: 1px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.revenue-strip::before {
  content: '';
  position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}
.revenue-item { flex: 1; }
.revenue-value { font-size: 26px; font-weight: 800; font-family: 'Outfit', sans-serif; }
.revenue-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.revenue-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ===================== ACTIVITY FEED ===================== */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.activity-item:last-child { border-bottom: none; }
.activity-timeline {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 5px;
  flex-shrink: 0;
}
.activity-line { width: 1px; flex: 1; background: var(--border-subtle); margin-top: 4px; min-height: 20px; }
.activity-text { flex: 1; }
.activity-msg { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.activity-msg strong { color: var(--text); }
.activity-time { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.activity-agent { font-size: 11px; color: var(--primary-light); margin-top: 2px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { width: 56px; }
  .main-content { margin-left: 56px; }
  .sidebar .logo-text, .sidebar .client-switcher,
  .sidebar .nav-section-label, .sidebar .nav-item span,
  .sidebar .nav-badge, .sidebar .status-dot, .sidebar .user-info { display: none; }
  .sidebar .nav-item { justify-content: center; padding: 10px; }
  .sidebar .user-profile { justify-content: center; padding: 12px; }
  .topbar-menu-btn { display: flex; }
  .wa-layout { grid-template-columns: 260px 1fr; }
  .wa-ai-panel { display: none; }
}

/* ===================== MISC UTILS ===================== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.font-semibold { font-weight: 600; }
.text-primary { color: var(--primary-light); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.w-full { width: 100%; }

/* Agent icon backgrounds */
.ai-cal { background: rgba(124,58,237,0.15); color: var(--primary-light); }
.ai-write { background: rgba(6,182,212,0.15); color: var(--accent); }
.ai-img { background: rgba(245,158,11,0.15); color: var(--warning); }
.ai-analytics { background: rgba(16,185,129,0.15); color: var(--success); }
.ai-scraper { background: rgba(239,68,68,0.15); color: var(--error); }
.ai-outreach { background: rgba(99,102,241,0.15); color: #818CF8; }
.ai-wa { background: rgba(37,211,102,0.15); color: #25D366; }

/* ===================== LOGIN PAGE ===================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, var(--surface-raised), var(--bg));
  position: relative;
  overflow: hidden;
}
.login-wrapper::before {
  content: ''; position: absolute; width: 600px; height: 600px;
  background: var(--primary); filter: blur(150px); opacity: 0.15;
  border-radius: 50%; top: -200px; left: -200px;
}
.login-wrapper::after {
  content: ''; position: absolute; width: 500px; height: 500px;
  background: var(--accent); filter: blur(150px); opacity: 0.1;
  border-radius: 50%; bottom: -100px; right: -100px;
}
.login-box {
  width: 100%; max-width: 400px;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}
.login-logo {
  width: 64px; height: 64px; margin: 0 auto 20px auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
}
.login-title { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.login-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }
.login-error {
  background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error); padding: 12px; border-radius: 8px; font-size: 13px;
  margin-bottom: 20px; text-align: center;
}
.login-actions { display: flex; justify-content: flex-end; margin-bottom: 15px; }
.forgot-pwd-link { color: var(--primary-light); font-size: 13px; text-decoration: none; transition: opacity 0.2s; }
.forgot-pwd-link:hover { opacity: 0.8; }

/* ===================== PROFILE DROPDOWN ===================== */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  padding: 8px 0;
  z-index: 100;
  animation: slideDown 0.2s ease;
}
.profile-dropdown-header {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.profile-dropdown-item {
  width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: var(--error);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}
.profile-dropdown-item:hover {
  background: rgba(239, 68, 68, 0.1);
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

