:root {
  --bg: #070a12;
  --panel: rgba(20, 27, 45, .72);
  --panel-solid: #121a2c;
  --panel-2: #1a2440;
  --border: rgba(120, 140, 190, .16);
  --border-strong: rgba(120, 140, 190, .3);
  --text: #eef2fb;
  --muted: #8d98b3;
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(135deg, #5b8cff 0%, #8b5cf6 100%);
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --cyan: #22d3ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text); font-size: 14px; line-height: 1.5; min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(91, 140, 255, .12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(139, 92, 246, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 12px; }
code { background: var(--panel-2); padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Forms ── */
label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; background: rgba(7, 10, 18, .6); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 10px 12px; font: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 140, 255, .18); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; flex: none; accent-color: var(--accent); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; margin: 0; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 0 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border-strong);
  background: rgba(26, 36, 64, .7); color: var(--text); padding: 9px 15px; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 550; white-space: nowrap; transition: transform .12s, border-color .15s, background .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--accent); background: rgba(38, 52, 92, .8); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(91, 140, 255, .3); }
.btn.primary:hover { box-shadow: 0 8px 26px rgba(91, 140, 255, .45); filter: brightness(1.06); }
.btn.big { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; background: rgba(11, 16, 32, .75); backdrop-filter: blur(14px);
  border-right: 1px solid var(--border); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 17px; padding: 2px 10px 22px; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(91, 140, 255, .4); }
.brand .logo svg { width: 18px; height: 18px; stroke: #fff; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--muted);
  font-weight: 500; position: relative; transition: background .15s, color .15s; margin-bottom: 2px;
}
.nav a:hover { background: rgba(91, 140, 255, .08); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(91, 140, 255, .18), rgba(139, 92, 246, .06)); color: var(--text); }
.nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav a .live-dot { margin-left: auto; }
.sidebar .who { margin-top: auto; padding: 12px 6px 0; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
.sidebar .who .em { color: var(--text); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
main { padding: 32px 36px 60px; max-width: 1240px; width: 100%; }

.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* ── Cards ── */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  margin-bottom: 18px; backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.cols > .card { margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.stat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; }
.stat .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stat .k { color: var(--muted); font-size: 12.5px; }
.stat .bar { height: 5px; background: rgba(255, 255, 255, .06); border-radius: 5px; margin-top: 10px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--grad); transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.tint-blue { background: rgba(91, 140, 255, .14); color: #8fb0ff; }
.tint-purple { background: rgba(139, 92, 246, .14); color: #b79cff; }
.tint-green { background: rgba(52, 211, 153, .14); color: #6ee7b7; }
.tint-yellow { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.tint-cyan { background: rgba(34, 211, 238, .14); color: #67e8f9; }
.tint-red { background: rgba(248, 113, 113, .14); color: #fca5a5; }

/* ── Live signals ── */
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
.live-dot.yellow { background: var(--yellow); } .live-dot.blue { background: var(--accent); } .live-dot.cyan { background: var(--cyan); }
.live-dot.idle { background: #3b4560; } .live-dot.idle::after { display: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.signals { display: grid; gap: 10px; }
.signal { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .025); border: 1px solid var(--border); transition: border-color .3s, background .3s; }
.signal.on { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .05); }
.signal .t { font-weight: 600; } .signal .d { color: var(--muted); font-size: 12.5px; }
.signal .n { margin-left: auto; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(52, 211, 153, .12); color: var(--green); }
.live-pill.idle { background: rgba(141, 152, 179, .1); color: var(--muted); }

.progress { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .6s ease; }
.progress.indeterminate i { width: 40% !important; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ── Setup checklist ── */
.checklist { display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); transition: background .15s, border-color .15s; color: var(--text); }
a.step:hover { border-color: var(--accent); background: rgba(91, 140, 255, .06); }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--panel-2); color: var(--muted); flex: none; }
.step .d { color: var(--muted); font-size: 12px; }
.step.done .num { background: rgba(52, 211, 153, .18); color: var(--green); }
.step.done .t { color: var(--muted); text-decoration: line-through; }
.step.next { border-color: rgba(91, 140, 255, .5); box-shadow: 0 0 0 3px rgba(91, 140, 255, .08); }
.step.next .num { background: var(--grad); color: #fff; }
.step .go { margin-left: auto; color: var(--accent); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--panel-solid); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* ── Activity feed ── */
.feed .item { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.feed .item:last-child { border-bottom: 0; }
.feed .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.feed .ico svg { width: 16px; height: 16px; }
.feed .txt { min-width: 0; } .feed .txt div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .when { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.quick a { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text); transition: transform .15s, border-color .15s; }
.quick a:hover { transform: translateY(-2px); border-color: var(--accent); }
.quick .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.quick b { display: block; } .quick span { color: var(--muted); font-size: 12.5px; }

/* ── Find leads wizard ── */
.wstep { margin-bottom: 26px; }
.wstep h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wstep h3 .num { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; }
.niche-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
.niche {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 550;
  transition: transform .15s, border-color .15s, background .15s; text-align: center;
}
.niche .emo { font-size: 24px; line-height: 1; }
.niche:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.niche.sel { border-color: var(--accent); background: rgba(91, 140, 255, .12); box-shadow: 0 0 0 3px rgba(91, 140, 255, .12); }
.seg { display: inline-flex; background: rgba(7, 10, 18, .6); border: 1px solid var(--border-strong); border-radius: 11px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { background: none; border: 0; color: var(--muted); padding: 7px 18px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.seg button.sel { background: var(--grad); color: #fff; }
.seg button:disabled { opacity: .3; cursor: not-allowed; }
.summary { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 12px; background: rgba(91, 140, 255, .06); border: 1px dashed rgba(91, 140, 255, .35); }
.summary .s { font-size: 15px; } .summary .s b { color: #b8cbff; }

/* Combobox */
.combo { position: relative; }
.combo input { padding-left: 38px; }
.combo > svg.i { position: absolute; left: 12px; top: 12px; color: var(--muted); pointer-events: none; }
.combo-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto;
  background: #10172a; border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  animation: pop .14s ease-out;
}
.combo-list .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.combo-list .opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.combo-list .opt .sub { margin-left: auto; color: var(--muted); font-size: 12px; }
.combo-list .opt.hl { background: rgba(91, 140, 255, .16); }
.combo-list .empty { padding: 10px; color: var(--muted); font-size: 13px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Search progress cards */
.runs { display: grid; gap: 12px; }
.run { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.run.active { border-color: rgba(91, 140, 255, .4); }
.run .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.run .title { font-weight: 650; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.pipeline .ps { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .025); }
.pipeline .ps.on { color: var(--text); background: rgba(91, 140, 255, .12); }
.pipeline .ps.ok { color: var(--green); }
.pipeline .ps.bad { color: var(--red); }
.run .nums { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; align-items: center; }
.run .nums b { color: var(--text); font-size: 15px; }

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 550; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
td { font-size: 13px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(91, 140, 255, .04); }
.table-wrap { overflow-x: auto; }
td .sub { color: var(--muted); font-size: 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 650; background: var(--panel-2); color: var(--muted); text-transform: capitalize; }
.badge.ok, .badge.done, .badge.sent, .badge.active, .badge.replied { background: rgba(52, 211, 153, .14); color: var(--green); }
.badge.running { background: rgba(91, 140, 255, .16); color: #9bb8ff; }
.badge.running::before, .badge.queued::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.1s ease-in-out infinite; }
.badge.failed, .badge.banned, .badge.bounced, .badge.unsubscribed, .badge.cancelled { background: rgba(248, 113, 113, .14); color: var(--red); }
.badge.queued, .badge.paused, .badge.pending, .badge.contacted { background: rgba(251, 191, 36, .14); color: var(--yellow); }
.badge.admin { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 13px; border: 1px solid var(--border); background: rgba(26, 36, 64, .6); }
.notice.error { border-color: rgba(248, 113, 113, .35); color: #fecaca; background: rgba(248, 113, 113, .07); }
.notice.warn { border-color: rgba(251, 191, 36, .35); color: #fde68a; background: rgba(251, 191, 36, .06); }
.notice.good { border-color: rgba(52, 211, 153, .35); color: #a7f3d0; background: rgba(52, 211, 153, .06); }

#toast { position: fixed; bottom: 22px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
#toast div { background: #141c31; border: 1px solid var(--border-strong); border-left: 3px solid var(--green);
  padding: 12px 16px; border-radius: 12px; max-width: 380px; box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
#toast div.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

dialog { background: #10172a; color: var(--text); border: 1px solid var(--border-strong); border-radius: 16px; padding: 24px; width: min(660px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog[open] { animation: pop .18s ease-out; }
dialog::backdrop { background: rgba(3, 5, 12, .7); backdrop-filter: blur(3px); }
pre.email { white-space: pre-wrap; background: rgba(7, 10, 18, .6); border: 1px solid var(--border); border-radius: 10px; padding: 16px; font-family: inherit; }

/* Page entrance */
.fade-in > * { animation: fade-up .4s ease-out both; }
.fade-in > *:nth-child(2) { animation-delay: .04s; } .fade-in > *:nth-child(3) { animation-delay: .08s; }
.fade-in > *:nth-child(4) { animation-delay: .12s; } .fade-in > *:nth-child(5) { animation-delay: .16s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Tags & filters */
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 11px; font-weight: 650; margin: 3px 4px 0 0; }
.tag-blue { background: rgba(91, 140, 255, .16); color: #9bb8ff; }
.tag-green { background: rgba(52, 211, 153, .15); color: #6ee7b7; }
.tag-yellow { background: rgba(251, 191, 36, .15); color: #fcd34d; }
.tag-red { background: rgba(248, 113, 113, .15); color: #fca5a5; }
.tag-purple { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
.tag-gray { background: rgba(141, 152, 179, .15); color: #cbd5e1; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; background: rgba(91, 140, 255, .06); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }

/* ── Auth pages ── */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .card { width: min(420px, 100%); padding: 32px; animation: fade-up .4s ease-out both; }
.auth .brand { padding: 0 0 8px; font-size: 20px; }
.tabs { display: flex; gap: 4px; margin: 16px 0 20px; background: rgba(7, 10, 18, .6); padding: 4px; border-radius: 11px; border: 1px solid var(--border); }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 9px 6px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 550; transition: background .15s, color .15s; }
.tabs button.active { background: var(--grad); color: #fff; }
.divider { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0; }

@media (max-width: 980px) { .cols { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .sidebar .who, .sidebar .brand { display: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 8px 10px; white-space: nowrap; margin: 0; }
  .nav a.active::before { display: none; }
  main { padding: 18px 16px 50px; }
  .grid2, .grid3, .pipeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Summary chips ── */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }
.chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.chip .ic svg { width: 16px; height: 16px; }
.chip b { font-size: 17px; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.chip span { color: var(--muted); font-size: 11.5px; }

/* ── Lead rows ── */
.biz { display: flex; gap: 12px; align-items: flex-start; }
.biz-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; flex: none; }
.copy { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: 6px; vertical-align: middle; }
.copy:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.copy svg { width: 14px; height: 14px; }
.links { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.links a { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: rgba(91, 140, 255, .1); color: #9bb8ff; }
.links a:hover { background: rgba(91, 140, 255, .2); }
.finding { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: 12px; }

/* ── Empty states ── */
.empty-state { text-align: center; padding: 42px 20px; }
.empty-state .big-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(91, 140, 255, .12); color: #9bb8ff; }
.empty-state .big-ic svg { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 16px; }

/* ── Campaign cards ── */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.camp { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.camp:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.camp.running { border-color: rgba(52, 211, 153, .4); box-shadow: 0 0 0 3px rgba(52, 211, 153, .07), var(--shadow); }
.camp .head { display: flex; gap: 12px; align-items: flex-start; }
.camp .head .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.camp .name { font-weight: 650; font-size: 15px; }
.camp .meta { color: var(--muted); font-size: 12px; }
.camp .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.camp .kpi { background: rgba(255, 255, 255, .03); border-radius: 10px; padding: 10px; text-align: center; }
.camp .kpi b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.camp .kpi span { color: var(--muted); font-size: 11px; }
.camp .next { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--green); background: rgba(52, 211, 153, .07); padding: 8px 12px; border-radius: 10px; }
.camp .err { font-size: 12.5px; color: #fecaca; background: rgba(248, 113, 113, .08); padding: 8px 12px; border-radius: 10px; }
.camp .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }

/* ── Settings tabs & providers ── */
.stabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.stabs button { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); padding: 10px 16px; border-radius: 11px; cursor: pointer; font: inherit; font-weight: 550; transition: all .15s; }
.stabs button:hover { color: var(--text); border-color: var(--border-strong); }
.stabs button.sel { color: #fff; background: var(--grad); border-color: transparent; }
.stabs .ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.stabs .no-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); }
.providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.provider { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text); cursor: pointer; font: inherit; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .15s; }
.provider .emo { font-size: 22px; }
.provider span { color: var(--muted); font-size: 11px; font-weight: 500; }
.provider:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.provider.sel { border-color: var(--accent); background: rgba(91, 140, 255, .1); }
.help { font-size: 12.5px; color: var(--muted); background: rgba(91, 140, 255, .06); border: 1px solid rgba(91, 140, 255, .2); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; }
.status-line.ok { background: rgba(52, 211, 153, .12); color: var(--green); }
.status-line.no { background: rgba(251, 191, 36, .12); color: var(--yellow); }

/* ── Auth split layout ── */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 26px;
  background: radial-gradient(700px 400px at 20% 20%, rgba(91, 140, 255, .22), transparent 60%), radial-gradient(600px 400px at 80% 90%, rgba(139, 92, 246, .2), transparent 60%); }
.auth-hero h1 { font-size: 38px; line-height: 1.15; margin: 0; }
.auth-hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero .lead { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0; }
.feat { display: flex; gap: 14px; align-items: flex-start; max-width: 480px; animation: fade-up .5s ease-out both; }
.feat:nth-child(2) { animation-delay: .08s; } .feat:nth-child(3) { animation-delay: .16s; } .feat:nth-child(4) { animation-delay: .24s; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.feat b { display: block; margin-bottom: 2px; } .feat span { color: var(--muted); font-size: 13.5px; }
.feats { display: grid; gap: 18px; }
.auth-split .auth { min-height: 100vh; }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-hero { display: none; } }

/* Spinner + verification */
.spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: currentColor; border-radius: 50%; animation: rot .7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.test-result { margin-top: 12px; }
.verify-wrap { min-height: 70vh; display: grid; place-items: center; }
.verify-card { width: min(460px, 100%); text-align: center; padding: 34px; }
.code-input { font-size: 28px; letter-spacing: 12px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 14px; }
