: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;
  --bs-body-font-family: "Atkinson Hyperlegible", Arial, sans-serif;
}

html {
  font-size: 16px;
}

body {
  color: var(--ink);
  background: var(--page);
  font-family: "Atkinson Hyperlegible", Arial, 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;
}

.nav-user-name {
  color: #8ed5ff;
  display: inline-block;
  font-weight: 700;
  line-height: 1.5;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transform: translateY(3px);
  white-space: nowrap;
}

.nav-user-name:hover,
.nav-user-name:focus {
  color: #b565ff;
}

.account-dropdown {
  background: #151a2e;
  border-color: rgba(145, 157, 210, .32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
  min-width: 15rem;
}

.account-dropdown-header {
  padding: .65rem 1rem .55rem;
}

.account-dropdown-name {
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
}

.account-dropdown-email {
  color: #aeb6d3;
  font-size: .86rem;
  line-height: 1.25;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown .dropdown-item {
  color: #d5d8e8;
  font-weight: 600;
}

.account-dropdown .dropdown-item:hover,
.account-dropdown .dropdown-item:focus {
  color: #fff;
  background: rgba(72, 126, 255, .18);
}

.account-dropdown .dropdown-divider {
  border-top-color: rgba(145, 157, 210, .28);
}

.subscription-plan-status {
  color: #8ed5ff;
  font-weight: 800;
  min-height: 2.375rem;
  display: flex;
  align-items: center;
}

.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 {
  color: #01c1e7;
  font-size: clamp(1.9rem, 3.2vw, 3.35rem);
  line-height: 1.04;
  max-width: 11em;
}

.hero-marketing-line {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: .75rem 0 0;
}

.hero-proof-line {
  margin: 18px 0 8px;
  color: #4e7fbf;
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 800;
}

.hero-supporting-copy {
  max-width: 34rem;
  color: #d0d5e8;
  font-size: 1.05rem;
  line-height: 1.5;
}

.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;
}

.static-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.static-content .lead {
  font-size: 1.28rem;
  line-height: 1.45;
  margin-bottom: 1.35rem;
}

.lead-detail-title {
  margin: 12px 0 16px;
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  line-height: 1.12;
  max-width: 58rem;
}

.lead-detail-proposal {
  max-width: 58rem;
  margin: 0 0 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(190, 196, 228, .16);
  border-radius: 8px;
}

.lead-detail-proposal h2 {
  margin: 0 0 8px;
  color: rgba(216, 219, 234, .7);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lead-detail-proposal p {
  margin: 0;
  color: #f3f5ff;
  font-size: 1rem;
  line-height: 1.55;
}

.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;
}

.save-search-panel {
  background: #3a405c;
  border-color: rgba(174, 188, 244, .42);
}

.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;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

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

.pricing-card-action {
  margin-top: 18px;
}

.pricing-card-action form {
  margin: 0;
}

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

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

.pricing-features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  color: #d8dcea;
}

.pricing-features li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: .08em;
}

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

.external-login-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.external-login-panel form {
  margin: 0;
}

.external-login-button {
  width: 100%;
  color: #f8f9ff;
  background: rgba(17, 24, 45, .74);
  border: 1px solid rgba(158, 171, 222, .38);
  font-weight: 700;
}

.external-login-button:hover,
.external-login-button:focus {
  color: #ffffff;
  background: rgba(35, 48, 86, .92);
  border-color: rgba(130, 159, 255, .72);
}

.external-login-button-google::before,
.external-login-button-facebook::before {
  display: inline-block;
  width: 1.35em;
  margin-right: 8px;
  text-align: center;
}

.external-login-button-google::before {
  content: "G";
  color: #01c1e7;
}

.external-login-button-facebook::before {
  content: "f";
  color: #6fb6ff;
  font-weight: 900;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: .9rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.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;
}

.chatbot-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
}

.chatbot-toggle {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #fff;
  background: #11172a;
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  padding: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34), 0 0 0 5px rgba(59, 130, 255, .2);
  overflow: hidden;
}

.chatbot-toggle:hover,
.chatbot-toggle:focus {
  outline: 3px solid rgba(142, 213, 255, .35);
  outline-offset: 3px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .4), 0 0 0 6px rgba(16, 174, 185, .28);
}

.chatbot-toggle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatbot-close svg,
.chatbot-send svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(370px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 112px));
  overflow: hidden;
  color: #f8f9ff;
  background: #151a2e;
  border: 1px solid rgba(145, 157, 210, .36);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  background: #1c2340;
  border-bottom: 1px solid rgba(145, 157, 210, .24);
}

.chatbot-header strong,
.chatbot-header span {
  display: block;
}

.chatbot-header strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.chatbot-header span {
  color: #aeb6d3;
  font-size: .82rem;
  line-height: 1.25;
  margin-top: 2px;
}

.chatbot-close,
.chatbot-send {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: #d8dbea;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(190, 196, 228, .18);
  border-radius: 8px;
}

.chatbot-close {
  width: 36px;
  height: 36px;
}

.chatbot-close svg {
  width: 20px;
  height: 20px;
}

.chatbot-close:hover,
.chatbot-close:focus,
.chatbot-send:hover,
.chatbot-send:focus {
  color: #fff;
  background: rgba(72, 126, 255, .2);
  border-color: rgba(130, 159, 255, .62);
  outline: none;
}

.chatbot-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: #11172a;
}

.chatbot-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .94rem;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chatbot-message-assistant {
  justify-self: start;
  color: #eef2ff;
  background: #252c4d;
  border: 1px solid rgba(190, 196, 228, .14);
}

.chatbot-message-user {
  justify-self: end;
  color: #fff;
  background: #2563eb;
}

.chatbot-message a {
  color: #8ed5ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chatbot-message a:hover,
.chatbot-message a:focus {
  color: #ffffff;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 12px;
  background: #151a2e;
  border-top: 1px solid rgba(145, 157, 210, .24);
}

.chatbot-form textarea {
  min-height: 46px;
  max-height: 116px;
  resize: vertical;
  color: #fff;
  background: rgba(27, 34, 65, .92);
  border: 1px solid rgba(158, 171, 222, .35);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.35;
}

.chatbot-form textarea:focus {
  border-color: rgba(130, 159, 255, .8);
  box-shadow: 0 0 0 .2rem rgba(88, 125, 255, .18);
  outline: none;
}

.chatbot-send {
  width: 46px;
  height: 46px;
  align-self: end;
  color: #fff;
  background: #2563eb;
  border-color: transparent;
}

.chatbot-send:disabled {
  cursor: wait;
  opacity: .65;
}

@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;
  }
}

@media (max-width: 576px) {
  .chatbot-widget {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-panel {
    position: fixed;
    right: 14px;
    bottom: 84px;
    left: 14px;
    width: auto;
    height: min(540px, calc(100vh - 96px));
  }
}
