/* ============================================================
   Store Scout - premium dark B2B interface
   ============================================================ */
:root {
  --bg:        #0a0d13;
  --bg-2:      #0d1119;
  --panel:     #10141d;
  --panel-2:   #141926;
  --panel-hi:  #1a2130;
  --line:      #1e2634;
  --line-2:    #283143;
  --line-hi:   #33405a;

  --txt:       #eef2f8;
  --txt-2:     #aeb8c8;
  --txt-3:     #74809a;
  --txt-4:     #4d576d;

  --accent:    #ff7a45;
  --accent-2:  #ffb066;
  --accent-dim:#ff7a4522;
  --accent-line:#ff7a4540;

  --hot:   #ff6a3d;
  --warm:  #f5b13c;
  --cold:  #4fa8ff;
  --skip:  #6b7688;
  --good:  #43d18a;
  --bad:   #f0546a;

  --radius:   14px;
  --radius-s: 10px;
  --radius-xs: 7px;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 30px -12px rgba(0,0,0,.6);
  --shadow-3: 0 24px 70px -20px rgba(0,0,0,.75);

  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --topbar-h: 60px;
  --tabs-h: 50px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
::selection { background: var(--accent-dim); color: var(--accent-2); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 20px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--line-hi); }

h1,h2,h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---------- ambient background ---------- */
.bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, #ffffff06 1px, transparent 1px),
    linear-gradient(to bottom, #ffffff06 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg-glow-a { top: -180px; left: 8%; width: 620px; height: 620px;
  background: radial-gradient(circle, #ff7a4530, transparent 68%); }
.bg-glow-b { top: -80px; right: 4%; width: 520px; height: 520px;
  background: radial-gradient(circle, #2f6bff26, transparent 66%); }
.bg-noise {
  position: absolute; inset: 0; opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; user-select: none; }
.brand:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 4px; border-radius: 8px; }
.brand-mark { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 8px #ff7a4530); }
.brand-mark svg { width: 100%; height: 100%; }
.lm-sweep { transform-origin: 32px 32px; animation: sweep 5.5s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lm-sweep { animation: none; } }
.brand-word { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.brand-word-accent { color: var(--accent); }

.topbar-mid { position: relative; justify-self: center; }
.client-switch {
  display: inline-flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 12px 0 13px;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 10px; color: var(--txt); font-weight: 550; font-size: 13.5px;
  transition: border-color .15s, background .15s;
  max-width: 320px;
}
.client-switch:hover { border-color: var(--line-hi); background: var(--panel-2); }
.client-switch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); flex: none; }
.client-switch-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.client-switch .chev { color: var(--txt-3); transition: transform .2s; }
.client-switch[aria-expanded="true"] .chev { transform: rotate(180deg); }

.client-menu {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 300px; max-height: 60vh; overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 12px; box-shadow: var(--shadow-3);
  padding: 6px; z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.client-menu.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.cm-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 8px; border: none; background: transparent;
  color: var(--txt); text-align: left; font-size: 13.5px;
}
.cm-item:hover { background: var(--panel-hi); }
.cm-item.is-active { background: var(--accent-dim); }
.cm-item .cm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--txt-4); flex: none; }
.cm-item.is-active .cm-dot { background: var(--accent); }
.cm-item .cm-name { flex: 1; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-item .cm-plan { font-size: 11px; color: var(--txt-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.cm-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.cm-new { color: var(--accent-2); font-weight: 600; }
.cm-new .cm-dot { background: transparent; border: 1px dashed var(--accent-line); }

.topbar-right { display: inline-flex; align-items: center; gap: 12px; justify-self: end; }
.plan-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line-2);
  color: var(--txt-2); font-size: 12px; font-weight: 600;
  text-transform: capitalize; letter-spacing: .01em;
}
.plan-badge:hover { border-color: var(--line-hi); }
.plan-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 10px;
  border: 1px solid transparent; font-weight: 600; font-size: 13.5px;
  color: var(--txt); background: transparent;
  transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(180deg, #ff8a55, var(--accent));
  color: #1a0e07; box-shadow: 0 6px 18px -8px #ff7a4590, inset 0 1px 0 #ffffff40;
}
.btn-primary:hover { box-shadow: 0 10px 26px -8px #ff7a45b0, inset 0 1px 0 #ffffff50; filter: brightness(1.04); }
.btn-ghost { background: var(--panel); border-color: var(--line-2); color: var(--txt-2); }
.btn-ghost:hover { border-color: var(--line-hi); color: var(--txt); background: var(--panel-2); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ============================================================
   TABS
   ============================================================ */
.tabs {
  position: sticky; top: var(--topbar-h); z-index: 40;
  height: var(--tabs-h); display: flex; align-items: stretch; gap: 2px;
  padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 15px; border: none; background: transparent;
  color: var(--txt-3); font-weight: 550; font-size: 13.5px; letter-spacing: -0.01em;
  transition: color .15s;
}
.tab svg { width: 16px; height: 16px; opacity: .8; }
.tab:hover { color: var(--txt-2); }
.tab.is-active { color: var(--txt); }
.tab-count {
  min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px;
  background: var(--panel-hi); color: var(--txt-2);
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.tab-count:empty { display: none; }
.tab.is-active .tab-count { background: var(--accent-dim); color: var(--accent-2); }
.tab-underline {
  position: absolute; bottom: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: left .28s var(--ease-out), width .28s var(--ease-out);
  box-shadow: 0 0 12px #ff7a4580;
}

/* ============================================================
   STAGE / VIEWS
   ============================================================ */
.stage { position: relative; z-index: 1; padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 32px) 80px; max-width: 1720px; margin: 0 auto; }
.view { animation: viewIn .38s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.view-title { font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -0.035em; }
.view-sub { color: var(--txt-3); margin: 6px 0 0; max-width: 720px; font-size: 13.5px; }
.view-head-right { display: inline-flex; gap: 10px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* ---------- generic form bits ---------- */
.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--txt-2); letter-spacing: .01em; margin-bottom: 7px; }
.lbl-opt { color: var(--txt-4); font-weight: 500; font-style: normal; margin-left: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.field { display: block; }
.field + .field { margin-top: 16px; }
.field-grow { flex: 1; }
.hint { display: block; margin-top: 7px; color: var(--txt-3); font-size: 11.5px; line-height: 1.5; }
.txt, .scout-input, select {
  width: 100%; background: var(--bg-2); color: var(--txt);
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 11px 13px; font-size: 14px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.txt:focus, .scout-input:focus, select:focus {
  outline: none; border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-dim); background: var(--panel);
}
.txt-lg { font-size: 18px; font-weight: 600; padding: 12px 14px; }
.txt::placeholder, .scout-input::placeholder { color: var(--txt-4); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--txt-3); border-bottom: 2px solid var(--txt-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }

.field-inline { display: inline-flex; align-items: center; gap: 9px; }
.field-inline > span { font-size: 12px; color: var(--txt-3); font-weight: 600; }
.field-inline select { width: auto; min-width: 130px; height: 36px; padding: 0 32px 0 12px; }

/* ============================================================
   LEADS TABLE
   ============================================================ */
.lead-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-spacer { flex: 1; }
.seg { display: inline-flex; padding: 3px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; gap: 2px; }
.seg-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border: none; border-radius: 7px; background: transparent;
  color: var(--txt-3); font-size: 12.5px; font-weight: 600; transition: color .15s, background .15s;
}
.seg-btn:hover { color: var(--txt-2); }
.seg-btn.is-active { background: var(--panel-hi); color: var(--txt); box-shadow: var(--shadow-1); }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-hot { background: var(--hot); } .dot-warm { background: var(--warm); }
.dot-cold { background: var(--cold); } .dot-skip { background: var(--skip); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow-2); }
.lead-thead, .lead-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1.2fr) 108px minmax(120px, 0.9fr) minmax(130px, 1fr) minmax(190px, 1.35fr) 130px;
  align-items: center; gap: 13px;
}
.lead-thead {
  padding: 12px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  position: relative; z-index: 1;
}
.th { font-size: 11px; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; }
.th-score, .th-status { text-align: left; }
.lead-rows { display: flex; flex-direction: column; }
.lead-row {
  padding: 15px 20px; border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .13s; position: relative;
}
.lead-row:last-child { border-bottom: none; }
.lead-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .13s; }
.lead-row:hover { background: var(--panel-2); }
.lead-row:hover::before { background: var(--accent); }
.lead-row.verdict-Hot::before  { background: color-mix(in srgb, var(--hot) 55%, transparent); }
.lead-row.verdict-Warm::before { background: color-mix(in srgb, var(--warm) 45%, transparent); }
.lead-row:hover.verdict-Hot::before,
.lead-row:hover.verdict-Warm::before { background: var(--accent); }

/* store cell */
.cell-store { min-width: 0; }
.store-name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.store-fav { width: 18px; height: 18px; border-radius: 5px; background: var(--panel-hi); flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--accent-2); }
.store-sub { font-size: 11.5px; color: var(--txt-3); font-family: var(--mono); margin-top: 3px; }

/* revenue tier cell */
.cell-rev { min-width: 0; }
.rev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rev-tier { font-size: 12.5px; font-weight: 650; }
.rev-point { font-family: var(--mono); font-size: 11.5px; color: var(--txt-3); }
.range-bar { position: relative; height: 6px; border-radius: 4px; background: var(--panel-hi); overflow: hidden; }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #ff7a4560, var(--accent)); }
.range-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--txt-4); font-family: var(--mono); }

/* score cell */
.cell-score { display: flex; align-items: center; }
.score-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 62px; height: 52px; border-radius: 11px; gap: 1px;
  border: 1px solid var(--line-2); position: relative; overflow: hidden;
}
.score-badge .sb-num { font-family: var(--mono); font-weight: 700; font-size: 20px; line-height: 1; }
.score-badge .sb-verdict { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.score-Hot  { background: linear-gradient(160deg, #ff6a3d24, #ff6a3d10); border-color: #ff6a3d55; color: var(--hot); }
.score-Warm { background: linear-gradient(160deg, #f5b13c22, #f5b13c0e); border-color: #f5b13c50; color: var(--warm); }
.score-Cold { background: linear-gradient(160deg, #4fa8ff20, #4fa8ff0c); border-color: #4fa8ff45; color: var(--cold); }
.score-Skip { background: var(--panel-hi); border-color: var(--line-2); color: var(--skip); }

/* signals cell */
.cell-signals { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--panel-hi); border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 550; color: var(--txt-2); white-space: nowrap;
}
.chip svg { width: 11px; height: 11px; opacity: .8; }
.chip-up { color: var(--good); border-color: #43d18a35; background: #43d18a12; }
.chip.muted { color: var(--txt-3); }

/* email tool cell + badge (the key signal for an email agency) */
.cell-email { min-width: 0; display: flex; }
.email-badge {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; height: 24px; padding: 0 10px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help;
  border: 1px solid transparent;
}
.email-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.email-hot   { color: var(--good); background: #43d18a16; border-color: #43d18a45; }
.email-warm  { color: var(--warm); background: #f5b13c16; border-color: #f5b13c45; }
.email-muted { color: var(--txt-3); background: var(--panel-hi); border-color: var(--line-2); }
.email-unknown { color: var(--txt-4); background: var(--panel-hi); border-color: var(--line-2); }

/* dm cell */
.cell-dm { min-width: 0; }
.dm-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-role { font-size: 11px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-email-line { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; }
.dm-email { font-family: var(--mono); font-size: 11px; color: var(--txt-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-pill { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 17px; padding: 0 6px; border-radius: 5px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; cursor: help; }
.mx-ok { background: #43d18a18; color: var(--good); border: 1px solid #43d18a40; }
.mx-bad { background: #f0546a15; color: var(--bad); border: 1px solid #f0546a35; }
.mx-none { background: var(--panel-hi); color: var(--txt-3); border: 1px solid var(--line-2); }
.dm-empty { font-size: 12px; color: var(--txt-4); font-style: italic; }

/* status cell */
.cell-status { display: flex; }
.status-select {
  height: 34px; padding: 0 30px 0 11px; font-size: 12.5px; font-weight: 600; border-radius: 8px;
  background: var(--panel-hi); border: 1px solid var(--line-2); width: 100%;
}
.status-select:hover { border-color: var(--line-hi); }
.st-new .status-select { color: var(--txt-2); }
.st-qualified .status-select { color: var(--cold); border-color: #4fa8ff35; }
.st-contacted .status-select { color: var(--accent-2); border-color: var(--accent-line); }
.st-replied .status-select { color: #a78bfa; border-color: #a78bfa40; }
.st-meeting .status-select { color: var(--warm); border-color: #f5b13c40; }
.st-won .status-select { color: var(--good); border-color: #43d18a45; background: #43d18a12; }
.st-lost .status-select { color: var(--txt-3); }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px 24px; gap: 8px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 60%, transparent);
}
.empty-icon { width: 64px; height: 64px; margin-bottom: 10px; opacity: .9; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--txt-3); max-width: 420px; margin: 0; }
.empty .btn { margin-top: 14px; }

/* ============================================================
   SCOUT
   ============================================================ */
.scout-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.scout-input { min-height: 150px; resize: vertical; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; }

/* find-stores mode cards */
.scout-modes { display: flex; flex-direction: column; gap: 18px; }
.mode-card { padding: 20px 22px; }
.mode-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.mode-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-line); }
.mode-icon svg { width: 19px; height: 19px; }
.mode-title { font-size: 16px; letter-spacing: -0.02em; }
.mode-help { color: var(--txt-3); font-size: 12.5px; line-height: 1.55; margin: 5px 0 0; max-width: 560px; }
.mode-body { display: flex; flex-direction: column; gap: 14px; }
.mode-row { display: flex; gap: 14px; align-items: flex-end; }
.mode-row .field { margin-top: 0; }
.mode-num { flex: none; width: 108px; }
.mode-num-wide { flex: none; width: 180px; }
.mode-go { margin-top: 2px; }
@media (max-width: 560px) { .mode-row { flex-direction: column; align-items: stretch; } .mode-num, .mode-num-wide { width: 100%; } }

.sp-leads-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--accent-2); cursor: pointer; text-decoration: none; }
.sp-leads-link:hover { text-decoration: underline; }
.sp-leads-link::after { content: "\2192"; font-size: 14px; }

.scout-side { padding: 22px; min-height: 340px; position: sticky; top: calc(var(--topbar-h) + var(--tabs-h) + 20px); }
.scout-side-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 8px; }
.scout-side-empty h3 { font-size: 16px; margin-bottom: 6px; }
.scout-side-empty p { color: var(--txt-3); font-size: 12.5px; margin: 0; max-width: 240px; }
.scope-ring { position: relative; width: 96px; height: 96px; margin-bottom: 20px; display: grid; place-items: center; }
.scope-ring span { position: absolute; border: 1.5px solid var(--line-2); border-radius: 50%; }
.scope-ring span:nth-child(1) { width: 96px; height: 96px; border-top-color: var(--accent); animation: spin 3.2s linear infinite; }
.scope-ring span:nth-child(2) { width: 64px; height: 64px; border-right-color: var(--accent-2); animation: spin 2.2s linear infinite reverse; }
.scope-ring span:nth-child(3) { width: 8px; height: 8px; background: var(--accent); border: none; box-shadow: 0 0 14px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scope-ring span { animation: none !important; } }

.sp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sp-title { font-weight: 650; font-size: 14px; }
.sp-count { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.sp-bar { height: 8px; border-radius: 5px; background: var(--panel-hi); overflow: hidden; }
.sp-bar span { display: block; height: 100%; width: 0%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s var(--ease); box-shadow: 0 0 12px #ff7a4560; }
.sp-current { margin-top: 10px; font-size: 12px; color: var(--txt-3); font-family: var(--mono); min-height: 16px; }
.sp-log { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; max-height: 260px; overflow-y: auto; }
.sp-item { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12.5px; animation: viewIn .3s var(--ease-out) both; }
.sp-item .spi-dom { font-family: var(--mono); font-weight: 550; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item .spi-badge { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.sp-item.ok { border-color: #43d18a30; }
.sp-item.err { border-color: #f0546a30; }
.spi-badge.ok { background: #43d18a18; color: var(--good); }
.spi-badge.err { background: #f0546a15; color: var(--bad); }
.spi-icon { flex: none; width: 16px; height: 16px; }

/* ============================================================
   CLIENTS & ICP
   ============================================================ */
.clients-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.clients-list { padding: 8px; max-height: 74vh; overflow-y: auto; position: sticky; top: calc(var(--topbar-h) + var(--tabs-h) + 20px); }
.cl-item { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: var(--radius-s); cursor: pointer; transition: background .13s; border: 1px solid transparent; }
.cl-item:hover { background: var(--panel-2); }
.cl-item.is-active { background: var(--accent-dim); border-color: var(--accent-line); }
.cl-avatar { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #1a0e07; background: linear-gradient(160deg, var(--accent-2), var(--accent)); }
.cl-body { flex: 1; min-width: 0; }
.cl-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-meta { font-size: 11px; color: var(--txt-3); margin-top: 2px; }
.cl-plan { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); background: var(--panel-hi); padding: 3px 6px; border-radius: 5px; flex: none; }

.client-editor { padding: 26px; min-height: 400px; }
.editor-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 20px; color: var(--txt-3); }
.editor-empty h3 { color: var(--txt); font-size: 18px; margin-bottom: 6px; }
.editor-form-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.save-flag { align-self: center; background: #43d18a18; color: var(--good); border: 1px solid #43d18a40; border-radius: 7px; padding: 5px 10px; font-size: 11px; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.field-pair .field { margin-top: 0; }

/* chips input */
.chips-input { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-height: 46px; padding: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-s); transition: border-color .15s, box-shadow .15s; }
.chips-input:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-dim); }
.chips { display: contents; }
.chip-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 7px 0 10px; border-radius: 7px; background: var(--panel-hi); border: 1px solid var(--line-2); font-size: 12px; font-weight: 550; }
.chip-tag button { border: none; background: transparent; color: var(--txt-3); padding: 0; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; font-size: 14px; line-height: 1; }
.chip-tag button:hover { background: #f0546a25; color: var(--bad); }
.chips-entry { flex: 1; min-width: 120px; border: none; background: transparent; color: var(--txt); font-size: 13px; padding: 5px 4px; }
.chips-entry:focus { outline: none; }

/* sweet spot slider */
.sweet-field .hint { margin-bottom: 12px; }
.sweet { }
.sweet-track { position: relative; height: 58px; }
.sweet-range { position: absolute; top: 0; height: 46px; border-radius: 9px; background: linear-gradient(180deg, #ff7a4522, #ff7a4510); border: 1px solid var(--accent-line); transition: left .2s var(--ease), width .2s var(--ease); box-shadow: inset 0 0 24px #ff7a4515; }
.sweet-tiers { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.sweet-tier { position: relative; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; text-align: center; transition: color .15s, border-color .15s; height: 46px; }
.sweet-tier .st-short { font-size: 11.5px; font-weight: 650; color: var(--txt-3); }
.sweet-tier .st-range { font-size: 9.5px; color: var(--txt-4); font-family: var(--mono); margin-top: 1px; }
.sweet-tier.in-range { border-color: transparent; }
.sweet-tier.in-range .st-short { color: var(--accent-2); }
.sweet-tier.in-range .st-range { color: var(--accent); }
.sweet-selects { display: flex; gap: 16px; margin-top: 14px; }
.sweet-selects label { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--txt-3); font-weight: 600; }
.sweet-selects select { width: auto; min-width: 140px; height: 36px; padding: 0 32px 0 12px; }

.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.editor-footer-meta { font-size: 12px; color: var(--txt-4); font-family: var(--mono); }
.editor-footer-actions { display: inline-flex; gap: 10px; }

/* ============================================================
   BILLING
   ============================================================ */
.billing-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: auto auto; gap: 20px; align-items: start; }
.billing-plan { grid-row: span 2; padding: 26px; display: flex; flex-direction: column; }
.bp-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--txt-3); font-weight: 700; }
.bp-name { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin-top: 10px; text-transform: capitalize; }
.bp-price { color: var(--accent-2); font-weight: 600; margin-top: 4px; font-size: 14px; }
.bp-feats { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.bp-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--txt-2); }
.bp-feats li svg { flex: none; color: var(--good); margin-top: 1px; }
.bp-note { font-size: 11px; color: var(--txt-4); margin: 12px 0 0; text-align: center; }

.billing-usage { padding: 24px; }
.bu-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); font-weight: 700; }
.bu-big { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 20px; }
.bu-big span { font-family: var(--mono); font-size: 42px; font-weight: 700; letter-spacing: -0.03em; }
.bu-big em { color: var(--txt-3); font-style: normal; font-size: 14px; font-weight: 500; }
.bu-pipe { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel-hi); gap: 2px; }
.bu-seg { height: 100%; min-width: 2px; transition: flex-basis .4s var(--ease); }
.bu-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.bu-leg-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--txt-2); }
.bu-leg-item .swatch { width: 9px; height: 9px; border-radius: 3px; }
.bu-leg-item .n { font-family: var(--mono); color: var(--txt-3); }

.billing-tiers { padding: 24px; }
.bt-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); font-weight: 700; margin-bottom: 16px; }
.bt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bt-card { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 18px; background: var(--bg-2); transition: border-color .15s, transform .15s; }
.bt-card:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.bt-card.current { border-color: var(--accent-line); background: linear-gradient(180deg, #ff7a450e, transparent); }
.bt-name { font-weight: 700; font-size: 15px; text-transform: capitalize; }
.bt-price { font-family: var(--mono); font-size: 22px; font-weight: 700; margin: 8px 0 3px; }
.bt-price small { font-size: 12px; color: var(--txt-3); font-weight: 500; }
.bt-desc { font-size: 12px; color: var(--txt-3); }
.bt-flag { display: inline-block; margin-top: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-2); }

/* ============================================================
   DRAWER (lead detail)
   ============================================================ */
.drawer-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(4,6,10,.6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .28s var(--ease); }
.drawer-scrim.show { opacity: 1; pointer-events: auto; }
.drawer-scrim[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: min(640px, 94vw); background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-3); transform: translateX(100%); transition: transform .34s var(--ease-out); overflow-y: auto; overscroll-behavior: contain; }
.drawer.open { transform: none; }
.drawer-inner { padding: 26px 28px 60px; }

.dr-close { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--txt-2); display: grid; place-items: center; z-index: 2; }
.dr-close:hover { border-color: var(--line-hi); color: var(--txt); }

.dr-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; padding-right: 44px; }
.dr-fav { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: var(--accent-2); background: var(--panel-hi); border: 1px solid var(--line-2); }
.dr-head-body { flex: 1; min-width: 0; }
.dr-store { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.dr-domain { font-family: var(--mono); font-size: 12.5px; color: var(--txt-3); margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; }
.dr-domain a { color: var(--accent-2); text-decoration: none; }
.dr-domain a:hover { text-decoration: underline; }
.dr-scorebox { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 66px; border-radius: 13px; gap: 2px; border: 1px solid; }
.dr-scorebox .num { font-family: var(--mono); font-size: 26px; font-weight: 700; line-height: 1; }
.dr-scorebox .verd { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.dr-reason { padding: 12px 14px; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--txt-2); margin-bottom: 22px; }
.dr-reason strong { color: var(--txt); }

/* email tool card in drawer */
.dr-email-section { margin-bottom: 22px; }
.dr-email-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--panel); }
.dr-email-card.dr-email-hot { border-color: #43d18a40; background: linear-gradient(150deg, #43d18a12, transparent); }
.dr-email-card.dr-email-warm { border-color: #f5b13c40; background: linear-gradient(150deg, #f5b13c12, transparent); }
.dr-email-badge { flex: none; height: 26px; font-size: 12.5px; cursor: default; }
.dr-email-desc { font-size: 12.5px; color: var(--txt-2); line-height: 1.5; }

.dr-section { margin-bottom: 26px; }
.dr-sec-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--txt-3); margin-bottom: 13px; }
.dr-sec-head svg { width: 15px; height: 15px; color: var(--accent); }

/* hook highlight */
.dr-hook { padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(150deg, #ff7a4514, #ff7a4506); border: 1px solid var(--accent-line); position: relative; overflow: hidden; }
.dr-hook::before { content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; background: radial-gradient(circle, #ff7a4525, transparent 70%); }
.dr-hook-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent-2); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.dr-hook-text { font-size: 15px; line-height: 1.55; color: var(--txt); font-weight: 500; position: relative; }

/* revenue estimate */
.dr-estimate-lead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.dr-est-tier { font-size: 15px; font-weight: 700; }
.dr-est-range { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.dr-range-bar { position: relative; height: 44px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); margin: 10px 0; overflow: hidden; }
.dr-range-fill { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #ff7a4530, #ff7a4560); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.dr-range-point { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent); }
.dr-range-point::after { content: attr(data-label); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--txt); white-space: nowrap; text-shadow: 0 1px 4px #000; }
.dr-range-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--txt-3); }
.dr-caveat { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 11.5px; color: var(--txt-3); line-height: 1.5; }
.dr-caveat svg { flex: none; color: var(--warm); margin-top: 1px; }

/* methods table */
.methods { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.method { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--panel); overflow: hidden; }
.method-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.method-name { font-weight: 600; font-size: 13px; flex: 1; }
.method-rev { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.method-conf { display: flex; align-items: center; gap: 7px; flex: none; }
.conf-track { width: 54px; height: 5px; border-radius: 3px; background: var(--panel-hi); overflow: hidden; }
.conf-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.conf-pct { font-family: var(--mono); font-size: 10.5px; color: var(--txt-3); width: 30px; text-align: right; }
.method-body { padding: 0 14px 12px; font-size: 11.5px; color: var(--txt-3); line-height: 1.55; border-top: 1px solid var(--line); padding-top: 10px; }
.method-body .m-note { color: var(--txt-2); }
.method-body .m-assume { margin-top: 5px; font-family: var(--mono); font-size: 10.5px; color: var(--txt-4); }

/* gate factor bars */
.factors { display: flex; flex-direction: column; gap: 12px; }
.factor { display: grid; grid-template-columns: 116px 1fr 42px; align-items: center; gap: 12px; }
.factor-name { font-size: 12.5px; font-weight: 600; color: var(--txt-2); display: flex; align-items: center; gap: 7px; }
.factor-name .fn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.factor-track { height: 8px; border-radius: 5px; background: var(--panel-hi); overflow: hidden; }
.factor-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #ff7a4570, var(--accent)); transition: width .5s var(--ease-out); }
.factor-val { font-family: var(--mono); font-size: 12px; color: var(--txt-2); text-align: right; }
.factor-hint { grid-column: 1 / -1; font-size: 11px; color: var(--txt-4); margin-top: -6px; }

/* contact block */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card { padding: 14px; border-radius: var(--radius-s); background: var(--panel); border: 1px solid var(--line); }
.cc-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); font-weight: 700; margin-bottom: 8px; }
.cc-name { font-weight: 600; font-size: 14px; }
.cc-role { font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.cc-email { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-family: var(--mono); font-size: 12px; color: var(--accent-2); word-break: break-all; }
.cc-meta { margin-top: 9px; font-size: 11px; color: var(--txt-3); }
.cc-empty { color: var(--txt-4); font-size: 12.5px; font-style: italic; }

/* status changer in drawer */
.dr-status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dr-status-chip { padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--txt-3); font-size: 12.5px; font-weight: 600; transition: all .13s; }
.dr-status-chip:hover { border-color: var(--line-hi); color: var(--txt-2); }
.dr-status-chip.active { background: var(--accent-dim); border-color: var(--accent-line); color: var(--accent-2); }

/* activity log */
.add-note { display: flex; gap: 8px; margin-bottom: 16px; }
.add-note input { flex: 1; }
.events { display: flex; flex-direction: column; gap: 0; position: relative; }
.event { position: relative; padding: 0 0 18px 24px; }
.event::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: -4px; width: 1px; background: var(--line-2); }
.event:last-child::before { display: none; }
.event-dot { position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.event-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-2); }
.event-note { font-size: 13px; color: var(--txt-2); margin-top: 2px; }
.event-time { font-size: 11px; color: var(--txt-4); font-family: var(--mono); margin-top: 3px; }
.events-empty { color: var(--txt-4); font-size: 12.5px; font-style: italic; padding: 6px 0; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-scrim { position: fixed; inset: 0; z-index: 110; background: rgba(4,6,10,.68); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-scrim.show { opacity: 1; pointer-events: auto; }
.modal-scrim[hidden] { display: none; }
.modal { width: min(460px, 100%); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-3); padding: 26px; transform: scale(.96); transition: transform .22s var(--ease-out); }
.modal-scrim.show .modal { transform: none; }
.modal h2 { font-size: 20px; }
.modal-sub { color: var(--txt-3); font-size: 13px; margin: 6px 0 18px; }
.modal .field + .field { margin-top: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* quick-start preset in new-client modal */
.preset-row { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); }
.preset-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--txt-3); flex: none; }
.preset-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--accent-line); background: var(--accent-dim); color: var(--accent-2); font-size: 12.5px; font-weight: 600; transition: filter .15s, box-shadow .15s; }
.preset-btn svg { flex: none; }
.preset-btn:hover { filter: brightness(1.15); }
.preset-btn.is-on { box-shadow: 0 0 0 2px var(--accent-line); }
.preset-btn.is-on::after { content: "\2713"; font-weight: 800; }

/* ============================================================
   TOASTS
   ============================================================ */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-3); font-size: 13px; font-weight: 500; max-width: 380px; animation: toastIn .3s var(--ease-out) both; }
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast svg { flex: none; }
.toast.ok { border-color: #43d18a40; } .toast.ok svg { color: var(--good); }
.toast.err { border-color: #f0546a40; } .toast.err svg { color: var(--bad); }
.toast.info svg { color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) scale(.96); } }

/* spinner */
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid #ffffff40; border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }

/* skeleton */
.skel-row { padding: 15px 20px; border-bottom: 1px solid var(--line); }
.skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-hi) 25%, var(--line-2) 37%, var(--panel-hi) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .scout-grid { grid-template-columns: 1fr; }
  .scout-side { position: static; }
  .billing-grid { grid-template-columns: 1fr; }
  .billing-plan { grid-row: auto; }
  .bt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .lead-thead { display: none; }
  .lead-row { grid-template-columns: 1fr auto; grid-template-areas: "store score" "email email" "rev status" "signals signals" "dm dm"; gap: 10px 14px; padding: 16px; }
  .cell-store { grid-area: store; } .cell-score { grid-area: score; justify-content: flex-end; }
  .cell-email { grid-area: email; } .cell-rev { grid-area: rev; } .cell-status { grid-area: status; }
  .cell-signals { grid-area: signals; } .cell-dm { grid-area: dm; }
  .lead-row .th { display: none; }
}
@media (max-width: 900px) {
  .clients-grid { grid-template-columns: 1fr; }
  .clients-list { position: static; max-height: none; }
  .field-pair { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .sweet-tier .st-range { display: none; }
  .topbar { grid-template-columns: auto 1fr auto; }
  .brand-word { display: none; }
}
@media (max-width: 680px) {
  .scout-row { flex-direction: column; align-items: stretch; }
  .scout-actions .btn { width: 100%; }
  .tabs { overflow-x: auto; }
  .plan-badge { display: none; }
  .btn-primary .btn-cta-text, #scoutCta { padding: 0 12px; }
}

/* ---------- Mail / Phone mode switch (shared by both apps) ---------- */
.mode-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; }
.mode-switch a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 7px; color: var(--txt-3); font-weight: 600; font-size: 12.5px; text-decoration: none; transition: color .15s, background .15s; }
.mode-switch a svg { width: 14px; height: 14px; }
.mode-switch a:hover { color: var(--txt-2); }
.mode-switch a.active { background: var(--panel-hi); color: var(--txt); box-shadow: var(--shadow-1); }
@media (max-width: 900px) { .mode-switch { display: none; } }
