/* -------------------------------------------
   Base theme (was previously coming from dealers.css)
------------------------------------------- */

@font-face{
  font-family:"UKNumberPlate";
  src:url("/fonts/UKNumberPlate.ttf") format("truetype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:rgba(226,232,240,.92);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(59,130,246,.18), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(56,189,248,.08), transparent 55%),
    radial-gradient(700px 600px at 50% 95%, rgba(30,64,175,.10), transparent 60%),
    linear-gradient(180deg, #020617 0%, #050815 40%, #020617 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{ color:inherit; }

/* Keep it compatible with your existing dark premium theme */
.ctw-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.ctw-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: start;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .ctw-hero {
    grid-template-columns: 1fr;
  }
}

.ctw-title {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .ctw-title {
    font-size: 40px;
  }
}

.ctw-sub {
  margin: 0 0 18px;
  opacity: 0.85;
  max-width: 56ch;
}

.ctw-form {
  margin-top: 14px;
}

.ctw-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 10px;
}

.ctw-inputWrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.ctw-input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 7, 18, 0.52);
  color: #fff;
  outline: none;
}

.ctw-input:focus {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.ctw-btn {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.ctw-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.ctw-hint {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}

.ctw-meta {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

@media (max-width: 700px) {
  .ctw-meta {
    grid-template-columns: 1fr;
  }
}

.ctw-platePreview {
  border-radius: 18px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ctw-plate {
  width: 100%;
  border-radius: 6px;
  background: #DEDE17;
  border: 2px solid #D1C044;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  text-align: center;
  padding: 7px 10px;
  color: #0b1220;
  font-size: 32px;
  letter-spacing: 0em;
  font-family: UKNumberPlate, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ctw-state {
  font-size: 14px;
  opacity: 0.85;
  min-height: 20px;
}

.ctw-disclaimer {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.65;
  max-width: 70ch;
}

.ctw-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.25);
}

.ctw-card__title {
  font-weight: 800;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 10px;
}

.ctw-bullets {
  margin: 0;
  padding-left: 18px;
  opacity: 0.8;
}

.ctw-card__mini {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.65;
}

.ctw-results {
  margin-top: 32px;
}

.ctw-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ctw-results__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.ctw-summary {
  font-size: 13px;
  opacity: 0.72;
}

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

@media (max-width: 980px) {
  .ctw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .ctw-grid {
    grid-template-columns: 1fr;
  }
}

.ctw-siteCard {
  border-radius: 16px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.ctw-siteTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ctw-siteName {
  font-weight: 800;
  font-size: 14px;
}

.ctw-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.85;
}

.ctw-badge--found {
  border-color: rgba(34, 197, 94, 0.40);
  background: rgba(34, 197, 94, 0.10);
}

.ctw-badge--none {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
}

.ctw-badge--link {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.10);
}

.ctw-badge--error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.10);
}

.ctw-siteBody {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

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

.ctw-item {
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
}

.ctw-itemTitle {
  font-weight: 700;
  font-size: 13px;
  opacity: 0.95;
}

.ctw-itemMeta {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ctw-linkRow {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ctw-linkBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.35);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  opacity: 0.9;
}

.ctw-linkBtn:hover {
  border-color: rgba(59, 130, 246, 0.55);
}

/* --- Override results layout: stacked vertical list --- */
.ctw-grid{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ctw-siteCard{
  width: 100%;
}

.ctw-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* --- Row-style result layout --- */
.ctw-siteCard{
  padding: 14px;
}

.ctw-siteRow{
  display:flex;
  align-items:center;
  gap:14px;
}

.ctw-siteLeft{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}

.ctw-siteLogo{
  width:34px;
  height:34px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:12px;
  letter-spacing:0.06em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  flex: 0 0 auto;
}

.ctw-siteMid{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 1;
  min-width: 0;
}

.ctw-siteVrm{
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(2,6,23,0.35);
  font-family: UKNumberPlate, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0em;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}

.ctw-sitePrice{
  font-weight: 800;
  opacity: 0.92;
  white-space: nowrap;
}

.ctw-sitePrice--muted{
  opacity: 0.55;
}

.ctw-siteReason{
  font-size: 13px;
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctw-siteRight{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
}

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

/* Mobile: allow wrapping while keeping the “row” feel */
@media (max-width: 760px){
  .ctw-siteRow{ flex-wrap: wrap; }
  .ctw-siteLeft{ min-width: 0; }
  .ctw-siteMid{ width: 100%; order: 2; }
  .ctw-siteRight{ width: 100%; order: 3; justify-content: space-between; }
  .ctw-siteReason{ white-space: normal; }
}

.ctw-siteLogoWrap{
  width:34px;
  height:34px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow:hidden;
  flex: 0 0 auto;
}

.ctw-siteLogoImg{
  width:100%;
  height:100%;
  object-fit: contain;
  padding: 5px; /* gives nicer consistent margins */
  display:block;
}

.ctw-siteLogoFallback{
  font-weight:900;
  font-size:12px;
  letter-spacing:0.06em;
  color: rgba(255,255,255,0.85);
}

.ctw-siteLogoWrap:not(.is-fallback) .ctw-siteLogoFallback{
  display:none;
}

/* Logo: remove the visible bubble + make the logo fill the full height */
.ctw-siteLogoWrap{
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.ctw-siteLogoImg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;          /* remove padding so it fills the space */
  display: block;
}

/* If a logo fails and we show initials, keep that subtle */
.ctw-siteLogoFallback{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.ctw-siteLogoWrap{ height: 100%; width: 52px; }

/* -----------------------------
   Loader overlay (Figma search animation)
------------------------------ */

.ctw-loaderOverlay[hidden] { display: none !important; }

.ctw-loaderOverlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.ctw-loaderCard{
  width: min(720px, 92vw);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15, 23, 42, 0.80);
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
  padding: 26px 26px 22px;
}

.ctw-loaderIcon{
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  animation: ctwDocFloat 2.8s ease-in-out infinite;
}

@keyframes ctwDocFloat{
  0%,100%{ transform: translateY(-3px); }
  50%{ transform: translateY(3px); }
}

.ctw-doc{
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 0.8px solid rgba(255,255,255,0.12);
  background: rgba(15, 23, 42, 0.80);
  box-shadow: 0 4px 12px rgba(0,0,0,0.30);
}

.ctw-doc--back{
  left: 18px;
  top: 22px;
  transform: translate(-18px, -8px);
  opacity: 0.35;
}

.ctw-doc--mid{
  left: 18px;
  top: 22px;
  transform: translate(-9px, -4px);
  opacity: 0.55;
}

.ctw-doc--front{
  left: 18px;
  top: 22px;
  opacity: 1;
}

.ctw-docInner{
  height: 68px;
  padding: 12.8px 12.8px 11.2px 12.8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.ctw-docRow{
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctw-dot{
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
}

.ctw-line{
  height: 4px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: rgba(255,255,255,0.10);
}

.ctw-line--w1{ width: 30.4px; background: rgba(255,255,255,0.15); }
.ctw-line--w2{ width: 24.3px; }
.ctw-line--w3{ width: 18.2px; }

.ctw-mag{
  position: absolute;
  left: 54px;
  top: 52px;
  width: 44px;
  height: 44px;
  animation: ctwMagMove 2.2s ease-in-out infinite;
}

@keyframes ctwMagMove{
  0%   { transform: translate(-30px, -30px); }
  45%  { transform: translate(10px, -25px); }
  65%  { transform: translate(15px, -20px); }
  100% { transform: translate(-30px, -30px); }
}

.ctw-magLens{
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(2px);
  overflow: hidden;
}

.ctw-scanHighlight{
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 35% 35%, rgba(59,130,246,0.28), rgba(59,130,246,0) 60%);
  opacity: 0;
  animation: ctwHighlight 2.2s ease-in-out infinite;
}

@keyframes ctwHighlight{
  0%,100%{ opacity: 0; }
  45%{ opacity: 0.9; }
  65%{ opacity: 0.55; }
}

.ctw-magHandle{
  position: absolute;
  left: 20px;
  top: 24px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.92);
  transform: rotate(45deg);
  transform-origin: left center;
}

.ctw-loaderCopy{
  text-align: center;
}

.ctw-loaderTitle{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.ctw-loaderSub{
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.82;
}

.ctw-loaderMetaRow{
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.80;
}

.ctw-loaderMetaCount{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.ctw-loaderMetaDot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.20);
}

.ctw-progress{
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}

.ctw-progressBar{
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: rgba(59,130,246,0.95);
  position: relative;
}

.ctw-progressBar.is-animating::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-60%);
  animation: ctwShimmer 1.1s ease-in-out infinite;
}

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

.ctw-loaderHint{
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.65;
}

body.ctw-loaderOpen { overflow: hidden; }

.ctw-doc--back .ctw-docInner { opacity: 0.40; }
.ctw-doc--mid  .ctw-docInner { opacity: 0.58; }

/* Smooth progress width updates */
.ctw-progressBar{
  transition: width 260ms cubic-bezier(.2,.9,.2,1);
  will-change: width;
}

/* Tiny pop when count increments */
.ctw-loaderMetaCount.is-pop{
  animation: ctwPop 220ms ease;
}
@keyframes ctwPop{
  0%{ transform: scale(1); }
  45%{ transform: scale(1.10); }
  100%{ transform: scale(1); }
}

/* Optional: stop page scroll while loader open */
body.ctw-loaderOpen{ overflow: hidden; }

/* -----------------------------
   Page background: solid after fold
   (override dealers.css on this page only)
------------------------------ */

/* Solid base for the whole page */
body.ctd-body{
  background: #020617 !important;
}

/* Kill any fixed/global glow layers coming from dealers.css */
body.ctd-body::before,
body.ctd-body::after{
  content: none !important;
  display: none !important;
}

/* Re-add a top-only glow behind the hero (does not extend down the page) */
.ctw-shell{
  position: relative;
  z-index: 0;
}

.ctw-shell::before{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -140px;              /* pulls glow up behind the topbar/hero */
  width: 100vw;
  height: clamp(520px, 70vh, 740px); /* only “first page” */
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(900px 420px at 18% -10%, rgba(59,130,246,0.24), transparent 60%),
    radial-gradient(760px 360px at 86% 0%, rgba(56,189,248,0.10), transparent 62%),
    radial-gradient(520px 260px at 52% 28%, rgba(99,102,241,0.08), transparent 70%),
    linear-gradient(180deg, rgba(15,23,42,0.95), rgba(2,6,23,1) 74%);
}