/* ═══════════════════════════════════════════════════════════════
   LEADIST — refined-minimal, editorial, white-paper aesthetic
   Fraunces (display) · Albert Sans (body) · Spline Sans Mono (data)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #ffffff;
  --paper-warm: #fafaf8;
  --ink: #16191d;
  --ink-soft: #4b5158;
  --ink-faint: #8a9097;
  --hairline: #e9eaec;
  --hairline-strong: #dcdee1;

  --accent: #0e7a5a;
  --accent-deep: #0a5c44;
  --accent-tint: #eef7f3;

  --priority: #b7791f;
  --priority-bg: #fdf6e9;
  --priority-border: #ecd9b0;
  --cold: #21689e;
  --cold-bg: #eef5fb;
  --cold-border: #c5dcef;
  --negative: #b3373b;
  --negative-bg: #fdf0f0;
  --negative-border: #efc9ca;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 1px 2px rgba(22, 25, 29, 0.04), 0 8px 24px -12px rgba(22, 25, 29, 0.12);
  --shadow-lift: 0 2px 4px rgba(22, 25, 29, 0.05), 0 20px 48px -16px rgba(22, 25, 29, 0.22);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.55;
}

.hidden { display: none !important; }

button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; }

::selection { background: var(--accent-tint); color: var(--accent-deep); }

/* ───────────────────────── logo mark ───────────────────────── */

.logo-mark svg { width: 100%; height: 100%; display: block; }
.lm-ring { fill: none; stroke: var(--accent); stroke-width: 7; }
.lm-needle { fill: var(--accent); }
.lm-dot { fill: var(--paper); }

/* ───────────────────────── buttons ───────────────────────── */

.btn-primary, .btn-outline, .btn-ghost {
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ═══════════════════════ AUTH SCREEN ═══════════════════════ */

.auth-screen {
  display: grid;
  grid-template-columns: minmax(420px, 46%) 1fr;
  min-height: 100vh;
  animation: fadeIn 0.6s var(--ease-out);
}

.auth-brand {
  position: relative;
  background:
    radial-gradient(60rem 40rem at -10% -20%, rgba(14, 122, 90, 0.09), transparent 60%),
    radial-gradient(40rem 30rem at 110% 110%, rgba(183, 121, 31, 0.07), transparent 55%),
    var(--paper-warm);
  border-right: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  padding: 64px;
  overflow: hidden;
}

/* faint cartographic grid */
.auth-brand::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
  mask-image: radial-gradient(closest-side at 45% 40%, black, transparent 95%);
  -webkit-mask-image: radial-gradient(closest-side at 45% 40%, black, transparent 95%);
}

.auth-brand-inner { position: relative; max-width: 420px; }

.auth-brand .logo-mark {
  width: 58px; height: 58px;
  margin-bottom: 32px;
  animation: needleSpin 1.4s var(--ease-out) both;
}

@keyframes needleSpin {
  from { transform: rotate(-140deg) scale(0.85); opacity: 0; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}

.auth-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
}

.auth-sub { font-size: 17px; color: var(--ink-soft); margin-bottom: 40px; line-height: 1.6; }

.auth-points { list-style: none; display: grid; gap: 14px; }
.auth-points li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14.5px; color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.auth-points li span {
  font-family: var(--font-display);
  font-size: 17px; color: var(--accent);
  min-width: 34px; font-weight: 600;
}
.auth-points em { font-family: var(--font-mono); font-style: normal; font-size: 12.5px; background: var(--accent-tint); padding: 1px 6px; border-radius: 4px; color: var(--accent-deep); }

.auth-points li { opacity: 0; animation: riseIn 0.7s var(--ease-out) forwards; }
.auth-points li:nth-child(1) { animation-delay: 0.25s; }
.auth-points li:nth-child(2) { animation-delay: 0.4s; }
.auth-points li:nth-child(3) { animation-delay: 0.55s; }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 48px; }

.auth-form { width: 100%; max-width: 360px; }
.auth-form h2 { font-family: var(--font-display); font-size: 30px; font-weight: 500; margin-bottom: 6px; }
.auth-form-hint { color: var(--ink-faint); margin-bottom: 30px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 7px; }
.field input {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--paper);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 122, 90, 0.12); }

.auth-error {
  color: var(--negative);
  font-size: 13.5px;
  min-height: 20px;
  margin: -6px 0 12px;
  transition: opacity 0.3s ease;
}

.auth-switch { margin-top: 22px; text-align: center; color: var(--ink-faint); font-size: 14px; }
.auth-switch a { color: var(--accent-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.auth-switch a:hover { border-color: var(--accent-deep); }

.auth-freebie { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-soft); background: var(--accent-tint); border-radius: var(--radius-sm); padding: 10px 14px; }

/* ═══════════════════════ APP SHELL ═══════════════════════ */

.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; animation: fadeIn 0.5s var(--ease-out); }

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

/* ───────────────────────── sidebar ───────────────────────── */

.sidebar {
  border-right: 1px solid var(--hairline);
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  padding: 26px 18px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500;
  padding: 0 10px;
  margin-bottom: 34px;
}
.logo-mark.small { width: 30px; height: 30px; }

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

.nav-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 10px;
  margin: 20px 0 8px;
}
.nav-section-label:first-child { margin-top: 0; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s var(--ease-out);
  position: relative;
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item:hover { background: rgba(22, 25, 29, 0.045); color: var(--ink); }
.nav-item.active { background: var(--ink); color: var(--paper); }
.nav-item.active .nav-count { background: rgba(255,255,255,0.16); color: var(--paper); }

.nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(22,25,29,0.06);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 1px 8px;
  transition: background 0.22s, color 0.22s, transform 0.3s var(--ease-out);
}
.nav-count.bump { transform: scale(1.25); }

.tag-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin: 0 4px; }
.tag-dot.priority { background: var(--priority); }
.tag-dot.cold { background: var(--cold); }
.tag-dot.negative { background: var(--negative); }

.sidebar-footer { margin-top: 22px; display: grid; gap: 14px; }

.credit-card-mini {
  border: 1px solid var(--hairline);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.credit-label { font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }
.credit-value {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 600; color: var(--accent-deep);
  line-height: 1.2;
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.credit-value.bump { transform: scale(1.12); color: var(--accent); }
.credit-topup { font-size: 12.5px; font-weight: 600; color: var(--accent-deep); text-decoration: none; }
.credit-topup:hover { text-decoration: underline; }

.user-chip { display: flex; align-items: center; gap: 11px; padding: 0 4px; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  flex: none;
}
.user-name { font-weight: 600; font-size: 13.5px; }
.logout-btn { background: none; border: none; color: var(--ink-faint); font-size: 12px; padding: 0; transition: color 0.2s; }
.logout-btn:hover { color: var(--negative); }

/* ───────────────────────── main / views ───────────────────────── */

.main { padding: 44px clamp(28px, 5vw, 72px) 80px; min-width: 0; }

.view { animation: viewIn 0.45s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.view-header { margin-bottom: 34px; max-width: 720px; }
.view-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.view-title em { font-style: italic; color: var(--accent-deep); }
.view-sub { color: var(--ink-soft); font-size: 15.5px; max-width: 560px; }

.demo-banner {
  border: 1px dashed var(--priority-border);
  background: var(--priority-bg);
  color: #7c5a1e;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 28px;
}
.demo-banner code { font-family: var(--font-mono); font-size: 12px; }

/* ───────────────────────── search panel ───────────────────────── */

.search-panel {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  max-width: 860px;
  transition: box-shadow 0.4s var(--ease-out);
}
.search-panel:focus-within { box-shadow: var(--shadow-lift); }

.search-main-row { display: flex; gap: 12px; }

.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap svg {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-faint);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 13px 18px 13px 46px;
  font-size: 15.5px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-input-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 122, 90, 0.1); }

.search-options {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.opt { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-faint); font-weight: 500; }
.opt select {
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--paper);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s;
}
.opt select:hover, .opt select:focus { border-color: var(--ink); outline: none; }
.opt-input {
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--paper);
  padding: 6px 14px;
  font-size: 13px;
  width: 180px;
  transition: border-color 0.2s;
}
.opt-input:hover, .opt-input:focus { border-color: var(--ink); outline: none; }
.opt.opt-wide { flex: 1; min-width: 200px; }
.opt.opt-wide .opt-input { width: 100%; }

.opt.opt-reviews { align-items: center; }
.chip-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease-out);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.email-ok { color: var(--accent-deep); }
.email-warn { color: var(--priority); }

.kind-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 5px; padding: 2px 8px; flex: none;
}
.kind-badge.maps { background: var(--accent-tint); color: var(--accent-deep); }
.kind-badge.linkedin { background: #e8f0fb; color: #0a66c2; }
.kind-badge.engagers { background: #f0eafb; color: #6b3fa0; }

.eng-badge { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.eng-badge.like { background: #e8f0fb; color: #0a66c2; }
.eng-badge.comment { background: var(--accent-tint); color: var(--accent-deep); }
.eng-badge.reshare { background: #f0eafb; color: #6b3fa0; }

/* engagers table has few columns — no need for the huge min-width */
table.results.results-narrow { min-width: 900px; }

.tag-section-label {
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  margin: 26px 0 12px; color: var(--ink-soft);
}
.tag-section-label:first-child { margin-top: 4px; }
.opt-note { margin-left: auto; font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ───────────────────────── progress / radar ───────────────────────── */

.search-progress {
  display: flex; align-items: center; gap: 20px;
  margin-top: 34px;
  padding: 22px 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-warm);
  max-width: 860px;
  animation: viewIn 0.4s var(--ease-out);
}

.radar { position: relative; width: 44px; height: 44px; flex: none; }
.radar span {
  position: absolute; inset: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: ping 2s var(--ease-out) infinite;
}
.radar span:nth-child(2) { animation-delay: 0.55s; }
.radar span:nth-child(3) { animation-delay: 1.1s; }
@keyframes ping {
  0% { transform: scale(0.25); opacity: 0.9; }
  80%, 100% { transform: scale(1.15); opacity: 0; }
}

.progress-title { font-weight: 600; font-size: 15px; }
.progress-timer { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); margin-left: 6px; }
.progress-sub { color: var(--ink-faint); font-size: 13px; font-family: var(--font-mono); }

/* ───────────────────────── results ───────────────────────── */

.results-block { margin-top: 40px; animation: viewIn 0.5s var(--ease-out); }

.results-meta {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.results-meta h2 { font-family: var(--font-display); font-size: 23px; font-weight: 500; }
.results-meta .rm-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
.results-meta .rm-source { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-deep); }
.results-meta .rm-source.demo { background: var(--priority-bg); color: var(--priority); }

.rm-actions { margin-left: auto; display: flex; gap: 8px; }
.btn-mini {
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  transition: all 0.25s var(--ease-out);
}
.btn-mini:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-mini:active { transform: translateY(0); }

.results-notice {
  border: 1px dashed var(--cold-border);
  background: var(--cold-bg);
  color: var(--cold);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  margin-bottom: 14px;
  max-width: 860px;
}

.filter-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--paper-warm);
  padding: 10px 16px;
  margin-bottom: 14px;
}
.filter-check {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer;
}
.filter-check input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.filter-empty {
  text-align: center;
  color: var(--ink-faint);
  padding: 36px 16px !important;
  white-space: normal !important;
}

.results-table-wrap {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

table.results { width: 100%; border-collapse: collapse; min-width: 2600px; }

/* first column stays pinned while the wide table scrolls horizontally */
.results th.col-sticky, .results td.col-sticky {
  position: sticky; left: 0; z-index: 2;
  background: var(--paper);
  box-shadow: 1px 0 0 var(--hairline-strong);
  min-width: 190px; max-width: 240px;
}
.results thead th.col-sticky { background: var(--paper-warm); z-index: 3; }
tr.lead-row:hover td { background: var(--paper-warm); }
.star-cell { text-align: center; }
td.lead-desc { white-space: normal; min-width: 240px; max-width: 320px; font-size: 12.5px; color: var(--ink-soft); }
.lead-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--hairline); }
.flag-bad { color: var(--negative); font-weight: 700; }
.flag-warn { color: var(--priority); font-weight: 700; }
.social-mini {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 2px 9px;
  text-decoration: none;
  margin: 1px 0;
}
.social-mini:hover { text-decoration: underline; }
table.results th {
  text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper-warm);
  white-space: nowrap;
}
table.results td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: 13.5px;
  white-space: nowrap;
}
table.results td.lead-addr, table.results td.col-sticky { white-space: normal; min-width: 200px; }
table.results tr:last-child td { border-bottom: none; }

tr.lead-row { cursor: pointer; transition: background 0.18s ease; opacity: 0; animation: riseIn 0.5s var(--ease-out) forwards; }
tr.lead-row:hover { background: var(--paper-warm); }

.lead-name { font-weight: 600; font-size: 14px; }
.lead-cats { color: var(--ink-faint); font-size: 12px; margin-top: 2px; }
.lead-addr { color: var(--ink-soft); max-width: 260px; }
.lead-hood { color: var(--ink-faint); font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.lead-web a { color: var(--accent-deep); text-decoration: none; font-size: 13px; }
.lead-web a:hover { text-decoration: underline; }
.dim { color: var(--ink-faint); }

.rating-cell { white-space: nowrap; }
.rating-star { color: var(--priority); }
.rating-reviews { color: var(--ink-faint); font-size: 12px; }

/* tag pills in rows */
.tag-group { display: inline-flex; gap: 5px; }
.tag-pill {
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 4px 11px;
  transition: all 0.22s var(--ease-out);
}
.tag-pill:hover { transform: translateY(-1px); border-color: var(--ink-soft); color: var(--ink); }
.tag-pill.on.priority { background: var(--priority-bg); border-color: var(--priority-border); color: var(--priority); }
.tag-pill.on.cold { background: var(--cold-bg); border-color: var(--cold-border); color: var(--cold); }
.tag-pill.on.negative { background: var(--negative-bg); border-color: var(--negative-border); color: var(--negative); }
.tag-pill.on { transform: scale(1.04); }

.empty-state {
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  color: var(--ink-faint);
  max-width: 860px;
}
.empty-state .es-icon { font-size: 30px; margin-bottom: 12px; }
.empty-state h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--ink-soft); margin-bottom: 6px; }
.empty-mini { color: var(--ink-faint); font-size: 13.5px; }

/* ───────────────────────── history ───────────────────────── */

.history-list { display: grid; gap: 10px; max-width: 860px; }
.history-item {
  display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.25s;
  opacity: 0; animation: riseIn 0.5s var(--ease-out) forwards;
}
.history-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--hairline-strong); }
.history-q { font-weight: 600; flex: 1; }
.history-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.history-arrow { color: var(--ink-faint); transition: transform 0.25s var(--ease-out); }
.history-item:hover .history-arrow { transform: translateX(4px); color: var(--accent-deep); }

/* ─────────────────────── subscription ─────────────────────── */

.plan-status { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.plan-badge-mini {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  border-radius: 5px; padding: 2px 6px;
}
.plan-badge-mini.pro { background: var(--accent); color: var(--paper); }
.plan-badge-mini.warn { background: var(--priority-bg); color: var(--priority); border: 1px solid var(--priority-border); }
.plan-badge-mini.trial { background: var(--cold-bg); color: var(--cold); border: 1px solid var(--cold-border); }

.trial-note {
  margin-top: 18px;
  max-width: 860px;
  border: 1px dashed var(--cold-border);
  background: var(--cold-bg);
  color: var(--cold);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
}
.trial-note a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.trial-note a:hover { text-decoration: underline; }

.sub-status-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-warm);
  padding: 16px 22px;
  max-width: 960px;
  margin-bottom: 28px;
  animation: riseIn 0.5s var(--ease-out);
}
.sub-status-bar > div { display: flex; flex-direction: column; gap: 3px; }
.sub-state {
  font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-faint);
}
.sub-state.ok { color: var(--accent-deep); }
.sub-state.warn { color: var(--priority); }
.sub-line { font-size: 14px; color: var(--ink-soft); }
.btn-small { padding: 8px 18px; font-size: 13px; }

.plan-cycle { font-size: 14px; color: var(--ink-faint); font-family: var(--font-body); font-weight: 400; }
.plan.current { border-color: var(--accent); border-width: 1.5px; background: linear-gradient(160deg, var(--accent-tint), var(--paper) 45%); }
.plan-buy:disabled { opacity: 0.6; cursor: default; transform: none; }
.plans-fine { margin-top: 18px; font-size: 12.5px; color: var(--ink-faint); max-width: 960px; }

/* ───────────────────────── outreach ───────────────────────── */

.outreach-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin-bottom: 24px; }
.otab {
  background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600;
  color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.otab:hover { color: var(--ink); }
.otab.active { color: var(--ink); border-bottom-color: var(--accent); }

.pipeline-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg-btn { border: none; background: none; padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); border-radius: 999px; transition: all 0.2s; }
.seg-btn.active { background: var(--ink); color: var(--paper); }

.pipeline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pl-card {
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper);
  padding: 18px; box-shadow: var(--shadow-soft); transition: box-shadow 0.3s, transform 0.3s var(--ease-out);
  animation: riseIn 0.4s var(--ease-out);
}
.pl-card.busy { opacity: 0.6; pointer-events: none; }
.pl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pl-status { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.pl-status.mid { color: var(--cold); }
.pl-status.ok { color: var(--accent-deep); }
.pl-company { font-family: var(--font-display); font-size: 18px; font-weight: 500; line-height: 1.2; }
.pl-meta { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.pl-email { font-size: 12.5px; color: var(--accent-deep); margin-top: 8px; font-family: var(--font-mono); word-break: break-all; }
.pl-email.dim { color: var(--ink-faint); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.btn-mini.strong { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-mini.danger:hover { border-color: var(--negative); color: var(--negative); }
.btn-mini:disabled { opacity: 0.4; cursor: not-allowed; }

.otab-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.otab-head .view-sub { margin: 0; }
.config-card {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--paper);
  padding: 16px 18px; margin-bottom: 10px; animation: riseIn 0.4s var(--ease-out);
}
.config-main h3 { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.config-main .hint { font-size: 13px; color: var(--ink-soft); }
.config-sample { font-size: 12.5px; color: var(--ink-faint); font-style: italic; margin-top: 6px; }
.config-actions { display: flex; gap: 7px; flex: none; }

.loading-row { padding: 30px; text-align: center; color: var(--ink-faint); font-size: 14px; }

.field-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-faint); margin: 14px 0 6px; }
.draft-input, .draft-textarea {
  width: 100%; border: 1px solid var(--hairline-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; background: var(--paper); font-family: var(--font-body);
}
.draft-textarea { resize: vertical; line-height: 1.6; }
.draft-input:focus, .draft-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,122,90,0.1); }
.draft-actions { display: flex; gap: 10px; margin-top: 16px; }
.hookstat { font-size: 13px; color: var(--accent-deep); background: var(--accent-tint); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.stage-chip { font-size: 11px; font-weight: 600; background: var(--cold-bg); color: var(--cold); border-radius: 5px; padding: 2px 8px; margin-left: 8px; letter-spacing: 0.03em; }

/* ───────────────────────── campaigns ───────────────────────── */

.risk-banner {
  border: 1px solid var(--negative-border); background: var(--negative-bg); color: #8a2a2d;
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; margin-bottom: 22px; max-width: 900px; line-height: 1.55;
}

.acct-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper-warm);
  padding: 16px 22px; margin-bottom: 26px; max-width: 900px;
}
.acct-card.ok { border-color: var(--accent); background: linear-gradient(120deg, var(--accent-tint), var(--paper) 60%); }
.acct-title { font-weight: 600; font-size: 15px; }
.acct-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.acct-actions { display: flex; gap: 8px; align-items: center; }

.camp-listhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; max-width: 900px; }
.camp-listhead h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.camp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; max-width: 1000px; }
.camp-card { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); padding: 18px; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform 0.25s var(--ease-out), box-shadow 0.25s; animation: riseIn 0.4s var(--ease-out); }
.camp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.camp-card-top { display: flex; gap: 8px; margin-bottom: 10px; }
.camp-name { font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.camp-meta { font-size: 13px; color: var(--ink-soft); margin-top: 4px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.camp-bar { height: 6px; background: var(--hairline); border-radius: 999px; margin: 12px 0 8px; overflow: hidden; }
.camp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.5s var(--ease-out); }
.camp-nums { font-size: 12px; color: var(--ink-faint); font-family: var(--font-mono); }

.camp-status { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 5px; padding: 2px 8px; }
.camp-status.running { background: var(--accent-tint); color: var(--accent-deep); }
.camp-status.paused { background: var(--priority-bg); color: var(--priority); }
.camp-status.draft { background: var(--hairline); color: var(--ink-soft); }
.camp-status.stopped, .camp-status.done { background: var(--cold-bg); color: var(--cold); }
.dry-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; background: var(--cold-bg); color: var(--cold); border-radius: 5px; padding: 2px 7px; }
.live-badge { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; background: var(--negative-bg); color: var(--negative); border-radius: 5px; padding: 2px 7px; }

.btn-back { background: none; border: none; color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 16px; }
.btn-back:hover { color: var(--ink); }
.camp-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.camp-detail-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; }
.camp-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dry-toggle { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; cursor: pointer; }
.dry-toggle input { accent-color: var(--accent); width: 15px; height: 15px; }

.camp-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.camp-stat { border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--paper); padding: 12px 20px; text-align: center; min-width: 90px; }
.cs-num { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.cs-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-top: 2px; }
.camp-note-preview { font-size: 13.5px; color: var(--ink-soft); background: var(--paper-warm); border: 1px solid var(--hairline); border-radius: var(--radius-sm); padding: 12px 16px; max-width: 900px; }

.t-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; border-radius: 5px; padding: 2px 8px; }
.t-status.queued { background: var(--hairline); color: var(--ink-soft); }
.t-status.sent { background: var(--accent-tint); color: var(--accent-deep); }
.t-status.accepted, .t-status.replied { background: var(--cold-bg); color: var(--cold); }
.t-status.failed { background: var(--negative-bg); color: var(--negative); }

.camp-preview-line { font-size: 13px; color: var(--ink-soft); margin: 10px 0; padding: 8px 12px; background: var(--paper-warm); border-radius: var(--radius-sm); }
.modal-hint { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 8px; }
.modal-hint code { font-family: var(--font-mono); font-size: 12px; background: var(--hairline); padding: 1px 5px; border-radius: 4px; }

/* ───────────────────────── pricing ───────────────────────── */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 960px; }

.plan {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--paper);
  position: relative;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  opacity: 0; animation: riseIn 0.55s var(--ease-out) forwards;
}
.plan:nth-child(1) { animation-delay: 0.05s; }
.plan:nth-child(2) { animation-delay: 0.15s; }
.plan:nth-child(3) { animation-delay: 0.25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.plan.featured { border-color: var(--accent); border-width: 1.5px; }
.plan-badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--accent); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 12px;
}

.plan-name { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.plan-listings { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.1; }
.plan-listings span { font-size: 16px; color: var(--ink-faint); font-family: var(--font-body); }
.plan-price { font-family: var(--font-display); font-size: 26px; color: var(--accent-deep); margin-top: 10px; font-weight: 600; }
.plan-per { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); margin: 4px 0 20px; }

.plan-feats { list-style: none; display: grid; gap: 9px; margin-bottom: 26px; }
.plan-feats li { font-size: 13.5px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.plan-buy { width: 100%; }

.purchases-block { margin-top: 48px; max-width: 640px; }
.purchases-block h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin-bottom: 14px; }
.purchase-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
}
.purchase-row .mono { color: var(--ink-faint); }

/* ───────────────────────── drawer ───────────────────────── */

.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(22, 25, 29, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 40;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(480px, 94vw);
  background: var(--paper);
  box-shadow: -24px 0 64px -24px rgba(22, 25, 29, 0.3);
  transform: translateX(103%);
  transition: transform 0.45s var(--ease-out);
  z-index: 50;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-inner { padding: 30px 32px 48px; }

.drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease-out);
}
.drawer-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(90deg); }

.drawer-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.drawer-title { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.15; margin-bottom: 6px; padding-right: 40px; }
.drawer-cats { color: var(--ink-faint); font-size: 13px; margin-bottom: 18px; }

.drawer-flags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.drawer-flag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.drawer-flag.bad { background: var(--negative-bg); color: var(--negative); border: 1px solid var(--negative-border); }
.drawer-flag.warn { background: var(--priority-bg); color: var(--priority); border: 1px solid var(--priority-border); }

.drawer-cover {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.drawer-desc { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }

.keyword-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.keyword-chip {
  font-size: 12px; background: var(--paper-warm); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 3px 11px; color: var(--ink-soft);
}
.keyword-chip em { font-style: normal; color: var(--accent-deep); font-weight: 600; }

.drawer-tags { display: flex; gap: 7px; margin-bottom: 26px; }
.drawer-tags .tag-pill { padding: 7px 16px; font-size: 12px; }

.drawer-section { margin-bottom: 26px; }
.drawer-section h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 12px;
}

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-faint); }
.kv dd { color: var(--ink); word-break: break-word; }
.kv dd a { color: var(--accent-deep); }
.kv dd.mono { font-size: 12px; }

.hours-grid { display: grid; gap: 5px; font-size: 13px; }
.hours-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dotted var(--hairline); }
.hours-row .hr-day { color: var(--ink-soft); font-weight: 500; text-transform: capitalize; }
.hours-row .hr-time { font-family: var(--font-mono); font-size: 12px; }
.hours-row.today .hr-day, .hours-row.today .hr-time { color: var(--accent-deep); font-weight: 600; }

.drawer-map-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 9px 18px;
  text-decoration: none;
  font-weight: 600; font-size: 13.5px;
  transition: all 0.25s var(--ease-out);
}
.drawer-map-link:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }

.raw-json {
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: var(--ink-soft);
  max-height: 300px;
  overflow-y: auto;
}

/* ───────────────────────── toast ───────────────────────── */

.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translate(-50%, 80px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.45s ease;
  z-index: 80;
  pointer-events: none;
  max-width: 90vw;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--negative); }

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 960px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--hairline); }
  .search-main-row { flex-direction: column; }
}
