/* ============================================================
   LEADVAULT INDIA — Professional B2B Intelligence Platform
   Apollo.io-inspired design system
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;

  /* Neutrals */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic */
  --ink:       #0f172a;
  --ink-soft:  #334155;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg:        #f1f5f9;
  --surface:   #ffffff;

  /* Status */
  --green:  #059669;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --amber:  #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --red:    #dc2626;
  --red-bg: #fff1f2;
  --red-border: #fecdd3;
  --blue:   #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  --violet: #7c3aed;

  /* Sidebar */
  --sb-bg:       #0f172a;
  --sb-hover:    #1e293b;
  --sb-active:   rgba(13,148,136,.14);
  --sb-text:     #94a3b8;
  --sb-text-hi:  #f1f5f9;
  --sb-brand:    #14b8a6;
  --sb-width:    240px;

  /* Shadows */
  --shadow-sm:   0 1px 2px rgba(15,23,42,.06);
  --shadow:      0 1px 3px rgba(15,23,42,.10), 0 1px 2px rgba(15,23,42,.06);
  --shadow-md:   0 4px 6px rgba(15,23,42,.07), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg:   0 10px 15px rgba(15,23,42,.1), 0 4px 6px rgba(15,23,42,.05);
  --shadow-xl:   0 20px 25px rgba(15,23,42,.1), 0 10px 10px rgba(15,23,42,.04);

  --radius:   8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

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

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

/* ── App Shell — Sidebar + Content ────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sb-width);
  min-height: 100vh;
  background: var(--sb-bg);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
  transition: transform .22s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-600), #0f4c75);
  box-shadow: 0 0 0 3px rgba(13,148,136,.25);
  flex-shrink: 0;
}

.brand-icon svg { width: 20px; height: 20px; color: #fff; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  color: var(--sb-text-hi);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--brand-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  color: var(--slate-600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--sb-text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .13s, color .13s;
  text-decoration: none;
  white-space: nowrap;
  min-height: 38px;
}

.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.nav-item:hover {
  background: var(--sb-hover);
  color: var(--sb-text-hi);
}

.nav-item.active {
  background: var(--sb-active);
  color: var(--sb-brand);
  font-weight: 600;
}

.nav-item .badge-dot {
  margin-left: auto;
  width: 6px; height: 6px;
  background: var(--brand-500);
  border-radius: 50%;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .13s;
}

.sidebar-user:hover { background: var(--sb-hover); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info { min-width: 0; }

.user-info strong {
  display: block;
  color: var(--sb-text-hi);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info span {
  display: block;
  color: var(--sb-text);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
}

.topbar-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.topbar-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.topbar-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--slate-50);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}

.topbar-search input:focus {
  outline: 0;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
  background: #fff;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.credits-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
}

.credits-chip svg { width: 14px; height: 14px; }

.topbar-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .13s, color .13s, background .13s;
}

.topbar-btn:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  background: var(--brand-50);
}

.topbar-btn svg { width: 17px; height: 17px; }

.mobile-menu-btn {
  display: none;
}

/* ── Page ──────────────────────────────────────────────────── */
.page {
  flex: 1;
  padding: 28px 32px;
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-header-left .eyebrow {
  margin-bottom: 4px;
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.page-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.eyebrow {
  display: block;
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 20px 24px; }

.card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: var(--slate-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── Stat Cards ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.teal::before   { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.stat-card.violet::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.stat-card.amber::before  { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-card.blue::before   { background: linear-gradient(90deg, #2563eb, #60a5fa); }

.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.stat-icon.teal   { background: var(--brand-50); color: var(--brand-600); }
.stat-icon.violet { background: #f5f3ff; color: #7c3aed; }
.stat-icon.amber  { background: var(--amber-bg); color: var(--amber); }
.stat-icon.blue   { background: var(--blue-bg); color: var(--blue); }
.stat-icon svg { width: 20px; height: 20px; }

.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stat-change {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .13s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  box-shadow: var(--shadow);
}

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--brand-600);
  border-color: var(--brand-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-800);
  box-shadow: 0 4px 12px rgba(13,148,136,.35);
}

.btn-secondary {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--ink-soft);
}

.btn-secondary:hover {
  background: var(--slate-200);
  border-color: var(--slate-300);
}

.btn-danger {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red);
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--slate-100);
  border-color: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.btn-group {
  display: flex;
  gap: 0;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.btn-group .btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
}

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}

.input::placeholder, .textarea::placeholder {
  color: var(--slate-400);
}

.input:focus, .select:focus, .textarea:focus {
  outline: 0;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

.textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}

.select { appearance: none; cursor: pointer; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.input-icon-wrap .input { padding-left: 36px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.checkbox-wrap input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--brand-600);
  cursor: pointer;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

thead th {
  padding: 11px 16px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  text-align: left;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--slate-100);
  font-size: 13.5px;
  color: var(--ink-soft);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: var(--slate-50);
}

.td-strong {
  font-weight: 600;
  color: var(--ink) !important;
}

.td-muted {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--slate-100);
  color: var(--slate-600);
}

.badge-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber);  border: 1px solid var(--amber-border); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);   border: 1px solid var(--blue-border); }
.badge-teal   { background: var(--brand-50);  color: var(--brand-700); border: 1px solid var(--brand-200); }
.badge-violet { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Flash / Alerts ────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.alert svg { width: 17px; height: 17px; flex-shrink: 0; }

.alert-success { background: var(--green-bg);  border-color: var(--green-border); color: #065f46; }
.alert-warning { background: var(--amber-bg);  border-color: var(--amber-border); color: #92400e; }
.alert-danger  { background: var(--red-bg);    border-color: var(--red-border);   color: #991b1b; }
.alert-info    { background: var(--blue-bg);   border-color: var(--blue-border);  color: #1e40af; }

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.page-item span,
.page-link {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .13s;
}

.page-link:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  background: var(--brand-50);
}

.page-item.active .page-link {
  background: var(--brand-600);
  border-color: var(--brand-700);
  color: #fff;
}

.page-item.disabled span { opacity: .45; cursor: not-allowed; }

/* ── Lead Search Layout ────────────────────────────────────── */
.search-layout {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 20px;
  align-items: start;
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.filter-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-panel-header h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.filter-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--slate-100);
}

.filter-section:last-child { border-bottom: 0; }

.filter-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}

/* ── Contact Cards ─────────────────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.results-count strong {
  color: var(--ink);
  font-weight: 700;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 2fr 1.8fr 1.2fr 1.4fr .6fr auto;
  gap: 0;
  align-items: center;
  border-bottom: 1px solid var(--slate-100);
  transition: background .1s;
}

.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { background: var(--slate-50); }

.contact-row.header-row {
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
}

.contact-row.header-row > div {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 10px 16px;
}

.contact-cell {
  padding: 14px 16px;
  min-width: 0;
}

.contact-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-title {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-company {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-industry {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.contact-data {
  font-size: 13px;
  color: var(--ink-soft);
}

.contact-data .masked {
  font-size: 13px;
  color: var(--slate-400);
  font-family: monospace;
}

.contact-actions {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  justify-content: flex-end;
}

/* ── Profile Page ──────────────────────────────────────────── */
.profile-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-meta {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.profile-meta-info h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

.profile-meta-info p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--slate-100);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.profile-chip svg { width: 14px; height: 14px; color: var(--muted); }

.reveal-box {
  background: linear-gradient(135deg, var(--brand-50), #fff);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.reveal-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-800);
  margin-bottom: 14px;
}

.reveal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--brand-100);
}

.reveal-item:last-child { border-bottom: 0; }
.reveal-item svg { width: 16px; height: 16px; color: var(--brand-600); flex-shrink: 0; }

.reveal-item .label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  min-width: 60px;
}

.reveal-item .value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.reveal-item .value.masked {
  color: var(--slate-400);
  font-family: monospace;
}

/* ── Directory Cards ───────────────────────────────────────── */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.directory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  text-decoration: none;
  color: inherit;
}

.directory-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--brand-400);
}

.directory-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.directory-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.directory-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.directory-card .count {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-600);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-top: auto;
}

/* ── Enrichment ────────────────────────────────────────────── */
.enrich-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  gap: 0;
}

.enrich-tab {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .13s;
  margin-bottom: -1px;
}

.enrich-tab.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}

.enrich-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.enrich-result-header {
  background: linear-gradient(135deg, var(--sb-bg), var(--slate-800));
  padding: 24px 28px;
  color: #fff;
}

.enrich-result-header h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}

.enrich-result-header p {
  color: var(--slate-400);
  font-size: 13.5px;
}

.enrich-result-body {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

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

.enrich-field .key {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.enrich-field .val {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ── API Keys ──────────────────────────────────────────────── */
.api-key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
}

.api-key-row:last-child { border-bottom: 0; }

.api-key-icon {
  width: 38px; height: 38px;
  background: var(--slate-100);
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.api-key-icon svg { width: 18px; height: 18px; color: var(--slate-600); }

.api-key-value {
  font-family: "Fira Code", "Cascadia Code", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  background: var(--slate-100);
  padding: 6px 12px;
  border-radius: var(--radius);
  color: var(--slate-700);
  word-break: break-all;
  border: 1px solid var(--border);
}

/* ── Dashboard Activity Feed ───────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--slate-100);
}

.activity-item:last-child { border-bottom: 0; }

.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.activity-dot.teal   { background: var(--brand-500); }
.activity-dot.amber  { background: var(--amber); }
.activity-dot.blue   { background: var(--blue); }
.activity-dot.violet { background: var(--violet); }

.activity-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.activity-time {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--slate-400);
  white-space: nowrap;
}

/* ── Chart Area ────────────────────────────────────────────── */
.chart-wrap {
  position: relative;
  height: 240px;
}

/* ── Campaign builder ──────────────────────────────────────── */
.segment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow .15s;
}

.segment-card:hover { box-shadow: var(--shadow-md); }

.segment-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--brand-50);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.segment-icon svg { width: 20px; height: 20px; color: var(--brand-600); }

.segment-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.segment-info p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.segment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

/* ── Settings ──────────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr);
  gap: 24px;
  align-items: start;
}

.settings-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  border-bottom: 1px solid var(--slate-100);
  transition: background .12s, color .12s;
}

.settings-nav-item:last-child { border-bottom: 0; }

.settings-nav-item:hover,
.settings-nav-item.active {
  background: var(--brand-50);
  color: var(--brand-700);
}

.settings-nav-item svg { width: 16px; height: 16px; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.modal-body { padding: 20px 24px; display: grid; gap: 16px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  padding: 52px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.empty-state-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-xl);
  background: var(--slate-100);
  display: grid;
  place-items: center;
}

.empty-state-icon svg { width: 28px; height: 28px; color: var(--slate-400); }

.empty-state h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.empty-state p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.6;
}

/* ── Score Bar ─────────────────────────────────────────────── */
.score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: width .4s ease;
}

.score-bar-fill.low    { background: linear-gradient(90deg, var(--red), #f87171); }
.score-bar-fill.medium { background: linear-gradient(90deg, var(--amber), #fbbf24); }

.score-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 30px;
  text-align: right;
}

/* ── Code Block ────────────────────────────────────────────── */
.code-block {
  background: var(--slate-900);
  color: #e2e8f0;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-family: "Fira Code", "JetBrains Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.code-keyword { color: #7dd3fc; }
.code-string  { color: #86efac; }
.code-comment { color: #64748b; }

/* ── Utility ───────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end   { justify-content: flex-end; }
.gap-2         { gap: 8px; }
.gap-3         { gap: 12px; }
.gap-4         { gap: 16px; }
.gap-6         { gap: 24px; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1; }
.min-w-0       { min-width: 0; }
.grid          { display: grid; }
.grid-2        { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3        { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4        { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-auto     { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
.gap-grid      { gap: 16px; }
.mb-4          { margin-bottom: 16px; }
.mb-6          { margin-bottom: 24px; }
.mt-4          { margin-top: 16px; }
.mt-6          { margin-top: 24px; }
.mt-auto       { margin-top: auto; }
.ml-auto       { margin-left: auto; }
.p-4           { padding: 16px; }
.p-6           { padding: 24px; }
.px-4          { padding-left: 16px; padding-right: 16px; }
.py-2          { padding-top: 8px; padding-bottom: 8px; }
.w-full        { width: 100%; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-sm       { font-size: 13px; }
.text-xs       { font-size: 11.5px; }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted    { color: var(--muted); }
.text-brand    { color: var(--brand-600); }
.text-success  { color: var(--green); }
.text-danger   { color: var(--red); }
.divide-y > * + * { border-top: 1px solid var(--slate-100); }
.rounded       { border-radius: var(--radius); }
.rounded-lg    { border-radius: var(--radius-lg); }
.relative      { position: relative; }

/* ── Guest / Marketing Layout ──────────────────────────────── */
.guest-body {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 40%, #f1f5f9 100%);
}

.guest-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
}

.guest-nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -.01em;
}

.guest-nav-brand .brand-icon { width: 38px; height: 38px; }

.guest-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.guest-nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background .13s, color .13s;
}

.guest-nav-links a:hover {
  background: var(--slate-100);
  color: var(--ink);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 60px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 500px;
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 68px);
}

.hero-copy { display: flex; flex-direction: column; gap: 22px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-700);
  width: fit-content;
}

.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}

.hero h1 .brand-highlight {
  background: linear-gradient(90deg, var(--brand-600), var(--brand-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.02em;
}

.hero-stat span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.hero-visual {
  background: linear-gradient(135deg, var(--sb-bg) 0%, #0f3460 50%, #134e4a 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent);
}

.vis-bar { position: relative; z-index: 1; }

.vis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.vis-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  color: #dbeafe;
}

.vis-chip .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
  50%  { box-shadow: 0 0 0 6px rgba(52,211,153,.1); }
  100% { box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
}

.vis-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.vis-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px;
  backdrop-filter: blur(10px);
  min-height: 90px;
}

.vis-card span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.vis-card strong {
  font-size: 16px;
  color: #f1f5f9;
  line-height: 1.2;
}

.vis-leads {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.vis-lead-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  padding: 10px 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.vis-lead-row b {
  font-size: 12.5px;
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vis-lead-row span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Feature section ───────────────────────────────────────── */
.features-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 72px 48px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  margin-bottom: 48px;
}

.section-label .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}

.section-label h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--ink);
  letter-spacing: -.02em;
}

.section-label p {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px;
  background: var(--slate-50);
  transition: box-shadow .15s, border-color .15s, transform .15s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-400);
  transform: translateY(-2px);
  background: #fff;
}

.feature-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Sectors / Categories ──────────────────────────────────── */
.sectors-section {
  padding: 72px 48px;
  background: var(--bg);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.sector-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all .15s;
  cursor: pointer;
}

.sector-pill:hover {
  background: var(--brand-50);
  border-color: var(--brand-400);
  color: var(--brand-700);
}

.sector-pill .emoji { font-size: 18px; }

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--sb-bg), #0f3460);
  padding: 80px 48px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(26px, 3vw, 42px);
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.cta-section p {
  color: var(--slate-400);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-section .hero-actions { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────── */
.guest-footer {
  background: var(--sb-bg);
  padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.guest-footer p {
  color: var(--sb-text);
  font-size: 13px;
}

.guest-footer a {
  color: var(--sb-text);
  font-size: 13px;
  text-decoration: none;
  padding: 0 10px;
  transition: color .13s;
}

.guest-footer a:hover { color: var(--sb-text-hi); }

/* ── Auth Pages ────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0,1fr) 480px;
}

.auth-left {
  background: linear-gradient(160deg, var(--sb-bg) 0%, #0d2b46 50%, var(--brand-900) 100%);
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-left h2 {
  font-size: 32px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}

.auth-left p {
  color: var(--slate-400);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--slate-300);
  font-size: 14px;
}

.auth-feature-check {
  width: 24px; height: 24px;
  background: rgba(13,148,136,.25);
  border: 1px solid rgba(13,148,136,.4);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-feature-check svg { width: 14px; height: 14px; color: var(--brand-400); }

.auth-right {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.auth-form-wrap h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.auth-form-wrap > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-divider {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--slate-400);
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--brand-600);
  font-weight: 600;
}

.auth-footer a:hover { text-decoration: underline; }

/* ── Admin ─────────────────────────────────────────────────── */
.admin-header-banner {
  background: linear-gradient(90deg, var(--sb-bg), var(--slate-800));
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-header-banner .icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.admin-header-banner .icon svg { width: 22px; height: 22px; color: var(--brand-400); }

.admin-header-banner h2 {
  color: #fff;
  font-size: 17px;
}

.admin-header-banner p {
  color: var(--slate-400);
  font-size: 13px;
  margin-top: 2px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 32px; }
  .hero-visual { min-height: 340px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
}

@media (max-width: 900px) {
  :root { --sb-width: 0px; }
  .sidebar { transform: translateX(-100%); width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .page { padding: 20px 18px; }
  .features-section,
  .sectors-section,
  .cta-section,
  .guest-footer { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 40px 20px; gap: 32px; }
  .hero h1 { font-size: 38px; }
  .guest-nav { padding: 0 20px; }
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-row > .contact-cell:nth-child(n+2):nth-child(-n+4) { display: none; }
  .contact-row.header-row > div:nth-child(n+2):nth-child(-n+4) { display: none; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .vis-cards { grid-template-columns: 1fr; }
}

/* ── Sidebar overlay (mobile) ──────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 35;
}

.sidebar-overlay.show { display: block; }
