/* ============================================================================
   DevEloped LeadDesk — High-Craft Dark UI Stylesheet
   Brand: DevEloped Web Co. (Albuquerque, NM)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --bg-canvas: #090C10;
  --bg-surface: #11161F;
  --bg-elevated: #161C28;
  --bg-elevated-hover: #1D2535;
  --bg-rail: #0D1117;
  --bg-glass: rgba(17, 22, 31, 0.88);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-primary: #3B82F6;
  --accent-primary-hover: #2563EB;
  --accent-indigo: #6366F1;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-purple: #A855F7;
  --accent-cyan: #06B6D4;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: #3B82F6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 24px 64px -8px rgba(0, 0, 0, 0.75);
}

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

html, body {
  height: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* App Shell */
.app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Left Navigation Rail */
.sidebar {
  width: 244px;
  min-width: 244px;
  background: var(--bg-rail);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 30;
  transition: transform 0.22s ease;
}

.brand-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.38);
  flex-shrink: 0;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-name span {
  color: #60A5FA;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.sidebar-cta-wrap {
  padding: 14px 14px 8px;
}

.btn-start-calling-rail {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.28);
  transition: all 0.15s ease;
}

.btn-start-calling-rail:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  filter: brightness(1.06);
}

.nav-list {
  list-style: none;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 12px 10px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.14s ease;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  font-weight: 600;
}

.nav-item.active svg {
  color: #60A5FA;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.nav-badge.urgent {
  background: rgba(244, 63, 94, 0.2);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.nav-badge.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
}

.sidebar-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.operator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.operator-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.operator-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #A5B4FC;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.operator-meta {
  display: flex;
  flex-direction: column;
}

.operator-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.operator-loc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main Content Area */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-canvas);
}

/* Top Utility Bar */
.topbar {
  height: 58px;
  min-height: 58px;
  padding: 0 24px;
  background: var(--bg-rail);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.page-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.global-search-wrap {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.global-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 7px 12px 7px 34px;
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

.global-search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-elevated);
}

.global-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

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

/* View Scroll Container */
.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px 40px;
}

.view-container.no-padding {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  transition: all 0.14s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  background: var(--bg-elevated-hover);
  border-color: var(--border-strong);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 14.5px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--accent-primary);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-emerald {
  background: #10B981;
  border-color: rgba(255, 255, 255, 0.2);
  color: #052E16;
  font-weight: 700;
}

.btn-emerald:hover {
  background: #34D399;
}

.btn-amber {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FBBF24;
}

.btn-amber:hover {
  background: rgba(245, 158, 11, 0.26);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #FB7185;
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn-indigo {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.42);
  color: #A5B4FC;
}

.btn-indigo:hover {
  background: rgba(99, 102, 241, 0.3);
}

/* Pitch Score Badges */
.pitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pitch-badge.high {
  background: rgba(16, 185, 129, 0.16);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.pitch-badge.med {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.pitch-badge.low {
  background: rgba(148, 163, 184, 0.14);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Website Status Badges */
.web-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.web-badge.none {
  background: rgba(244, 63, 94, 0.15);
  color: #FDA4AF;
  border: 1px solid rgba(244, 63, 94, 0.32);
}

.web-badge.weak {
  background: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.web-badge.demo-tag {
  background: rgba(99, 102, 241, 0.2);
  color: #C7D2FE;
  border: 1px solid rgba(99, 102, 241, 0.45);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* Temperature Pills */
.temp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.temp-pill.Hot {
  background: rgba(244, 63, 94, 0.16);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.temp-pill.Warm {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.temp-pill.Cold {
  background: rgba(59, 130, 246, 0.14);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Stage Pill */
.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Cards & Grid Layouts */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Dashboard KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.kpi-card.clickable {
  cursor: pointer;
}

.kpi-card.clickable:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

.kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.progress-track {
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #10B981);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.dashboard-split {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* Pitch Angle Callout Box */
.pitch-angle-box {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.06) 100%);
  border-left: 3px solid #6366F1;
  border-radius: 0 8px 8px 0;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #E2E8F0;
  line-height: 1.45;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.data-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.input, .select, .textarea {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 0.15s ease;
}

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

.textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================================================
   KANBAN PIPELINE BOARD (9 Stages)
   ============================================================================ */
.pipeline-toolbar {
  padding: 14px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kanban-board {
  flex: 1;
  display: flex;
  gap: 14px;
  padding: 18px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  align-items: flex-start;
}

.kanban-col {
  width: 292px;
  min-width: 292px;
  max-height: 100%;
  background: var(--bg-rail);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kanban-col.drag-over {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.06);
}

.kanban-col-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

.stage-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.kanban-cards {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  flex: 1;
}

.kanban-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 12px;
  cursor: grab;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kanban-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  transform: translateY(-1px);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kanban-biz-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.3;
  cursor: pointer;
}

.kanban-biz-name:hover {
  color: #60A5FA;
}

.followup-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.14);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.followup-banner.overdue {
  background: rgba(244, 63, 94, 0.18);
  color: #FB7185;
  border-color: rgba(244, 63, 94, 0.45);
}

/* ============================================================================
   CALL MODE (POWER DIALER FULL SCREEN)
   ============================================================================ */
.dialer-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  height: calc(100vh - 130px);
  min-height: 580px;
}

.dialer-left, .dialer-right {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dialer-lead-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
}

.dialer-body {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.big-call-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

.btn-tap-to-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.35);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tap-to-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.outcome-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.outcome-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--bg-elevated-hover);
}

.outcome-btn .outcome-title {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.outcome-btn .outcome-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.outcome-btn.sold {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
}
.outcome-btn.sold:hover { background: rgba(16, 185, 129, 0.22); }

.outcome-btn.interested {
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.12);
}
.outcome-btn.interested:hover { background: rgba(6, 182, 212, 0.22); }

.outcome-btn.sample {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.14);
}
.outcome-btn.sample:hover { background: rgba(99, 102, 241, 0.25); }

.outcome-btn.callback {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.12);
}
.outcome-btn.callback:hover { background: rgba(168, 85, 247, 0.22); }

.outcome-btn.owner-out {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}
.outcome-btn.owner-out:hover { background: rgba(245, 158, 11, 0.22); }

.outcome-btn.dnc {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
}
.outcome-btn.dnc:hover { background: rgba(244, 63, 94, 0.2); }

.kbd-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
}

/* Scripts Tabs in Call Mode */
.script-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-rail);
  overflow-x: auto;
}

.script-tab {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.script-tab.active {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.4);
}

.script-reader {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-size: 14.5px;
  line-height: 1.68;
  color: #E2E8F0;
  white-space: pre-wrap;
}

.script-highlight {
  color: #60A5FA;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.14);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ============================================================================
   SLIDE-OVER LEAD DETAIL DRAWER & MODALS
   ============================================================================ */
.drawer-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.15s ease;
}

.modal-backdrop {
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lead-drawer {
  width: 680px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-rail);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drawer-body {
  padding: 22px 24px 40px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-card {
  width: 580px;
  max-width: 100%;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-rail);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-rail);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1E293B;
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #F8FAFC;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: fadeIn 0.18s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 1120px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-split {
    grid-template-columns: 1fr;
  }
  .dialer-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .outcome-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .global-search-wrap {
    width: 180px;
  }
}
