:root{
  --ctd-bg0:#020617;
  --ctd-bg1:#070b14;
  --ctd-card:#0b1222;
  --ctd-card2:#0a1020;
  --ctd-border:rgba(148,163,184,.14);
  --ctd-border2:rgba(148,163,184,.08);
  --ctd-text:#e5e7eb;
  --ctd-muted:rgba(226,232,240,.72);
  --ctd-muted2:rgba(226,232,240,.55);
  --ctd-accent:#3b82f6;
  --ctd-accent2:rgba(59,130,246,.18);
  --ctd-shadow:0 18px 60px rgba(0,0,0,.55);
  --ctd-radius:22px;
  --ctd-radius2:28px;
}

@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.ctd-body{
  margin:0;
  color:var(--ctd-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, 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, #050815 0%, #020617 40%, #020617 100%);
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }
.ctd-main{ width:min(1180px, calc(100% - 48px)); margin:0 auto; padding:38px 0 56px; }

.ctd-topbar{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg, rgba(2,6,23,.92), rgba(2,6,23,.72));
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--ctd-border2);
}
.ctd-topbar__inner{
  width:min(1180px, calc(100% - 48px));
  margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}
.ctd-brand{
  display:inline-flex; gap:6px; align-items:baseline;
  font-weight:800; letter-spacing:.18em;
  text-transform:uppercase;
}
.ctd-brand__car{ color:#fff; font-size:18px; }
.ctd-brand__trait{ color:var(--ctd-accent); font-size:18px; }
.ctd-nav{ display:flex; gap:22px; align-items:center; color:rgba(226,232,240,.86); font-size:14px; }
.ctd-nav a{ padding:8px 10px; border-radius:12px; }
.ctd-nav a:hover{ background:rgba(255,255,255,.04); }
.ctd-topbar__right{ display:flex; gap:12px; align-items:center; }
.ctd-navLink{ color:rgba(226,232,240,.86); font-size:14px; padding:8px 10px; border-radius:12px; }
.ctd-navLink:hover{ background:rgba(255,255,255,.04); }

.ctd-hero{ padding:26px 0 10px; }
.ctd-hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:28px;
  align-items:start;
}
.ctd-hero__title{
  font-size:56px; line-height:1.02; margin:18px 0 14px;
  letter-spacing:-.02em;
}
.ctd-hero__subtitle{
  margin:0 0 22px;
  color:var(--ctd-muted);
  font-size:18px; line-height:1.55;
  max-width:540px;
}
.ctd-hero__ctaRow{ display:flex; gap:14px; flex-wrap:wrap; margin:0 0 22px; }
.ctd-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:52px; padding:0 18px;
  border-radius:16px;
  border:1px solid var(--ctd-border);
  background:rgba(255,255,255,.03);
  color:#fff;
  font-weight:650;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.ctd-btn--primary{
  border-color:rgba(59,130,246,.35);
  background: linear-gradient(180deg, rgba(59,130,246,.95), rgba(59,130,246,.78));
}
.ctd-btn--ghost{ background:rgba(255,255,255,.02); }
.ctd-btn--full{ width:100%; }
.ctd-btn:hover{ transform: translateY(-1px); transition: transform .12s ease; }

.ctd-hero__chipsLabel{
  font-size:12px;
  letter-spacing:.14em;
  color:rgba(226,232,240,.55);
  margin:8px 0 10px;
}
.ctd-hero__chips{ display:flex; gap:10px; flex-wrap:wrap; }
.ctd-chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.22);
  background:rgba(59,130,246,.08);
  color:rgba(226,232,240,.90);
  font-size:13px;
}

.ctd-panel{
  border-radius:var(--ctd-radius2);
  background:
    radial-gradient(800px 360px at 30% 10%, rgba(59,130,246,.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  border:1px solid var(--ctd-border);
  box-shadow: var(--ctd-shadow);
  padding:18px;
}
.ctd-panel__titleRow{ display:flex; justify-content:space-between; align-items:center; }
.ctd-panel__title{
  display:flex; align-items:center; gap:10px;
  font-weight:750;
  color:rgba(226,232,240,.92);
}
.ctd-panel__icon{
  width:28px; height:28px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:10px;
  background:rgba(59,130,246,.10);
  border:1px solid rgba(59,130,246,.18);
  color:rgba(226,232,240,.9);
  font-size:14px;
}
.ctd-panel__subTitleRow{ margin-top:14px; }

.ctd-videoStub{
  margin-top:12px;
  height:230px;
  border-radius:22px;
  border:1px solid rgba(148,163,184,.14);
  background:
    radial-gradient(700px 320px at 50% 10%, rgba(59,130,246,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  gap:10px;
}
.ctd-videoStub__plate{
  font-size:40px;
  font-weight:900;
  letter-spacing:.06em;
  color:#fff;
}
.ctd-videoStub__hint{
  color:rgba(226,232,240,.65);
  font-size:14px;
}

.ctd-kpis{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.ctd-kpi{
  border-radius:18px;
  border:1px solid rgba(148,163,184,.14);
  background:rgba(2,6,23,.55);
  padding:12px 12px 14px;
}
.ctd-kpi__label{ font-size:12px; color:rgba(226,232,240,.65); margin-bottom:6px; }
.ctd-kpi__value{ font-size:20px; font-weight:800; }

.ctd-storefrontStub{
  margin-top:12px;
  display:grid;
  gap:12px;
}
.ctd-storefrontStub__row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ctd-platePill{
  height:44px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  letter-spacing:.06em;
  background:linear-gradient(180deg, rgba(245,158,11,.96), rgba(245,158,11,.86));
  color:#0b1222;
  border:1px solid rgba(0,0,0,.16);
}
.ctd-platePill--big{ height:46px; border-radius:16px; }

.ctd-section{ padding:44px 0 0; }
.ctd-section__head{ text-align:center; margin-bottom:22px; }
.ctd-section__head h2{
  margin:0 0 6px;
  font-size:40px;
  letter-spacing:-.02em;
}
.ctd-section__head p{
  margin:0;
  color:var(--ctd-muted);
  font-size:16px;
}
.ctd-pillNote{
  margin:14px auto 0;
  display:inline-flex;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(59,130,246,.22);
  background:rgba(59,130,246,.08);
  color:rgba(226,232,240,.90);
  font-size:13px;
}

.ctd-featureGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
  margin-top:18px;
}
.ctd-card{
  border-radius:var(--ctd-radius);
  border:1px solid var(--ctd-border);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  padding:18px;
  min-height:170px;
}
.ctd-card__icon{
  width:44px; height:44px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(59,130,246,.10);
  border:1px solid rgba(59,130,246,.18);
  margin-bottom:12px;
}
.ctd-card h3{ margin:0 0 8px; font-size:18px; }
.ctd-card p{ margin:0; color:var(--ctd-muted); font-size:14px; line-height:1.5; }

.ctd-pricingGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
  margin-top:18px;
}
.ctd-priceCard{
  position:relative;
  border-radius:var(--ctd-radius2);
  border:1px solid var(--ctd-border);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  padding:22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.ctd-priceCard--featured{
  border-color:rgba(59,130,246,.40);
  box-shadow: 0 22px 80px rgba(59,130,246,.14);
}
.ctd-badgeTop{
  position:absolute;
  top:-12px; left:50%;
  transform:translateX(-50%);
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(59,130,246,.96), rgba(59,130,246,.78));
  color:#fff;
  font-weight:750;
  font-size:12px;
  border:1px solid rgba(255,255,255,.16);
}
.ctd-priceCard__name{ font-size:20px; font-weight:850; margin-bottom:10px; }
.ctd-priceCard__price{ font-size:44px; font-weight:900; letter-spacing:-.02em; }
.ctd-priceCard__price span{ font-size:16px; opacity:.75; font-weight:700; margin-left:6px; }
.ctd-priceCard__meta{ color:var(--ctd-muted); margin:8px 0 14px; }

.ctd-list{ list-style:none; margin:0 0 18px; padding:0; display:grid; gap:10px; }
.ctd-list li{
  color:rgba(226,232,240,.86);
  display:flex; gap:10px; align-items:flex-start;
}
.ctd-list li::before{
  content:"✓";
  color:var(--ctd-accent);
  font-weight:900;
  margin-top:1px;
}

.ctd-steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:16px;
  margin-top:18px;
}
.ctd-step{
  border-radius:var(--ctd-radius);
  border:1px solid var(--ctd-border);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  padding:18px;
}
.ctd-step__num{
  width:46px; height:46px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(59,130,246,.18);
  border:1px solid rgba(59,130,246,.24);
  font-weight:900;
  font-size:18px;
  margin-bottom:12px;
}
.ctd-step h3{ margin:0 0 8px; font-size:18px; }
.ctd-step p{ margin:0; color:var(--ctd-muted); font-size:14px; line-height:1.5; }

.ctd-cta{
  margin-top:34px;
  border-radius:var(--ctd-radius2);
  border:1px solid var(--ctd-border);
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(59,130,246,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  box-shadow: var(--ctd-shadow);
  padding:34px 20px;
}
.ctd-cta__inner{
  text-align:center;
  width:min(900px, 100%);
  margin:0 auto;
}
.ctd-cta h2{ margin:0 0 10px; font-size:42px; letter-spacing:-.02em; }
.ctd-cta p{ margin:0 0 18px; color:var(--ctd-muted); font-size:16px; }
.ctd-cta__fine{ margin-top:14px; color:rgba(226,232,240,.55); font-size:12px; }

.ctd-footer{
  margin-top:38px;
  border-top:1px solid var(--ctd-border2);
  background: linear-gradient(180deg, rgba(2,6,23,.55), rgba(2,6,23,.92));
}
.ctd-footer__inner{
  width:min(1180px, calc(100% - 48px));
  margin:0 auto;
  padding:26px 0;
  display:grid;
  grid-template-columns: 1fr 1.6fr;
  gap:18px;
}
.ctd-brand--footer{ margin-bottom:8px; }
.ctd-footer__tag{ margin:0; color:rgba(226,232,240,.65); max-width:360px; line-height:1.5; }
.ctd-footer__cols{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}
.ctd-footer__col{ display:grid; gap:10px; align-content:start; }
.ctd-footer__head{ font-weight:800; margin-bottom:4px; color:rgba(226,232,240,.92); }
.ctd-footer__col a{ color:rgba(226,232,240,.70); font-size:14px; }
.ctd-footer__col a:hover{ color:#fff; }
.ctd-footer__bottom{
  border-top:1px solid var(--ctd-border2);
  color:rgba(226,232,240,.55);
  font-size:12px;
  padding:14px 0;
  text-align:center;
}

/* Responsive */
@media (max-width: 980px){
  
  .ctd-hero__title{ font-size:46px; }
  .ctd-featureGrid{ grid-template-columns: repeat(2, 1fr); }
  .ctd-steps{ grid-template-columns: repeat(2, 1fr); }
  .ctd-pricingGrid{ grid-template-columns: 1fr; }
  .ctd-footer__inner{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  .ctd-topbar__inner, .ctd-main{ width: calc(100% - 28px); }
  .ctd-nav{ display:none; }
  .ctd-hero__title{ font-size:40px; }
  .ctd-featureGrid{ grid-template-columns: 1fr; }
  .ctd-steps{ grid-template-columns: 1fr; }
}

body.ctd-body.ct-dealersPage {
  background: linear-gradient(180deg, #020617 0%, #0A0F1E 50%, #000 100%), #FFF;
  background-attachment: fixed;
}

.ct-dealersFoundingPill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
    margin: 14px auto 0;

  padding: 9px 16px;
  border-radius: 999px;

  border: 0.8px solid rgba(59, 130, 246, 0.20);
  background: rgba(59, 130, 246, 0.10);
}

.ct-dealersFoundingPill__text {
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ct-dealersFoundingPill__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.ct-dealersMostPopularPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 12px;
  border-radius: 999px;

  background: #3b82f6;
  color: #ffffff;

  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.01em;

  /* optional: super subtle lift */
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}



.ct-dealersMostPopularPill {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
}

.ct-dealersMostPopularPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 12px;
  border-radius: 999px;

  background: #3b82f6;
  color: #ffffff;

  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.01em;

  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);

  /* NEW: badge positioning */
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
}

/* Pro card primary CTA styling (Start trial) */
.ctd-priceCard--featured .ctd-btn.ctd-btn--primary.ctd-btn--full {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;

  background: #3b82f6;
  color: #fff;
  border: 0;

  font-weight: 700;
  font-size: 16px;
  line-height: 20px;

  box-shadow: 0 0 20px rgba(59, 130, 246, 0.30);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.ctd-priceCard--featured .ctd-btn.ctd-btn--primary.ctd-btn--full:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.38);
  filter: brightness(1.02);
}

.ctd-priceCard--featured .ctd-btn.ctd-btn--primary.ctd-btn--full:active {
  transform: translateY(0);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.28);
}

/* Fix: "Most popular" badge should float above the Pro card, not overlap text */
.ctd-priceCard--featured .ct-dealersMostPopularPill {
  position: absolute;
  top: -12px;
  left: 22px;
  z-index: 3;

  padding: 6px 12px;
  border-radius: 999px;

  background: #3b82f6;
  color: #fff;

  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.01em;

  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.30);
  border: 1px solid rgba(255,255,255,0.12);
}

.ctd-priceCard--featured {
  padding-top: 26px; /* gives the Pro heading a bit more breathing space */
}

/* Center the "Most popular" badge on the featured (Pro) card */
.ctd-priceCard--featured .ct-dealersMostPopularPill{
  left: 50%;
  transform: translateX(-50%);
}

.ctd-dealerPreview{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.ctd-dealerPreview__row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.16);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.65), rgba(2,6,23,0.35));
}

.ctd-dealerPreview__label{
  font-size: 12px;
  color: rgba(226,232,240,0.70);
  font-weight: 700;
  letter-spacing: .02em;
}

.ctd-dealerPreview__value{
  font-size: 13px;
  color: rgba(226,232,240,0.92);
  font-weight: 800;
  word-break: break-word;
}

.ctd-dealerPreview__stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ctd-stat{
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.14);
  background: rgba(2,6,23,0.28);
}

.ctd-stat__k{
  font-size: 12px;
  color: rgba(226,232,240,0.65);
  font-weight: 700;
}

.ctd-stat__v{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(226,232,240,0.96);
}

.ctd-dealerPreview__toast{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(59,130,246,0.22);
  background: rgba(59,130,246,0.10);
  color: rgba(226,232,240,0.92);
  font-size: 13px;
}

/* -----------------------------
   Inventory demo (borrowed from reg-marketplace hero)
   Scoped so it won't affect other pages.
----------------------------- */

.ctd-videoStub--inventory{
  height: 290px;            /* bigger to fit the table demo */
  padding: 14px;
  display:block;            /* override the flex-centering stub */
  overflow:hidden;
}

#ctdInvDemo .rm-scene--inventory{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* top row */
#ctdInvDemo .rm-invTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

#ctdInvDemo .rm-csvChip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(2,6,23,.42);
  color:rgba(226,232,240,.9);
  opacity:0;
  transform:translateY(10px);
}

#ctdInvDemo .rm-csvChip span{
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
}

#ctdInvDemo .rm-invLoaded{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.16);
  background:rgba(2,6,23,.30);
  color:rgba(226,232,240,.85);
  opacity:0;
  transform:translateY(10px);
}

#ctdInvDemo .rm-invLoaded b{
  color:#fff;
  font-weight:800;
}

/* drop zone + progress */
#ctdInvDemo .rm-dropZone{
  height:44px;
  border-radius:14px;
  border:1px dashed rgba(148,163,184,.25);
  background:rgba(2,6,23,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(226,232,240,.72);
  font-weight:700;
  font-size:13px;
  opacity:0;
  transform:translateY(10px);
}

#ctdInvDemo .rm-progress{
  height:8px;
  border-radius:999px;
  background:rgba(148,163,184,.18);
  overflow:hidden;
  opacity:0;
  transform:translateY(10px);
}

#ctdInvDemo .rm-progressFill{
  display:block;
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(59,130,246,1), rgba(59,130,246,.55));
}

/* table */
#ctdInvDemo .rm-dpTableWrap{
  flex:1;
  min-height:0; /* allow the scroll area to shrink */
  border-radius:14px;
  border:1px solid rgba(148,163,184,.14);
  background:rgba(2,6,23,.22);
  overflow:hidden;
  opacity:0;
  transform:translateY(10px);
}

#ctdInvDemo .rm-dpTable__head{
  display:grid;
  grid-template-columns: 1.35fr .85fr .75fr .75fr .6fr .6fr 1fr;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  background:rgba(2,6,23,.35);
  border-bottom:1px solid rgba(148,163,184,.12);
  color:rgba(226,232,240,.72);
  font-size:12px;
  font-weight:800;
}

#ctdInvDemo .rm-dpCell{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#ctdInvDemo .rm-dpCell--numeric{ text-align:right; }
#ctdInvDemo .rm-dpCell--actions{ text-align:right; }

#ctdInvDemo .rm-dpTable__scroll{
  height:100%;
  overflow:auto;
  scrollbar-width:none;
}
#ctdInvDemo .rm-dpTable__scroll::-webkit-scrollbar{ width:0; height:0; }

#ctdInvDemo .rm-dpTable__body{ padding:8px; }

#ctdInvDemo .rm-dpTable__row{
  display:grid;
  grid-template-columns: 1.35fr .85fr .75fr .75fr .6fr .6fr 1fr;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.10);
  background:rgba(2,6,23,.16);
  margin:0 0 8px 0;
}

#ctdInvDemo .rm-dpTable__row:last-child{ margin-bottom:0; }

/* only the first few rows animate in */
#ctdInvDemo .rm-dpTable__row:nth-child(-n+8){
  opacity:0;
  transform:translateY(8px);
}

#ctdInvDemo .rm-dpPlate{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.5px;
  color:#fff;
}
#ctdInvDemo .rm-dpPlateCode{
  font-size:13px;
  white-space:nowrap;
}

#ctdInvDemo .rm-dpPrice{
  font-weight:900;
  color:#fff;
  font-size:13px;
}

#ctdInvDemo .rm-dpModeChip,
#ctdInvDemo .rm-dpStatusChip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  border:1px solid rgba(148,163,184,.12);
  background:rgba(2,6,23,.18);
  color:rgba(226,232,240,.82);
}
#ctdInvDemo .rm-dpModeChip::before,
#ctdInvDemo .rm-dpStatusChip::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(148,163,184,.55);
}

#ctdInvDemo .rm-dpStatusChip--active::before{ background:#3b82f6; }
#ctdInvDemo .rm-dpStatusChip--pending::before{ background:#f59e0b; }
#ctdInvDemo .rm-dpStatusChip--sold::before{ background:#22c55e; }
#ctdInvDemo .rm-dpStatusChip--inactive::before{ background:rgba(148,163,184,.55); }

#ctdInvDemo .rm-dpMetric{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  color:rgba(226,232,240,.86);
  font-weight:900;
  font-size:13px;
}
#ctdInvDemo .rm-dpMetric svg{
  width:16px;
  height:16px;
  color:rgba(148,163,184,.72);
}

#ctdInvDemo .rm-dpActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

#ctdInvDemo .rm-dpActionBtn{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(148,163,184,.14);
  background:rgba(2,6,23,.22);
  display:grid;
  place-items:center;
  cursor:default; /* demo */
}
#ctdInvDemo .rm-dpActionBtn svg{
  width:16px;
  height:16px;
  color:rgba(226,232,240,.78);
}

/* run animations */
#ctdInvDemo .rm-scene--inventory.is-run .rm-csvChip{ animation: rmCsvIn .6s .05s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-invLoaded{ animation: rmInvLoadedIn .55s .10s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dropZone{ animation: rmInvFadeUp .55s .18s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-progress{ animation: rmInvFadeUp .55s .26s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-progressFill{ animation: rmFill 1.15s .32s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTableWrap{ animation: rmInvFadeUp .55s .40s ease forwards; }

#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(1){ animation: rmRowIn .45s .48s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(2){ animation: rmRowIn .45s .52s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(3){ animation: rmRowIn .45s .56s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(4){ animation: rmRowIn .45s .58s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(5){ animation: rmRowIn .45s .60s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(6){ animation: rmRowIn .45s .62s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(7){ animation: rmRowIn .45s .64s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(8){ animation: rmRowIn .45s .66s ease forwards; }

/* keyframes */
@keyframes rmCsvIn{
  0%{ opacity:0; transform:translateY(10px); }
  100%{ opacity:1; transform:translateY(0); }
}
@keyframes rmFill{
  0%{ width:0%; }
  100%{ width:100%; }
}
@keyframes rmRowIn{
  to{ opacity:1; transform:translateY(0); }
}
@keyframes rmInvFadeUp{
  to{ opacity:1; transform:translateY(0); }
}
@keyframes rmInvLoadedIn{
  to{ opacity:1; transform:translateY(0); }
}

/* -----------------------------
   Inventory demo (from reg-marketplace)
   ----------------------------- */

:root{
  --rmBorder: rgba(148,163,184,.16);
  --rmGlass: rgba(15,23,42,.35);
  --rmText: rgba(226,232,240,.92);
  --rmMuted: rgba(148,163,184,.82);
  --rmBlue: #3b82f6;
}

/* Make the inventory panel tall enough to show ~14 rows */
.ctd-panel--inventory #rmInvScroll{
  max-height: 620px; /* ~14 rows depending on row height */
}

.rm-scene--inventory{
  border: 1px solid var(--rmBorder);
  border-radius: 22px;
  background: radial-gradient(900px 380px at 40% -10%, rgba(59,130,246,.24), transparent 55%),
              linear-gradient(180deg, rgba(17,24,39,.72), rgba(17,24,39,.45));
  padding: 18px;
  overflow: hidden;
}

.rm-invTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.rm-csvChip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius:999px;
  background: rgba(2,6,23,.40);
  border: 1px solid var(--rmBorder);
  color: rgba(226,232,240,.92);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .01em;

  opacity: 0;
  transform: translateY(10px);
}

.rm-csvChip span{
  font-weight: 800;
  padding: 4px 10px;
  border-radius:999px;
  background: rgba(59,130,246,.16);
  border: 1px solid rgba(59,130,246,.25);
  color: rgba(226,232,240,.95);
}

.rm-invLoaded{
  font-size: 13px;
  color: rgba(148,163,184,.95);
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--rmBorder);
  background: rgba(2,6,23,.32);

  opacity: 0;
  transform: translateY(10px);
}

.rm-invLoaded .rm-count{
  color: rgba(226,232,240,.95);
  font-weight: 800;
}

.rm-dropZone{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 76px;
  border-radius: 16px;
  border: 1px dashed rgba(148,163,184,.26);
  background: rgba(2,6,23,.18);
  margin-bottom: 12px;

  opacity: 0;
  transform: translateY(10px);
}

.rm-dropZone__title{
  font-weight: 800;
  color: rgba(226,232,240,.70);
}

.rm-progress{
  height: 8px;
  border-radius: 999px;
  background: rgba(2,6,23,.25);
  border: 1px solid rgba(148,163,184,.16);
  overflow: hidden;

  opacity: 0;
  transform: translateY(10px);
  margin-bottom: 12px;
}

.rm-progressFill{
  display:block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,.6), rgba(59,130,246,.95));
}

.rm-dpTableWrap{
  border: 1px solid rgba(148,163,184,.14);
  border-radius: 16px;
  background: rgba(2,6,23,.16);
  overflow: hidden;

  opacity: 0;
  transform: translateY(10px);
}

.rm-dpTable__head{
  display:grid;
  grid-template-columns: 1.2fr .9fr .8fr .9fr .7fr .7fr .9fr;
  gap: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: rgba(148,163,184,.95);
  border-bottom: 1px solid rgba(148,163,184,.12);
  background: rgba(2,6,23,.22);
  font-weight: 800;
}

.rm-dpTable__scroll{
  overflow: hidden; /* keep the demo “masked” like reg-marketplace */
}

.rm-dpTable__body{
  display:flex;
  flex-direction:column;
  gap: 10px;
  padding: 12px;
}

.rm-dpTable__row{
  display:grid;
  grid-template-columns: 1.2fr .9fr .8fr .9fr .7fr .7fr .9fr;
  gap: 10px;
  align-items:center;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(15,23,42,.35);

  opacity: 0;
  transform: translateY(10px);
}

.rm-dpPlate{
  font-weight: 900;
  letter-spacing: .05em;
  color: rgba(226,232,240,.95);
}

.rm-dpPrice{
  font-weight: 900;
  color: rgba(226,232,240,.95);
}

.rm-dpModeChip,
.rm-dpStatusChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.22);
  color: rgba(226,232,240,.88);
}

.rm-dpModeChip--offers{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.12);
}

.rm-dpModeChip--fixed{
  border-color: rgba(59,130,246,.25);
  background: rgba(59,130,246,.12);
}

.rm-dpStatusChip--active{
  border-color: rgba(34,197,94,.22);
  background: rgba(34,197,94,.10);
}

.rm-dpStatusChip--pending{
  border-color: rgba(245,158,11,.22);
  background: rgba(245,158,11,.10);
}

.rm-dpStatusChip--inactive{
  border-color: rgba(148,163,184,.20);
  background: rgba(148,163,184,.08);
}

.rm-dpStatusChip--sold{
  border-color: rgba(244,63,94,.22);
  background: rgba(244,63,94,.10);
}

.rm-dpMetricWrap{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: rgba(226,232,240,.92);
  font-weight: 900;
}

.rm-dpMetricIcon{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(148,163,184,.9);
}

.rm-dpMetric--muted{
  color: rgba(148,163,184,.75);
  font-weight: 900;
}

.rm-dpActions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 8px;
}

.rm-dpActionBtn{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(2,6,23,.20);
  color: rgba(226,232,240,.85);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* run animations (same idea as reg-marketplace) */
.rm-scene--inventory.is-run .rm-csvChip{
  animation: rmCsvIn 520ms ease forwards;
  animation-delay: 160ms;
}
.rm-scene--inventory.is-run .rm-dropZone{
  animation: rmInvFadeUp 520ms ease forwards;
  animation-delay: 360ms;
}
.rm-scene--inventory.is-run .rm-progress{
  animation: rmInvFadeUp 520ms ease forwards;
  animation-delay: 520ms;
}
.rm-scene--inventory.is-run .rm-progressFill{
  animation: rmFill 1800ms ease forwards;
  animation-delay: 650ms;
}
.rm-scene--inventory.is-run .rm-dpTableWrap{
  animation: rmInvFadeUp 520ms ease forwards;
  animation-delay: 780ms;
}
.rm-scene--inventory.is-run .rm-dpTable__row{
  animation: rmRowIn 520ms ease forwards;
  animation-delay: 980ms;
}
.rm-scene--inventory.is-run .rm-dpTable__row:nth-child(2){ animation-delay: 1.06s; }
.rm-scene--inventory.is-run .rm-dpTable__row:nth-child(3){ animation-delay: 1.14s; }
.rm-scene--inventory.is-run .rm-dpTable__row:nth-child(4){ animation-delay: 1.22s; }
.rm-scene--inventory.is-run .rm-invLoaded{
  animation: rmInvLoadedIn 520ms ease forwards;
  animation-delay: 2.55s;
}

@keyframes rmCsvIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes rmFill{
  from{ width: 0%; }
  to{ width: 100%; }
}
@keyframes rmRowIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes rmInvFadeUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes rmInvLoadedIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

/* /dealers only — make the inventory window taller */
.ctd-videoStub--inventory {
  min-height: 440px;
}

.ctd-videoStub--inventory .rm-scene--inventory {
  min-height: 440px
}

/* was: width:min(1180px, calc(100% - 48px)); */
.ctd-main{ width:min(1280px, calc(100% - 48px)); margin:0 auto; padding:38px 0 56px; }

/* was: width:min(1180px, calc(100% - 48px)); */
.ctd-topbar__inner{
  width:min(1280px, calc(100% - 48px));
  margin:0 auto;
  display:flex; align-items:center; justify-content:space-between;
  height:64px;
}

/* was: grid-template-columns: 1.1fr .9fr; */
.ctd-hero__grid{
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap:28px;
  align-items:start;
}

/* =========================================================
   /dealers — Inventory demo EXACT styling from reg-marketplace
   Scoped to #ctdInvDemo so nothing leaks.
   ========================================================= */

#ctdInvDemo .rm-scene--inventory{
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}

/* Top row */
#ctdInvDemo .rm-invTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Chip (in-flow) */
#ctdInvDemo .rm-csvChip{
  position:relative;
  top:auto; left:auto; right:auto; bottom:auto;

  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.16);
  background:rgba(2,6,23,0.30);
  color:rgba(234,240,255,0.90);
  font-size:12px;
  transform:translateY(-10px);
  opacity:0;
}

#ctdInvDemo .rm-csvChip span{
  color:rgba(59,130,246,0.95);
  font-weight:700;
}

/* Plates loaded counter (top-right) */
#ctdInvDemo .rm-invLoaded{
  color:rgba(154,167,199,0.95);
  font-size:12px;
  opacity:0;
  transform:translateY(-6px);
  white-space:nowrap;
}

#ctdInvDemo .rm-invLoaded b{
  color:rgba(234,240,255,0.92);
  font-weight:800;
  font-variant-numeric:tabular-nums;
}

/* Drop zone */
#ctdInvDemo .rm-dropZone{
  position:relative;
  top:auto; left:auto; right:auto; bottom:auto;

  height:54px;
  border-radius:16px;
  border:1px dashed rgba(148,163,184,0.20);
  background:rgba(2,6,23,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(154,167,199,0.95);
  font-size:12px;

  opacity:0;
  transform:translateY(6px);
  padding-top:7px;
  padding-bottom:7px;
}

/* Progress */
#ctdInvDemo .rm-progress{
  position:relative;
  top:auto; left:auto; right:auto; bottom:auto;

  height:10px;
  border-radius:999px;
  background:rgba(148,163,184,0.10);
  overflow:hidden;

  opacity:0;
  transform:translateY(6px);
}

#ctdInvDemo .rm-progressFill{
  display:block;
  height:100%;
  width:0%;
  background:rgba(59,130,246,0.85);
  border-radius:999px;
}

/* Dealer-portal style “table” */
#ctdInvDemo .rm-dpTableWrap{
  flex:1;
  min-height:180px;
  border-radius:20px;
  border:1px solid rgba(30, 64, 175, 0.55);
  background:radial-gradient(circle at top left, rgba(2,6,23,0.92), rgba(2,6,23,0.72));
  box-shadow:0 18px 40px rgba(15, 23, 42, 0.65);
  overflow:hidden;

  opacity:0;
  transform:translateY(8px);
}

#ctdInvDemo .rm-dpTable__head{
  display:grid;
  grid-template-columns:minmax(0, 2.0fr) 1.0fr 0.9fr 0.9fr 0.8fr 0.8fr 1.0fr;
  align-items:center;
  padding:12px 14px;
  border-bottom:1px solid rgba(31, 41, 55, 0.9);
  background:radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 1)
  );
  font-size:12px;
  line-height:18px;
  font-weight:500;
  color:#99a1af;
}

#ctdInvDemo .rm-dpCell{ padding-right:10px; }
#ctdInvDemo .rm-dpCell--plate{ padding-right:18px; }
#ctdInvDemo .rm-dpCell--numeric{ text-align:right; }
#ctdInvDemo .rm-dpCell--actions{ text-align:right; }

#ctdInvDemo .rm-dpTable__scroll{
  height:calc(100% - 44px);
  overflow:auto;
  scrollbar-width:none;
}
#ctdInvDemo .rm-dpTable__scroll::-webkit-scrollbar{ display:none; }

#ctdInvDemo .rm-dpTable__body{
  display:flex;
  flex-direction:column;
}

#ctdInvDemo .rm-dpTable__row{
  display:grid;
  grid-template-columns:minmax(0, 2.0fr) 1.0fr 0.9fr 0.9fr 0.8fr 0.8fr 1.0fr;
  align-items:center;
  padding:9px 14px;
  border-top:1px solid rgba(15, 23, 42, 0.85);
  color:rgba(234,240,255,0.88);
  font-size:12.5px;
}

#ctdInvDemo .rm-dpTable__row:nth-child(2n){
  background:rgba(2,6,23,0.18);
}
#ctdInvDemo .rm-dpTable__row:hover{
  background:rgba(2,6,23,0.26);
}

/* Plate pill */
#ctdInvDemo .rm-dpPlate{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:122px;
  padding:6px 14px;
  border-radius:6px;
  background:#dede17;
  border:2px solid #d1c044;
  box-shadow:0 14px 32px rgba(15, 23, 42, 0.50);
}

#ctdInvDemo .rm-dpPlate__text{
  font-family:"UKNumberPlate", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size:19px;
  color:#111827;
}

/* Mode + status chips */
#ctdInvDemo .rm-dpModeChip,
#ctdInvDemo .rm-dpStatusChip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  text-transform:capitalize;
}

#ctdInvDemo .rm-dpModeChip--offers{ background:rgba(22, 163, 74, 0.15); color:#4ade80; }
#ctdInvDemo .rm-dpModeChip--fixed{  background:rgba(59,130,246,0.18); color:#93c5fd; }

#ctdInvDemo .rm-dpStatusChip--active{   background:rgba(34,197,94,0.15); color:#4ade80; }
#ctdInvDemo .rm-dpStatusChip--pending{  background:rgba(234,179,8,0.18);  color:#facc15; }
#ctdInvDemo .rm-dpStatusChip--inactive{ background:rgba(75,85,99,0.35);   color:#e5e7eb; }
#ctdInvDemo .rm-dpStatusChip--sold{     background:rgba(148,163,184,0.30); color:#e5e7eb; }

/* Metrics */
#ctdInvDemo .rm-dpMetric{ font-variant-numeric:tabular-nums; }
#ctdInvDemo .rm-dpMetric--muted{ color:#6b7280; }

#ctdInvDemo .rm-dpMetricWrap{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  color:rgba(153,161,175,1);
}

#ctdInvDemo .rm-dpMetricIcon{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:0.9;
}

/* Actions */
#ctdInvDemo .rm-dpActions{
  display:inline-flex;
  justify-content:flex-end;
  gap:8px;
}

#ctdInvDemo .rm-dpActionBtn{
  border:none;
  background:transparent;
  color:rgba(156,163,175,1);
  cursor:default; /* demo only */
  padding:4px;
  border-radius:999px;
}
#ctdInvDemo .rm-dpActionBtn svg{ display:block; }

/* Run animations */
#ctdInvDemo .rm-scene--inventory.is-run .rm-csvChip{
  animation:rmCsvIn .7s cubic-bezier(.2,.8,.2,1) forwards;
}
#ctdInvDemo .rm-scene--inventory.is-run .rm-invLoaded{
  animation:rmInvLoadedIn .45s .10s cubic-bezier(.2,.8,.2,1) forwards;
}
#ctdInvDemo .rm-scene--inventory.is-run .rm-dropZone{
  animation:rmInvFadeUp .45s .14s cubic-bezier(.2,.8,.2,1) forwards;
}
#ctdInvDemo .rm-scene--inventory.is-run .rm-progress{
  animation:rmInvFadeUp .45s .18s cubic-bezier(.2,.8,.2,1) forwards;
}
#ctdInvDemo .rm-scene--inventory.is-run .rm-progressFill{
  animation:rmFill 1.1s .22s cubic-bezier(.2,.8,.2,1) forwards;
}
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTableWrap{
  animation:rmInvFadeUp .45s .28s cubic-bezier(.2,.8,.2,1) forwards;
}

/* Stagger (first rows) */
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(1){ animation:rmRowIn .45s .34s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(2){ animation:rmRowIn .45s .38s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(3){ animation:rmRowIn .45s .42s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(4){ animation:rmRowIn .45s .46s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(5){ animation:rmRowIn .45s .50s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(6){ animation:rmRowIn .45s .54s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(7){ animation:rmRowIn .45s .58s ease forwards; }
#ctdInvDemo .rm-scene--inventory.is-run .rm-dpTable__row:nth-child(8){ animation:rmRowIn .45s .62s ease forwards; }

@keyframes rmInvFadeUp{ to{ opacity:1; transform:translateY(0); } }
@keyframes rmInvLoadedIn{ to{ opacity:1; transform:translateY(0); } }
@keyframes rmCsvIn{ to{ opacity:1; transform:translateY(0); } }
@keyframes rmFill{ to{ width:100%; } }
@keyframes rmRowIn{ to{ opacity:1; transform:translateY(0); } }

/* Tighten columns a touch on small widths */
@media (max-width: 520px){
  #ctdInvDemo .rm-dpTable__head,
  #ctdInvDemo .rm-dpTable__row{
    grid-template-columns:minmax(0, 2.0fr) 1.0fr 0.9fr 0fr 0.8fr 0.8fr 1.0fr;
  }
  #ctdInvDemo .rm-dpTable__head > :nth-child(4),
  #ctdInvDemo .rm-dpTable__row  > :nth-child(4){
    display:none; /* hide Status column */
  }
}

/* /dealers inventory demo tweaks (scoped) */
#ctdInvDemo .rm-dpPlate{
  padding: 7px 16px;          /* slightly taller */
  min-width: 132px;           /* a touch wider so UKNumberPlate glyphs don’t kiss edges */
}

#ctdInvDemo .rm-dpPlate__text{
  line-height: 1;             /* prevents glyph top/bottom clipping */
  display: block;
}

/* remove the dot/connector inside the chips */
#ctdInvDemo .rm-dpModeChip::before,
#ctdInvDemo .rm-dpModeChip::after,
#ctdInvDemo .rm-dpStatusChip::before,
#ctdInvDemo .rm-dpStatusChip::after{
  content: none !important;
  display: none !important;
}

/* tighten padding now the dot is gone */
#ctdInvDemo .rm-dpModeChip,
#ctdInvDemo .rm-dpStatusChip{
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* /dealers inventory: remove ellipsis + stop clipping (scoped) */
#ctdInvDemo .rm-dpCell{
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap; /* keep single line like reg-marketplace */
}

/* allow the yellow plate + shadow to breathe */
#ctdInvDemo .rm-dpTable__row{
  overflow: visible !important;
}

/* plate glyph clipping (top/bottom) */
#ctdInvDemo .rm-dpPlate__text{
  line-height: 1 !important;
  display: block;
}

/* /dealers: widen layout + give preview panel more room (scoped by breakpoint) */
@media (min-width: 1100px){
  .ctd-main,
  .ctd-topbar__inner{
    width: min(1360px, calc(100% - 48px)) !important;
  }

  /* give the right column more width */
  .ctd-hero__grid{
    grid-template-columns: 0.95fr 1.15fr !important;
  }
}

/* /dealers inventory: widen the Price column so £12,995 always fits */
#ctdInvDemo .rm-dpTable__head,
#ctdInvDemo .rm-dpTable__row{
  grid-template-columns:
    minmax(0, 2.15fr)  /* Plate */
    1.25fr             /* Price (wider) */
    1.0fr              /* Mode */
    1.0fr              /* Status */
    0.85fr             /* Views */
    0.85fr             /* Offers */
    0.55fr;            /* Actions (single icon) */
}

/* /dealers inventory: center Mode + Status columns (scoped) */
#ctdInvDemo .rm-dpTable__head .rm-dpCell:nth-child(3),
#ctdInvDemo .rm-dpTable__head .rm-dpCell:nth-child(4),
#ctdInvDemo .rm-dpTable__row  .rm-dpCell:nth-child(3),
#ctdInvDemo .rm-dpTable__row  .rm-dpCell:nth-child(4){
  text-align: center;
}

/* ensure the chip itself is visually centered */
#ctdInvDemo .rm-dpModeChip,
#ctdInvDemo .rm-dpStatusChip{
  margin: 0 auto;
}

/* =========================================================
   /dealers — Inventory tab: ONLY show scrolling table window
   (hide csv chips, loaded counter, drop zone, progress bar)
   and make table fill the tab perfectly.
   ========================================================= */

#ctdInvDemo .rm-invTop,
#ctdInvDemo .rm-dropZone,
#ctdInvDemo .rm-progress{
  display:none !important;
}

/* remove padding + stop "centered preview" behaviour */
#ctdInvDemo.ctd-videoStub--inventory{
  padding:0 !important;
  display:flex !important;
  align-items:stretch !important;
  justify-content:stretch !important;
}

/* make the scene + table fill all available height */
#ctdInvDemo .rm-scene--inventory{
  width:100% !important;
  height:100% !important;
  gap:0 !important;
}

/* table wrapper becomes the whole window */
#ctdInvDemo .rm-dpTableWrap{
  flex:1 !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
}

/* scroll area should fill remaining space under the header row */
#ctdInvDemo .rm-dpTable__scroll{
  height:calc(100% - 44px) !important; /* 44px = header height */
}

/* /dealers inventory: reduce vertical gaps between rows */
#ctdInvDemo .rm-dpTable__row{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* optional: make the yellow plate pill slightly shorter too */
#ctdInvDemo .rm-dpPlate{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* /dealers inventory: tighten spacing BETWEEN row cards */
#ctdInvDemo .rm-dpTable__body{
  gap: 4px !important;          /* was larger */
  padding: 8px 10px !important; /* reduce “breathing room” around rows */
}

/* in case spacing is coming from margins instead of gap */
#ctdInvDemo .rm-dpTable__row{
  margin: 0 !important;
}

/* ==============================
   Pricing lists: ✅ included / ❌ not included
   Scoped to pricing cards only
   ============================== */

.ctd-priceCard .ctd-list{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ctd-priceCard .ctd-list li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.25;
}

.ctd-priceCard .ctd-list li::before{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

/* Tick icon */
.ctd-priceCard .ctd-list--on li::before{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M20%206L9%2017l-5-5%27%20stroke%3D%27%233B82F6%27%20stroke-width%3D%272.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
}

/* “Not included” label */
.ctd-priceCard .ctd-listNotTitle{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cross list */
.ctd-priceCard .ctd-list--off li{
  color: rgba(148, 163, 184, 0.82);
}

.ctd-priceCard .ctd-list--off li::before{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%3E%3Cpath%20d%3D%27M18%206L6%2018M6%206l12%2012%27%20stroke%3D%27%2394A3B8%27%20stroke-width%3D%272.6%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27/%3E%3C/svg%3E");
  opacity: 0.95;
}

/* PRICING: add breathing room above the Start trial button */
.ctd-priceCard .ctd-btn{
  margin-top: 18px;
}

.ctd-priceCard.ctd-priceCard--featured .ctd-btn{
  margin-top: 22px; /* featured card has longer list */
}

/* Pricing plan sub-tagline */
.ctd-priceCard__tag{
  margin-top: 6px;
  margin-bottom: 10px;
  color: rgba(148,163,184,0.9);
  font-size: 13px;
  line-height: 1.2;
}

/* Pricing ROI callout under plan cards */
.ctd-pricingRoi{
  margin: 22px auto 0;
  max-width: 980px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.28);
  background: rgba(2,6,23,0.35);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ctd-pricingRoi__icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.14);
  border: 1px solid rgba(59,130,246,0.22);
  flex: 0 0 28px;
}

.ctd-pricingRoi__text{
  color: rgba(226,232,240,0.9);
  font-size: 14px;
  line-height: 1.2;
}

@media (max-width: 720px){
  .ctd-pricingRoi{
    border-radius: 18px;
    padding: 14px;
  }
}

@media (max-width: 980px){
  /* Ensure copy sits ABOVE the animation panel on mobile */
  .ctd-hero__grid{
    grid-template-columns: 1fr !important;
  }

  .ctd-hero__left{
    grid-row: 1;
  }

  .ctd-hero__right{
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    margin-top: 18px; /* space between copy and animation */
  }

  .ctd-hero__title{ font-size:46px; }
  .ctd-featureGrid{ grid-template-columns: repeat(2, 1fr); }
  .ctd-steps{ grid-template-columns: repeat(2, 1fr); }
  .ctd-pricingGrid{ grid-template-columns: 1fr; }
  .ctd-footer__inner{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------------
   DEALERS (mobile): make Inventory demo fill the panel nicely
   --------------------------------------------------------- */
@media (max-width: 720px) {
  /* Slightly more usable width inside the enclosing panel */
  .ctd-hero__right .ctd-panel {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Inventory stub wrapper: remove the extra "video stub" chrome on mobile */
  #ctdInvDemo.ctd-videoStub--inventory {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 10px;
    overflow: visible;

    /* make the demo taller while KEEPING internal scroll */
    height: min(68vh, 620px);
  }

  /* Let the actual inventory window be the only bubble */
  #ctdInvDemo .rm-scene--inventory {
    width: 100%;
    max-width: none;
    padding: 10px; /* slightly tighter than desktop */
  }

  /* Tighten internal horizontal spacing so columns breathe */
  #ctdInvDemo .rm-dpTableWrap { padding: 8px; }
  #ctdInvDemo .rm-dpTable__head { padding: 0 8px 8px; gap: 6px; }
  #ctdInvDemo .rm-dpTable__row { padding: 8px; gap: 6px; }

  /* Make the VRM plate pill a bit narrower */
  #ctdInvDemo .rm-dpPlate { padding: 3px 8px 4px; }
  #ctdInvDemo .rm-dpPlate__text { letter-spacing: 0.08em; }
}



/* =========================================================
   /dealers — FINAL mobile fix: full-width preview + no table overflow
   Paste at VERY END of dealers.css
   ========================================================= */

/* 1) Make the right preview panel go edge-to-edge on mobile */
@media (max-width: 720px){
  body.ctd-body.ct-dealersPage{
    overflow-x: hidden; /* kill sideways scroll “zoomed” feel */
  }

  .ctd-hero__right{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /* remove the “gutter squeeze” so the demo can use the full width */
  .ctd-hero__right .ctd-panel{
    border-radius: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 2) Inventory table MUST be 7 columns (your markup has 7 cells per row) */
@media (max-width: 520px){
  #ctdInvDemo .rm-dpTable__head,
  #ctdInvDemo .rm-dpTable__row{
    grid-template-columns:
      minmax(0, 1.95fr)  /* Plate */
      1.10fr             /* Price */
      0.92fr             /* Mode */
      0.98fr             /* Status */
      0.62fr             /* Views */
      0.62fr             /* Offers */
      34px               /* Actions (fixed + tight) */
    !important;
  }

  /* ensure items can shrink (prevents page-wide horizontal overflow) */
  #ctdInvDemo .rm-dpCell{ min-width: 0 !important; }
  #ctdInvDemo .rm-dpPlate{ min-width: 0 !important; width: 100% !important; }

  /* in case any earlier rule hid Status, force it back */
  #ctdInvDemo .rm-dpTable__head > :nth-child(4),
  #ctdInvDemo .rm-dpTable__row  > :nth-child(4){
    display: block !important;
  }

  /* stop text from pushing the grid wider than the viewport */
  #ctdInvDemo .rm-dpCell:not(.rm-dpCell--plate){
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* keep actions snug */
  #ctdInvDemo .rm-dpCell--actions,
  #ctdInvDemo .rm-dpActions{
    justify-content: flex-end !important;
  }
}

/* =========================================================
   /dealers — FINAL mobile: edge-to-edge + guaranteed no overflow
   Replace your CURRENT last @media (max-width: 520px){...} with this
   ========================================================= */
@media (max-width: 520px){

  /* Safer edge-to-edge breakout (avoids calc() rounding overflow) */
  .ctd-hero__right{
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  .ctd-hero__right .ctd-panel{
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 12px 8px !important;
  }

  #ctdInvDemo.ctd-videoStub--inventory{
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #ctdInvDemo .rm-scene--inventory{
    padding: 0 !important;
    width: 100% !important;
  }

  /* Slightly tighter inner padding */
  #ctdInvDemo .rm-dpTableWrap{ padding: 6px !important; }
  #ctdInvDemo .rm-dpTable__body{ padding: 6px !important; }

  /* 7-column grid that fits inside iPhone widths */
  #ctdInvDemo .rm-dpTable__head,
  #ctdInvDemo .rm-dpTable__row{
    grid-template-columns:
      minmax(0, 2.35fr)   /* Plate */
      minmax(0, 1.10fr)   /* Price */
      minmax(0, 0.92fr)   /* Mode */
      minmax(0, 0.92fr)   /* Status */
      36px                /* Views */
      36px                /* Offers */
      26px                /* Actions */
    !important;

    gap: 4px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Allow shrinking + stop “spill” from causing off-screen feel */
  #ctdInvDemo .rm-dpCell{ min-width: 0 !important; }
  #ctdInvDemo .rm-dpCell:not(.rm-dpCell--plate){
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Plate pill: smaller so it never forces width */
  #ctdInvDemo .rm-dpPlate{
    min-width: 0 !important;
    width: 100% !important;
    padding: 5px 9px !important;
  }
  #ctdInvDemo .rm-dpPlate__text{
    font-size: 14px !important;
    letter-spacing: 1.0px !important;
  }

  /* Chips a touch smaller */
  #ctdInvDemo .rm-dpModeChip,
  #ctdInvDemo .rm-dpStatusChip{
    padding: 3px 6px !important;
    font-size: 10px !important;
  }

  /* Save width on metrics */
  #ctdInvDemo .rm-dpMetricIcon{ display:none !important; }
  #ctdInvDemo .rm-dpMetric{ font-size: 11px !important; }

  /* Actions: tight */
  #ctdInvDemo .rm-dpActions{ gap: 0 !important; }
  #ctdInvDemo .rm-dpActionBtn{ padding: 2px !important; }
}

/* =========================================================
   /dealers — Mobile: make preview go edge-to-edge + fit 7-col inventory
   (Paste at VERY END of dealers.css)
   ========================================================= */

/* Edge-to-edge preview panel on mobile so the demo can use full width */
@media (max-width: 720px){
  body.ctd-body.ct-dealersPage{
    overflow-x: hidden; /* prevents any “sideways zoom” feeling */
  }

  .ctd-hero__right{
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .ctd-hero__right .ctd-panel{
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* remove stub squeeze so the inventory window can breathe */
  #ctdInvDemo.ctd-videoStub--inventory{
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
}

/* Phone-tight table: ALWAYS 7 columns (matches your markup) */
@media (max-width: 520px){

  /* keep the “window” tall enough to show the table without feeling cramped */
  #ctdInvDemo.ctd-videoStub--inventory{
    height: min(76vh, 700px) !important;
  }

  /* tighten inner gutters */
  #ctdInvDemo .rm-scene--inventory{ padding: 10px !important; }
  #ctdInvDemo .rm-dpTableWrap{ padding: 8px !important; }

  /* FORCE a fitting 7-column grid:
     Plate, Price, Mode, Status, Views, Offers, Actions */
  #ctdInvDemo .rm-dpTable__head,
  #ctdInvDemo .rm-dpTable__row{
    grid-template-columns:
      minmax(0, 2.05fr)  /* Plate */
      minmax(0, 1.05fr)  /* Price */
      minmax(0, 0.90fr)  /* Mode */
      minmax(0, 0.92fr)  /* Status */
      34px               /* Views */
      34px               /* Offers */
      28px               /* Actions */
    !important;

    gap: 6px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* IMPORTANT: override any earlier “hide Status” rules */
  #ctdInvDemo .rm-dpTable__head > :nth-child(4),
  #ctdInvDemo .rm-dpTable__row  > :nth-child(4){
    display: block !important;
  }

  /* allow shrink instead of pushing/cropping */
  #ctdInvDemo .rm-dpCell{ min-width: 0 !important; }

  /* make the yellow plate pill shrink properly on phones */
  #ctdInvDemo .rm-dpPlate{
    min-width: 0 !important;
    width: 100% !important;
    padding: 5px 10px !important;
  }
  #ctdInvDemo .rm-dpPlate__text{
    font-size: 14px !important;
    letter-spacing: 1.2px !important;
  }

  /* stop non-plate cells from “bleeding” wider than their column */
  #ctdInvDemo .rm-dpCell:not(.rm-dpCell--plate){
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* keep numeric + actions columns aligned nicely */
  #ctdInvDemo .rm-dpCell--numeric{
    justify-content: center !important;
    text-align: center !important;
  }
  #ctdInvDemo .rm-dpCell--actions,
  #ctdInvDemo .rm-dpActions{
    justify-content: flex-end !important;
  }

  /* chips slightly smaller so Mode/Status fit comfortably */
  #ctdInvDemo .rm-dpModeChip,
  #ctdInvDemo .rm-dpStatusChip{
    padding: 3px 7px !important;
    font-size: 10px !important;
  }
}

/* =========================================================
   /dealers — Mobile inventory: stop “clipped right edge”
   Paste at VERY END of dealers.css (last rules win)
   ========================================================= */
@media (max-width: 720px){
  /* ensure the preview column can truly bleed edge-to-edge */
  .ctd-hero__right{
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}

@media (max-width: 520px){
  /* IMPORTANT: undo the accidental padding that shrinks the table window */
  #ctdInvDemo .rm-dpTableWrap{
    padding: 0 !important;
  }

  /* tighter inner gutters so the last column doesn't get visually clipped */
  #ctdInvDemo .rm-dpTable__body{
    padding: 6px !important;
  }

  #ctdInvDemo .rm-dpTable__head,
  #ctdInvDemo .rm-dpTable__row{
    gap: 5px !important;
    padding: 9px 7px !important;

    grid-template-columns:
      minmax(0, 2.15fr)  /* Plate */
      minmax(0, 1.00fr)  /* Price */
      minmax(0, 0.86fr)  /* Mode */
      minmax(0, 0.88fr)  /* Status */
      30px               /* Views */
      30px               /* Offers */
      26px               /* Actions */
    !important;
  }

  /* Views/Offers: on phones, hide the icon so numbers fit */
  #ctdInvDemo .rm-dpMetricIcon{ display:none !important; }
  #ctdInvDemo .rm-dpMetricWrap{
    gap: 0 !important;
    justify-content: center !important;
  }
  #ctdInvDemo .rm-dpMetric{ font-size: 11px !important; }

  /* keep Actions tight */
  #ctdInvDemo .rm-dpActionBtn{
    width: 26px !important;
    height: 26px !important;
    border-radius: 9px !important;
  }
  #ctdInvDemo .rm-dpActionBtn svg{
    width: 14px !important;
    height: 14px !important;
  }
}

/* ================================
   iPhone: plate text should NOT be tracked/spaced out
   (override earlier mobile rules)
   ================================ */
@media (max-width: 720px) {
  #ctdInvDemo .rm-dpPlate__text {
    letter-spacing: 0 !important;
  }
}

/* iOS Safari: prevent text autosizing */
body.ct-dealersPage {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}