:root {
  --bg-main: #0B0F19;
  --bg-card: #131A2A;
  --bg-card-sub: #1B243B;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: #78BE21;
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --brand: #78BE21;
  --brand-hover: #8EE026;
  --brand-ink: #071302;
  --cyan: #00F0FF;
  --warning: #F59E0B;
  --danger: #EF4444;
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-card: 16px;
  --radius-btn: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  border-bottom: 1px solid var(--border-light);
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 22px;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-accent {
  color: var(--brand);
}

.badge-free {
  background: rgba(120, 190, 33, 0.15);
  color: var(--brand);
  border: 1px solid rgba(120, 190, 33, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-stat {
  font-size: 12px;
  color: var(--brand);
  font-family: var(--font-mono);
}

.nav-btn-export {
  background: var(--brand);
  color: var(--brand-ink);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-btn-export:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* MAIN CONTENT */
.main-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* HERO */
.hero-section {
  text-align: center;
  max-width: 960px;
  margin: 20px auto 48px;
}

.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* SEARCH CARD */
.search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.2fr auto;
  gap: 16px;
  align-items: end;
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  pointer-events: none;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-card-sub);
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  padding: 13px 14px 13px 42px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-family: var(--font-main);
  font-weight: 500;
  transition: all 0.2s ease;
}

.form-select {
  padding-left: 14px;
  cursor: pointer;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(120, 190, 33, 0.15);
}

.btn-extract {
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-extract:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -6px rgba(120, 190, 33, 0.4);
}

.btn-extract:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* RIBBON */
.comparison-ribbon {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-dim);
}

.comp-item .cross { color: var(--danger); font-weight: 800; }
.comp-item.highlight { color: var(--brand); font-weight: 700; }
.comp-item.highlight .check { color: var(--brand); font-weight: 800; }

/* METRICS GRID */
.metrics-section {
  margin-bottom: 36px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-btn);
  padding: 20px;
}

.highlight-metric {
  border-color: rgba(120, 190, 33, 0.35);
  background: rgba(120, 190, 33, 0.04);
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-val {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-mono);
  margin: 6px 0;
}

.text-brand { color: var(--brand); }
.text-warning { color: var(--warning); }

.metric-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* RESULTS SECTION */
.results-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-top: 32px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.results-title {
  font-size: 20px;
  font-weight: 800;
}

.results-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  background: var(--bg-card-sub);
  padding: 4px;
  border-radius: 8px;
  gap: 4px;
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.export-group {
  display: flex;
  gap: 10px;
}

.btn-action-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-outline:hover {
  border-color: var(--text-main);
}

.btn-action-brand {
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-brand:hover {
  background: var(--brand-hover);
}

/* DATA TABLE */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 10px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.leads-table th {
  background: var(--bg-card-sub);
  color: var(--text-muted);
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}

.leads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.leads-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* TABLE CELL STYLES */
.td-idx {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.td-business-name {
  font-weight: 700;
  color: var(--text-main);
}

.td-category-tag {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.badge-email-found {
  background: rgba(120, 190, 33, 0.12);
  color: var(--brand);
  border: 1px solid rgba(120, 190, 33, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.badge-no-email {
  color: var(--text-dim);
  font-style: italic;
  font-size: 12px;
}

.phone-link, .web-link {
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-mono);
}

.phone-link:hover, .web-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.socials-icons {
  display: flex;
  gap: 8px;
}

.social-icon-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.social-icon-btn:hover {
  color: var(--cyan);
}

.badge-unclaimed {
  background: rgba(245, 158, 11, 0.12);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.badge-claimed {
  color: var(--text-dim);
  font-size: 11px;
}

/* UNLOCK / LEAD CAPTURE MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-sub);
}
