/* Jiji Scout — Landing Page Styles */

:root {
  --green-primary: #16A34A;
  --green-dark: #1B5E3B;
  --green-light: #DCFCE7;
  --green-50: #F0FDF4;
  --gray-50: #F9FAFB;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --orange-100: #FEF3C7;
  --orange-500: #F59E0B;
  --blue-100: #DBEAFE;
  --blue-700: #1E40AF;
  --red-100: #FEE2E2;
  --red-500: #EF4444;
  --red-700: #B91C1C;
  --green-hover: #15803D;
  --orange-700: #92400E;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.08);
  --z-dropdown: 1000;
  --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: var(--gray-900);
  min-height: 100vh;
}

/* ── Hero ── */
.hero {
  background: var(--green-dark);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
}
.hero-badge svg { opacity: 0.8; }
.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-stat-card {
  background: #fff;
  color: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  border-left: 4px solid var(--green-primary);
}
.hero-stat-icon {
  width: 40px;
  height: 40px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-primary);
}
.hero-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}
.hero-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ── Explore Section ── */
.explore-section {
  background: #fff;
  padding: 40px 24px 48px;
}
.explore-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.explore-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.explore-title {
  font-size: 1.5rem;
  font-weight: 700;
}
.explore-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--gray-700);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.fav-btn:hover { border-color: var(--gray-300); }
.fav-btn.active {
  background: var(--red-100);
  border-color: var(--red-500);
  color: var(--red-500);
}
.fav-btn svg { width: 16px; height: 16px; }

/* View toggle */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  color: var(--gray-400);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.view-btn:hover { color: var(--gray-600); }
.view-btn.active {
  background: var(--green-dark);
  color: #fff;
}
.view-btn svg { pointer-events: none; }

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}
.sort-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.sort-pill:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.sort-pill.active {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.sort-bar.sort-disabled .sort-pill {
  opacity: 0.5;
  pointer-events: none;
}

/* Search */
.search-wrap {
  position: relative;
  margin-bottom: 14px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  background: var(--gray-50);
}
.search-input:focus {
  border-color: var(--green-primary);
  background: #fff;
}

/* Search hint bubble */
.search-hint {
  background: rgba(22, 163, 74, 0.05);
  border: 2px dashed rgba(22, 163, 74, 0.4);
  border-radius: var(--radius-md);
  padding: 16px 20px 14px;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}
.search-hint-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 10px;
}
.search-hint-bounce {
  display: inline-block;
  animation: bounce-hint 1.2s ease-in-out infinite;
}
@keyframes bounce-hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
.search-hint-chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.hint-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.1);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.hint-chip:hover {
  background: rgba(22, 163, 74, 0.2);
  border-color: var(--green-primary);
}
.search-hint-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(22, 163, 74, 0.4);
}

/* Chips */
.category-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.chip.active {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.chip-count {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* City bar / Region dropdown / Category dropdown (shared) */
.city-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: flex-start;
  position: relative;
}
.region-wrap, .cat-wrap { position: relative; display: inline-block; }
.region-trigger, .cat-trigger {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.region-trigger:hover, .cat-trigger:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.region-trigger.has-selection, .cat-trigger.has-selection {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
}
.region-dropdown, .cat-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: var(--z-dropdown);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px 0;
}
.region-dropdown.open, .cat-dropdown.open { display: block; }
.region-search, .cat-search {
  width: calc(100% - 16px);
  margin: 0 8px 6px;
  padding: 8px 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  outline: none;
}
.region-search:focus, .cat-search:focus { border-color: var(--green-primary); }
.region-state-row, .cat-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  transition: background-color 0.1s;
}
.region-state-row:hover, .cat-parent-row:hover { background: var(--gray-50); }
.region-state-row .arrow, .cat-parent-row .arrow {
  font-size: 0.65rem;
  color: var(--gray-500);
  transition: transform 0.15s;
  margin-left: 4px;
}
.region-state-row.expanded .arrow, .cat-parent-row.expanded .arrow { transform: rotate(90deg); }
.region-state-count, .cat-parent-count {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-500);
  margin-left: 6px;
}
.region-cities, .cat-children { display: none; padding: 0; }
.region-cities.open, .cat-children.open { display: block; }
.region-city-row, .cat-child-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px 5px 28px;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--gray-500);
  transition: background-color 0.1s;
}
.region-city-row:hover, .cat-child-row:hover {
  background: var(--green-50);
  color: var(--green-dark);
}
.region-city-count, .cat-child-count { font-size: 0.68rem; color: var(--gray-500); }
.region-no-results, .cat-no-results {
  padding: 12px;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.8rem;
}

/* Showing count */
.showing-count {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.showing-count strong { color: var(--gray-900); }

/* ── Cards Grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.card-header > :first-child {
  min-width: 0;
  flex: 1;
}
.card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.card-cat {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.card-fav {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.card-fav svg {
  fill: var(--gray-300);
  transition: fill 0.15s;
  pointer-events: none;
}
.card-fav:hover svg { fill: var(--gray-400); }
.card-fav.active svg { fill: var(--red-500); }

/* Badges */
.card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  white-space: nowrap;
}
.demand-very-high { background: var(--green-light); color: var(--green-dark); }
.demand-high      { background: var(--blue-100); color: var(--blue-700); }
.demand-medium    { background: var(--orange-100); color: var(--orange-700); }
.demand-low       { background: var(--gray-100); color: var(--gray-700); }
.comp-none        { background: var(--green-light); color: var(--green-dark); }
.comp-low         { background: var(--blue-100); color: var(--blue-700); }
.comp-mid         { background: var(--orange-100); color: var(--orange-700); }
.comp-high        { background: var(--red-100); color: var(--red-700); }

/* Sparkline row */
.card-spark-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sparkline-svg {
  width: 80px;
  height: 32px;
  flex-shrink: 0;
}
.spark-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

/* Card footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}
.card-rating-badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.rating-top-pick { background: var(--green-light); color: var(--green-dark); }
.rating-great    { background: var(--blue-100); color: var(--blue-700); }
.rating-good     { background: var(--orange-100); color: var(--orange-700); }
.rating-fair     { background: var(--gray-100); color: var(--gray-500); }
.niche-score {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.niche-score strong {
  font-size: 1.1rem;
  color: var(--gray-900);
}

/* ── Table View ── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
}
.niche-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.niche-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.niche-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.1s;
  cursor: pointer;
}
.niche-table tbody tr:last-child { border-bottom: none; }
.niche-table tbody tr:hover { background: var(--gray-50); }
.niche-table td {
  padding: 12px 16px;
  vertical-align: middle;
  white-space: nowrap;
}
.niche-table td:first-child { white-space: normal; min-width: 180px; }
.table-product-name { font-weight: 600; color: var(--gray-900); }
.table-product-cat { font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }
.table-rating { text-align: center; }
.table-rating strong { font-size: 1rem; }
.table-rating span { font-size: 0.7rem; color: var(--gray-400); }
.table-volume { text-align: center; font-weight: 500; }
.table-trend-svg { width: 64px; height: 24px; }
.table-verdict {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  white-space: nowrap;
}
.verdict-top   { background: var(--orange-100); color: var(--orange-700); }
.verdict-great { background: var(--blue-100); color: var(--blue-700); }
.verdict-good  { background: var(--green-light); color: var(--green-dark); }
.verdict-fair  { background: var(--gray-100); color: var(--gray-500); }
.th-fav { width: 36px; }
.table-fav-cell { text-align: center; padding: 8px 4px !important; }
.table-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.table-fav-btn svg {
  fill: var(--gray-300);
  transition: fill 0.15s;
  pointer-events: none;
}
.table-fav-btn:hover { background: var(--gray-50); }
.table-fav-btn:hover svg { fill: var(--gray-400); }
.table-fav-btn.active svg { fill: var(--red-500); }
.table-arrow {
  color: var(--green-dark);
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
}
.table-arrow:hover { text-decoration: underline; }

/* Load more */
.load-more-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--green-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.load-more-btn:hover { background: var(--green-hover); }
.load-more-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.no-results {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
  padding: 32px 0;
}
.no-favorites {
  display: none;
  text-align: center;
  padding: 48px 16px;
}
.no-favorites-icon {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
  display: block;
  margin: 0 auto 12px;
}
.no-favorites-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 0 6px;
}
.no-favorites-text {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
  max-width: 320px;
  margin-inline: auto;
}

/* ── Section commons ── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-heading {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.section-subheading {
  text-align: center;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 36px;
}

/* ── How it works ── */
.how-section {
  background: #fff;
  padding: 64px 24px;
  border-top: 1px solid var(--gray-100);
}
.how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}
.how-step {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-300);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: left;
}
.how-icon {
  width: 48px;
  height: 48px;
  background: var(--green-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--green-primary);
}
.how-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.how-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ── Why section ── */
.why-section {
  background: var(--gray-100);
  padding: 64px 24px;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.why-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--orange-500);
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ── Testimonials ── */
.testimonials-section {
  background: #fff;
  padding: 64px 24px;
}
.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-quote {
  color: var(--green-primary);
}
.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-700);
  flex: 1;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
}
.testimonial-author {
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-author strong {
  font-size: 0.85rem;
}
.testimonial-author span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ── FAQ ── */
.faq-section {
  background: var(--gray-100);
  padding: 64px 24px;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--gray-100);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-900);
  transition: color 0.15s;
}
.faq-q:hover { color: var(--green-primary); }
.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--gray-500);
}
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-a p {
  padding: 0 20px 18px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ── CTA Footer ── */
.cta-section {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  line-height: 1.5;
}
.cta-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--green-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.cta-btn:hover { background: var(--green-hover); }

/* ── Loading / Retry ── */
.loading { min-height: 120px; position: relative; }
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--green-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 32px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton Cards ── */
.skeleton-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-line {
  background: var(--gray-100);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shimmer 1.5s infinite;
}
.sk-title  { width: 65%; height: 18px; }
.sk-cat    { width: 40%; height: 14px; }
.sk-badge  { width: 45%; height: 28px; border-radius: 14px; }
.sk-spark  { width: 100%; height: 32px; }
.sk-score  { width: 35%; height: 20px; }
.sk-rating { width: 25%; height: 20px; }
.sk-row    { display: flex; gap: 8px; }
.sk-spread { justify-content: space-between; }

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.retry-btn {
  display: block;
  margin: 24px auto;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--red-700);
  background: #fff;
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.retry-btn:hover { background: var(--red-100); }

/* ── Chat widget container (FAB is position:fixed, no layout needed) ── */
#jiji-scout-root {
  /* intentionally empty — FAB and panel are position: fixed */
}

/* ── Focus / a11y ── */
.chip:focus-visible,
.sort-pill:focus-visible,
.region-trigger:focus-visible,
.load-more-btn:focus-visible,
.retry-btn:focus-visible,
.fav-btn:focus-visible,
.faq-q:focus-visible,
.card:focus-visible,
.card-fav:focus-visible,
.cta-btn:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}
.region-state-row:focus-visible,
.region-city-row:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: -2px;
  background: var(--gray-50);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .how-cards, .why-cards, .testimonial-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 40px 16px 36px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 10px; }
  .hero-stat-card { padding: 12px 16px; }
  .hero-stat-value { font-size: 1.2rem; }
  .explore-section { padding: 24px 16px 32px; }
  .explore-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sort-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .cards { grid-template-columns: 1fr; }
  .category-chips, .city-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .region-dropdown, .cat-dropdown { width: min(320px, calc(100vw - 32px)); left: auto; right: -8px; max-height: 50vh; }
  .search-hint { padding: 12px 14px 10px; }
  .hint-chip { font-size: 0.78rem; padding: 5px 12px; }
  .view-toggle { display: none; }
  .how-section, .why-section, .testimonials-section, .faq-section, .cta-section { padding: 40px 16px; }
  .how-cards, .why-cards, .testimonial-cards { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.5rem; }
  .cta-section h2 { font-size: 1.5rem; }
}

/* ── Niche Detail Modal ── */
.niche-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.niche-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.niche-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.niche-modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.niche-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 4px;
  padding-right: 32px;
  text-transform: capitalize;
}
.niche-modal-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 0 20px;
}
.niche-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.niche-modal-stat {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.niche-modal-stat-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
}
.niche-modal-stat-label {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.niche-modal-stat-sub {
  font-size: 0.75rem;
  color: var(--green-primary);
  margin-top: 4px;
  font-weight: 500;
}
.niche-modal-related { margin-bottom: 20px; }
.niche-modal-related h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0 0 10px;
}
.niche-modal-related-list {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.niche-modal-related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.niche-modal-related-item:hover { background: var(--gray-50); }
.niche-modal-related-name {
  flex: 1;
  font-weight: 500;
  color: var(--gray-900);
  text-transform: capitalize;
}
.niche-modal-related-score {
  font-weight: 700;
  color: var(--green-primary);
  font-size: 0.82rem;
}
.niche-modal-related-vol {
  font-size: 0.78rem;
  color: var(--gray-500);
  min-width: 60px;
  text-align: right;
}
.niche-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  color: var(--gray-500);
  font-size: 0.85rem;
}
.niche-modal-loading .loading-spinner {
  width: 20px;
  height: 20px;
  position: static;
  margin: 0;
}
.niche-modal-cta { text-align: center; padding-top: 4px; }
.niche-modal-cta-btn {
  display: inline-block;
  background: var(--green-primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
}
.niche-modal-cta-btn:hover { background: var(--green-hover); }

/* ── Niche Modal: How to List Guide ── */
.niche-modal-guide {
  margin-bottom: 20px;
  background: var(--green-50);
  border: 1px solid rgba(22, 163, 74, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
}
.niche-modal-guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.niche-modal-guide-icon {
  display: flex;
  align-items: center;
  color: var(--green-primary);
  flex-shrink: 0;
}
.niche-modal-guide-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin: 0;
}
.niche-modal-guide-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.niche-modal-guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.niche-modal-guide-num {
  width: 22px;
  height: 22px;
  background: var(--green-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.niche-modal-guide-tip-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.niche-modal-guide-tip-content strong {
  font-size: 0.82rem;
  color: var(--gray-900);
}
.niche-modal-guide-tip-content span {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.niche-modal-guide-mock-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin: 0 0 8px;
  font-weight: 500;
}
.niche-modal-guide-mock {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.niche-modal-guide-mock-img {
  background: var(--gray-100);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.75rem;
  min-height: 60px;
}
.niche-modal-guide-mock-img svg { color: var(--gray-300); }
.niche-modal-guide-mock-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.niche-modal-guide-mock-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}
.niche-modal-guide-mock-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-primary);
}
.niche-modal-guide-mock-cat {
  font-size: 0.72rem;
  color: var(--gray-500);
}
.niche-modal-guide-mock-attrs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--green-primary);
  font-weight: 500;
  margin-top: 2px;
}
.niche-modal-guide-mock-attrs svg { flex-shrink: 0; }

@media (max-width: 600px) {
  .niche-modal {
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    padding: 20px 16px 16px;
  }
  .niche-modal-overlay { padding: 0; }
  .niche-modal-stats { grid-template-columns: repeat(2, 1fr); }
  .niche-modal-guide { padding: 12px; }
}

/* ── Metric Tooltips ── */
.metric-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.metric-tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}
.metric-tooltip-wrap:hover .metric-tooltip-icon,
.metric-tooltip-icon:focus {
  background: var(--green-primary);
  color: #fff;
}
.metric-tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  text-align: left;
  z-index: 1100;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.metric-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gray-900);
}
.metric-tooltip-wrap:hover .metric-tooltip-text,
.metric-tooltip-icon:focus + .metric-tooltip-text {
  display: block;
}

/* ── Phone Gate Modal ── */
.phone-gate-modal {
  max-width: 420px;
  text-align: center;
  padding: 32px 28px !important;
  position: relative;
}
.gate-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.gate-close-btn:hover {
  color: var(--gray-700);
  background: var(--gray-100);
}
.gate-icon {
  color: var(--green-primary);
  margin-bottom: 12px;
}
.gate-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.gate-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.5;
}
.gate-form {
  margin-bottom: 16px;
}
.gate-phone-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}
.gate-phone-input:focus {
  border-color: var(--green-primary);
}
.gate-error {
  color: var(--red-500);
  font-size: 13px;
  margin-bottom: 8px;
  text-align: left;
}
.gate-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--green-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-submit-btn:hover { background: var(--green-hover); }
.gate-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.gate-benefits {
  text-align: left;
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.gate-benefits p { margin-bottom: 6px; }
.gate-benefits ul {
  list-style: none;
  padding: 0;
}
.gate-benefits li {
  padding: 3px 0;
}
.gate-benefits li::before {
  content: "\2713 ";
  color: var(--green-primary);
  font-weight: 700;
  margin-right: 6px;
}
.gate-privacy {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.4;
}

/* ── Toast ── */
.scout-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--gray-900);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.scout-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .phone-gate-modal {
    max-width: 100%;
    padding: 24px 16px !important;
    border-radius: 12px 12px 0 0 !important;
    max-height: 90vh;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Loading spinner */
.loading {
  min-height: 80px;
  position: relative;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 24px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Retry button */
.retry-btn {
  display: block;
  margin: 24px auto;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid #c62828;
  background: #fff;
  color: #c62828;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.retry-btn:hover {
  background: #ffebee;
}

/* Focus styles for accessibility */
.chip:focus-visible,
.region-trigger:focus-visible,
.load-more-btn:focus-visible,
.retry-btn:focus-visible {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}
.region-state-row:focus-visible,
.region-city-row:focus-visible {
  outline: 2px solid #4CAF50;
  outline-offset: -2px;
  background: #f5f5f5;
}

/* Mobile */
@media (max-width: 600px) {
  body { padding: 16px 10px; }
  .title { font-size: 1.5rem; }
  .stats-bar { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .cards { gap: 10px; }
  .card { flex: 1 1 100%; max-width: 100%; }
  .category-chips, .city-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .region-dropdown { width: min(320px, calc(100vw - 32px)); left: auto; right: -8px; max-height: 50vh; }
  .explore-section, .cards { max-width: 100%; }
}
