/* ============================================================
   LEAD-EXTRACTOR.CSS — Page-specific only
   Header/nav/footer from style.css
   ============================================================ */

/* ==================== HERO ==================== */
.le-hero { position: relative; padding: 44px 0 28px; overflow: hidden; }

.le-hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(62, 224, 208, 0.08);
  border: 1px solid rgba(62, 224, 208, 0.28);
  color: #3EE0D0; font-size: 12.5px; font-weight: 600;
  margin-bottom: 16px;
}
.le-hero__pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #3EE0D0; box-shadow: 0 0 8px #3EE0D0; }

.le-hero__top { display: block; margin-bottom: 0; }

.le-hero__title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.08;
  color: #fff; margin: 0;
}
.le-hero__lead {
  color: #94A3B8; font-size: 15.5px;
  max-width: 780px; margin-top: 12px; line-height: 1.6;
}

/* ✅ ONE-LINE ROW: meta left, buttons right — NO WRAP on desktop */
.le-hero__row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 24px;
}
.le-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #94A3B8;
  min-width: 0;
}
.le-hero__meta > span { display: inline-flex; align-items: center; white-space: nowrap; }
.le-hero__buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.le-hero__buttons .btn { white-space: nowrap; }

/* Desktop: try to keep all on one line */
@media (min-width: 1100px) {
  .le-hero__row { flex-wrap: nowrap; }
  .le-hero__meta { gap: 16px; font-size: 12px; }
  .le-hero__buttons { gap: 8px; flex-shrink: 0; }
  .le-hero__buttons .btn--sm { padding: 7px 12px; font-size: 12px; }
}

/* ==================== KPI CARDS ==================== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card {
  background: rgba(17, 23, 38, 0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color 0.2s;
}
.kpi-card:hover { border-color: rgba(62, 224, 208, 0.35); }
.kpi-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-size: 12.5px; color: #94A3B8; font-weight: 500;
  margin-bottom: 8px; gap: 10px; line-height: 1.35;
}
.kpi-card__val { font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 700; color: #fff; }
.kpi-card__foot {
  margin-top: 8px; font-size: 12px; color: #94A3B8;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.07); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.progress-bar { height: 100%; background: linear-gradient(135deg, #3EE0D0, #2B8CF0 50%, #8B5CF6); border-radius: 999px; transition: width 0.4s ease; }

/* ==================== ENGINE PANEL ==================== */
.engine-panel {
  background: rgba(17, 23, 38, 0.85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.engine-panel__header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.engine-panel__title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.engine-panel__url { font-size: 12px; color: #94A3B8; font-family: 'JetBrains Mono', monospace; }

/* ==================== SOURCE TABS ==================== */
.source-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.source-tab {
  background: rgba(17, 23, 38, 0.9); border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.source-tab:hover { border-color: rgba(255,255,255,0.22); color: #fff; }
.source-tab.active {
  background: rgba(62, 224, 208, 0.12); border-color: #3EE0D0;
  color: #fff; box-shadow: 0 0 20px rgba(62, 224, 208, 0.15);
}
.source-tab__tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(62, 224, 208, 0.16); color: #3EE0D0; font-family: 'JetBrains Mono', monospace; }

/* ==================== SEARCH GRID ==================== */
.search-grid { display: grid; grid-template-columns: 1.6fr 1.3fr 1fr 0.9fr auto; gap: 14px; align-items: end; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #94A3B8; margin-bottom: 6px; }
.input-ctrl, .select-ctrl {
  width: 100%; background: #0B101B; border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff; padding: 11px 14px; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 13.5px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-ctrl:focus, .select-ctrl:focus { border-color: #3EE0D0; box-shadow: 0 0 0 3px rgba(62, 224, 208, 0.12); }
.input-ctrl::placeholder { color: #64748B; }

.enrichment-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.toggle-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.toggle-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #94A3B8; cursor: pointer; }
.toggle-label input { accent-color: #3EE0D0; width: 15px; height: 15px; }
.toggle-label strong { color: #F8FAFC; }
.enrichment-bar__active { font-size: 12px; color: #94A3B8; }
.enrichment-bar__active strong { color: #3EE0D0; }

/* ==================== TERMINAL ==================== */
.terminal-box {
  display: none; margin-top: 18px; background: #06090F;
  border: 1px solid rgba(62, 224, 208, 0.3); border-radius: 8px;
  padding: 14px 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.terminal-box.active { display: block; }
.terminal-head { display: flex; justify-content: space-between; color: #94A3B8; font-size: 11px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.terminal-logs { max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.log-line { color: #94A3B8; }
.log-line span.hl { color: #3EE0D0; font-weight: 600; }
.log-line span.ok { color: #10B981; }

/* ==================== TABLE ==================== */
.table-card {
  background: rgba(17, 23, 38, 0.85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; overflow: hidden; margin-bottom: 56px;
}
.table-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.table-filters, .table-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-filters__search { width: 240px; }
.table-filters .select-ctrl { width: auto; min-width: 150px; }
.table-responsive { width: 100%; overflow-x: auto; }
.lead-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13.5px; }
.lead-table th {
  background: rgba(11, 16, 27, 0.9); color: #94A3B8; font-size: 11.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap;
}
.lead-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: middle; }
.lead-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.comp-name { font-weight: 700; color: #fff; display: block; margin-bottom: 2px; }
.comp-domain { font-size: 12px; color: #2B8CF0; text-decoration: none; font-family: 'JetBrains Mono', monospace; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 6px; font-size: 11.5px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; white-space: nowrap;
}
.badge--size { background: rgba(43, 140, 240, 0.12); color: #60A5FA; border: 1px solid rgba(43, 140, 240, 0.25); }
.badge--owner { background: rgba(62, 224, 208, 0.12); color: #3EE0D0; border: 1px solid rgba(62, 224, 208, 0.3); }
.badge--sales { background: rgba(139, 92, 246, 0.15); color: #C4B5FD; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge--source { background: rgba(255, 255, 255, 0.05); color: #94A3B8; border: 1px solid rgba(255, 255, 255, 0.08); }
.badge--verified { background: rgba(16, 185, 129, 0.12); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.25); }

.mono-cell { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: #E2E8F0; display: flex; align-items: center; gap: 8px; }
.icon-btn { background: rgba(255,255,255,0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #94A3B8; border-radius: 6px; padding: 4px 7px; font-size: 11px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { color: #fff; border-color: #3EE0D0; background: rgba(62, 224, 208, 0.12); }

.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; font-size: 13px; color: #94A3B8; background: rgba(11, 16, 27, 0.6); }

/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(10px); display: none; align-items: center;
  justify-content: center; z-index: 120; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: #111726; border: 1px solid rgba(62, 224, 208, 0.35);
  border-radius: 16px; max-width: 620px; width: 100%; padding: 30px;
  position: relative; box-shadow: 0 25px 70px rgba(0,0,0,0.65);
  max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #94A3B8; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; }
.modal-card__title { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: #fff; }
.modal-card__sub { color: #94A3B8; font-size: 14px; margin: 0 0 20px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.modal-actions__primary { flex: 1; min-width: 200px; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.plan-box { background: #161F33; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 18px; }
.plan-box--featured { border-color: #3EE0D0; background: linear-gradient(180deg, rgba(62, 224, 208, 0.08) 0%, rgba(22, 31, 51, 0.9) 100%); }
.plan-price { font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 800; color: #fff; margin: 6px 0; }
.plan-price span { font-size: 13px; font-weight: 400; color: #94A3B8; }
.plan-price small { display: block; font-size: 11.5px; color: #64748B; font-weight: 400; margin-top: 4px; letter-spacing: 0; }
.plan-desc { font-size: 12.5px; color: #94A3B8; margin: 0 0 12px; }
.plan-features { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: #E2E8F0; display: flex; flex-direction: column; gap: 6px; }

/* ==================== TOAST ==================== */
.toast {
  position: fixed; bottom: 80px; right: 24px; background: #111726;
  border: 1px solid #3EE0D0; color: #fff; padding: 12px 18px;
  border-radius: 8px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 10px 35px -10px rgba(43, 140, 240, 0.35); z-index: 200;
  transform: translateY(120%); opacity: 0; transition: all 0.25s ease;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .kpi-grid, .search-grid, .plan-grid { grid-template-columns: 1fr; }
  .le-hero__row { flex-direction: column; align-items: flex-start; }
  .le-hero__meta { gap: 12px; }
  .modal-card { padding: 24px; }
  .modal-card__title { font-size: 20px; }
  .table-filters__search { width: 100%; }
  .table-filters .select-ctrl { width: 100%; }
  .table-actions .btn { flex: 1; min-width: 0; }
}
@media (max-width: 480px) {
  .le-hero__buttons { width: 100%; }
  .le-hero__buttons .btn { flex: 1; }
  .table-actions { flex-direction: column; width: 100%; }
  .table-actions .btn { width: 100%; }
}
.plan-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px !important;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
  letter-spacing: -0.5px;
}
.plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: #94A3B8;
  letter-spacing: 0;
}
.plan-price small {
  display: block;
  font-size: 12px !important;
  color: #64748B !important;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0;
}
.plan-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: #94A3B8;
  letter-spacing: 0;
}
.plan-price small {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 400;
  margin-top: 6px;
  letter-spacing: 0;
}

/* WhatsApp CTA button styling */
.modal-actions__primary {
  flex: 1;
  min-width: 220px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.25) !important;
}
.modal-actions__primary:hover {
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.4) !important;
  transform: translateY(-1px);
}