/* LeadGen Pro Design System */

/* ============================================
   COLOR TOKENS
   ============================================ */
:root {
  /* Primary */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-primary-dark: #1e40af;
  
  /* Neutral */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  
  /* Score Bands */
  --band-hot: #dc2626;
  --band-hot-bg: #fef2f2;
  --band-warm: #f59e0b;
  --band-warm-bg: #fffbeb;
  --band-cold: #3b82f6;
  --band-cold-bg: #eff6ff;
  --band-skip: #6b7280;
  --band-skip-bg: #f3f4f6;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  
  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Sidebar */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 64px;
  --topbar-height: 56px;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
  font-family: var(--font-sans);
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
  line-height: 1.5;
}

/* ============================================
   APP SHELL
   ============================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--color-gray-900);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: width 0.2s ease;
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--color-gray-700);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sidebar-brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-primary), #7c3aed);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
}

.sidebar-brand-text {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.sidebar-nav {
  padding: var(--space-4) 0;
}

.sidebar-section {
  margin-bottom: var(--space-4);
}

.sidebar-section-title {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  color: var(--color-gray-300);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: var(--color-gray-800);
  color: white;
}

.sidebar-link.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.sidebar-link i {
  font-size: var(--text-lg);
  width: 20px;
  text-align: center;
}

/* Main Content */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-sidebar.collapsed + .app-main {
  margin-left: var(--sidebar-collapsed-width);
}

/* Top Bar */
.app-topbar {
  height: var(--topbar-height);
  background: white;
  border-bottom: 1px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4);
  width: 320px;
}

.topbar-search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: var(--text-sm);
}

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

/* Page Container */
.app-content {
  flex: 1;
  padding: var(--space-6);
}

.app-footer {
  margin-top: auto;
  padding: 1rem var(--space-6);
  border-top: 3px solid var(--color-gray-800);
  background: var(--color-gray-100);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-gray-600);
}

.footer-copyright {
  font-weight: 400;
}

.footer-credit {
  color: var(--color-gray-500);
}

.footer-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-by {
  color: var(--color-gray-600);
  font-weight: 500;
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  margin-bottom: var(--space-6);
}

.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.page-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.page-subtitle {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-1);
}

/* ============================================
   KPI STATS
   ============================================ */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.kpi-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.kpi-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-1);
}

.kpi-value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-900);
}

.kpi-change {
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

.kpi-change.positive { color: var(--color-success); }
.kpi-change.negative { color: var(--color-danger); }

/* ============================================
   CARDS
   ============================================ */
.card-elevated {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.card-elevated .card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-gray-100);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-elevated .card-body {
  padding: var(--space-5);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-gray-100);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-weight: 600;
  color: var(--color-gray-700);
}

/* ============================================
   STAT-MINI (Compact Stats)
   ============================================ */
.stat-mini {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
}

.stat-mini-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gray-800);
}

.stat-mini-label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.stat-mini-warning {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}

.stat-mini-warning .stat-mini-value {
  color: #d97706;
}

.stat-mini-primary {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
}

.stat-mini-primary .stat-mini-value {
  color: #2563eb;
}

.stat-mini-success {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #22c55e;
}

.stat-mini-success .stat-mini-value {
  color: #16a34a;
}

.stat-mini-danger {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border-color: #ef4444;
}

.stat-mini-danger .stat-mini-value {
  color: #dc2626;
}

/* ============================================
   AGENT LIST
   ============================================ */
.agent-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.agent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
}

.agent-info {
  display: flex;
  align-items: center;
}

.agent-info i {
  font-size: var(--text-lg);
}

/* ============================================
   STATUS LIST
   ============================================ */
.status-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gray-100);
}

.status-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-label {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* ============================================
   BADGES & CHIPS
   ============================================ */
.badge-band {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
}

.badge-band.hot {
  background: var(--band-hot-bg);
  color: var(--band-hot);
}

.badge-band.warm {
  background: var(--band-warm-bg);
  color: var(--band-warm);
}

.badge-band.cold {
  background: var(--band-cold-bg);
  color: var(--band-cold);
}

.badge-band.skip, .badge-band.d {
  background: var(--band-skip-bg);
  color: var(--band-skip);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.chip:hover {
  background: var(--color-gray-200);
}

.chip.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.chip .chip-count {
  background: var(--color-gray-200);
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.chip.active .chip-count {
  background: var(--color-primary);
  color: white;
}

.chip-danger {
  background: var(--color-danger-light, #fef2f2);
  color: var(--color-danger, #dc3545);
  border-color: var(--color-danger, #dc3545);
}

.chip-danger:hover {
  background: var(--color-danger, #dc3545);
  color: white;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 500;
}

.status-badge.success {
  background: var(--color-success-light);
  color: #065f46;
}

.status-badge.warning {
  background: var(--color-warning-light);
  color: #92400e;
}

.status-badge.danger {
  background: var(--color-danger-light);
  color: #991b1b;
}

.status-badge.info {
  background: var(--color-info-light);
  color: #1e40af;
}

.status-badge.neutral {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
}

/* ICP Badge */
.icp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
}

.icp-badge.pass {
  background: var(--color-success-light);
  color: #065f46;
}

.icp-badge.fail {
  background: var(--color-danger-light);
  color: #991b1b;
}

/* ============================================
   DATA TABLES
   ============================================ */
.data-table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.data-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-gray-100);
  gap: var(--space-4);
}

.data-table-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  min-width: 280px;
}

.data-table-search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: var(--text-sm);
}

.data-table-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

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

.data-table thead {
  background: var(--color-gray-50);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  border-bottom: 1px solid var(--color-gray-200);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-gray-100);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.1s ease;
}

.data-table tbody tr:hover {
  background: var(--color-gray-50);
}

.data-table tbody tr.selected {
  background: var(--color-primary-light);
}

/* Row checkbox */
.row-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Bulk actions bar */
.bulk-actions-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: white;
}

.bulk-actions-bar .selected-count {
  font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  background: white;
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-300);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gray-600);
  border: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}

.btn-sm {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

/* ============================================
   SCORE VISUALIZATION
   ============================================ */
.score-display {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.score-bar {
  width: 60px;
  height: 6px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.score-bar-fill.hot { background: var(--band-hot); }
.score-bar-fill.warm { background: var(--band-warm); }
.score-bar-fill.cold { background: var(--band-cold); }
.score-bar-fill.skip { background: var(--band-skip); }

.score-value {
  font-size: var(--text-sm);
  font-weight: 600;
  min-width: 28px;
  text-align: right;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.empty-state-icon i {
  font-size: var(--text-2xl);
  color: var(--color-gray-400);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.empty-state-description {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  max-width: 400px;
  margin: 0 auto var(--space-6);
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.long { width: 100%; }

/* ============================================
   TOOLTIPS
   ============================================ */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--color-gray-900);
  color: white;
  font-size: var(--text-xs);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  z-index: 1000;
  pointer-events: none;
}

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

/* ============================================
   TOOLBAR
   ============================================ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-gray-200);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.toolbar-count {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.toolbar-count strong {
  color: var(--color-gray-900);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  background: white;
  color: var(--color-gray-700);
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination-btn:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
  color: var(--color-gray-900);
}

.pagination-info {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  padding: 0 var(--space-2);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-muted { color: var(--color-gray-500); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

.font-mono { font-family: var(--font-mono); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-gray-200);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary-light), #e0e7ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.empty-state-icon i {
  font-size: 2rem;
  color: var(--color-primary);
}

.empty-state-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  max-width: 400px;
  margin-bottom: var(--space-4);
}

.empty-state-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   WELCOME BANNER
   ============================================ */
.welcome-banner {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: white;
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-banner-content {
  position: relative;
  z-index: 1;
}

.welcome-banner h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.welcome-banner p {
  opacity: 0.9;
  margin-bottom: var(--space-4);
  max-width: 500px;
}

.welcome-banner .btn-primary {
  background: white;
  color: var(--color-primary);
}

.welcome-banner .btn-primary:hover {
  background: var(--color-gray-100);
}

/* ============================================
   QUICK START CARDS
   ============================================ */
.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.quick-start-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-4);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.quick-start-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  transform: translateY(-2px);
}

.quick-start-card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-start-card-icon i {
  font-size: 1.25rem;
  color: var(--color-primary);
}

.quick-start-card-icon.success {
  background: var(--color-success-light);
}
.quick-start-card-icon.success i {
  color: var(--color-success);
}

.quick-start-card-icon.warning {
  background: var(--color-warning-light);
}
.quick-start-card-icon.warning i {
  color: var(--color-warning);
}

.quick-start-card-content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.quick-start-card-content p {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin: 0;
}

/* ============================================
   STEP INDICATOR
   ============================================ */
.step-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-gray-200);
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 600;
}

.step.active .step-number {
  background: var(--color-primary);
  color: white;
}

.step.completed .step-number {
  background: var(--color-success);
  color: white;
}

.step-label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.step.active .step-label {
  color: var(--color-gray-900);
  font-weight: 500;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--color-gray-200);
  margin: 0 var(--space-2);
}

.step-connector.completed {
  background: var(--color-success);
}

/* ============================================
   EVIDENCE PANELS
   ============================================ */
.evidence-panel {
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  height: 100%;
}

.evidence-panel-header {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-gray-200);
  background: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: var(--text-sm);
}

.evidence-panel-body {
  padding: var(--space-3);
}

.evidence-panel-empty {
  padding: var(--space-4);
  text-align: center;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.evidence-item {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-gray-200);
}

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

.evidence-item a {
  color: var(--color-primary);
  text-decoration: none;
}

.evidence-item a:hover {
  text-decoration: underline;
}

.evidence-signal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-gray-200);
}

.evidence-signal:last-child {
  border-bottom: none;
}

/* ============================================
   CONFIDENCE INDICATORS
   ============================================ */
.confidence-dots {
  display: inline-flex;
  gap: 2px;
}

.confidence-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gray-200);
}

.confidence-dot.filled {
  background: var(--color-primary);
}

.confidence-dot.high {
  background: var(--color-success);
}

.confidence-dot.medium {
  background: var(--color-warning);
}

.confidence-dot.low {
  background: var(--color-gray-400);
}

/* ============================================
   SCORE BADGES & GAUGES
   ============================================ */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
}

.score-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.score-warm {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.score-cold {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.score-skip {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

.score-gauge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
}

.score-gauge::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: white;
}

.score-gauge span {
  position: relative;
  z-index: 1;
}

/* ============================================
   USAGE & BILLING COMPONENTS
   ============================================ */
.plan-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-gray-200);
  overflow: hidden;
  height: 100%;
}

.plan-card-active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.plan-header {
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: white;
  padding: var(--space-5);
  text-align: center;
}

.plan-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.plan-name {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0;
}

.plan-price {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-top: var(--space-1);
}

.plan-body {
  padding: var(--space-5);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--text-sm);
}

.plan-features li:last-child {
  border-bottom: none;
}

.usage-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  padding: var(--space-4);
}

.usage-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-weight: 600;
  color: var(--color-gray-700);
}

.usage-header i {
  font-size: var(--text-lg);
}

.usage-stats {
  margin-bottom: var(--space-2);
}

.usage-current {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gray-800);
}

.usage-limit {
  font-size: var(--text-lg);
  color: var(--color-gray-400);
}

.usage-bar {
  height: 8px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #60a5fa);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.usage-fill-success {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.usage-fill-warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.usage-fill-danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.usage-footer {
  margin-top: var(--space-2);
}

.pricing-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-current {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05), white);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.pricing-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.pricing-limits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-limits li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-gray-100);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.pricing-limits li:last-child {
  border-bottom: none;
}

.pricing-limits strong {
  color: var(--color-gray-800);
}

.section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
}

/* ============================================
   USAGE WIDGET (Dashboard)
   ============================================ */
.usage-widget {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.usage-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-100);
}

.usage-widget-body {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
}

.usage-widget-item {
  flex: 1;
}

.usage-widget-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-600);
  margin-bottom: var(--space-2);
}

.usage-widget-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.usage-widget-progress .usage-bar {
  flex: 1;
}

.usage-widget-stats {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-700);
  min-width: 70px;
  text-align: right;
}

@media (max-width: 768px) {
  .usage-widget-body {
    flex-direction: column;
  }
}

/* ============================================
   INFO PANEL
   ============================================ */
.info-panel {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
}

.info-panel-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light, #e0e7ff);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  font-size: 1.25rem;
}

.info-panel-content {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.info-panel-content strong {
  color: var(--color-gray-800);
}

/* ============================================
   AVATAR
   ============================================ */
.avatar-sm {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1rem;
  flex-shrink: 0;
}

.score-gauge.hot {
  background: conic-gradient(#ef4444 calc(var(--score) * 1%), var(--color-gray-200) 0);
  color: #dc2626;
}

.score-gauge.warm {
  background: conic-gradient(#f59e0b calc(var(--score) * 1%), var(--color-gray-200) 0);
  color: #d97706;
}

.score-gauge.cold {
  background: conic-gradient(#3b82f6 calc(var(--score) * 1%), var(--color-gray-200) 0);
  color: #2563eb;
}

.score-gauge.skip {
  background: conic-gradient(#6b7280 calc(var(--score) * 1%), var(--color-gray-200) 0);
  color: #4b5563;
}

/* ============================================
   FEATURE GATING & UPGRADE PROMPTS
   ============================================ */

.upgrade-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: white;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.upgrade-banner-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.upgrade-banner-content {
  flex: 1;
}

.upgrade-banner-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.upgrade-banner-text {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: var(--space-3);
}

.upgrade-banner .btn-upgrade {
  background: white;
  color: #d97706;
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.upgrade-banner .btn-upgrade:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.feature-locked {
  position: relative;
  pointer-events: none;
  opacity: 0.5;
}

.feature-locked::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  z-index: 10;
}

.feature-lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}

.feature-lock-overlay i {
  font-size: 2rem;
  color: var(--color-warning);
  margin-bottom: var(--space-3);
}

.feature-lock-overlay h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-800);
  margin-bottom: var(--space-2);
}

.feature-lock-overlay p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-4);
}

.ai-quota-meter {
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.ai-quota-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-success) 0%, var(--color-warning) 80%, var(--color-danger) 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.ai-quota-text {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  display: flex;
  justify-content: space-between;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-badge-starter {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
}

.plan-badge-pro {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.plan-badge-enterprise {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: white;
}

.plan-badge-trial {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
