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

:root {
  --bg: #07111f;
  --bg-soft: #0b1626;
  --surface: rgba(15, 28, 47, .78);
  --surface-solid: #0f1c2f;
  --surface-raised: #15243a;
  --surface-hover: #1a2b43;
  --text: #f6f8fc;
  --muted: #93a4bb;
  --muted-strong: #bac6d7;
  --line: rgba(158, 180, 207, .14);
  --line-strong: rgba(158, 180, 207, .24);
  --primary: #39e7b4;
  --primary-strong: #1cc995;
  --primary-soft: rgba(57, 231, 180, .12);
  --secondary: #7b73ff;
  --secondary-soft: rgba(123, 115, 255, .14);
  --warning: #ffbf69;
  --danger: #ff6f86;
  --success: #44dda5;
  --shadow: 0 28px 80px rgba(0, 0, 0, .26);
  --shadow-soft: 0 16px 44px rgba(0, 0, 0, .18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar: 268px;
  --topbar: 86px;
}

html[data-theme="light"] {
  --bg: #f3f7fb;
  --bg-soft: #eaf0f7;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-raised: #f8fbfe;
  --surface-hover: #eef4f9;
  --text: #132033;
  --muted: #65758a;
  --muted-strong: #485a71;
  --line: rgba(41, 63, 91, .10);
  --line-strong: rgba(41, 63, 91, .18);
  --primary: #0cc58e;
  --primary-strong: #049f72;
  --primary-soft: rgba(12, 197, 142, .10);
  --secondary: #6458ec;
  --secondary-soft: rgba(100, 88, 236, .10);
  --shadow: 0 28px 80px rgba(43, 66, 92, .14);
  --shadow-soft: 0 16px 44px rgba(43, 66, 92, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
::selection { background: rgba(57, 231, 180, .28); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #052016;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.ambient { position: fixed; z-index: -3; filter: blur(4px); pointer-events: none; border-radius: 50%; }
.ambient-one { width: 540px; height: 540px; top: -200px; right: 8%; background: radial-gradient(circle, rgba(123, 115, 255, .16), transparent 68%); }
.ambient-two { width: 640px; height: 640px; bottom: -300px; left: 22%; background: radial-gradient(circle, rgba(57, 231, 180, .12), transparent 70%); }
.noise { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .024; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"); }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(24px);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; padding: 0 6px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(57, 231, 180, .2); border-radius: 13px; background: linear-gradient(145deg, rgba(57, 231, 180, .14), rgba(123, 115, 255, .12)); box-shadow: inset 0 0 18px rgba(57, 231, 180, .06); }
.brand-mark svg { width: 23px; height: 23px; fill: none; stroke: var(--primary); stroke-width: 2.1; stroke-linecap: round; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: "Manrope"; font-size: 16px; letter-spacing: -.35px; }
.brand em { color: var(--primary); font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: 2.1px; text-transform: uppercase; margin-top: 5px; }

.nav-list { display: grid; gap: 7px; }
.nav-item { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 7px; min-height: 48px; padding: 0 12px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: .2s ease; }
.nav-item:hover { color: var(--text); background: var(--surface); border-color: var(--line); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, var(--primary-soft), rgba(123, 115, 255, .06)); border-color: rgba(57, 231, 180, .17); box-shadow: inset 3px 0 0 var(--primary); }
.nav-icon { width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted-strong); font-size: 18px; }
.nav-item.active .nav-icon { color: var(--primary); }
.nav-badge { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; background: var(--surface-raised); color: var(--muted); font-size: 11px; font-weight: 700; }

.sidebar-card { margin-top: auto; padding: 17px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, var(--surface), rgba(57, 231, 180, .04)); box-shadow: var(--shadow-soft); }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.65px; text-transform: uppercase; }
.sync-line { display: flex; align-items: center; gap: 8px; margin-top: 11px; font-size: 13px; }
.status-dot, #onlineDot { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 4px rgba(255, 191, 105, .10); }
.status-dot.live, #onlineDot.live { background: var(--success); box-shadow: 0 0 0 4px rgba(68, 221, 165, .10); }
.status-dot.error, #onlineDot.error { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 111, 134, .10); }
.sidebar-card p { margin: 9px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sidebar-footer { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; padding: 0 7px; color: var(--muted); font-size: 11px; }
.sidebar-footer a { color: var(--muted-strong); text-decoration: none; }
.sidebar-close { display: none !important; }
.sidebar-backdrop { display: none; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 4vw, 52px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(22px); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left h1 { margin: 4px 0 0; font-family: "Manrope"; font-size: clamp(16px, 2vw, 21px); line-height: 1.2; letter-spacing: -.45px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.online-pill { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 12px; }
.menu-button { display: none !important; }

main { width: min(1480px, 100%); margin: 0 auto; padding: clamp(22px, 4vw, 50px); }
.view { display: none; animation: viewIn .28s ease; }
.view.active { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

button { border: 0; }
.primary-button, .secondary-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 13px; transition: .2s ease; }
.primary-button { color: #03251a; background: linear-gradient(135deg, #50efbf, var(--primary)); box-shadow: 0 12px 28px rgba(57, 231, 180, .17); }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 16px 34px rgba(57, 231, 180, .23); }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.secondary-button:hover { border-color: rgba(57, 231, 180, .28); background: var(--surface-hover); }
.danger-button { border: 1px solid rgba(255, 111, 134, .25); background: rgba(255, 111, 134, .10); color: var(--danger); }
.compact { min-height: 39px; padding: 0 14px; }
.wide { width: 100%; justify-content: space-between; min-height: 50px; padding: 0 19px; }
.text-button { padding: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.icon-button { width: 39px; height: 39px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; font-size: 18px; }
.icon-button:hover { background: var(--surface-hover); border-color: var(--line-strong); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.hero-card { position: relative; overflow: hidden; min-height: 330px; display: grid; grid-template-columns: 1.35fr .85fr; align-items: center; gap: 30px; padding: clamp(28px, 4.3vw, 58px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(120deg, rgba(18, 35, 57, .94), rgba(11, 25, 42, .86)), radial-gradient(circle at 80% 20%, rgba(123, 115, 255, .24), transparent 45%); box-shadow: var(--shadow); }
html[data-theme="light"] .hero-card { background: linear-gradient(120deg, rgba(255,255,255,.96), rgba(244,249,253,.91)), radial-gradient(circle at 80% 20%, rgba(123,115,255,.14), transparent 45%); }
.hero-card::before { content: ""; position: absolute; width: 280px; height: 280px; top: -130px; left: 42%; border: 1px solid rgba(57, 231, 180, .08); border-radius: 50%; box-shadow: 0 0 80px rgba(57, 231, 180, .06); }
.badge-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.premium-badge, .mode-badge, .safety-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.premium-badge { border: 1px solid rgba(57, 231, 180, .25); background: var(--primary-soft); color: var(--primary); }
.mode-badge { border: 1px solid rgba(123, 115, 255, .22); background: var(--secondary-soft); color: #a7a2ff; }
.hero-copy h2 { max-width: 720px; margin: 22px 0 15px; font-family: "Manrope"; font-size: clamp(36px, 5vw, 66px); line-height: 1.02; letter-spacing: -3px; }
.hero-copy h2 span { background: linear-gradient(90deg, var(--primary), #8fffdc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy p { max-width: 630px; margin: 0; color: var(--muted-strong); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.hero-visual { position: relative; min-height: 250px; display: grid; place-items: center; }
.score-ring { position: relative; z-index: 2; width: 154px; height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(57, 231, 180, .24); border-radius: 50%; background: radial-gradient(circle, rgba(57, 231, 180, .16), rgba(9, 25, 41, .85) 66%); box-shadow: inset 0 0 50px rgba(57, 231, 180, .08), 0 0 65px rgba(57, 231, 180, .09); }
html[data-theme="light"] .score-ring { background: radial-gradient(circle, rgba(57, 231, 180, .16), rgba(255,255,255,.94) 66%); }
.score-ring::before { content: ""; position: absolute; inset: -7px; border-top: 2px solid var(--primary); border-right: 2px solid transparent; border-bottom: 2px solid rgba(123, 115, 255, .6); border-left: 2px solid transparent; border-radius: 50%; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.score-ring strong { font-family: "Manrope"; font-size: 48px; letter-spacing: -2px; }
.score-ring span { color: var(--muted); font-size: 11px; }
.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-large { width: 260px; height: 260px; }
.orbit-small { width: 205px; height: 205px; border-style: dashed; }
.floating-node { position: absolute; z-index: 3; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-solid); box-shadow: var(--shadow-soft); color: var(--muted-strong); font-size: 10px; font-weight: 700; }
.node-one { top: 27px; right: 19px; }
.node-two { bottom: 24px; right: 30px; }
.node-three { bottom: 67px; left: 3px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 17px; }
.stat-card, .panel { border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(18px); box-shadow: var(--shadow-soft); }
.stat-card { min-height: 139px; padding: 21px; border-radius: var(--radius-lg); }
.stat-head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.stat-card strong { display: block; margin-top: 18px; font-family: "Manrope"; font-size: 34px; letter-spacing: -1.4px; }
.stat-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.panel { border-radius: var(--radius-lg); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .8fr; gap: 17px; margin-top: 17px; }
.campaign-panel, .quick-panel, .recent-panel, .results-panel, .prospect-panel, .outreach-form, .draft-panel, .discovery-form, .discovery-tips { padding: clamp(20px, 2.5vw, 28px); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.panel-header h3 { margin: 5px 0 0; font-family: "Manrope"; font-size: 18px; letter-spacing: -.45px; }
.pipeline { display: grid; gap: 14px; min-height: 190px; }
.pipeline-row { display: grid; grid-template-columns: 88px 1fr 38px; align-items: center; gap: 12px; }
.pipeline-row span { color: var(--muted-strong); font-size: 12px; }
.pipeline-row b { text-align: right; font-size: 12px; }
.pipeline-track { height: 9px; overflow: hidden; border-radius: 99px; background: var(--surface-raised); }
.pipeline-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); min-width: 2px; }
.pipeline-empty { min-height: 178px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.quick-actions { display: grid; gap: 9px; }
.quick-actions button { width: 100%; min-height: 64px; display: grid; grid-template-columns: 37px 1fr 18px; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-raised); text-align: left; cursor: pointer; }
.quick-actions button:hover { background: var(--surface-hover); border-color: var(--line-strong); transform: translateX(2px); }
.quick-actions button > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { font-size: 12px; }
.quick-actions small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.quick-actions b { color: var(--muted); }
.recent-panel { margin-top: 17px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .9px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--muted-strong); font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(125, 150, 180, .035); }
.site-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.favicon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); color: var(--primary); font-weight: 800; text-transform: uppercase; }
.favicon img { width: 20px; height: 20px; object-fit: contain; }
.site-cell strong, .site-cell small { display: block; }
.site-cell strong { max-width: 250px; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.site-cell small { max-width: 260px; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.score-pill, .status-pill, .type-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 25px; padding: 0 9px; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.score-pill.high { background: rgba(68, 221, 165, .12); color: var(--success); }
.score-pill.medium { background: rgba(255, 191, 105, .12); color: var(--warning); }
.score-pill.low { background: rgba(255, 111, 134, .11); color: var(--danger); }
.status-pill { text-transform: capitalize; }
.status-new { background: var(--secondary-soft); color: #aaa6ff; }
.status-qualified { background: var(--primary-soft); color: var(--primary); }
.status-contacted { background: rgba(83, 162, 255, .12); color: #75b2ff; }
.status-replied { background: rgba(255, 191, 105, .12); color: var(--warning); }
.status-earned { background: rgba(68, 221, 165, .13); color: var(--success); }
.status-rejected { background: rgba(255, 111, 134, .11); color: var(--danger); }
.type-pill { border: 1px solid var(--line); background: var(--surface-raised); color: var(--muted-strong); }
.empty-state { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; text-align: center; }
.empty-state.hidden, .hidden { display: none !important; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-raised); color: var(--primary); font-size: 24px; }
.empty-state h4 { margin: 0 0 7px; font-family: "Manrope"; font-size: 17px; }
.empty-state p { max-width: 430px; margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-intro h2 { margin: 7px 0 7px; font-family: "Manrope"; font-size: clamp(28px, 4vw, 43px); letter-spacing: -1.8px; }
.page-intro p { max-width: 710px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.safety-chip { border: 1px solid rgba(57, 231, 180, .2); background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.discover-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 17px; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field > span { color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.field input:not([type="range"]), .field textarea, .field select, .toolbar select, .search-box { width: 100%; min-height: 45px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: var(--surface-raised); color: var(--text); transition: .2s ease; }
.field input:not([type="range"]), .field textarea, .field select, .toolbar select { padding: 0 13px; }
.field textarea { padding-top: 12px; padding-bottom: 12px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .toolbar select:focus, .search-box:focus-within { border-color: rgba(57, 231, 180, .52); box-shadow: 0 0 0 3px rgba(57, 231, 180, .08); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
select option { background: var(--surface-solid); color: var(--text); }
.input-shell { position: relative; }
.input-shell > span { position: absolute; left: 13px; top: 50%; z-index: 1; transform: translateY(-50%); color: var(--muted); }
.input-shell input { padding-left: 37px !important; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.check-grid label { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); cursor: pointer; }
.check-grid input { accent-color: var(--primary); }
.check-grid span { color: var(--muted-strong); font-size: 11px; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.discovery-tips { align-self: start; position: sticky; top: calc(var(--topbar) + 24px); background: linear-gradient(145deg, var(--surface), rgba(123, 115, 255, .045)); }
.discovery-tips h3 { margin: 7px 0 20px; font-family: "Manrope"; font-size: 22px; }
.quality-list { display: grid; gap: 17px; }
.quality-list > div { display: grid; grid-template-columns: 39px 1fr; gap: 12px; }
.quality-number { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); color: var(--primary); font-size: 10px; font-weight: 800; }
.quality-list strong { font-size: 12px; }
.quality-list p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.results-panel { margin-top: 17px; }
.results-header { align-items: flex-end; }
.result-actions { display: flex; gap: 8px; }
.result-actions select { min-height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); color: var(--muted-strong); outline: none; font-size: 11px; }
.discovery-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result-card { position: relative; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-raised); transition: .2s ease; }
.result-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.result-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.result-card-title { display: flex; gap: 11px; min-width: 0; }
.result-card-title h4 { max-width: 360px; margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.result-card-title p { max-width: 360px; margin: 5px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.result-snippet { min-height: 45px; margin: 0; color: var(--muted-strong); font-size: 11px; line-height: 1.55; }
.result-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.result-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 2px; }
.result-card-actions a { color: var(--primary); font-size: 10px; font-weight: 700; text-decoration: none; }
.result-card-actions button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-solid); cursor: pointer; color: var(--text); font-size: 10px; font-weight: 700; }
.result-card.saved { border-color: rgba(57, 231, 180, .22); }
.result-card.saved::after { content: "Saved"; position: absolute; top: 10px; right: 10px; padding: 4px 7px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; }
.query-result { grid-template-columns: 1fr; }
.query-result .query-box { padding: 12px; border: 1px dashed var(--line-strong); border-radius: 11px; background: var(--surface-solid); color: var(--muted-strong); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.5; word-break: break-word; }
.query-links { display: flex; flex-wrap: wrap; gap: 8px; }
.query-links a { min-height: 34px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-solid); color: var(--text); font-size: 10px; font-weight: 700; text-decoration: none; }

.toolbar { display: grid; grid-template-columns: minmax(230px, 1fr) repeat(3, auto); gap: 9px; margin-bottom: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.search-box span { color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.toolbar select { width: auto; padding-right: 30px; font-size: 11px; }
.prospect-table-wrap { min-height: 220px; }
.prospect-table th:first-child, .prospect-table td:first-child { width: 38px; }
.prospect-table input[type="checkbox"] { accent-color: var(--primary); }
.contact-cell { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-menu { display: flex; gap: 6px; }
.table-action { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); cursor: pointer; color: var(--muted-strong); }
.table-action:hover { border-color: var(--line-strong); color: var(--text); }
.table-action.delete:hover { border-color: rgba(255, 111, 134, .25); color: var(--danger); }
.bulk-bar { position: sticky; bottom: 15px; z-index: 4; display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: fit-content; margin: 15px 0 0 auto; padding: 9px 10px 9px 14px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-solid); box-shadow: var(--shadow); }
.bulk-bar span { margin-right: 8px; color: var(--muted); font-size: 11px; }
.bulk-bar select { min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); color: var(--text); font-size: 11px; }

.outreach-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 17px; }
.draft-panel { align-self: start; position: sticky; top: calc(var(--topbar) + 24px); }
.draft-body-field textarea { min-height: 350px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.draft-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 10px; }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.guide-card { padding: clamp(24px, 3vw, 34px); }
.guide-card.good { background: linear-gradient(145deg, var(--surface), rgba(57, 231, 180, .045)); }
.guide-card.bad { background: linear-gradient(145deg, var(--surface), rgba(255, 111, 134, .035)); }
.guide-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-size: 22px; font-weight: 800; }
.guide-card.bad .guide-symbol { background: rgba(255, 111, 134, .10); color: var(--danger); }
.guide-card h3 { margin: 17px 0 15px; font-family: "Manrope"; font-size: 22px; }
.guide-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide-card li { position: relative; padding-left: 20px; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.guide-card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.guide-card.bad li::before { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 111, 134, .09); }
.wide-card { grid-column: 1 / -1; }
.workflow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.workflow-steps > div { min-height: 140px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.workflow-steps b { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 11px; }
.workflow-steps strong, .workflow-steps small { display: block; }
.workflow-steps strong { font-size: 11px; }
.workflow-steps small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.modal { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(2, 7, 14, .66); backdrop-filter: blur(8px); }
.modal-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface-solid); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 5px 0 0; font-family: "Manrope"; font-size: 21px; }
.modal-body { max-height: calc(100vh - 210px); overflow-y: auto; padding: 23px 24px 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 24px; border-top: 1px solid var(--line); }
.small-modal { width: min(500px, calc(100% - 28px)); }
.export-options { display: grid; gap: 10px; padding: 22px; }
.export-options button { min-height: 70px; display: grid; grid-template-columns: 46px 1fr 20px; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); color: var(--text); text-align: left; cursor: pointer; }
.export-options button:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.export-options button > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 800; }
.export-options strong, .export-options small { display: block; }
.export-options strong { font-size: 12px; }
.export-options small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.export-options b { color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--primary); }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 9px; width: min(360px, calc(100% - 40px)); }
.toast { display: grid; grid-template-columns: 27px 1fr 20px; align-items: start; gap: 10px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 13px; background: var(--surface-solid); box-shadow: var(--shadow); animation: toastIn .25s ease; }
.toast.success { border-color: rgba(57, 231, 180, .22); }
.toast.error { border-color: rgba(255, 111, 134, .25); }
.toast > span:first-child { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.toast.error > span:first-child { background: rgba(255,111,134,.10); color: var(--danger); }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 11px; }
.toast small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.toast button { background: transparent; color: var(--muted); cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(22px, 4vw, 52px) 28px; color: var(--muted); font-size: 10px; }
.site-footer a { color: var(--muted-strong); text-decoration: none; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-raised); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1180px) {
  .hero-card { grid-template-columns: 1fr .72fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(3, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search-box { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 276px; transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: inline-grid !important; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(2, 7, 14, .55); backdrop-filter: blur(4px); }
  .sidebar-backdrop.show { display: block; }
  .workspace { margin-left: 0; }
  .menu-button { display: inline-grid !important; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .dashboard-grid, .discover-layout, .outreach-layout { grid-template-columns: 1fr; }
  .discovery-tips, .draft-panel { position: static; }
  .discovery-results { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --topbar: 72px; }
  .topbar { padding: 0 15px; }
  .topbar-left h1, .topbar-left .eyebrow { display: none; }
  .online-pill, .topbar-actions .secondary-button { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .primary-button { font-size: 0; width: 40px; padding: 0; }
  .topbar-actions .primary-button::after { content: "+"; font-size: 20px; }
  main { padding: 18px 14px 34px; }
  .hero-card { min-height: auto; padding: 27px 22px; border-radius: 22px; }
  .hero-copy h2 { font-size: 39px; letter-spacing: -2px; }
  .hero-copy p { font-size: 13px; }
  .hero-actions > * { flex: 1 1 150px; }
  .stats-grid { gap: 10px; }
  .stat-card { min-height: 124px; padding: 17px; border-radius: 16px; }
  .stat-card strong { font-size: 29px; }
  .panel { border-radius: 17px; }
  .campaign-panel, .quick-panel, .recent-panel, .results-panel, .prospect-panel, .outreach-form, .draft-panel, .discovery-form, .discovery-tips { padding: 18px; }
  .page-intro { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
  .page-intro h2 { font-size: 30px; letter-spacing: -1.1px; }
  .safety-chip { white-space: normal; }
  .field-grid, .check-grid { grid-template-columns: 1fr; gap: 0; }
  .check-grid { gap: 8px; }
  .result-actions { width: 100%; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .result-actions select { flex: 1; min-width: 0; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .search-box { grid-column: auto; }
  .toolbar select { width: 100%; }
  .guide-grid { grid-template-columns: 1fr; }
  .wide-card { grid-column: auto; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps > div { min-height: auto; display: grid; grid-template-columns: 36px 1fr; gap: 10px; }
  .workflow-steps b { margin: 0; }
  .draft-footer, .site-footer { align-items: flex-start; flex-direction: column; }
  .modal-head, .modal-body, .modal-actions { padding-left: 18px; padding-right: 18px; }
  .bulk-bar { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .prospect-table { min-width: 930px; }
}

@media (max-width: 500px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-head span:first-child { max-width: 80px; }
  .hero-actions { flex-direction: column; }
  .hero-actions > * { flex-basis: auto; width: 100%; }
  .result-card-actions { align-items: flex-start; flex-direction: column; }
  .query-links { width: 100%; }
  .query-links a { flex: 1; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
