/* ============================================
   PIPEPULSE AI — STYLES
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f97316;
  --hot: #ef4444;
  --hot-bg: #fef2f2;
  --warm: #f59e0b;
  --warm-bg: #fffbeb;
  --low: #6b7280;
  --low-bg: #f9fafb;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --text: #1e293b;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --font: 'Inter', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
.app-body { background: var(--bg); }

/* ============================================ UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* ============================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-ghost-sm { background: transparent; color: var(--text-2); border-color: var(--border); font-size: 13px; padding: 6px 14px; }
.btn-ghost-sm:hover { background: var(--bg); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ============================================ NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); transition: all 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px;
  flex-shrink: 0; overflow: hidden; min-width: 0;
}
.logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-icon {
  width: 36px; height: 36px; background: var(--primary); color: white;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.logo-icon.sm { width: 28px; height: 28px; font-size: 14px; border-radius: 6px; }
.logo-ai { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; transition: all 0.2s; }
.nav-link:hover { color: var(--text); background: var(--bg); }
.nav-user-area { display: flex; align-items: center; gap: 8px; }
.nav-username { font-size: 14px; color: var(--text-2); font-weight: 500; }
.nav-logout-btn { background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 6px; font-family: var(--font); }
.nav-logout-btn:hover { background: var(--bg); color: var(--text); }
.nav-dashboard-link { color: var(--primary) !important; font-weight: 600 !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0; z-index: 99;
    background: white; border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  #loginBtn, #signupBtn { width: 100%; justify-content: center; }
}

/* ============================================ HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 20, 50, 0.72);
  z-index: 1; pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.25); border: 1px solid rgba(37,99,235,0.4);
  color: #93c5fd; padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 68px); font-weight: 800; color: white;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-subtitle {
  font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,0.85);
  line-height: 1.65; margin-bottom: 36px; max-width: 580px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 56px; }
.btn-ghost.btn-lg { border-color: rgba(255,255,255,0.35); color: white; }
.btn-ghost.btn-lg:hover { background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 32px; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ============================================ TICKER */
.ticker-section {
  background: var(--dark-2); padding: 14px 0;
  display: flex; align-items: center; overflow: hidden; gap: 20px;
}
.ticker-label {
  background: var(--primary); color: white; padding: 4px 16px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
  margin-left: 24px; border-radius: 4px; flex-shrink: 0;
}
.ticker-track {
  display: flex; gap: 48px; animation: tickerScroll 28s linear infinite;
  white-space: nowrap;
}
.ticker-item { font-size: 13px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 10px; }
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 22px; border-radius: 4px; font-size: 11px; font-weight: 700;
}
.score-badge.hot { background: var(--hot); color: white; }
.score-badge.warm { background: var(--warm); color: white; }
.score-badge.low { background: var(--low); color: white; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================ SECTIONS */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); }
.section-cta { background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-badge.light { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; color: var(--text); line-height: 1.15; margin-bottom: 16px; }
.section-title.light { color: white; }
.section-sub { font-size: 17px; color: var(--text-2); max-width: 560px; margin: 0 auto; }

/* ============================================ FEATURES */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.radar-icon { background: var(--primary-light); color: var(--primary); }
.ai-icon { background: #f0fdf4; color: #16a34a; }
.score-icon { background: #fffbeb; color: #d97706; }
.response-icon { background: #fdf4ff; color: #9333ea; }
.notify-icon { background: #fff7ed; color: #ea580c; }
.crm-icon { background: #f0f9ff; color: #0284c7; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.feature-card p { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* ============================================ HOW IT WORKS STEPS */
.steps-grid {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: center; margin-bottom: 60px;
}
.step-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
}
.step-num { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 12px; }
.step-card h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.step-arrow { font-size: 28px; color: rgba(255,255,255,0.3); padding: 0 16px; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
}

/* ============================================ DEMO BOX */
.demo-box {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); overflow: hidden; max-width: 800px; margin: 0 auto;
}
.demo-header { padding: 20px 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.demo-label { display: block; font-size: 16px; font-weight: 700; color: white; margin-bottom: 4px; }
.demo-sub { font-size: 13px; color: rgba(255,255,255,0.55); }
.demo-body { padding: 24px 28px; }
.demo-body textarea {
  width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm); color: white; font-family: var(--font); font-size: 14px;
  padding: 14px; resize: vertical; margin-bottom: 16px; outline: none;
}
.demo-body textarea::placeholder { color: rgba(255,255,255,0.35); }
.demo-body textarea:focus { border-color: rgba(37,99,235,0.6); background: rgba(255,255,255,0.09); }
.demo-row { display: flex; gap: 12px; align-items: flex-end; }
.demo-row select {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-family: var(--font); font-size: 14px; padding: 10px 14px;
  border-radius: var(--radius-sm); outline: none; flex: 1;
}
.demo-row select option { background: var(--dark-2); color: white; }

/* ============================================ PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pricing-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; position: relative; transition: all 0.2s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.plan-price { margin-bottom: 28px; }
.price-num { font-size: 48px; font-weight: 800; color: var(--text); }
.price-period { font-size: 16px; color: var(--text-2); }
.plan-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 15px; color: var(--text-2); padding-left: 22px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ============================================ CTA SECTION */
.cta-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: white; margin-bottom: 16px; }
.cta-sub { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.section-cta .btn-primary { background: white; color: var(--primary); border-color: white; font-size: 16px; padding: 14px 32px; }
.section-cta .btn-primary:hover { background: var(--primary-light); }

/* ============================================ FOOTER */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 40px 0; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .logo-text { color: white; font-weight: 700; }
.footer-copy { font-size: 14px; }

/* ============================================ MODALS */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,23,42,0.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: 16px; padding: 40px;
  width: 100%; max-width: 440px; position: relative; box-shadow: var(--shadow-lg);
}
.modal-box.modal-lg { max-width: 700px; max-height: 90vh; overflow-y: auto; }
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  font-size: 22px; cursor: pointer; color: var(--text-2); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--text); }
.modal-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 24px; }
.modal-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-2); }
.modal-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ============================================ FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px;
  color: var(--text); outline: none; transition: border-color 0.2s; background: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-links { margin-top: 12px; text-align: center; }
.form-links a { font-size: 13px; color: var(--text-2); text-decoration: none; }
.form-links a:hover { color: var(--primary); }
.form-error { color: #ef4444; font-size: 13px; margin-top: 10px; min-height: 20px; }
.form-note { font-size: 12px; color: var(--text-3); margin-top: 10px; text-align: center; }
.otp-message { font-size: 14px; color: var(--text-2); margin-bottom: 16px; background: var(--primary-light); padding: 12px; border-radius: 8px; }

/* ============================================ LOADING */
.demo-loading { text-align: center; padding: 24px; color: var(--text-2); font-size: 14px; }
.demo-loading p { margin-top: 10px; }
.loading-state { text-align: center; padding: 60px 24px; color: var(--text-2); }
.pulse-dots { display: flex; gap: 6px; justify-content: center; align-items: center; }
.pulse-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
  animation: dotPulse 1.4s ease-in-out infinite both;
}
.pulse-dots span:nth-child(2) { animation-delay: 0.2s; }
.pulse-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse { 0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

/* ============================================ DEMO RESULTS */
.demo-results { margin-top: 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 24px; color: white; }
.result-score-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.big-score { font-size: 56px; font-weight: 800; line-height: 1; }
.big-score.hot { color: #f87171; }
.big-score.warm { color: #fbbf24; }
.big-score.low { color: #94a3b8; }
.temp-badge {
  display: inline-flex; padding: 5px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
}
.temp-badge.hot { background: rgba(239,68,68,0.2); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.temp-badge.warm { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.temp-badge.low { background: rgba(148,163,184,0.15); color: #94a3b8; border: 1px solid rgba(148,163,184,0.2); }
.result-summary { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 20px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.result-chip {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 5px 12px; font-size: 12px; color: rgba(255,255,255,0.7);
}
.result-chip strong { color: white; }
.response-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.resp-tab {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6);
  background: none; font-family: var(--font); transition: all 0.15s;
}
.resp-tab.active { background: var(--primary); border-color: var(--primary); color: white; }
.response-text {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 14px; font-size: 13px; color: rgba(255,255,255,0.85);
  line-height: 1.65; position: relative;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,0.1);
  border: none; color: white; font-size: 12px; padding: 4px 10px; border-radius: 4px;
  cursor: pointer; font-family: var(--font);
}
.copy-btn:hover { background: rgba(255,255,255,0.2); }

/* ============================================ APP HEADER */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.app-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 64px;
}
.app-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.app-nav-link {
  padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-2); text-decoration: none; transition: all 0.15s; cursor: pointer; border: none; background: none; font-family: var(--font);
}
.app-nav-link:hover { background: var(--bg); color: var(--text); }
.app-nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.app-user { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.app-username { font-size: 13px; color: var(--text-2); }
.admin-badge {
  background: var(--primary); color: white; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============================================ APP MAIN */
.app-main { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================ STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
}
.stat-card.hot { border-left: 4px solid var(--hot); }
.stat-card.warm { border-left: 4px solid var(--warm); }
.stat-card-num { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card-label { font-size: 13px; color: var(--text-2); }

.stat-card.revenue { border-left: 4px solid #22c55e; }

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================ LEADS TOOLBAR */
.leads-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.toolbar-left { display: flex; align-items: center; gap: 12px; }
.section-heading { font-size: 20px; font-weight: 700; color: var(--text); }
.lead-count { font-size: 13px; color: var(--text-3); background: var(--bg); padding: 3px 10px; border-radius: 100px; }
.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text); font-family: var(--font); outline: none; background: white;
}
.filter-select:focus { border-color: var(--primary); }

/* ============================================ LEADS GRID */
.leads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.lead-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden;
}
.lead-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.lead-card.hot { border-left: 4px solid var(--hot); }
.lead-card.warm { border-left: 4px solid var(--warm); }
.lead-card.low { border-left: 4px solid var(--low); }
.lead-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lead-score-badge {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700;
}
.lead-score-num { font-size: 22px; font-weight: 800; }
.lead-score-num.hot { color: var(--hot); }
.lead-score-num.warm { color: var(--warm); }
.lead-score-num.low { color: var(--low); }
.lead-temp-label {
  padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.lead-temp-label.hot { background: var(--hot-bg); color: var(--hot); }
.lead-temp-label.warm { background: var(--warm-bg); color: var(--warm); }
.lead-temp-label.low { background: var(--low-bg); color: var(--low); }
.lead-post-text { font-size: 14px; color: var(--text); line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lead-chip {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 8px; font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 4px;
}
.lead-chip.platform { background: var(--primary-light); color: var(--primary); border-color: transparent; }
.lead-card-footer { display: flex; align-items: center; justify-content: space-between; }
.lead-time { font-size: 12px; color: var(--text-3); }
.lead-stage-select { font-size: 12px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font); color: var(--text-2); background: white; outline: none; cursor: pointer; }

/* ============================================ KANBAN */
.pipeline-header { margin-bottom: 24px; }
.pipeline-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; align-items: flex-start; }
.kanban-col {
  flex: 0 0 260px; background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.kanban-col-header {
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; background: white; border-bottom: 1px solid var(--border);
}
.kanban-col-count {
  background: var(--bg); border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 700; color: var(--text-2); width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.kanban-cards { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.kanban-card {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; cursor: grab; user-select: none;
}
.kanban-card:active { cursor: grabbing; opacity: 0.8; }
.kanban-card.hot { border-left: 3px solid var(--hot); }
.kanban-card.warm { border-left: 3px solid var(--warm); }
.kanban-card-score { font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.kanban-card-text { font-size: 12px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; line-height: 1.5; }
.kanban-card-issue { font-size: 11px; color: var(--text-3); }
.kanban-col.drag-over { background: var(--primary-light); border-color: var(--primary); }

/* ============================================ ANALYZER */
.analyzer-header { margin-bottom: 24px; }
.analyzer-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.analyzer-form { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 800px; }
.analyzer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.analyzer-actions { display: flex; gap: 12px; margin-top: 4px; }
.analyzer-results { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

@media (max-width: 700px) {
  .analyzer-row { grid-template-columns: 1fr; }
}

/* ============================================ SETTINGS */
.settings-header { margin-bottom: 24px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.settings-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.settings-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.toggle-check { width: 18px; height: 18px; cursor: pointer; }

/* ============================================ ADMIN PANEL */
.admin-page-header { margin-bottom: 28px; }
.admin-title { font-size: 26px; font-weight: 800; color: var(--text); }
.admin-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.admin-stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; }
.admin-stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-stat-icon.blue { background: var(--primary-light); color: var(--primary); }
.admin-stat-icon.green { background: #f0fdf4; color: #16a34a; }
.admin-stat-icon.orange { background: #fff7ed; color: #ea580c; }
.admin-stat-icon.red { background: var(--hot-bg); color: var(--hot); }
.admin-stat-info { display: flex; flex-direction: column; }
.admin-stat-num { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.admin-stat-label { font-size: 13px; color: var(--text-2); margin-top: 2px; }

@media (max-width: 900px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.admin-section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.admin-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-card-title { font-size: 15px; font-weight: 700; margin-bottom: 20px; }

/* Source bars */
.source-list { display: flex; flex-direction: column; gap: 12px; }
.source-row { display: flex; align-items: center; gap: 12px; }
.source-name { font-size: 13px; color: var(--text-2); width: 140px; flex-shrink: 0; }
.source-bar-wrap { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.source-bar { height: 100%; background: var(--primary); border-radius: 4px; }
.source-pct { font-size: 12px; font-weight: 600; color: var(--text-2); width: 36px; text-align: right; }

/* Workers */
.worker-list { display: flex; flex-direction: column; gap: 10px; }
.worker-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.worker-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.worker-indicator.running { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); animation: statusPulse 2s infinite; }
.worker-indicator.idle { background: var(--low); }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.worker-name { flex: 1; color: var(--text); }
.worker-status { font-size: 12px; font-weight: 600; color: #22c55e; width: 60px; }
.worker-status.idle { color: var(--low); }
.worker-last { font-size: 12px; color: var(--text-3); }

/* Admin table */
.admin-table-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); background: var(--bg); }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.admin-table .post-snippet { max-width: 280px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Ingest form */
.ingest-form-wrap { max-width: 700px; }
.ingest-result { margin-top: 20px; padding: 20px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius); color: #15803d; font-size: 14px; }
.ingest-result h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }

/* Lead modal content */
.lead-detail-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.lead-detail-score { font-size: 52px; font-weight: 800; line-height: 1; }
.lead-detail-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.lead-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-chip { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--text-2); }
.lead-detail-post { font-size: 14px; color: var(--text); line-height: 1.65; background: var(--bg); padding: 16px; border-radius: 8px; margin-bottom: 20px; }
.lead-detail-responses h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

/* Urgency factors */
.urgency-factors { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.urgency-factor { background: var(--hot-bg); color: var(--hot); border: 1px solid rgba(239,68,68,0.2); border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 500; }

/* ============================================ SERVICES STRIP */
.services-strip {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.services-strip-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-3); margin-bottom: 14px; text-align: center;
}
.services-strip-grid {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.service-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 100px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--text-2);
  transition: all 0.15s; cursor: default;
}
.service-pill:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.service-pill svg { flex-shrink: 0; }

/* ============================================ AI CHAT SECTION */
.section-chat { background: var(--bg); }
.chat-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.chat-copy .section-badge { display: inline-block; margin-bottom: 16px; }
.chat-copy .section-title { text-align: left; margin-bottom: 16px; }
.chat-feature-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  margin: 24px 0 32px;
}
.chat-feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-2); line-height: 1.5;
}
.chat-feature-icon {
  width: 32px; height: 32px; background: var(--primary-light); color: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.chat-demo-wrap { position: relative; }
.chat-demo {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.chat-demo-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.chat-demo-avatar {
  width: 38px; height: 38px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-demo-name { font-size: 14px; font-weight: 700; color: var(--text); }
.chat-demo-status { font-size: 12px; color: #22c55e; margin-top: 1px; }
.chat-messages {
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  max-height: 340px; overflow-y: auto;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.5;
}
.chat-msg.ai .chat-bubble {
  background: var(--bg); color: var(--text); border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.chat-msg.user .chat-bubble {
  background: var(--primary); color: white; border-bottom-right-radius: 4px;
}
.typing-dots { display: flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-3);
  animation: dotPulse 1.4s ease-in-out infinite both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
.chat-input-row {
  display: flex; gap: 8px; padding: 14px 16px;
  border-top: 1px solid var(--border); background: white;
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 100px; font-family: var(--font); font-size: 14px;
  outline: none; color: var(--text);
}
.chat-input:focus { border-color: var(--primary); }
.chat-send-btn {
  width: 40px; height: 40px; background: var(--primary); color: white;
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.chat-send-btn:hover { background: var(--primary-dark); }

@media (max-width: 900px) {
  .chat-split { grid-template-columns: 1fr; gap: 40px; }
}

/* ============================================ LEAD DISTRIBUTION */
.section-alt { background: var(--bg); }
.distribution-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.distribution-card {
  background: white; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
}
.distribution-card.exclusive { border-color: var(--primary); }
.distribution-card.instant { border-color: #22c55e; }
.dist-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--primary-light); color: var(--primary); margin-bottom: 16px;
}
.dist-badge.shared { background: #fffbeb; color: #d97706; }
.dist-badge.instant { background: #f0fdf4; color: #16a34a; }
.distribution-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.distribution-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.dist-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dist-list li { font-size: 14px; color: var(--text-2); padding-left: 20px; position: relative; }
.dist-list li::before { content: '→'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ============================================ DIST STATS */
.dist-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px;
}
.dist-stat {
  background: var(--bg); border-radius: 8px; padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.dist-stat-num { font-size: 22px; font-weight: 800; color: var(--text); }
.dist-stat-label { font-size: 12px; color: var(--text-2); }

/* ============================================ SERVICE CHECKBOXES */
.service-checkboxes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px;
}
.check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border);
  transition: all 0.15s;
}
.check-label:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.check-label input { width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }

/* ============================================ SERVICE LABEL CHIP */
.service-label-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600;
}

/* ============================================ SETUP WIZARD */
.modal-wizard { max-width: 520px; padding: 40px; }
.wizard-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 36px;
}
.wizard-step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-3);
  transition: all 0.2s; flex-shrink: 0;
}
.wizard-step-dot.active { background: var(--primary); border-color: var(--primary); color: white; }
.wizard-step-dot.done { background: #22c55e; border-color: #22c55e; color: white; }
.wizard-step-line { flex: 1; height: 2px; background: var(--border); max-width: 80px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-icon {
  width: 56px; height: 56px; background: var(--primary); color: white;
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; margin: 0 auto 20px;
}
.wizard-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 10px; text-align: center; }
.wizard-sub { font-size: 15px; color: var(--text-2); margin-bottom: 28px; text-align: center; line-height: 1.6; }
.wizard-btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

/* ============================================ REVENUE TAB */
.revenue-header { margin-bottom: 24px; }
.revenue-summary-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px;
}
.rev-sum-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 4px;
}
.rev-sum-card.hot { border-left: 4px solid var(--hot); }
.rev-sum-card.warm { border-left: 4px solid var(--warm); }
.rev-sum-card.green { border-left: 4px solid #22c55e; }
.rev-sum-num { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.rev-sum-label { font-size: 13px; color: var(--text-2); }
.revenue-by-service {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 32px;
}
.rev-service-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.rev-service-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.rev-service-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.rev-service-value { font-weight: 700; color: var(--text); }
.rev-service-bar-wrap { height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.rev-service-bar { height: 100%; background: var(--primary); border-radius: 3px; }
.revenue-list-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.revenue-leads-table-wrap { background: white; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.revenue-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.revenue-table th { text-align: left; padding: 12px 16px; border-bottom: 2px solid var(--border); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-2); background: var(--bg); }
.revenue-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.revenue-table tr:last-child td { border-bottom: none; }
.revenue-table tr:hover td { background: var(--bg); }
.job-value-badge { font-weight: 700; color: #16a34a; font-size: 14px; }

/* ============================================ NOTIFICATIONS TAB */
.notif-tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.notif-tab-actions { display: flex; gap: 8px; }
.notif-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.notif-filter-btn {
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: white; color: var(--text-2);
  cursor: pointer; font-family: var(--font); transition: all 0.15s;
}
.notif-filter-btn:hover { background: var(--bg); color: var(--text); }
.notif-filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: flex-start; gap: 14px;
  transition: all 0.15s; cursor: pointer;
}
.notif-item:hover { box-shadow: var(--shadow); }
.notif-item.unread { border-left: 4px solid var(--primary); background: var(--primary-light); }
.notif-item.unread.hot { border-left-color: var(--hot); background: var(--hot-bg); }
.notif-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
  background: var(--text-3);
}
.notif-dot.unread { background: var(--primary); }
.notif-dot.hot { background: var(--hot); }
.notif-body { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.notif-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.notif-time { font-size: 12px; color: var(--text-3); white-space: nowrap; margin-left: auto; }
.notif-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hot); color: white; border-radius: 100px;
  font-size: 10px; font-weight: 700; min-width: 18px; height: 18px;
  padding: 0 5px; margin-left: 6px; vertical-align: middle;
}

/* ============================================ SETTINGS SAVE MSG */
.settings-save-msg {
  padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  margin-bottom: 12px;
}
.settings-save-msg.success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.settings-save-msg.error { background: var(--hot-bg); color: var(--hot); border: 1px solid rgba(239,68,68,0.2); }
.settings-card-full { grid-column: 1 / -1; }

/* ============================================ RESPONSIVE */

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .leads-grid { grid-template-columns: 1fr; }
  .kanban-board { flex-direction: column; }
  .kanban-col { flex: none; width: 100%; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .distribution-grid { grid-template-columns: 1fr; }
  .services-strip-grid { gap: 6px; }
  .service-pill { font-size: 12px; padding: 5px 10px; }
  .service-checkboxes { grid-template-columns: 1fr; }
}
