/* ============================================================
   LeadsCenter by HiveCliq — Design System v2
   AI-Powered Lead Generation Platform
   ============================================================ */

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

/* ============================================================ VARIABLES */
/* Light Glassmorphism — pastel gradients, frosted white surfaces */
:root {
  --bg-page:        #F0EEFF;
  --bg-surface:     rgba(255,255,255,0.65);
  --bg-sidebar:     rgba(255,255,255,0.72);
  --bg-subtle:      rgba(255,255,255,0.5);

  /* Lead cards */
  --bg-card:        #FFFFFF;
  --text-on-card:   #1A1D21;
  --text-on-card-2: #5F6B76;
  --text-on-card-3: #9BA5AF;
  --border-on-card: rgba(0,0,0,0.06);

  --text-primary:   #1A1D21;
  --text-secondary: #525F7F;
  --text-muted:     #8898AA;

  --border:         rgba(0,0,0,0.08);
  --border-subtle:  rgba(0,0,0,0.04);

  --accent:         #00A884;
  --accent-soft:    rgba(0,168,132,0.10);
  --accent-hover:   #00C49A;
  --accent-glow:    rgba(0,200,154,0.18);

  --success:        #00A884;
  --success-soft:   rgba(0,168,132,0.10);
  --warning:        #F7C948;
  --warning-soft:   rgba(247,201,72,0.10);
  --danger:         #EA4335;
  --danger-soft:    rgba(234,67,53,0.10);

  --hot:            #EA4335;
  --hot-soft:       rgba(234,67,53,0.08);
  --warm:           #F7C948;
  --warm-soft:      rgba(247,201,72,0.08);
  --cold:           #8898AA;
  --cold-soft:      rgba(136,152,170,0.08);

  --shadow-card:    0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-hover:   0 12px 32px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-glass:   0 4px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);

  --glass-bg:       rgba(255,255,255,0.55);
  --glass-border:   rgba(255,255,255,0.6);
  --glass-blur:     16px;

  --radius-sm:      10px;
  --radius-md:      14px;
  --radius-lg:      18px;
  --radius-xl:      22px;
  --radius-pill:    999px;

  --font-heading:   'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-body:      'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:      'DM Mono', 'Courier New', monospace;

  --sidebar-w:      250px;
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(200,180,255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(160,230,220,0.30) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(180,200,255,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(255,220,240,0.15) 0%, transparent 40%);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-hover); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

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

/* ============================================================ SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-sidebar);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-right: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.03);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 14px;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #00E6B8);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,168,132,0.30);
}
.logo-mark img { width: 20px; height: 20px; }
/* Rocket icon via SVG background */
.logo-mark--rocket {
  background: linear-gradient(135deg, #00A884, #00E6B8);
}
.logo-text { line-height: 1.2; }
.logo-text strong { font-size: 13px; font-weight: 700; color: var(--text-primary); display: block; }
.logo-text span    { font-size: 11px; color: var(--text-muted); }

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

/* Sidebar — search profile list (shown under Search Criteria) */
.sidebar-profiles {
  margin: 2px 0 6px 0;
  padding: 2px 0 4px 12px;
  border-left: 2px solid rgba(0,168,132,0.15);
  margin-left: 16px;
}
.sidebar-profile-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 2px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-profile-item:hover {
  background: rgba(0,168,132,0.06);
  color: var(--text-primary);
}
.sidebar-profile-item.active {
  background: rgba(0,200,154,0.12);
  color: var(--text-primary);
}
.sidebar-profile-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.sidebar-profile-dot.is-active {
  background: var(--accent, #00C89A);
  box-shadow: 0 0 0 3px rgba(0,200,154,0.18);
}
.sidebar-profile-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-profile-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,168,132,0.10);
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
}
.nav-item:hover { background: rgba(0,168,132,0.06); color: var(--text-primary); text-decoration: none; }
.nav-item.active {
  background: linear-gradient(135deg, rgba(0,168,132,0.18), rgba(0,200,154,0.10));
  color: var(--accent-hover);
  border: 1px solid rgba(0,168,132,0.2);
  box-shadow: 0 0 12px rgba(0,168,132,0.08);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}
.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.user-meta strong { font-size: 12px; font-weight: 600; color: var(--text-primary); display: block; }
.user-meta span   { font-size: 11px; color: var(--text-muted); }

/* ============================================================ MAIN CONTENT */
/* Note: .main-content base styles are in the responsive section below */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================ CARDS */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-glass);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

/* ============================================================ STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-glass);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.stat-trend {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================ BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.badge-hot      { background: var(--hot-soft);     color: var(--hot); }
.badge-warm     { background: var(--warm-soft);    color: var(--warm); }
.badge-cold     { background: var(--cold-soft);    color: var(--cold); }
.badge-new      { background: var(--accent-soft);  color: var(--accent); }
.badge-contacted{ background: var(--success-soft); color: var(--success); }
.badge-replied  { background: var(--success-soft); color: var(--success); }
.badge-skipped  { background: var(--bg-subtle);    color: var(--text-muted); }

/* ── Match Score Badge (on white cards) ────────────────── */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.score-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.score-high { background: rgba(0,168,132,0.1); color: #0D7A60; }
.score-mid  { background: rgba(247,160,0,0.1); color: #B07A00; }
.score-low  { background: rgba(134,150,160,0.1); color: #6B7B86; }
.score-none { background: #F4F7F9; color: #9BA5AF; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn:hover   { background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn:active  { transform: scale(0.97) translateY(0); }
.btn svg     { width: 14px; height: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00C49A);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0,168,132,0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #00C49A, #00E6B8); box-shadow: 0 4px 16px rgba(0,168,132,0.4); }
.btn-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.btn-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: transparent; }
.btn-sm      { padding: 5px 12px; font-size: 12px; }
.btn-icon    { padding: 7px; }

/* ============================================================ FILTERS */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover  { border-color: var(--accent); color: var(--accent-hover); background: rgba(0,168,132,0.08); }
.chip--muted { opacity: 0.6; }
.chip--muted:hover { opacity: 1; }
.chip--muted.active { opacity: 1; background: var(--text-muted); border-color: var(--text-muted); }
.chip.active {
  background: linear-gradient(135deg, var(--accent), #00C49A);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,168,132,0.3);
}

/* ============================================================ LEAD CARDS */
.leads-list { display: flex; flex-direction: column; gap: 14px; }

.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-on-card);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  color: var(--text-on-card);
}
.lead-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.lead-card.status-contacted { border-left: 3px solid var(--accent); }
.lead-card.status-replied   { border-left: 3px solid #00E6B8; }
.lead-card.status-skipped   { opacity: 0.5; }

.lead-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 12px;
}
.vessel-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-on-card);
  letter-spacing: -0.01em;
}
.vessel-type {
  font-size: 12px;
  color: var(--text-on-card-3);
  margin-top: 3px;
}
.lead-badges { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.lead-contact {
  font-size: 13px;
  color: var(--text-on-card);
  margin-bottom: 4px;
}
.lead-contact .muted { color: var(--text-on-card-3); }
.lead-contact a { font-size: 12px; color: var(--accent); }

.company-summary {
  font-size: 12px;
  color: var(--text-on-card-3);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.5;
}

.match-reasoning {
  font-size: 12px;
  color: var(--text-on-card-2);
  background: #F4F7F9;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.email-preview {
  background: linear-gradient(135deg, rgba(0,168,132,0.06), rgba(0,200,154,0.03));
  border: 1px solid rgba(0,168,132,0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.email-subject {
  font-size: 12px;
  font-weight: 600;
  color: #0D7A60;
  margin-bottom: 6px;
}
.email-body {
  font-size: 12px;
  color: var(--text-on-card-2);
  line-height: 1.6;
  white-space: pre-wrap;
  max-height: 80px;
  overflow: hidden;
  position: relative;
}
.email-body.expanded { max-height: none; }
.email-toggle {
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  margin-top: 4px;
  display: inline-block;
  font-weight: 500;
}

.lead-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
/* Override button styles inside white cards */
.lead-card .btn {
  background: #F4F7F9;
  border-color: #E2E8ED;
  color: var(--text-on-card-2);
}
.lead-card .btn:hover { background: #E8EDF1; }
.lead-card .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.lead-card .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.lead-card .btn-success { background: rgba(0,168,132,0.08); color: var(--accent); border-color: transparent; }
.lead-card .btn-delete { background: #FEF2F2; border-color: #FECACA; color: #DC2626; padding: 5px 12px; font-weight: 500; }
.lead-card .btn-delete:hover { background: #DC2626; color: #fff; border-color: #DC2626; box-shadow: 0 2px 8px rgba(220,38,38,0.3); }

.lead-actions .copy-confirm {
  font-size: 12px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.lead-actions .copy-confirm.show { opacity: 1; }

.lead-notes-area {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-on-card);
  display: none;
}
.lead-notes-area.open { display: block; }
.lead-notes-area textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E2E8ED;
  border-radius: var(--radius-sm);
  background: #F8FAFB;
  color: var(--text-on-card);
  font-size: 13px;
  resize: vertical;
  min-height: 60px;
}
.lead-notes-area textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ============================================================ FORMS (login) */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(200,180,255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(160,230,220,0.30) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(180,200,255,0.25) 0%, transparent 50%);
  padding: 24px;
}
.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-glass);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.login-logo-mark {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  font-family: var(--font-mono);
}
.login-logo-text strong { font-family: var(--font-heading); font-size: 18px; font-weight: 800; display: block; }
.login-logo-text span   { font-size: 12px; color: var(--text-muted); }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.7);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--danger); margin-top: 12px; display: none; }
.form-error.show { display: block; }
.btn-login { width: 100%; padding: 12px; font-size: 14px; margin-top: 8px; justify-content: center; }

/* ============================================================ TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(0,168,132,0.04); }
.data-table tr:last-child td { border-bottom: none; }

/* ============================================================ PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}

/* ============================================================ LOADING / EMPTY */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  gap: 10px;
  font-size: 14px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 64px 24px;
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }
.empty-state h3   { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.empty-state p    { font-size: 13px; color: var(--text-muted); }

/* ============================================================ TOAST */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.toast {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(0,0,0,0.08);
  color: #1A1D21;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  animation: toastIn 0.2s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); color: #fff; }
.toast.error   { background: var(--danger); color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ============================================================ ONBOARDING WIZARD */
.wizard-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse at 10% 10%, rgba(200,180,255,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(160,230,220,0.30) 0%, transparent 50%);
  padding: 24px;
}

.wizard-container {
  width: 100%;
  max-width: 580px;
}

.wizard-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

/* Progress bar */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.wizard-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  flex-shrink: 0;
  transition: all 0.2s;
}
.wizard-step-dot.done {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.wizard-step-dot.current {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.wizard-step-line {
  width: 48px;
  height: 2px;
  background: var(--border);
  transition: background 0.2s;
}
.wizard-step-line.done {
  background: var(--accent);
}

/* Step panels */
.wizard-step {
  display: none;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-glass);
}
.wizard-step.active { display: block; }
.wizard-step h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.wizard-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* AI result card */
.ai-result-card {
  background: rgba(0,168,132,0.08);
  border: 1px solid rgba(0,168,132,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
}
.ai-result-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ai-field {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 4px;
}
.ai-field strong { color: var(--text-secondary); font-weight: 500; }

/* Tag input */
.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tag-suggestion {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s;
}
.tag-suggestion:hover { border-color: var(--accent); color: var(--accent); }
.tag-suggestion.selected { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--accent);
  color: white;
}
.tag-remove {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}
.tag-remove:hover { opacity: 1; }

/* Region grid */
.region-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.region-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.12s;
}
.region-item:hover { border-color: var(--accent); }
.region-item input[type="checkbox"] { accent-color: var(--accent); }
.region-item:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  font-weight: 500;
}

/* Invite URL */
.invite-url-card {
  background: var(--success-soft);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.invite-url {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
}

/* ============================================================ CONTACT ACTION PILLS */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.contact-pill:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* Pill colours — designed for white card background */
.contact-pill--whatsapp {
  background: #E8F8F0;
  color: #1A9E57;
  border-color: #C5EDDA;
}
.contact-pill--whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; box-shadow: 0 2px 8px rgba(37,211,102,0.3); }

.contact-pill--phone {
  background: #F4F7F9;
  color: var(--text-on-card-2);
  border-color: #E2E8ED;
}
.contact-pill--phone:hover { background: #E8EDF1; color: var(--text-on-card); }

.contact-pill--linkedin {
  background: #EBF3FC;
  color: #0A66C2;
  border-color: #CFE1F7;
}
.contact-pill--linkedin:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; box-shadow: 0 2px 8px rgba(10,102,194,0.3); }
.contact-pill--linkedin .verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #E8F8F0;
}

.contact-pill--linkedin-search {
  background: #F4F7FA;
  color: #6B8DB5;
  border-color: #D8E2EC;
  border-style: dashed;
}
.contact-pill--linkedin-search:hover { background: #0A66C2; color: #fff; border-style: solid; box-shadow: 0 2px 8px rgba(10,102,194,0.3); }

.contact-pill--email {
  background: #E8F8F0;
  color: #0D7A60;
  border-color: #C5EDDA;
}
.contact-pill--email:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,168,132,0.3); }

.contact-pill--website {
  background: #F4F7F9;
  color: var(--text-on-card-2);
  border-color: #E2E8ED;
}
.contact-pill--website:hover { background: var(--text-on-card); color: #fff; border-color: var(--text-on-card); }

/* ============================================================ SEARCH PROFILE TABS */
.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.profile-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-tab:hover { border-color: var(--accent); color: var(--accent-hover); background: rgba(0,168,132,0.08); }
.profile-tab.active {
  background: linear-gradient(135deg, var(--accent), #00C49A);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0,168,132,0.3);
}
.profile-tab.is-active-profile .active-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}
.profile-tab.active .active-dot { background: white; }

/* ── Dashboard profile filter chips ─────────────────────────── */
.chip--profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip--profile .active-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  flex-shrink: 0;
}
.chip--profile.active .active-dot { background: white; }

/* ── Profile badge on lead cards ────────────────────────────── */
.lead-card .profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  background: rgba(0,168,132,0.10);
  color: #00956F;
  border: 1px solid rgba(0,168,132,0.22);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.profile-tab-name { white-space: nowrap; }
.profile-tab-count {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}

.btn-activate {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
}
.btn-activate:hover { background: var(--success); color: white; }

/* ============================================================ SKIP MODAL */
.skip-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.skip-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-on-card);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  color: var(--text-on-card);
}
.skip-reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skip-reason-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #E2E8ED;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-on-card-2);
  cursor: pointer;
  transition: all 0.12s;
}
.skip-reason-option:hover { border-color: var(--accent); background: rgba(0,168,132,0.05); }
.skip-reason-option input[type="radio"] { accent-color: var(--accent); }
.skip-reason-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(0,168,132,0.08);
  color: #0D7A60;
  font-weight: 500;
}

/* ============================================================ HIRING BANNER */
.hiring-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  margin: -22px -26px 16px -26px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #FFF8E1, #FFF3CC);
  border-bottom: 1px solid #F0D97A;
  color: #8B6914;
  font-size: 13px;
  line-height: 1.4;
}
.hiring-banner strong {
  color: #6D5210;
}
.lead-card.has-vacancies {
  border-top: 2px solid #F0C840;
}

/* ============================================================ AI ADVISOR */
.advisor-intro {
  margin-bottom: 24px;
}
.advisor-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.advisor-textarea {
  background: rgba(255,255,255,0.06);
  resize: vertical;
  min-height: 70px;
}

.advisor-summary {
  border-left: 3px solid var(--accent);
}

.advisor-category {
  margin-bottom: 16px;
}
.advisor-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}
.advisor-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.advisor-cat-icon svg { width: 18px; height: 18px; }
.advisor-cat-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.advisor-cat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.advisor-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.advisor-item {
  background: var(--bg-card);
  border: 1px solid var(--border-on-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--text-on-card);
}
.advisor-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}
.advisor-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.advisor-item-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-card);
  text-decoration: none;
}
.advisor-item-name:hover {
  color: var(--accent);
  text-decoration: none;
}
.advisor-item-badges {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.type-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  background: #F0F3F5;
  color: #5F6B76;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-verified, .badge-unverified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-verified  { background: #ECFDF5; color: #047857; }
.badge-unverified{ background: #FFFBEB; color: #B45309; }

/* ============================================================
   ARGON-STYLE DASHBOARD
   Gradient hero + overlapping stat cards + colored icon circles.
   Scoped via .main-content:has(.dash-header) so it only affects
   pages that use the .dash-header block.
   ============================================================ */
.main-content:has(.dash-header) {
  position: relative;
  padding-top: 0;
}
.main-content:has(.dash-header)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 260px;
  background:
    radial-gradient(1200px 260px at 18% 0%, rgba(0,200,154,0.22), transparent 60%),
    radial-gradient(900px 300px at 80% 10%, rgba(68,189,255,0.18), transparent 65%),
    linear-gradient(135deg, #0F1F2A 0%, #112A34 50%, #12403B 100%);
  z-index: 0;
  pointer-events: none;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.main-content:has(.dash-header) > * { position: relative; z-index: 1; }

/* Header text contrast on gradient */
.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 120px;
  color: #fff;
  flex-wrap: wrap;
}
.dash-header-left {
  min-width: 0;
  flex: 1 1 auto;
}
.dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.dash-header .dash-title {
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  margin: 0 0 6px 0;
  font-family: var(--font-heading, inherit);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.dash-header .dash-greeting {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  margin: 0;
}

/* Search field sits inline with the button, icon floats inside the input */
.dash-search {
  position: relative;
  width: 260px;
}
.dash-search .dash-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.75);
  pointer-events: none;
}
.dash-header .dash-search .form-input {
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  color: #fff;
  padding: 9px 12px 9px 36px;   /* leave room for the icon */
  font-size: 13px;
  height: 38px;
  box-sizing: border-box;
}
.dash-header .dash-search .form-input::placeholder { color: rgba(255,255,255,0.55); }
.dash-header .dash-search .form-input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.35);
}

/* "Find new leads" button — crisp white pill on dark hero */
.dash-header .btn-primary {
  background: #fff;
  color: var(--accent, #00A884);
  border: 1px solid rgba(255,255,255,0.3);
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.dash-header .btn-primary:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

/* Collapse cleanly on narrow screens */
@media (max-width: 820px) {
  .dash-header-right { width: 100%; margin-top: 8px; }
  .dash-search { flex: 1; width: auto; }
}

/* ── Stat cards (Argon-style) — overlap the gradient strip ─── */
.main-content:has(.dash-header) .stats-grid {
  margin-top: -80px;
  margin-bottom: 28px;
  gap: 20px;
  position: relative;
  z-index: 2;
}
.main-content:has(.dash-header) .stat-card {
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(136,152,170,0.14);
  border-radius: 12px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 30px -10px rgba(15,35,45,0.28), 0 2px 4px rgba(15,35,45,0.06);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  min-height: 118px;
}
.main-content:has(.dash-header) .stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(15,35,45,0.32), 0 4px 10px rgba(15,35,45,0.08);
}
.main-content:has(.dash-header) .stat-card-body { min-width: 0; }

.main-content:has(.dash-header) .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #8898AA;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.main-content:has(.dash-header) .stat-value {
  font-family: var(--font-heading, var(--font-mono));
  font-size: 30px;
  font-weight: 700;
  color: #32325D;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.main-content:has(.dash-header) .stat-indicator {
  font-size: 12px;
  color: #8898AA;
  font-weight: 500;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-content:has(.dash-header) .stat-indicator::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #11CDEF;
  margin-right: 2px;
}
.main-content:has(.dash-header) .stat-card--success .stat-indicator::before { background: #2DCE89; }
.main-content:has(.dash-header) .stat-card--warm    .stat-indicator::before { background: #FB6340; }
.main-content:has(.dash-header) .stat-card--info    .stat-indicator::before { background: #11CDEF; }
.main-content:has(.dash-header) .stat-card--accent  .stat-indicator::before { background: #00A884; }

/* ── Icon circles (gradient tiles, Argon-signature) ─────────── */
.main-content:has(.dash-header) .stat-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #00A884 0%, #00E6B8 100%);
  box-shadow: 0 8px 18px -6px rgba(0,168,132,0.45);
  flex-shrink: 0;
}
.main-content:has(.dash-header) .stat-card-icon i,
.main-content:has(.dash-header) .stat-card-icon svg {
  width: 24px !important; height: 24px !important;
  stroke-width: 2;
}
.main-content:has(.dash-header) .stat-card--success .stat-card-icon {
  background: linear-gradient(135deg, #2DCE89 0%, #2DCECC 100%);
  box-shadow: 0 8px 18px -6px rgba(45,206,137,0.45);
}
.main-content:has(.dash-header) .stat-card--warm .stat-card-icon {
  background: linear-gradient(135deg, #FB6340 0%, #FBB140 100%);
  box-shadow: 0 8px 18px -6px rgba(251,99,64,0.45);
}
.main-content:has(.dash-header) .stat-card--info .stat-card-icon {
  background: linear-gradient(135deg, #11CDEF 0%, #1171EF 100%);
  box-shadow: 0 8px 18px -6px rgba(17,205,239,0.45);
}

/* ── Activity / content section cards on dashboard ──────────── */
.main-content:has(.dash-header) .dash-section {
  background: #FFFFFF;
  border: 1px solid rgba(136,152,170,0.14);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px -14px rgba(15,35,45,0.18);
  margin-bottom: 24px;
}
.main-content:has(.dash-header) .dash-section-title {
  color: #32325D;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-heading, inherit);
}
.main-content:has(.dash-header) .dash-section-meta {
  font-size: 12px;
  color: #8898AA;
}

/* Chip palette on the light activity section */
.main-content:has(.dash-header) .dash-section .chip {
  background: #F6F9FC;
  border-color: #E9ECEF;
  color: #525F7F;
  /* Uniform size so the row reads as a single bar */
  height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  line-height: 1;
  box-sizing: border-box;
}
.main-content:has(.dash-header) .dash-section .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,168,132,0.06);
}
.main-content:has(.dash-header) .dash-section .chip.active {
  background: linear-gradient(135deg, var(--accent), #00C49A);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(0,168,132,0.5);
}

/* Unify both filter rows (profile + status) on the activity section */
.main-content:has(.dash-header) .dash-section .filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0 0 12px 0;
  min-height: 32px;
}
.main-content:has(.dash-header) .dash-section #profile-filter-row {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #EEF2F6;
}
.main-content:has(.dash-header) .dash-section #profile-filter-row > span {
  /* "PROFILE" label — pin it to the same vertical line as the chips */
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin-right: 2px;
}

/* Pagination on light bg */
.main-content:has(.dash-header) .pagination {
  color: #525F7F;
}

/* Header button polish */
.main-content:has(.dash-header) .dash-header-right .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: 0 8px 18px -8px rgba(0,0,0,0.35);
}
.main-content:has(.dash-header) .dash-header-right .btn-primary:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Reduce dashboard sidebar shadow on light hero */
@media (max-width: 820px) {
  .main-content:has(.dash-header)::before { height: 220px; }
  .main-content:has(.dash-header) .stats-grid { margin-top: -70px; }
}

/* ── Advisor history list ───────────────────────────────────── */
.history-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: var(--bg-card);
}
.history-row:hover { border-color: var(--accent); }
.history-row-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.history-row-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--text-muted);
}
.history-row-actions { display: flex; gap: 6px; }
.priority-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
}
.priority-high   { background: rgba(0,168,132,0.1); color: #0D7A60; }
.priority-medium { background: rgba(247,201,72,0.1); color: #8B6914; }
.priority-low    { background: #F0F3F5; color: #5F6B76; }

.advisor-item-why {
  font-size: 13px;
  color: var(--text-on-card-2);
  line-height: 1.6;
  margin-bottom: 8px;
}
.advisor-item-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
  line-height: 1.5;
}
.advisor-item-link {
  display: inline-block;
  font-size: 11px;
  color: var(--text-on-card-3);
  word-break: break-all;
  text-decoration: none;
}
.advisor-item-link:hover { color: var(--accent); text-decoration: underline; }

/* ============================================================
   NEW DASHBOARD — Hero + stat cards + chart cards
   ============================================================ */
.dash-hero {
  background: linear-gradient(135deg, #0F1F2A 0%, #112A34 40%, #0D3B36 70%, #12403B 100%);
  margin: -28px -32px 0;
  padding: 40px 32px 100px;
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(600px 300px at 15% 30%, rgba(0,200,154,0.18), transparent 60%),
    radial-gradient(400px 200px at 85% 20%, rgba(94,114,228,0.12), transparent 50%);
  pointer-events: none;
}
.dash-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-hero-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.dash-hero-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.dash-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 500;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.1); }

/* Stat cards row — overlap the hero */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: -60px 0 28px;
  position: relative;
  z-index: 2;
}
.dash-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px -10px rgba(15,35,45,0.22), 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dash-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(15,35,45,0.28);
}
.dash-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.dash-stat-icon svg, .dash-stat-icon i { width: 22px; height: 22px; }
.dash-stat-icon.bg-accent { background: linear-gradient(135deg, #00A884, #00E6B8); box-shadow: 0 6px 16px -4px rgba(0,168,132,0.4); }
.dash-stat-icon.bg-green  { background: linear-gradient(135deg, #2DCE89, #2DCECC); box-shadow: 0 6px 16px -4px rgba(45,206,137,0.4); }
.dash-stat-icon.bg-blue   { background: linear-gradient(135deg, #5E72E4, #825EE4); box-shadow: 0 6px 16px -4px rgba(94,114,228,0.4); }
.dash-stat-icon.bg-purple { background: linear-gradient(135deg, #8965E0, #BC65E0); box-shadow: 0 6px 16px -4px rgba(137,101,224,0.4); }

.dash-stat-body { min-width: 0; }
.dash-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8898AA;
  margin-bottom: 4px;
}
.dash-stat-value {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #32325D;
  line-height: 1.1;
}
.dash-stat-sub {
  font-size: 12px;
  color: #8898AA;
  margin-top: 4px;
}

/* Chart cards */
.dash-charts-row {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}
.dash-chart-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px -8px rgba(15,35,45,0.12), 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  min-width: 0;
}
.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 0;
}
.dash-chart-header h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #32325D;
  margin: 0;
}
.dash-chart-label {
  font-size: 11px;
  color: #8898AA;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.dash-chart-body {
  padding: 16px 22px 22px;
  min-height: 180px;
}

/* Quick action buttons */
.dash-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  border-radius: 12px;
  background: #F8FAFB;
  border: 1px solid #EEF2F6;
  color: #525F7F;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.dash-quick-btn:hover {
  background: rgba(0,168,132,0.06);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.dash-quick-btn svg, .dash-quick-btn i { width: 20px; height: 20px; }


/* ============================================================
   KANBAN BOARD — Contact cards in drag-drop columns
   ============================================================ */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  min-height: 400px;
}
.kanban-col {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  padding: 0;
  transition: border-color 0.2s, background 0.2s;
}
.kanban-col.drag-over {
  border-color: var(--accent);
  background: rgba(0,168,132,0.08);
}
.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.kanban-col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.kanban-col-dot.new       { background: var(--accent); box-shadow: 0 0 0 3px rgba(0,168,132,0.2); }
.kanban-col-dot.contacted { background: #5E72E4; box-shadow: 0 0 0 3px rgba(94,114,228,0.2); }
.kanban-col-dot.replied   { background: #8965E0; box-shadow: 0 0 0 3px rgba(137,101,224,0.2); }
.kanban-col-dot.skipped   { background: #ADB5BD; box-shadow: 0 0 0 3px rgba(173,181,189,0.2); }

.kanban-col-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.kanban-col-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 10px;
}
.kanban-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
.kanban-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

/* ── Contact card ──────────────────────────────────────── */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-on-card);
  border-radius: 12px;
  padding: 16px;
  cursor: grab;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.2s;
  color: var(--text-on-card);
}
.contact-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.contact-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}
.contact-card:active { cursor: grabbing; }

.contact-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #F0F3F7;
}
.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8EDF1, #D5DDE5);
  color: #5F6B76;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.contact-card-score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.contact-card-score.score-high { background: rgba(0,168,132,0.1); color: #0D7A60; }
.contact-card-score.score-mid  { background: rgba(247,160,0,0.1); color: #B07A00; }
.contact-card-score.score-low  { background: rgba(134,150,160,0.1); color: #6B7B86; }

.contact-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #1A1D21;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-card-title {
  font-size: 12px;
  color: #5F6B76;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-card-company {
  font-size: 12px;
  font-weight: 600;
  color: #8898AA;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-card-profile {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0,168,132,0.08);
  color: #00956F;
  margin-bottom: 8px;
}
/* Verified filter toggle button */
.btn-verified-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-verified-filter:hover {
  border-color: #10B981;
  color: #059669;
  background: rgba(16, 185, 129, 0.04);
}
.btn-verified-filter.active {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-verified-filter.active:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

/* No contact info label */
.contact-card-no-contact {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.08);
  margin-bottom: 8px;
}

/* Verified contact buttons (green) */
.contact-card-verified-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.contact-card-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  letter-spacing: 0.2px;
}
.contact-card-verified:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, #059669, #047857);
  text-decoration: none;
  color: #fff;
}
.contact-card-verified--li {
  background: linear-gradient(135deg, #0A66C2, #004182);
  box-shadow: 0 1px 4px rgba(10, 102, 194, 0.25);
}
.contact-card-verified--li:hover {
  background: linear-gradient(135deg, #004182, #003366);
  box-shadow: 0 3px 10px rgba(10, 102, 194, 0.35);
}
.contact-card-verified--wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.25);
}
.contact-card-verified--wa:hover {
  background: linear-gradient(135deg, #128C7E, #075E54);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

/* Company detail lines on cards */
.contact-card-website,
.contact-card-size {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-on-card-2);
  margin-bottom: 3px;
}
.contact-card-website a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.contact-card-website a:hover { text-decoration: underline; }

/* Mass select checkbox on cards */
.mass-select-cb {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  z-index: 5;
}
.contact-card-top { position: relative; }

/* Mass delete toolbar */
.mass-delete-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(234, 67, 53, 0.06);
  border: 1px solid rgba(234, 67, 53, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 12px;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mass-select-all-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.mass-select-all-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--danger);
  cursor: pointer;
}
.mass-delete-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.btn-delete {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(234, 67, 53, 0.15);
}
.btn-delete:hover {
  background: var(--danger);
  color: #fff;
}
.btn-delete:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Select mode button active state */
#btn-select-mode.active {
  background: var(--accent);
  color: #fff;
}

.contact-card-icons {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #F4F7F9;
  color: #5F6B76;
  transition: all 0.15s;
  text-decoration: none;
}
.contact-card-icon:hover { background: var(--accent); color: #fff; text-decoration: none; }
.contact-card-icon.li:hover { background: #0A66C2; }
.contact-card-icon.wa:hover { background: #25D366; }

.contact-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: #ADB5BD;
}
.contact-card-meta span {
  background: #F8FAFB;
  padding: 2px 8px;
  border-radius: 6px;
}


/* ============================================================ RESPONSIVE */

/* ── Mobile menu toggle button (hidden on desktop) ──────────── */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}
.mobile-menu-btn svg { width: 20px; height: 20px; }

/* Overlay behind sidebar on mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 90;
}
.sidebar-overlay.show { display: block; }

/* Remove max-width on main content so it stretches */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 32px;
  max-width: 100%;
  min-width: 0;
}

/* ── Tablet (≤1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-charts-row { flex-direction: column; }
  .dash-quick-actions { grid-template-columns: repeat(4, 1fr); }
  .kanban-col { min-width: 220px; }
}

/* ── Mobile (≤768px) — sidebar hides, hamburger appears ──── */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.12);
  }

  .main-content {
    margin-left: 0;
    padding: 60px 16px 24px;
  }

  /* Topbar stacks vertically */
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }
  .topbar .form-input { width: 100% !important; }

  /* Stats 2-col */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Dashboard hero */
  .dash-hero {
    padding: 28px 16px 80px;
    margin: -60px -16px 0;
  }
  .dash-hero-content { flex-direction: column; align-items: flex-start; }
  .dash-hero-actions { width: 100%; }
  .dash-hero-title { font-size: 22px; }

  /* Charts stack */
  .dash-charts-row { flex-direction: column; gap: 14px; }

  /* Kanban scrolls horizontally on mobile */
  .kanban-board {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
  }
  .kanban-col {
    min-width: 280px;
    max-width: 85vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  /* Filter chips scroll */
  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .filter-row::-webkit-scrollbar { display: none; }

  .page-title { font-size: 20px; }
  .wizard-container { max-width: 100%; }
  .wizard-step { padding: 24px 20px; }
  .region-grid { grid-template-columns: 1fr; }

  /* Lead cards */
  .lead-card { padding: 16px; }
  .lead-top { flex-direction: column; gap: 8px; }
  .lead-badges { align-self: flex-start; }
  .lead-actions { flex-wrap: wrap; }
  .contact-pills { overflow-x: auto; flex-wrap: nowrap; }

  /* Login card */
  .login-card { padding: 28px 24px; }
}

/* ── Small phone (≤480px) ─────────────────────────────────── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .dash-stat-card { padding: 14px; }
  .dash-stat-value { font-size: 22px; }

  .kanban-col { min-width: 260px; }

  .lead-actions { flex-direction: column; align-items: stretch; }
  .lead-actions .btn { justify-content: center; }

  .dash-quick-actions { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   LEAD DETAIL LIGHTBOX
   ═══════════════════════════════════════════════════════════ */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 20, 40, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lbSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lb-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 28px;
  animation: lbSlideUp 0.25s ease;
}

.lb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  z-index: 1;
}
.lb-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── Header ── */
.lb-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lb-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.lb-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.lb-header-info {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.lb-title-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.lb-company {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
  font-weight: 500;
}

.lb-header-right {
  text-align: center;
  flex-shrink: 0;
}
.lb-score {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto;
}
.lb-score.score-high { background: rgba(16, 185, 129, 0.12); color: #059669; }
.lb-score.score-mid  { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.lb-score.score-low  { background: rgba(239, 68, 68, 0.10); color: #dc2626; }

.lb-score-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Contact pills ── */
.lb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.contact-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.contact-pill--email     { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.contact-pill--whatsapp  { background: rgba(37, 211, 102, 0.1); color: #128c7e; }
.contact-pill--phone     { background: rgba(107, 114, 128, 0.1); color: #4b5563; }
.contact-pill--linkedin,
.contact-pill--linkedin-search { background: rgba(10, 102, 194, 0.1); color: #0a66c2; }
.contact-pill--website   { background: rgba(107, 114, 128, 0.08); color: #6b7280; }

/* ── Sections ── */
.lb-section {
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.lb-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.lb-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lb-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lb-detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
}
.lb-detail span,
.lb-detail a {
  font-size: 13px;
  color: var(--text-primary);
}
.lb-detail a {
  color: #3b82f6;
  text-decoration: none;
}
.lb-detail a:hover { text-decoration: underline; }

.lb-summary-text,
.lb-reasoning {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.lb-hiring {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-size: 13px;
}

/* ── Draft email ── */
.lb-email-subject {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.lb-email-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin-bottom: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.lb-copy-email {
  margin-top: 4px;
}

/* ── Notes ── */
.lb-notes {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: #fff;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.lb-notes:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.lb-save-note {
  float: right;
}

/* ── Actions bar ── */
.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  clear: both;
}
.lb-actions .btn {
  font-size: 12px;
}

.btn-delete {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: none;
}
.btn-delete:hover {
  background: rgba(239, 68, 68, 0.15);
}
.btn-success {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: none;
}
.btn-success:hover {
  background: rgba(16, 185, 129, 0.18);
}

/* ── Lightbox scrollbar ── */
.lb-card::-webkit-scrollbar { width: 6px; }
.lb-card::-webkit-scrollbar-track { background: transparent; }
.lb-card::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 3px; }
.lb-card::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* ── Lightbox responsive ── */
@media (max-width: 768px) {
  .lb-overlay { padding: 12px; }
  .lb-card {
    max-height: 90vh;
    padding: 20px;
    border-radius: 14px;
  }
  .lb-header { flex-wrap: wrap; }
  .lb-header-right {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    width: 100%;
    text-align: left;
    margin-top: 8px;
  }
  .lb-score { width: 36px; height: 36px; font-size: 14px; border-radius: 8px; }
  .lb-details-grid { grid-template-columns: 1fr; }
  .lb-pills { gap: 6px; }
  .contact-pill { font-size: 11px; padding: 5px 10px; }
}

@media (max-width: 480px) {
  .lb-card { padding: 16px; }
  .lb-avatar { width: 48px; height: 48px; border-radius: 10px; }
  .lb-avatar-initials { font-size: 16px; }
  .lb-name { font-size: 16px; }
  .lb-actions { flex-direction: column; }
  .lb-actions .btn { justify-content: center; }
}
