:root {
  --ink: #f7f8ff;
  --muted: #b9bdd0;
  --line: rgba(145, 157, 210, .28);
  --panel: #30364f;
  --soft: #252b43;
  --primary: #3b82ff;
  --primary-dark: #2563eb;
  --accent: #ff8a00;
  --purple: #a53df2;
  --page: #2f354d;
  --page-dark: #080b15;
}

html {
  font-size: 16px;
}

body {
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: #9fbcff;
}

a:hover {
  color: #ffffff;
}

.text-muted {
  color: var(--muted) !important;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 10px 26px rgba(59, 130, 255, .24);
}

.btn-outline-primary {
  --bs-btn-color: #cbd6ff;
  --bs-btn-border-color: rgba(157, 178, 255, .55);
  --bs-btn-hover-bg: rgba(83, 120, 240, .22);
  --bs-btn-hover-border-color: rgba(177, 194, 255, .75);
  --bs-btn-hover-color: #fff;
}

.btn-outline-secondary {
  --bs-btn-color: #d7dbea;
  --bs-btn-border-color: rgba(190, 196, 228, .35);
  --bs-btn-hover-bg: rgba(255, 255, 255, .1);
  --bs-btn-hover-border-color: rgba(190, 196, 228, .6);
  --bs-btn-hover-color: #fff;
}

.site-header .navbar {
  background: rgba(18, 21, 36, .94) !important;
  border-color: rgba(145, 157, 210, .32) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .2);
}

.tradegenie-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: inherit;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-3px);
}

.tradegenie-wordmark,
.tradegenie-wordmark:hover,
.tradegenie-wordmark:focus {
  text-decoration: none;
}

.tradegenie-wordmark-trade {
  color: #6fb6ff;
}

.tradegenie-wordmark-genie {
  color: #10aeb9;
}

.navbar-light .navbar-nav .nav-link {
  color: #d5d8e8;
  font-weight: 600;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #b565ff;
}

.navbar-light .navbar-toggler {
  border-color: rgba(255, 255, 255, .35);
}

.navbar-light .navbar-toggler-icon {
  filter: invert(1);
}

.form-control,
.form-select {
  color: #f8f9ff;
  background-color: rgba(27, 34, 65, .82);
  border-color: rgba(158, 171, 222, .35);
}

.form-control:focus,
.form-select:focus {
  color: #fff;
  background-color: rgba(27, 34, 65, .96);
  border-color: rgba(130, 159, 255, .8);
  box-shadow: 0 0 0 .2rem rgba(88, 125, 255, .18);
}

.form-control::placeholder {
  color: rgba(214, 218, 238, .56);
}

.hero-section {
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 138, 0, .14), transparent 25%),
    linear-gradient(135deg, #080b15 0%, #202848 52%, #30364f 100%);
  padding: 76px 0 42px;
}

.hero-section h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.02;
  max-width: 11em;
}

.hero-brand-card {
  display: grid;
  justify-items: center;
  max-width: 460px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-brand-image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}

.postcode-search-card {
  display: grid;
  gap: 10px;
  margin: 26px 0 16px;
  padding: 18px;
  background: rgba(10, 14, 29, .58);
  border: 1px solid rgba(155, 170, 230, .32);
  border-radius: 8px;
}

.postcode-search-card .form-label {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
}

.postcode-search-card p {
  color: var(--muted);
}

.postcode-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.postcode-search-controls .btn {
  white-space: nowrap;
}

.postcode-combobox {
  position: relative;
}

.postcode-combobox .form-control {
  padding-right: 3rem;
}

.postcode-combobox-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
}

.postcode-combobox-toggle::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: auto;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 11px solid #ffffff;
}

.postcode-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: 320px;
  overflow: auto;
  padding: 8px;
  background: #11182d;
  border: 1px solid rgba(130, 159, 255, .58);
  border-radius: 8px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .38);
}

.postcode-options::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #11182d;
  border-top: 1px solid rgba(130, 159, 255, .58);
  border-left: 1px solid rgba(130, 159, 255, .58);
  transform: rotate(45deg);
}

.postcode-options button {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: #f8f9ff;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.postcode-options button:hover,
.postcode-options button:focus,
.postcode-options button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(59, 130, 255, .34), rgba(165, 61, 242, .28));
  outline: none;
}

.section-block {
  padding-top: 48px;
  padding-bottom: 48px;
}

.section-block.narrow {
  max-width: 820px;
}

.section-band {
  background: var(--soft);
  padding: 44px 0;
}

.map-visual,
.map-strip {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(160, 176, 255, .08) 1px, transparent 1px),
    linear-gradient(rgba(160, 176, 255, .08) 1px, transparent 1px),
    #1f2947;
  background-size: 48px 48px;
  border-radius: 8px;
  overflow: hidden;
}

.map-strip {
  min-height: 260px;
}

.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(20, 33, 61, .25);
}

.pin-a { left: 24%; top: 28%; }
.pin-b { left: 66%; top: 45%; }
.pin-c { left: 46%; top: 68%; }

.lead-preview-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 6px;
  width: min(280px, calc(100% - 48px));
  background: #30364f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 14px 38px rgba(20, 33, 61, .16);
}

.info-panel,
.lead-card,
.pricing-card,
.form-panel,
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .14);
}

.info-panel span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span,
.category-badge {
  background: rgba(255, 255, 255, .06);
  color: #d8dbea;
  border: 1px solid rgba(190, 196, 228, .18);
  border-radius: 999px;
  padding: 6px 10px;
}

.pricing-preview {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: linear-gradient(135deg, #252c4d, #233a78);
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.app-surface {
  padding: 24px;
}

.filter-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 16px;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.lead-card h3 {
  font-size: 1.05rem;
  margin: 12px 0;
}

.lead-meta,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.lead-meta div {
  min-width: 0;
}

.lead-meta dt,
.detail-grid dt {
  color: rgba(216, 219, 234, .64);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.lead-meta dd,
.detail-grid dd {
  margin: 0;
}

.saved-dot {
  color: #57d68d;
  font-size: .8rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric-grid strong {
  display: block;
  font-size: 2rem;
}

.metric-grid span {
  color: var(--muted);
}

.pricing-card {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
}

.price {
  font-size: 2rem;
  font-weight: 700;
}

.price span {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 400;
}

.form-panel {
  display: grid;
  gap: 10px;
}

.map-results-section {
  padding: 38px 0 54px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 138, 0, .13), transparent 24%),
    linear-gradient(180deg, #252a40 0%, #2f354d 100%);
}

.map-results-heading {
  margin-bottom: 24px;
}

.map-results-heading h1 {
  color: #d9dcf0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.map-results-heading h1 span {
  color: var(--accent);
}

.map-results-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.lead-map.lead-map-hero {
  min-height: 560px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.map-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 38px;
  padding: 18px 22px;
  color: #603014;
  background: #fff7ec;
  border: 1px solid rgba(255, 138, 0, .46);
  border-radius: 8px;
}

.map-result-list {
  margin-top: 26px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  min-height: calc(100vh - 140px);
}

.lead-map {
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-list {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer {
  background: var(--page-dark);
  border-color: rgba(190, 196, 228, .12) !important;
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 992px) {
  .hero-brand-card {
    margin-right: auto;
  }

  .postcode-search-controls,
  .map-layout,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .postcode-search-controls .btn {
    width: 100%;
  }

  .lead-map {
    min-height: 420px;
  }

  .map-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .pricing-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}
