/* ═══════════════════════════════════════
   ThreadHunter — Design System
   Light yellow · Neon accents · Modern SaaS
═══════════════════════════════════════ */

:root {
  --bg:             #F8F7EE;
  --sidebar-bg:     #FFFDE8;
  --sidebar-border: #E2DCA0;
  --yellow:         #F4DB00;
  --yellow-hover:   #E6CE00;
  --yellow-light:   #FFFBE0;
  --neon:           #C8FF00;
  --neon-dim:       rgba(200,255,0,.16);
  --text:           #1A1A1A;
  --muted:          #6B6B78;
  --light:          #A8A8B4;
  --white:          #FFFFFF;
  --border:         #E4E1D0;
  --success:        #22C55E;
  --warning:        #F59E0B;
  --danger:         #EF4444;
  --info:           #3B82F6;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,.08);
  --r:              8px;
  --r-lg:           14px;
  --sidebar-w:      252px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 14px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── App Shell ────────────────────────── */

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ──────────────────────────── */

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
}

.sidebar-brand {
  padding: 20px 16px 15px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.4px;
  color: var(--text);
}
.brand-link:hover { text-decoration: none; color: var(--text); }

.brand-logo {
  width: 30px; height: 30px;
  background: var(--yellow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(200,180,0,.25);
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--light);
  padding: 0 6px;
  margin-bottom: 7px;
}

/* Dashboard nav link */
.sidebar-dashboard-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 8px;
  transition: background .1s, color .1s;
}
.sidebar-dashboard-link:hover {
  background: var(--yellow-light);
  color: var(--text);
  text-decoration: none;
}
.sidebar-dashboard-link.active {
  background: var(--neon-dim);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--neon);
}

/* Create New */
.btn-create-new {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 8px 11px;
  background: var(--yellow);
  border: none;
  border-radius: var(--r);
  color: var(--text);
  font: 600 13px 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background .15s, box-shadow .15s;
}
.btn-create-new:hover, .btn-create-new:focus {
  background: var(--yellow-hover);
  box-shadow: 0 0 14px rgba(200,255,0,.28);
  text-decoration: none;
  color: var(--text);
}

.create-icon {
  width: 18px; height: 18px;
  background: rgba(0,0,0,.1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  flex-shrink: 0;
}

/* Business List */
.business-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 1px;
}

.business-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  transition: background .1s, color .1s;
  width: 100%;
}
.business-link:hover {
  background: var(--yellow-light);
  color: var(--text);
  text-decoration: none;
}
.business-item.active .business-link {
  background: var(--neon-dim);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--neon);
}

.b-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.b-dot.ready      { background: var(--success); }
.b-dot.pending    { background: var(--warning); }
.b-dot.processing { background: var(--info); }
.b-dot.failed     { background: var(--danger); }

.b-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 12px;
  flex-shrink: 0;
}

.sidebar-user {
  display: flex; align-items: center; gap: 9px;
}
.user-avatar {
  width: 32px; height: 32px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0; color: var(--text);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-logout {
  background: none; border: none; padding: 0;
  font-size: 11px; font-family: inherit;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.btn-logout:hover { color: var(--danger); }

.sidebar-auth { display: flex; flex-direction: column; gap: 6px; }

.btn-auth {
  display: block; width: 100%;
  padding: 8px 12px; border-radius: var(--r);
  text-align: center; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .15s;
}
.btn-auth.login {
  background: var(--yellow); color: var(--text); border: 1px solid transparent;
}
.btn-auth.login:hover {
  background: var(--yellow-hover);
  box-shadow: 0 0 12px rgba(200,255,0,.25);
  text-decoration: none; color: var(--text);
}
.btn-auth.register {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
}
.btn-auth.register:hover {
  background: var(--yellow-light); color: var(--text); text-decoration: none;
}

/* ── Main Area ────────────────────────── */

.main-area {
  margin-left: var(--sidebar-w);
  flex: 1; min-width: 0;
}

.main-content {
  padding: 36px 44px;
  max-width: 1200px;
}

/* ── Page Header ──────────────────────── */

.page-header { margin-bottom: 24px; }

.page-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.4px;
  margin: 0 0 4px; color: var(--text);
}
.page-subtitle { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ── Stats Bar ────────────────────────── */

.stats-bar {
  display: flex; gap: 0;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat-item {
  padding: 14px 22px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3px;
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}

/* ── Leads Table ──────────────────────── */

.leads-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
}

.leads-table thead th {
  background: #FFFDF2;
  padding: 11px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}

.leads-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.leads-table tbody tr:last-child { border-bottom: none; }
.leads-table tbody tr:hover { background: var(--yellow-light); }

.leads-table td {
  padding: 13px 16px;
  vertical-align: top;
}

/* Match Badge */
.match-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.match-high   { background: var(--neon-dim); color: #2a5c00; border: 1px solid rgba(200,255,0,.45); }
.match-medium { background: #FFF8DC; color: #8a6514; border: 1px solid #EDD060; }
.match-low    { background: #F5F5F5; color: var(--muted); border: 1px solid var(--border); }

/* Lead Title */
.lead-title-link {
  font-weight: 600; font-size: 13.5px; color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.4;
}
.lead-title-link:hover { color: #000; text-decoration: underline; }

.lead-excerpt {
  font-size: 12px; color: var(--muted); margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Matched subreddits bar */
.matched-subreddits {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.matched-subreddits-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin-right: 4px;
}
.matched-subreddits .subreddit-tag {
  text-decoration: none;
}
.matched-subreddits .subreddit-tag:hover {
  background: #eded9a;
}

/* Subreddit Tag */
.subreddit-tag {
  display: inline-block; padding: 2px 8px;
  background: var(--yellow-light);
  border: 1px solid #dad690; border-radius: 4px;
  font-size: 12px; font-weight: 500; color: #6a5a00;
  white-space: nowrap;
}

.author-text { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.stats-text  { font-size: 12px;   color: var(--muted); white-space: nowrap; }
.date-text   { font-size: 12px;   color: var(--light); white-space: nowrap; }

/* ── Empty State ──────────────────────── */

.empty-state {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 72px 32px;
}
.empty-icon  { font-size: 44px; margin-bottom: 14px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.empty-desc  { font-size: 13.5px; color: var(--muted); max-width: 340px; margin: 0 auto 24px; line-height: 1.6; }

/* ── Form Card ────────────────────────── */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}

/* Override Bootstrap form controls */
.form-control {
  border: 1.5px solid var(--border) !important;
  border-radius: var(--r) !important;
  font-size: 13.5px !important;
  padding: 9px 13px !important;
  color: var(--text) !important;
  background: var(--white) !important;
  font-family: inherit !important;
  transition: border-color .15s, box-shadow .15s !important;
}
.form-control:focus {
  border-color: var(--yellow) !important;
  box-shadow: 0 0 0 3px rgba(244,219,0,.18) !important;
  outline: none !important;
}

.form-label { font-weight: 500; font-size: 13px; color: var(--text); margin-bottom: 5px; }

.field-error { display: block; font-size: 11.5px; color: var(--danger); margin-top: 4px; }

/* jQuery Validate classes */
.field-validation-error { font-size: 11.5px; color: var(--danger); }
.input-validation-error {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

.validation-summary {
  color: var(--danger); font-size: 13px;
  padding: 12px 14px; margin-bottom: 16px;
  background: rgba(239,68,68,.05);
  border: 1px solid rgba(239,68,68,.15);
  border-radius: var(--r);
}
.validation-summary ul { margin: 0; padding-left: 18px; }

/* ── Buttons ──────────────────────────── */

.th-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r);
  font: 600 13px 'Inter', sans-serif;
  cursor: pointer; text-decoration: none; border: none;
  transition: all .15s; line-height: 1; white-space: nowrap;
}
.th-btn-primary {
  background: var(--yellow); color: var(--text);
}
.th-btn-primary:hover {
  background: var(--yellow-hover);
  box-shadow: 0 0 14px rgba(200,255,0,.32);
  color: var(--text); text-decoration: none;
}
.th-btn-secondary {
  background: transparent; border: 1.5px solid var(--border); color: var(--muted);
}
.th-btn-secondary:hover {
  background: var(--yellow-light); color: var(--text); text-decoration: none;
}

/* ── Landing Page ─────────────────────── */

.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,247,238,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Hero - 2-column layout */
.lp-hero {
  padding: 80px 0;
  background: var(--bg);
}

.lp-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.lp-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  background: var(--yellow-light);
  border: 1px solid #dad690;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6a5a00;
  letter-spacing: .02em;
  margin-bottom: 24px;
}

.lp-hero-title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 20px;
  text-align: left;
}

.lp-hero-title .accent {
  background: linear-gradient(120deg, var(--yellow), var(--neon));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lp-hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 36px;
  line-height: 1.7;
}

.lp-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.lp-hero-note {
  font-size: 12px;
  color: var(--light);
  font-weight: 500;
}

.lp-cta-btn {
  font-size: 15px !important;
  padding: 13px 28px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(244,219,0,.35);
}

/* Hero preview (leads mock) */
.lp-hero-preview {
  position: relative;
}

.lp-preview-window {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.13), 0 4px 16px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.09);
  background: var(--bg);
  height: 380px;
  position: relative;
}

.lp-preview-window::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.lp-preview-chrome {
  background: #EFEDE5;
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-preview-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}
.lp-preview-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.lp-preview-dots span:nth-child(1) { background: #ff5f57; }
.lp-preview-dots span:nth-child(2) { background: #febc2e; }
.lp-preview-dots span:nth-child(3) { background: #28c840; }

.lp-preview-url {
  flex: 1;
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.lp-preview-body {
  overflow: hidden;
}

.lp-preview-inner {
  transform: scale(0.70);
  transform-origin: top left;
  width: calc(100% / 0.70);
}

/* Carousel variant */
.lp-preview-window--carousel {
  height: 256px;
}

.lp-preview-window--carousel::after {
  background: linear-gradient(to bottom, transparent, var(--white));
  height: 52px;
}

.lp-carousel-thead {
  display: grid;
  grid-template-columns: 60px 1fr 112px 70px;
  gap: 10px;
  padding: 9px 16px;
  background: #FFFDF2;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.lp-leads-carousel {
  background: var(--white);
}

.lp-lead-row {
  display: grid;
  grid-template-columns: 60px 1fr 112px 70px;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  align-items: start;
  max-height: 80px;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.45s ease,
              padding-top 0.45s ease, padding-bottom 0.45s ease;
}

.lp-lead-row.lp-row-entering {
  opacity: 0;
}

.lp-lead-row.lp-row-exiting {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.lp-lead-row-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* Stats bar */
.lp-stats-bar {
  background: var(--text);
  padding: 28px 0;
}

.lp-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-stat {
  text-align: center;
  padding: 0 40px;
  flex: 1;
}

.lp-stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.1);
}

.lp-stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 5px;
}

.lp-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

/* Full sections */
.lp-full-section {
  width: 100%;
  padding: 88px 0;
}

.lp-section-white {
  background: var(--white);
}

.lp-section-head {
  text-align: center;
  margin-bottom: 60px;
}

.lp-section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.lp-section-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

/* Steps */
.lp-steps-row {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: start;
}

.lp-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}

.lp-step-num {
  width: 36px; height: 36px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(244,219,0,.35);
}

.lp-step-arrow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 46px;
  color: var(--light);
  font-size: 24px;
}
.lp-step-arrow::after { content: '→'; }

.lp-step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.lp-step-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Features */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.lp-feature:hover {
  border-color: #dad690;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lp-feature-icon {
  width: 44px; height: 44px;
  background: var(--yellow-light);
  border: 1px solid #dad690;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #6a5a00;
  margin-bottom: 16px;
}

.lp-feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.lp-feature-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Personas */
.lp-personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.lp-persona {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.lp-persona:hover {
  border-color: #dad690;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.lp-persona-icon {
  font-size: 44px;
  margin-bottom: 16px;
  line-height: 1;
  display: block;
}

.lp-persona-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.lp-persona-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* CTA section */
.lp-cta-section {
  background: var(--text);
  padding: 100px 0;
  text-align: center;
}

.lp-cta-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--white);
  margin: 0 0 16px;
}

.lp-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  margin: 0 0 40px;
}

.lp-cta-btn-dark {
  background: var(--yellow);
  color: var(--text);
  font-size: 16px !important;
  padding: 14px 32px !important;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(244,219,0,.3);
  display: inline-flex;
}

.lp-cta-btn-dark:hover {
  background: var(--yellow-hover);
  box-shadow: 0 4px 32px rgba(244,219,0,.5);
  color: var(--text);
  text-decoration: none;
}

/* Footer */
.lp-footer {
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 28px 0;
}

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}

/* Responsive */
@media (max-width: 1024px) {
  .lp-hero-content { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-text { align-items: center; }
  .lp-hero-title { text-align: center; font-size: 48px; }
  .lp-hero-sub { text-align: center; }
  .lp-hero-actions { align-items: center; }
  .lp-preview-window { height: 320px; }
}

@media (max-width: 900px) {
  .lp-nav { padding: 16px 24px; }
  .lp-container { padding: 0 24px; }
  .lp-hero-content { padding: 0 24px; }
  .lp-section-title { font-size: 30px; }
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-steps-row { grid-template-columns: 1fr; gap: 12px; }
  .lp-step-arrow { padding-top: 0; justify-content: flex-start; padding-left: 14px; }
  .lp-step-arrow::after { content: '↓'; }
  .lp-stat { padding: 0 20px; }
  .lp-stat-value { font-size: 24px; }
}

@media (max-width: 640px) {
  .lp-nav { padding: 14px 16px; }
  .lp-container { padding: 0 16px; }
  .lp-hero { padding: 56px 0; }
  .lp-hero-content { padding: 0 16px; }
  .lp-hero-title { font-size: 36px; letter-spacing: -1px; }
  .lp-hero-sub { font-size: 16px; }
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-personas-grid { grid-template-columns: 1fr; }
  .lp-stats-inner { flex-wrap: wrap; }
  .lp-stat { flex: 0 0 50%; border-right: none !important; padding: 12px 16px; }
  .lp-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1) !important; }
  .lp-cta-title { font-size: 32px; }
  .lp-full-section { padding: 60px 0; }
}

/* ── Auth Pages ───────────────────────── */

.auth-wrap {
  display: flex;
  justify-content: center;
  padding: 56px 24px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  width: 40px; height: 40px;
  background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(200,180,0,.25);
}

.auth-title {
  font-size: 22px; font-weight: 800; letter-spacing: -.4px;
  color: var(--text); margin: 0 0 4px;
}
.auth-subtitle { font-size: 13.5px; color: var(--muted); margin: 0 0 24px; }

.btn-google {
  display: flex;
  align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--white);
  border: 1.5px solid var(--border);
  font: 600 14px 'Inter', sans-serif;
  color: var(--text); cursor: pointer;
  transition: all .15s; text-decoration: none;
  margin-bottom: 4px;
}
.btn-google:hover {
  background: var(--yellow-light);
  border-color: #d0cb7c;
  text-decoration: none; color: var(--text);
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--light);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-footer {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: var(--muted);
}
.auth-footer a { color: var(--text); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Reply Draft ──────────────────────── */

.reply-draft {
  margin-top: 6px;
}

.reply-draft-toggle {
  font-size: 11px; font-weight: 600; color: var(--muted);
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 4px;
  user-select: none;
}
.reply-draft-toggle::-webkit-details-marker { display: none; }
.reply-draft-toggle:hover { color: var(--text); }

.reply-draft[open] .reply-draft-toggle { color: var(--text); }

.reply-draft-body {
  position: relative;
  margin-top: 7px;
  padding: 9px 32px 9px 12px;
  background: var(--yellow-light);
  border: 1px solid #d9d590;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.55;
}

.reply-draft-text { white-space: pre-wrap; }

.btn-copy-reply {
  position: absolute;
  top: 7px; right: 7px;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #9a8f3a;
  cursor: pointer;
  transition: all .12s;
  padding: 0;
}
.btn-copy-reply:hover {
  background: var(--white);
  border-color: #c8c47a;
  color: #5a4a00;
}
.btn-copy-reply.copied { color: var(--success); }

/* ── Lead Filter Bar ──────────────────── */

.lead-filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}

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

.filter-tabs {
  display: flex; gap: 2px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.filter-tab {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.filter-tab:hover { background: var(--yellow-light); color: var(--text); text-decoration: none; }
.filter-tab.active { background: var(--yellow); color: var(--text); }

/* ── Lead Action Buttons ──────────────── */

.lead-actions { display: flex; gap: 5px; }

.btn-lead-action {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font: 600 11px 'Inter', sans-serif;
  cursor: pointer; border: 1.5px solid;
  transition: all .12s; white-space: nowrap;
  background: none;
}

.btn-lead-replied {
  color: var(--success);
  border-color: rgba(34,197,94,.35);
}
.btn-lead-replied:hover {
  background: rgba(34,197,94,.08);
  border-color: var(--success);
}

.btn-lead-dismiss {
  color: var(--muted);
  border-color: var(--border);
}
.btn-lead-dismiss:hover {
  background: rgba(239,68,68,.07);
  color: var(--danger);
  border-color: rgba(239,68,68,.35);
}

.btn-lead-restore {
  color: var(--muted);
  border-color: var(--border);
}
.btn-lead-restore:hover {
  background: var(--yellow-light);
  color: var(--text);
  border-color: #dad690;
}

/* ── Create Business Layout ───────────── */

.create-layout {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 28px;
  align-items: start;
}

.create-layout .form-card {
  max-width: none;
}

/* Tips Panel */
.create-tips {
  position: sticky;
  top: 28px;
}

.tips-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tip-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  transition: border-color .18s, box-shadow .18s, opacity .18s;
  opacity: .5;
}

.tip-card.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(244,219,0,.15);
  opacity: 1;
  color: var(--text);
}

.tip-card p { margin: 0 0 8px; }
.tip-card p:last-child { margin-bottom: 0; }

.tip-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tip-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--neon-dim);
  color: #2a5c00;
  border: 1px solid rgba(200,255,0,.4);
  border-radius: 4px;
  padding: 1px 7px;
}

.tip-list {
  margin: 6px 0 8px;
  padding-left: 18px;
}
.tip-list li { margin-bottom: 2px; }

.tip-example {
  margin-top: 8px;
  background: var(--yellow-light);
  border: 1px solid #dad690;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text);
  font-style: italic;
  line-height: 1.55;
}

.tip-example-label {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 5px;
}

@media (max-width: 1000px) {
  .create-layout {
    grid-template-columns: 1fr;
  }
  .create-tips { position: static; }
}

/* ── Settings Page ────────────────────── */

.settings-form { max-width: 580px; }

.settings-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
}

.settings-section-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  transition: opacity .15s;
}

.settings-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.settings-icon-email    { background: #6B7280; }
.settings-icon-telegram { background: #2AABEE; }
.settings-icon-discord  { background: #5865F2; font-size: 14px; }
.settings-icon-slack    { background: #4A154B; font-size: 14px; }

.settings-section-title { font-size: 14px; font-weight: 600; color: var(--text); }
.settings-section-desc  { font-size: 12px; color: var(--muted); margin-top: 1px; }

.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; display: block; }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-flex; cursor: pointer; }
.toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  width: 38px; height: 22px;
  background: var(--border);
  border-radius: 11px;
  transition: background .2s;
  position: relative;
  display: block;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-track { background: var(--success); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(16px); }

/* Success alert */
.alert-success {
  padding: 11px 16px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: var(--r);
  color: #166534;
  font-size: 13.5px;
  font-weight: 500;
}

/* Settings link in sidebar */
.business-settings-link {
  display: flex; align-items: center;
  padding: 4px 10px 4px 26px;
  border-radius: var(--r);
  color: var(--light);
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background .1s, color .1s;
}
.business-settings-link:hover {
  background: var(--yellow-light);
  color: var(--muted);
  text-decoration: none;
}
.business-settings-link.active {
  color: var(--muted);
}

/* ── Dashboard ────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.dashboard-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 18px;
}

.dashboard-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.dashboard-empty {
  font-size: 13px;
  color: var(--light);
  padding: 24px 0;
  text-align: center;
}

/* Donut */
.donut-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.donut-wrap canvas {
  max-width: 180px;
  max-height: 180px;
}

/* Chart legend */
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legend-name:hover { text-decoration: underline; }
.legend-count {
  font-weight: 700;
  color: var(--text);
  min-width: 24px;
  text-align: right;
}
.legend-pct {
  font-size: 11.5px;
  color: var(--muted);
  min-width: 36px;
  text-align: right;
}

/* Subreddit bars */
.subreddit-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.subreddit-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.subreddit-row-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  min-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subreddit-bar-track {
  flex: 1;
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.subreddit-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 4px;
  min-width: 4px;
  transition: width .4s ease;
}
.subreddit-row-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  min-width: 24px;
  text-align: right;
}

/* Status breakdown */
.status-breakdown {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.status-breakdown-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.stacked-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
  background: var(--border);
}
.stacked-segment {
  height: 100%;
  transition: width .4s ease;
}
.seg-active  { background: var(--success); }
.seg-replied { background: var(--info); }
.seg-dismiss { background: #D1D5DB; }

.status-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.status-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.status-legend-item strong { color: var(--text); }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ───────────────────────── */

@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .main-area { margin-left: 0; }
  .main-content { padding: 20px 16px; }
}
