/* BobLeads — shared styles (dark + gold theme) */

/* Workspace selector */
.ws-selector { position: relative; }

.ws-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  transition: border-color 0.15s;
}
.ws-dropdown-trigger:hover { border-color: var(--gold); }
.ws-dropdown-trigger svg { flex-shrink: 0; }

.ws-dropdown-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 100;
  min-width: 200px;
  overflow: hidden;
}
.ws-dropdown-menu.open { display: block; }

.ws-dropdown-header {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ws-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.1s;
  gap: 8px;
}
.ws-dropdown-item:hover { background: var(--surface2); }
.ws-dropdown-item.active { color: var(--gold); background: rgba(212,175,55,0.08); }
.ws-dropdown-item svg { color: var(--text-dim); flex-shrink: 0; }
.ws-dropdown-item.active svg { color: var(--gold); }

.ws-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.ws-manage-link { color: var(--text-dim) !important; }
.ws-manage-link:hover { color: var(--text) !important; }
.ws-new-link { color: var(--green) !important; }

/* Role badges */
.role-admin { background: rgba(212,175,55,0.15); color: var(--gold); padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.role-manager { background: rgba(59,130,246,0.15); color: var(--blue); padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.role-viewer { background: rgba(138,154,176,0.15); color: var(--text-dim); padding: 2px 6px; border-radius: 4px; font-size: 11px; }

/* Shared lead badge */
.shared-badge { background: rgba(245,158,11,0.15); color: var(--yellow); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }

/* Workspace cards grid */
.ws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 20px; }
.ws-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 20px; transition: border-color 0.15s; }
.ws-card:hover { border-color: var(--gold-dim); }
.ws-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ws-card-name { font-size: 16px; font-weight: 600; color: var(--text); }
.ws-card-type { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.ws-card-stats { display: flex; gap: 16px; margin-top: 12px; }
.ws-stat { display: flex; flex-direction: column; }
.ws-stat-value { font-size: 20px; font-weight: 600; color: var(--gold); }
.ws-stat-label { font-size: 11px; color: var(--text-dim); }
.ws-card-actions { display: flex; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Agency overview table */
.agency-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.agency-table th { text-align: left; padding: 10px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.agency-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.agency-table tr:hover td { background: var(--surface2); }
.agency-table .ws-name { font-weight: 600; color: var(--text); }
.agency-table .ws-type { font-size: 11px; color: var(--text-dim); }
.agency-table .conv-rate { font-size: 13px; font-weight: 500; }

/* Pipeline customization */
.pipeline-custom { margin-top: 20px; }
.pipeline-status-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pipeline-status-row input[type="text"] { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 4px 8px; color: var(--text); font-size: 13px; }
.pipeline-status-row .lock-icon { color: var(--text-dim); font-size: 11px; }

:root {
  --bg: #111827;
  --surface: #1a2234;
  --surface2: #1f2d42;
  --border: #2a3a52;
  --gold: #D4AF37;
  --gold-dim: #a8892a;
  --text: #f0f0f0;
  --text-dim: #8a9ab0;
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --blue: #3B82F6;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Layout */
.leads-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
}

/* Sidebar */
.leads-sidebar {
  width: 220px;
  min-height: 100vh;
  background: #0c1220;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
}

.leads-sidebar-logo {
  padding: 0 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.leads-sidebar-logo svg { width: 20px; height: 20px; flex-shrink: 0; }

.leads-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.leads-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: color 0.15s, background 0.15s;
  border-left: 3px solid transparent;
}

.leads-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.leads-nav-link.active {
  color: var(--gold);
  background: rgba(212,175,55,0.08);
  border-left-color: var(--gold);
}

.leads-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.leads-nav-link.active svg { opacity: 1; }

/* Main content */
.leads-main {
  flex: 1;
  padding: 32px;
  min-width: 0;
}

.leads-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.leads-page-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

/* Section cards */
.leads-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.leads-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.leads-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Tables */
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.leads-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.leads-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(42,58,82,0.5);
  color: var(--text);
}

.leads-table tr:last-child td { border-bottom: none; }
.leads-table tr:hover td { background: rgba(255,255,255,0.03); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0c1220;
}
.btn-primary:hover { background: #e0bc3f; }

/* Gold = primary action (Run Now) */
.btn-gold {
  background: var(--gold);
  color: #0c1220;
  font-weight: 600;
}
.btn-gold:hover { background: #e0bc3f; }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }

/* Outline for secondary actions like Stop */
.btn-outline {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--surface2); color: var(--text); }

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #263548; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--text); }

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

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-active { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-paused { background: rgba(245,158,11,0.15); color: var(--yellow); }
.badge-stopped { background: rgba(239,68,68,0.15); color: var(--red); }
.badge-draft { background: rgba(59,130,246,0.15); color: var(--blue); }
.badge-approved { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-sent { background: rgba(100,116,139,0.2); color: #94a3b8; }

.badge-score-high { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-score-mid  { background: rgba(245,158,11,0.15); color: var(--yellow); }
.badge-score-low  { background: rgba(239,68,68,0.15); color: var(--red); }

/* Pipeline badges */
.badge-pipeline-new           { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-pipeline-reviewed      { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-pipeline-contacted     { background: rgba(14,165,233,0.15); color: #38bdf8; }
.badge-pipeline-follow_up_needed { background: rgba(245,158,11,0.15); color: var(--yellow); }
.badge-pipeline-replied       { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-pipeline-booked       { background: rgba(236,72,153,0.15); color: #f472b6; }
.badge-pipeline-won          { background: rgba(16,185,129,0.25); color: #34d399; }
.badge-pipeline-lost         { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-pipeline-not_a_fit    { background: rgba(100,116,139,0.2); color: #94a3b8; }
.badge-pipeline-archived     { background: rgba(100,116,139,0.15); color: #64748b; }

/* Score badge large */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.score-badge.high { background: rgba(16,185,129,0.15); color: var(--green); border: 1px solid rgba(16,185,129,0.3); }
.score-badge.mid  { background: rgba(245,158,11,0.15); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.score-badge.low  { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }

/* Next Move card */
.next-move-card {
  background: linear-gradient(135deg, #1a2234 0%, #1f2d42 100%);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.next-move-icon {
  width: 44px;
  height: 44px;
  background: rgba(212,175,55,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.next-move-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.next-move-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Pipeline kanban */
.pipeline-kanban {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.pipeline-col {
  flex: 1;
  min-width: 120px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.pipeline-col:hover { border-color: var(--gold); }

.pipeline-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pipeline-col-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pipeline-col-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 1px 6px;
}

.pipeline-col-sample {
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}

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

/* Empty state */
.leads-empty {
  text-align: center;
  padding: 32px;
  color: var(--text-dim);
}

.leads-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.leads-empty p { font-size: 13px; margin: 4px 0; }
.leads-empty strong { color: var(--text); display: block; margin-bottom: 8px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.form-label span { color: var(--text-dim); font-weight: 400; text-transform: none; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-textarea { resize: vertical; min-height: 80px; }
.form-select { cursor: pointer; }

.form-hint { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* Toggle switch */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(42,58,82,0.5);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-label { font-size: 13px; color: var(--text); }
.toggle-desc  { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 11px;
  transition: background 0.2s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  gap: 4px;
}

.tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Lead profile */
.lead-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.lead-profile-title { flex: 1; }
.lead-profile-title h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.lead-profile-meta { font-size: 12px; color: var(--text-dim); }

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.info-card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-field { margin-bottom: 10px; }
.info-field:last-child { margin-bottom: 0; }

.info-field-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.info-field-value { font-size: 13px; color: var(--text); }
.info-field-value a { color: var(--gold); text-decoration: none; }
.info-field-value a:hover { text-decoration: underline; }

/* Score bar */
.score-bar-container {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.score-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.score-bar-title { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.score-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}
.score-bar-fill.high { background: var(--green); }
.score-bar-fill.mid  { background: var(--yellow); }
.score-bar-fill.low  { background: var(--red); }

.score-reason { font-size: 13px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* AI analysis card */
.ai-analysis-card {
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: var(--radius);
  padding: 16px;
}

.ai-analysis-title {
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 12px;
}

.ai-field { margin-bottom: 12px; }
.ai-field:last-child { margin-bottom: 0; }
.ai-field-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.ai-field-value { font-size: 13.5px; color: var(--text); line-height: 1.5; }

/* Settings tabs */
.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
}

.settings-tab {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: all 0.15s;
}
.settings-tab:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.settings-tab.active { background: rgba(212,175,55,0.1); color: var(--gold); }

/* Action row */
.action-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Stat boxes */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-value { font-size: 24px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* Section divider */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* View all link */
.view-all-link {
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-all-link:hover { text-decoration: underline; }

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--text); }

/* Social link icons */
.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: none;
}
.social-link:hover { color: var(--gold); border-color: var(--gold); }

/* Outreach type badge */
.outreach-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.outreach-type-badge.cold_email    { background: rgba(59,130,246,0.15); color: #60a5fa; }
.outreach-type-badge.follow_up_email { background: rgba(139,92,246,0.15); color: #a78bfa; }
.outreach-type-badge.instagram_dm  { background: rgba(236,72,153,0.15); color: #f472b6; }
.outreach-type-badge.facebook_message { background: rgba(24,119,242,0.15); color: #60a5fa; }
.outreach-type-badge.linkedin_message { background: rgba(10,102,241,0.15); color: #60a5fa; }
.outreach-type-badge.call_script    { background: rgba(16,185,129,0.15); color: var(--green); }
.outreach-type-badge.voicemail     { background: rgba(245,158,11,0.15); color: var(--yellow); }
.outreach-type-badge.text_message  { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.outreach-type-badge.discovery_call { background: rgba(16,185,129,0.15); color: var(--green); }
.outreach-type-badge.partnership_pitch { background: rgba(212,175,55,0.15); color: var(--gold); }
.outreach-type-badge.referral      { background: rgba(168,85,247,0.15); color: #a78bfa; }

/* Schedule row */
.schedule-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(42,58,82,0.5);
}
.schedule-row:last-child { border-bottom: none; }

/* Campaign status pill */
.campaign-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-toggle {
  position: relative;
  width: 36px;
  height: 20px;
}
.schedule-toggle input { opacity: 0; width: 0; height: 0; }
.schedule-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.schedule-toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.schedule-toggle input:checked + .schedule-toggle-slider { background: var(--green); }
.schedule-toggle input:checked + .schedule-toggle-slider::before { transform: translateX(16px); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  max-width: 560px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title { font-size: 18px; font-weight: 600; }
.modal-close {
  width: 28px;
  height: 28px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.modal-close:hover { color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
  .leads-sidebar { width: 180px; }
  .leads-main { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .leads-layout { flex-direction: column; }
  .leads-sidebar { width: 100%; min-height: auto; padding: 12px; }
  .leads-sidebar-logo { padding-bottom: 12px; margin-bottom: 8px; }
  .leads-sidebar-nav { flex-direction: row; overflow-x: auto; }
  .leads-nav-link { padding: 8px 12px; white-space: nowrap; }
  .leads-grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .pipeline-kanban { flex-direction: column; }
  .pipeline-col { min-width: auto; }
}

/* Score dimension breakdown */
.dim-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
}

.dim-label { font-size: 11px; color: var(--text-dim); font-weight: 500; }
.dim-value { font-size: 12px; font-weight: 700; color: var(--text); }

.dim-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.dim-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}
.dim-bar-fill.high { background: var(--green); }
.dim-bar-fill.mid  { background: var(--yellow); }
.dim-bar-fill.low  { background: var(--red); }

/* Outreach draft cards */
.draft-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  border-left: 3px solid var(--border);
}
.draft-card.draft { border-left-color: var(--blue); }
.draft-card.approved { border-left-color: var(--green); }
.draft-card.sent { border-left-color: #64748b; }

.draft-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.draft-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.draft-status-badge.draft { background: rgba(59,130,246,0.15); color: var(--blue); }
.draft-status-badge.approved { background: rgba(16,185,129,0.15); color: var(--green); }
.draft-status-badge.sent { background: rgba(100,116,139,0.2); color: #94a3b8; }

.draft-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.draft-body { font-size: 13px; color: var(--text); line-height: 1.6; }

.draft-email-layout { display: flex; flex-direction: column; gap: 10px; }

.draft-field { display: flex; flex-direction: column; gap: 3px; }

.draft-field-label {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.draft-msg-layout { display: flex; flex-direction: column; gap: 8px; }

.draft-edit-mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.best-opp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Notification bell */
.notif-bell-btn {
  position: relative;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-bell-btn:hover { border-color: var(--gold); color: var(--gold); }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.notif-list { max-height: 360px; overflow-y: auto; }

.notif-empty {
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(42,58,82,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.1s;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item:last-child { border-bottom: none; }

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 4px;
}
.notif-item.unread .notif-dot { background: var(--gold); }
.notif-item.read .notif-dot { background: var(--border); }

.notif-body { flex: 1; }
.notif-title { font-size: 13px; font-weight: 500; color: var(--text); }
.notif-item.read .notif-title { color: var(--text-dim); }
.notif-msg { font-size: 11px; color: var(--text-dim); margin-top: 2px; line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-dim); margin-top: 4px; }

/* Create task inline form */
.create-task-inline {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.create-task-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: end;
}

/* Settings toggle row (campaign settings tab) */
.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42,58,82,0.4);
}
.settings-toggle-row:last-child { border-bottom: none; }

.settings-toggle-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.settings-toggle-desc  { font-size: 11px; color: var(--text-dim); }

/* BobOperator Dashboard — BobLeads section */
.boboperator-leads-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.boboperator-leads-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.boboperator-leads-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leads-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.lead-task-item:hover { border-color: var(--gold); }

.lead-task-item .task-priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lead-task-item .task-priority-dot.high { background: var(--red); }
.lead-task-item .task-priority-dot.medium { background: var(--yellow); }
.lead-task-item .task-priority-dot.low { background: var(--blue); }

.lead-task-info { flex: 1; }
.lead-task-title { font-size: 13px; font-weight: 500; color: var(--text); }
.lead-task-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* WiseLifeOS product badge */
.wiselife-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
}