/* Make the Reg Marketplace content area white */
.layout__content--reg-marketplace {
  min-height: 100vh;
  padding: 0px;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

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




/* Center content a bit and limit max width so it feels “cardy” */
.reg-header,
.reg-grid {
  max-width: 1120px;
  margin: 0 auto;
}


/* Title + subtitle */
.reg-header__title {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.reg-header__subtitle {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.5;
  color: #6b7280; /* grey-500 style */
}

/* Search bar row */
.reg-header__search-row {
  margin-bottom: 18px;
}

/* Search pill */
.reg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  height: 64px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.reg-search__icon {
  font-size: 18px;
  opacity: 0.6;
}

.reg-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: #111827;
}

.reg-search__input::placeholder {
  color: #9ca3af;
}

/* Filter chips row */
.reg-header__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

/* Generic chip */
.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.reg-chip__icon {
  font-size: 14px;
}

.reg-chip:hover {
  transform: translateY(-1px);
  background: #f3f4f6;
  border-color: #cbd5f5;
  box-shadow: 0 4px 18px rgba(148, 163, 184, 0.35);
}

/* Toggle-style chip (e.g. “Verified Only”) */
.reg-chip--toggle.reg-chip--on {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.5);
}

.reg-chip--toggle.reg-chip--on .reg-chip__icon {
  opacity: 0.95;
}

/* Meta text */
.reg-header__meta {
  margin-top: 4px;
  margin-bottom: 32px;
  font-size: 13px;
  color: #6b7280;
}

.reg-header__meta-count {
  font-weight: 600;
}

/* Placeholder grid area for future cards */
.reg-grid {
  padding-bottom: 80px;
}

/* === Marketplace cards === */

.reg-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Individual card */
.reg-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden; /* prevents the plate/shadow visually bleeding outside rounded corners */
}

/* Figma-style UK rear plate */
:root {
  /* Adjust this to taste */
  --plate-height: 64px;
}

/* Plate container */
.reg-card__plate {
  background: #DEDE17;
  border-radius: 13px;
  border: 1px solid #D1C044;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);

  height: var(--plate-height);

  /* fixed “standard” length */
  width: 260px;
  max-width: 100%;

  /* horizontal margin inside the plate */
  padding-inline: 32px;
}

/* Text */
.reg-card__plate-text {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", sans-serif;

  /* Slightly smaller than the strict DVLA ratio so it sits fully inside */
  font-size: calc(var(--plate-height) * 0.71);   /* 64 * 0.6 = 38.4px */

  line-height: 1;              /* avoid extra vertical padding from the font */
  white-space: nowrap;         /* don’t let YA66 / UTC wrap onto two lines */

  /* Tighter, but still clearly separates the groups */
   

  text-transform: uppercase;
  text-align: center;
}






/* Top meta row */
.reg-card__top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.reg-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #06b6d4;
  font-size: 11px;
  font-weight: 600;
}

.reg-card__badge-icon {
  font-size: 12px;
}

.reg-card__meta {
  font-size: 11px;
  color: #6b7280;
}

/* Price / details area */
.reg-card__body {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #4b5563;
}

.reg-card__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 2px;
}

.reg-card__price {
  font-size: 20px;
  font-weight: 700;
}

/* Buttons */
.reg-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.reg-card__btn-primary {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
  transition: transform 0.06s ease, box-shadow 0.06s ease, opacity 0.08s ease;
}

.reg-card__btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.45);
}

.reg-card__btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.3);
}

.reg-card__btn-secondary {
  border-radius: 999px;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #f9fafb;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.reg-card__btn-secondary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: inherit;      /* icon uses current text colour */
}


.reg-card__btn-secondary-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Owner's "View my listing" button – blue pill that inverts on hover */
/* Owner's "View my listing" button – solid blue, invert on hover */
.reg-card__btn-secondary--owner {
  background: #1b6fff;          /* solid blue by default */
  color: #ffffff;               /* white text + icon */
    /* explicit border so outline is blue */
  font-weight: 600;
}

/* hover: white pill, blue text/icon */
.reg-card__btn-secondary--owner:hover {
  background: #ffffff;
  color: #1b6fff;
}



/* Empty state */
.reg-grid__empty {
  grid-column: 1 / -1;
  font-size: 14px;
  color: #6b7280;
}


/* ===== Listing Details Modal ===== */

.listing-modal {
  position: fixed;
  inset: 0; /* top:0 right:0 bottom:0 left:0 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;               /* above everything else */
  font-family: inherit;
}

.listing-modal--hidden {
  display: none;
}

/* dark background behind the dialog */
.listing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* dark semi-transparent */
}

/* white dialog */
.listing-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  max-width: 960px;
  width: min(960px, 100% - 3rem);
  max-height: min(90vh, 720px);
  overflow: auto;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.35);
  padding: 28px 32px 32px;
}

/* close button (X) */
.listing-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #f4f4f5;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.listing-modal__close:hover {
  background: #e4e4e7;
}

/* header */
.listing-modal__header {
  margin-bottom: 16px;
}
.listing-modal__title {
  font-size: 20px;
  font-weight: 600;
}

/* plate */
/* plate – match card styling */
.listing-modal__plate-wrap {
  margin-top: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.listing-modal__plate {
  background: #DEDE17;
  border-radius: 13px;
  border: 1px solid #D1C044;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;

  height: var(--plate-height);

  /* keep the same general proportions as the cards */
  width: calc(var(--plate-height) * 4.1);  /* 64 * 4.1 ≈ 262px */
  max-width: 100%;
  padding-inline: 32px;
}


.listing-modal__plate-text {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", sans-serif;
  font-size: calc(var(--plate-height) * 0.7);
  line-height: 1;
  white-space: nowrap;

  /* same spacing as card plates */
  letter-spacing: 0em;
  word-spacing: 0;

  text-transform: uppercase;
  text-align: center;
}


/* two-column layout */
.listing-modal__layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .listing-modal__layout {
    flex-direction: column;
  }
}

.listing-modal__left {
  flex: 1.4;
}
.listing-modal__right {
  flex: 1;
  background: #020617;
  color: #f9fafb;
  border-radius: 20px;
  padding: 24px 20px;
}

/* Verified badge */
.listing-modal__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ecfeff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.listing-modal__badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #06b6d4;
  color: #ecfeff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.listing-modal__badge-title {
  font-weight: 600;
}
.listing-modal__badge-subtitle {
  font-size: 13px;
  color: #4b5563;
}

/* metrics chips */
.listing-modal__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.listing-modal__metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 13px;
  color: #1d4ed8;
}

/* description */
.listing-modal__section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.listing-modal__section-body {
  font-size: 14px;
  color: #4b5563;
}

/* right-hand price box */
.listing-modal__price-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}
.listing-modal__price {
  margin-top: 4px;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 700;
}

.listing-modal__offer-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #10b981, #22c55e);
  color: #ecfeff;
  margin-bottom: 18px;
}
.listing-modal__offer-btn:hover {
  filter: brightness(1.05);
}

.listing-modal__benefits {
  list-style: disc;
  padding-left: 18px;
  font-size: 13px;
  color: #e5e7eb;
}
.listing-modal__benefits li + li {
  margin-top: 4px;
}


.reg-card__btn-primary--disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: default;
  box-shadow: none;
}
.reg-card__btn-primary--disabled:hover {
  filter: none;
}

/* Owner's "View my listing" button – blue variant */
.reg-card__btn-secondary--owner {
  background: #e6f0ff;        /* soft blue background */
  color: #1b6fff;             /* blue text */
  border-color: #1b6fff;      /* blue border if you have one */
  font-weight: 600;
}

.reg-card__btn-secondary--owner:hover {
  background: #1b6fff;
  color: #ffffff;
}


/* ===== MAKE OFFER WIZARD ===== */

.offer-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.18s ease-out;
}

.offer-modal-backdrop--hidden {
  opacity: 0;
  pointer-events: none;
}

.offer-modal {
  width: min(760px, 100% - 2rem);
  max-height: 90vh;
  background: #f9fafb;
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */

.offer-modal__topbar {
  background: #111827;
  color: #f9fafb;
  padding: 20px 24px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.offer-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
}

.offer-modal__subtitle {
  margin-top: 4px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.offer-modal__subtitle span {
  font-weight: 600;
}

.offer-modal__close {
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.12s ease-out, transform 0.12s ease-out;
}

.offer-modal__close:hover {
  background: rgba(31, 41, 55, 1);
  transform: translateY(-1px);
}

/* Steps */

.offer-steps {
  background: #111827;
  padding: 0 24px 18px;
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(249, 250, 251, 0.06);
}

.offer-steps__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(249, 250, 251, 0.6);
}

.offer-steps__circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(249, 250, 251, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.offer-steps__item--active .offer-steps__circle {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #0f172a;
}

.offer-steps__item--active .offer-steps__label {
  color: #f9fafb;
}

.offer-steps__item--complete .offer-steps__circle {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
}

.offer-steps__item--complete .offer-steps__label {
  color: #bbf7d0;
}

/* Body + steps */

.offer-modal__body {
  padding: 24px;
  overflow-y: auto;
  background: #f3f4f6;
}

.offer-step {
  display: none;
}

.offer-step--active {
  display: block;
}

/* Plate card */

.offer-step__plate-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 24px 18px;
  border: 1px solid #e5e7eb;
  text-align: center;
  margin-bottom: 20px;
}

.offer-step__plate-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 10px;
}

/* Plate inside Make Offer wizard – match card plates */
.offer-step__plate {
  background: #DEDE17;
  border-radius: 13px;
  border: 1px solid #D1C044;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);

  display: flex;
  align-items: center;
  justify-content: center;

  /* key fixes */
  box-sizing: border-box;
  width: min(520px, 100%);     /* no fixed width */
  margin: 0 auto;              /* keep it centered */
  padding: 14px 18px;          /* no huge inline padding */
  min-height: var(--plate-height);
}



.offer-step__plate span {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", sans-serif;
  font-size: calc(var(--plate-height) * 0.7);
  line-height: 1;
  white-space: nowrap;

  
  word-spacing: 0;

  text-transform: uppercase;
  text-align: center;
}


.offer-step__plate-sub {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Panel blocks */

.offer-step__panel {
  background: #e0f2fe;
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid #bae6fd;
}

.offer-step__panel-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  opacity: 0.7;
  margin-bottom: 4px;
}

.offer-step__panel-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

/* Form */

.offer-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  border: 1px solid #e5e7eb;
}

.offer-form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.offer-form__amount-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1.5px solid #10b981;
  background: #f9fafb;
  padding: 10px 14px;
}

.offer-form__amount-prefix {
  font-weight: 600;
  color: #111827;
  margin-right: 6px;
}

.offer-form__amount-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1.2rem;
  background: transparent;
}

.offer-form__amount-input::placeholder {
  color: #9ca3af;
}

.offer-form__hint {
  margin-top: 6px;
  font-size: 0.8rem;
  color: #6b7280;
}

.offer-form__message {
  margin-top: 16px;
}

.offer-form__message-label-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.offer-form__label-muted {
  font-size: 0.8rem;
  color: #9ca3af;
}

.offer-form__textarea {
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;   /* ✅ key fix */
  display: block;           /* ✅ prevents inline weirdness */

  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font-size: 0.9rem;

  resize: vertical;
}


.offer-form__textarea::placeholder {
  color: #9ca3af;
}

/* Footer buttons */

.offer-step__footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.offer-step__footer--split {
  justify-content: space-between;
}

.offer-step__primary-btn,
.offer-step__secondary-btn {
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
    background 0.1s ease-out, color 0.1s ease-out;
}

.offer-step__primary-btn {
  background: #10b981;
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.offer-step__primary-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

.offer-step__secondary-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.offer-step__secondary-btn:hover {
  background: #f3f4f6;
}

/* Step 2 summary */

.offer-summary-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 18px 18px 10px;
  margin-bottom: 16px;
}

.offer-summary-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.offer-summary-card__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-top: 1px solid #f3f4f6;
}

.offer-summary-card__row:first-of-type {
  border-top: none;
}

.offer-summary-card__row--strong span:last-child {
  font-weight: 700;
  color: #059669;
}

/* “What happens next” card */

.offer-next-card {
  background: #e0f2fe;
  border-radius: 16px;
  border: 1px solid #bae6fd;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.offer-next-card--full {
  margin-top: 18px;
  text-align: left;          /* NEW: override .offer-complete center alignment */
}

.offer-next-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.offer-next-card__text {
  font-size: 0.85rem;
  color: #374151;
}

.offer-next-card__list {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #374151;
}

/* Step 3 */

.offer-complete {
  text-align: center;
}

.offer-complete__icon-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 12px;
}

.offer-complete__icon-check {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #22c55e;
  color: #ecfdf3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.6);
}

.offer-complete__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.offer-complete__lead {
  font-size: 0.9rem;
  color: #4b5563;
}

.offer-modal,
.offer-modal * {
  box-sizing: border-box;
}



@media (max-width: 768px) {
  .layout__content--reg-marketplace {
    padding: 0px;
  }

  .reg-header__title {
    font-size: 28px;
  }

  .reg-search {
    height: 54px;
    padding: 0 16px;
  }
}


@media (max-width: 768px) {
  /* 2 cards per row (instead of 3) */
  .reg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  /* Bring back meta + actions now that we have space */
  .reg-card__top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  .reg-card__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  /* Plate centering */
  .reg-card__plate {
    width: 100% !important;
  }

  .reg-card__plate-text {
    width: 100% !important;
    text-align: center !important;
  }

  /* Slightly bigger buttons so they feel tappable */
  .reg-card__btn-primary,
  .reg-card__btn-secondary {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 768px) {
  /* 2-column grid on mobile */
  .reg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 16px;
  }

  .reg-card {
    padding: 14px 12px 12px;
    border-radius: 18px;
  }

  /* Plate: fill card width, centered, no overlap */
  .reg-card__plate {
    width: 100% !important;
    height: 48px !important;
    margin: 0 0 10px !important;
    padding-inline: 10px !important;
    border-radius: 12px !important;
    box-sizing: border-box;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14); /* slightly reduced for mobile */
  }

  /* Bigger reg text on mobile without changing plate width */
.reg-card__plate-text {
  width: 100%;
  text-align: center;
  line-height: 1;
  white-space: nowrap;

  /* bigger */
  font-size: clamp(18px, 6.2vw, 28px);

  /* slightly tighter so it fits */
  
}


  /* Under plate: Verified left, Listed right (same row) */
  .reg-card__top-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px;
    margin-bottom: 10px;
  }

  .reg-card__badge-slot {
    min-height: 22px; /* keeps row stable */
    display: flex;
    align-items: center;
  }

  .reg-card__badge--hidden {
    visibility: hidden; /* takes space but doesn't show */
  }

  .reg-card__meta {
    white-space: nowrap;
    text-align: right;
    font-size: 11px;
    color: #6b7280;
  }

  /* Asking price label above price */
  .reg-card__label {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
  }

  .reg-card__price {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
  }

  /* Actions visible + tappable */
  .reg-card__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .reg-card__btn-primary,
  .reg-card__btn-secondary {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Desktop / default */
.reg-card__top-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reg-card__meta{
  white-space: nowrap;
  text-align: right;
}

.reg-card__badge-label{
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 768px) {
  /* Mobile: 2-line layout under plate */
  .reg-card__top-row{
    flex-direction: column;      /* ✅ stack */
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 8px;
  }

  /* Listed / New today centered under plate */
  .reg-card__meta{
    width: 100%;
    text-align: center;
    font-size: 11px;
  }

  /* Verified on its own line, left aligned, single-line + auto shrink */
  .reg-card__badge{
    align-self: flex-start;
    max-width: 100%;
    font-size: clamp(9px, 2.4vw, 11px);
    padding: 4px 10px;
  }

  .reg-card__badge-label{
    white-space: nowrap;        /* ✅ never wrap */
  }
}


.reg-card__meta{
  margin-left: auto;   /* forces right alignment even if badge slot is empty */
  white-space: nowrap;
  text-align: right;
}


.reg-card__badge-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}


.reg-card__badge-label{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}



@media (max-width: 768px) {
  /* 2-column grid on mobile */
  .reg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  /* Under plate: stack row -> meta centered above verified */
  .reg-card__top-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* Listed X days ago / New today: centered under plate */
  .reg-card__meta {
    order: 1;
    width: 100%;
    text-align: center !important;
    font-size: 11px;
  }

  /* Badge area stays left, on its own line */
  .reg-card__badge-slot {
    order: 2;
    display: flex;
    justify-content: flex-start;
    min-height: 22px;
  }

  /* Single-line badge, shrink if needed */
  .reg-card__badge {
    max-width: 100%;
    font-size: clamp(9px, 2.4vw, 11px);
    padding: 4px 10px;
  }

  .reg-card__badge-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== Make Offer modal: mobile fluid sizing ===== */
@media (max-width: 768px) {
  .offer-modal-backdrop{
    padding: 10px; /* keeps modal away from screen edges */
  }

  .offer-modal{
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px); /* mobile-safe viewport */
    border-radius: 20px;
  }

  .offer-modal__topbar{
    padding: 18px 16px 0;
  }

  .offer-steps{
    padding: 0 16px 14px;
  }

  .offer-modal__body{
    padding: 16px;
  }

  .offer-step__plate-card{
    padding: 16px 16px 14px;
    overflow: hidden; /* extra safety */
  }

  /* remove fixed “plate height” on mobile; let it size naturally */
  .offer-step__plate{
    min-height: 0;
    height: auto;
    width: 100%;
    padding: 12px 14px;
  }

  .offer-step__plate span{
    font-size: clamp(20px, 8vw, 32px);
    letter-spacing: 0.12em;
  }
}

/* ===== Make Offer modal: mobile fluid sizing ===== */
@media (max-width: 768px) {
  .offer-modal-backdrop{
    padding: 10px; /* keeps modal away from screen edges */
    z-index: 2000;
  }

  .offer-modal{
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px); /* mobile-safe viewport */
    border-radius: 20px;

  }

  .offer-modal__topbar{
    padding: 18px 16px 0;
  }

  .offer-steps{
    padding: 0 16px 14px;
  }

 .offer-modal__body {
  padding: 24px;
  overflow-y: auto;
  background: #f3f4f6;

  -webkit-overflow-scrolling: touch; /* ✅ iOS smooth scroll */
  overscroll-behavior: contain;      /* ✅ stops scroll leaking to page */
}


  .offer-step__plate-card{
    padding: 16px 16px 14px;
    overflow: hidden; /* extra safety */
  }

  /* remove fixed “plate height” on mobile; let it size naturally */
  .offer-step__plate{
    min-height: 0;
    height: auto;
    width: 100%;
    padding: 12px 14px;
  }

  .offer-step__plate span{
    font-size: clamp(20px, 8vw, 32px);
    letter-spacing: 0.12em;
  }
}

@media (max-width: 768px) {
  :root {
    --bottom-nav-h: 72px; /* adjust if your nav is taller */
  }

  .offer-modal-backdrop {
    align-items: flex-start;
    padding: 12px;
    padding-bottom: calc(12px + var(--bottom-nav-h) + env(safe-area-inset-bottom));
  }

  .offer-modal {
    width: 100%;
    max-height: calc(100dvh - 24px - var(--bottom-nav-h) - env(safe-area-inset-bottom));
  }

  /* ✅ lets you scroll past the footer so the button is never trapped under UI */
  .offer-modal__body {
    padding-bottom: calc(24px + var(--bottom-nav-h) + env(safe-area-inset-bottom));
  }
}
.reg-header__topline{
  position: relative;
}

/* hidden by default (desktop) */
.reg-mobile-menu-btn,
.reg-mobile-menu{
  display: none;
}

@media (max-width: 768px){
  .reg-header__topline{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .reg-mobile-menu-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    background: rgba(255,255,255,0.75);
    color: #111827;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .reg-mobile-menu{
    display: none; /* closed by default */
    position: absolute;
    top: 52px;
    right: 0;
    width: 220px;
    border-radius: 18px;
    padding: 8px;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1200;
  }

  .reg-mobile-menu.is-open{
    display: block;
  }

  .reg-mobile-menu__item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 14px;
  }

  .reg-mobile-menu__item:active{
    transform: translateY(1px);
  }

  .reg-mobile-menu__item:hover{
    background: rgba(255,255,255,0.08);
  }

  .reg-mobile-menu__icon{
    width: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
  }

  .reg-mobile-menu__item.is-active{
    background: rgba(34, 211, 238, 0.15);
  }
}

/* ---- Desktop layout: max 3 cards per row (prevents 4-wide overlap look) ---- */
@media (min-width: 1100px) {
  .reg-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Optional: nicer 2-col stage before 3-col kicks in */
@media (min-width: 820px) and (max-width: 1099px) {
  .reg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.reg-card__plate {
  box-sizing: border-box;
}


/* ===========================
   Buy page top bar (Phase 2A)
   =========================== */

/* Hide the left sidebar ONLY on marketplace page */
.layout {
  display: block; /* overrides any sidebar layout flex/grid */
}

.side-nav {
  display: none !important;
}

/* Remove any left offset that existed because of sidebar layout */
.layout__content {
  margin-left: 0 !important;
  width: 100% !important;
}

/* Optional: hide the old mobile dropdown menu trigger (since topbar replaces it) */
.reg-mobile-menu-btn,
.reg-mobile-menu {
  display: none !important;
}

/* Top bar styling */
.ct-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 18, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ct-topbar__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ct-topbar__brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.ct-topbar__brand-car {
  color: #ffffff;
}

.ct-topbar__brand-trait {
  color: #3b82f6;
}

.ct-topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ct-topbar__link {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  cursor: pointer;
}

.ct-topbar__link:hover {
  background: rgba(59,130,246,0.10);
  border-color: rgba(59,130,246,0.18);
}

.ct-topbar__link--active {
  color: #ffffff;
  background: rgba(59,130,246,0.14);
  border-color: rgba(59,130,246,0.22);
}

.ct-topbar__link--button {
  appearance: none;
  border: 1px solid transparent;
}

/* Make disabled link feel intentional */
.ct-topbar__link[disabled],
.ct-topbar__link--button[data-ct-disabled-link] {
  opacity: 0.65;
}

/* Small screens: allow nav to wrap nicely */
@media (max-width: 720px) {
  .ct-topbar__inner {
    padding: 12px 14px;
  }

  .ct-topbar__nav {
    gap: 8px;
  }

  .ct-topbar__link {
    padding: 9px 10px;
    font-size: 12px;
  }
}


/* --- Topbar mobile dropdown --- */
.ct-topbar__menuBtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
  color: rgba(226, 232, 240, 0.92);
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.ct-topbar__menuBtn:hover {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
}

.ct-topbar__menuBtn:active {
  transform: scale(0.98);
}

@media (max-width: 860px) {
  .ct-topbar__inner { position: relative; }

  .ct-topbar__menuBtn { display: inline-flex; }

  /* hide nav until menu open */
  .ct-topbar__nav { display: none; }

  .ct-topbar.ct-topbar--open .ct-topbar__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;

    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    min-width: 240px;
    padding: 12px;

    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    z-index: 2000;
  }

  /* make items feel like a menu */
  .ct-topbar.ct-topbar--open .ct-topbar__link {
    justify-content: flex-start;
    width: 100%;
  }
}


/* ------------------------------------------------------
   Landing hero + marketing sections (top of marketplace)
------------------------------------------------------- */

.reg-landing {
  margin-bottom: 40px;
}

.reg-landing__shell {
  border-radius: 32px;
  padding: 32px 28px 40px;
  background: radial-gradient(circle at top, #0b1120 0%, #020617 45%, #020617 100%);
  color: #e5e7eb;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.38);
  max-width: 1120px;
  margin: 0 auto;
}

.reg-landing__hero {
  text-align: center;
  margin-bottom: 28px;
}

.reg-landing__tag {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #9ca3af;
  margin-bottom: 14px;
}

.reg-landing__title {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.08;
  color: #f9fafb;
}

.reg-landing__title-accent {
  color: #3b82f6;
}

.reg-landing__subtitle {
  max-width: 620px;
  margin: 14px auto 22px;
  font-size: 15px;
  color: #9ca3af;
}

/* Hero search */

.reg-landing__search {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.reg-landing__search-field {
  display: flex;
  align-items: center;
  min-width: min(520px, 100%);
  max-width: 640px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.reg-landing__search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.reg-landing__search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 30px;
}

.reg-landing__search-input::placeholder {
  color: #6b7280;
}

.reg-landing__search-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.reg-landing__search-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.9);
}

/* Example pills */

.reg-landing__examples {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.reg-landing__example-pill {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.reg-landing__example-pill:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(59, 130, 246, 0.9);
  transform: translateY(-1px);
}

/* Trust strip */

/* Trust strip (simple metrics row, no bubbles) */

.reg-landing__trust {
  margin-top: 24px;
  margin-bottom: 12px;
}

.reg-landing__trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reg-landing__trust-item {
  padding: 6px 8px;
  text-align: center;
  background: transparent;      /* no bubble */
  border: none;                 /* remove border */
  box-shadow: none;
}

.reg-landing__trust-value {
  font-size: 30px;              /* slightly larger */
  font-weight: 700;
  color: #f9fafb;
}

.reg-landing__trust-label {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}


/* Generic section header */

.reg-landing__section {
  margin-top: 28px;
}

.reg-landing__section-header {
  text-align: center;
  margin-bottom: 20px;
}

.reg-landing__section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.reg-landing__section-title {
  margin: 0;
  font-size: 32px;
  color: #f9fafb;
}

/* Make the ticker sit over the blue→white transition */
.reg-landing__section {
  margin-bottom: 0;  /* no extra gap under the dark section */
}

.reg-ticker {
  position: relative;
  z-index: 2;
  margin-top: -40px;   /* pull the band up to cover the gap */
  padding-top: 20px;   /* add a bit of breathing room inside */
}


.reg-landing__section-title-accent {
  color: #3b82f6;
}

.reg-landing__section-subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #9ca3af;
}

/* Categories */

/* Categories */

.reg-landing__categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* 3 per row on desktop */
  gap: 18px;
  margin-top: 16px;
}

.reg-landing__category-card {
  text-align: left;
  border-radius: 24px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.99));
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
  min-height: 150px; /* helps them line up neatly */
}


.reg-landing__category-card--highlight {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.99));
  border-color: rgba(59, 130, 246, 0.95);
}

.reg-landing__category-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 64, 175, 0.26);
  color: #bfdbfe;
  margin-bottom: 10px;
}

.reg-landing__category-title {
  font-size: 20px;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 4px;
}

.reg-landing__category-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.reg-landing__category-meta {
  font-size: 12px;
  color: #93c5fd;
  font-weight: 500;
}

.reg-landing__category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  border-color: rgba(59, 130, 246, 0.9);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.4), rgba(15, 23, 42, 0.99));
}

/* Featured */

.reg-landing__featured-carousel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 12px;
}

/* Horizontal scroll “track” */
.reg-landing__featured-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.reg-landing__featured-grid::-webkit-scrollbar {
  display: none;
}

/* Make each card act like a slide */
.reg-landing__feature-card {
  position: relative;
  border-radius: 22px;
  padding: 18px 16px 14px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 1));
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
  min-width: 260px;
  max-width: 280px;
  scroll-snap-align: start;
}


.reg-landing__feature-card {
  position: relative;
  border-radius: 22px;
  padding: 18px 16px 14px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 1));
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.reg-landing__feature-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.reg-landing__feature-plate {
  margin-top: 18px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #d1c044;
  background: #dede17;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.55);
  padding: 10px 22px;
  font-family: "UKNumberPlate", "UKNumberPlate Regular", system-ui, sans-serif;
  font-size: 32px;
  letter-spacing: 0em;
  text-align: center;
  color: #111827;
}

.reg-landing__feature-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.reg-landing__feature-price {
  font-size: 17px;
  font-weight: 600;
  color: #f9fafb;
}

.reg-landing__feature-fee {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.reg-landing__feature-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #2563eb;
  color: #f9fafb;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.reg-landing__feature-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.85);
}

.reg-landing__link-btn {
  border: none;
  background: transparent;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
}

/* How it works */

.reg-landing__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.reg-landing__step {
  padding: 16px 14px 14px;
  border-radius: 20px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 1));
}

.reg-landing__step-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 64, 175, 0.28);
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.reg-landing__step-title {
  margin: 0 0 4px;
  font-size: 15px;
  color: #f9fafb;
}

.reg-landing__step-text {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Deals */

.reg-landing__deals-card {
  border-radius: 24px;
  padding: 26px 20px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.99), rgba(15, 23, 42, 1));
  border: 1px solid rgba(31, 41, 55, 0.95);
  text-align: center;
}

.reg-landing__deals-title {
  margin: 0 0 6px;
  font-size: 22px;
  color: #f9fafb;
}

.reg-landing__deals-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #9ca3af;
}

.reg-landing__deals-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.reg-landing__deals-input {
  min-width: min(260px, 100%);
  max-width: 340px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.92);
  padding: 10px 14px;
  color: #e5e7eb;
  font-size: 14px;
}

.reg-landing__deals-input::placeholder {
  color: #6b7280;
}

.reg-landing__deals-btn {
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.8);
}

.reg-landing__deals-fine {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Responsive tweaks */

@media (max-width: 900px) {
  .reg-landing__shell {
    padding-inline: 18px;
    border-radius: 24px;
  }

  .reg-landing__trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reg-landing__section-header--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .reg-landing__trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .reg-landing__search-field {
    min-width: 100%;
  }

  .reg-landing__title {
    font-size: 30px;
  }
}

/* ------------------------------------------------------
   Landing hero – full width strip
------------------------------------------------------- */

.reg-landing {
  /* full-width inside the page */
  background: radial-gradient(circle at top, #0b1120 0%, #020617 45%, #020617 100%);
  padding: 40px 60px 56px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.38);
}

.reg-landing__shell {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 32px 28px 40px;
  background: transparent; /* gradient comes from .reg-landing now */
  color: #e5e7eb;
}

/* Put the rest of the page content back on white, with padding */
#reg-results {
  padding: 40px 60px 0;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .reg-landing {
    padding: 28px 16px 40px;
  }

  .reg-landing__shell {
    border-radius: 24px;
    padding-inline: 18px;
  }

  #reg-results {
    padding: 32px 16px 0;
  }
}

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

@media (max-width: 640px) {
  .reg-landing__categories-grid {
    grid-template-columns: 1fr;
  }
}

.reg-landing {
  padding: 56px 60px 64px;
}

/* -----------------------------
   HOW IT WORKS
------------------------------ */

.reg-how {
  margin-top: 56px;
  margin-bottom: 40px;
}

.reg-how__inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.reg-how__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f9fafb;
  margin-bottom: 8px;
}

.reg-how__title span {
  color: #3b82f6; /* CarTrait blue */
}

.reg-how__subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: #9ca3af;
  max-width: 620px;
  margin: 0 auto;
}

/* Steps row */

.reg-how__steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}

/* Connecting line behind the circles */
.reg-how__steps::before {
  content: "";
  position: absolute;
  top: 36px; /* approx centre of circles */
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(59, 130, 246, 0.1),
    rgba(59, 130, 246, 0.5),
    rgba(59, 130, 246, 0.1)
  );
  z-index: 0;
}

.reg-how__step {
  position: relative;
}

/* Circle + number bubble */

.reg-how__circle {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  margin: 0 auto;
  border: 2px solid #3b82f6;
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.4);
  background: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 1),
    rgba(15, 23, 42, 0.65)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1; /* above the line */
}

.reg-how__circle svg {
  width: 24px;
  height: 24px;
  stroke: #93c5fd;
  fill: none;
}

/* Number badge */

.reg-how__step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.7);
}

/* Titles + body copy */

.reg-how__step-title {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.reg-how__step-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #9ca3af;
}

/* CTA button */

.reg-how__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.reg-how__cta-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(to right, #2563eb, #3b82f6);
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.reg-how__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.6);
}

.reg-how__cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.55);
}

.reg-how__cta-arrow {
  font-size: 16px;
}

/* Responsive tweaks */

@media (max-width: 1024px) {
  .reg-how__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .reg-how__steps::before {
    display: none; /* hide the line on tighter layouts */
  }
}

@media (max-width: 640px) {
  /* Steps stack vertically on mobile (already like this) */
  .reg-how__steps {
    grid-template-columns: 1fr;
  }

  .reg-how__inner {
    padding-inline: 8px;
  }

  /* Each step: icon left, title + text to the right */
  .reg-how__step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 4px;
    text-align: left;
    align-items: flex-start;
  }

  /* Circle sits on the left, spanning title + text rows */
  .reg-how__circle {
    margin: 0;                 /* override desktop margin: 0 auto */
    grid-column: 1;
    grid-row: 1 / span 2;      /* covers both title + text rows */
  }

  /* Title on the right, first row */
  .reg-how__step-title {
    grid-column: 2;
    grid-row: 1;
    margin-top: 4px;
    margin-bottom: 2px;
    font-size: 15px;
  }

  /* Description directly under the title, still on the right */
  .reg-how__step-text {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    font-size: 13px;
    line-height: 1.5;
  }
}


.reg-card__btn-buy{
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 10px 24px rgba(59,130,246,0.25);
}

.reg-card__btn-buy:hover{
  filter: brightness(1.05);
}

.reg-card__btn-buy--disabled{
  background: rgba(148,163,184,0.35);
  color: rgba(255,255,255,0.7);
  cursor: not-allowed;
  box-shadow: none;
}


.reg-card__btn-secondary { text-decoration: none; }


/* Big CarTrait wordmark in hero (matching lookup page) */
.reg-landing__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reg-landing__brand-car {
  font-size: 20px;
  font-weight: 600;
  color: #0f172a; /* dark navy matching white hero background */
}



/* On smaller screens, just keep it the same size */


/* Big CarTrait wordmark row above hero */
.reg-landing__brandRow {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

/* Big wordmark itself (matches lookup page vibe) */
.reg-landing__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reg-landing__brand-car {
  color: #ffffff; /* your accent blue */ 
  font-size: 48px;
  letter-spacing: 1.4px
       
}

.reg-landing__brand-trait {
  color: #3b82f6; /* your accent blue */
  font-size: 48px;
  font-weight: 600;
  letter-spacing: 1.4px
}

.reg-chip-menuWrapper {
  position: relative;
  display: inline-block;
}

.reg-chipMenu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  min-width: 160px;
  padding: 8px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
  z-index: 20;
  display: none;
}

.reg-chipMenu--open {
  display: block;
}

.reg-chipMenu__option {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 12px;
  color: #111827;
}

.reg-chipMenu__option + .reg-chipMenu__option {
  margin-top: 4px;
}

.reg-chipMenu__option:hover {
  background: #f3f4f6;
}

/* Highlight active sort on the chip */
.reg-chip--active {
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

@media (max-width: 640px) {
  /* Wider category cards on mobile: 2 per row, more width used */
  .reg-landing__categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .reg-landing__category-card {
    padding: 14px 12px;
    min-height: auto;
    border-radius: 22px;
  }

  .reg-landing__category-icon svg {
    width: 22px;
    height: 22px;
  }

  .reg-landing__category-title {
    font-size: 14px;
    line-height: 1.25;
    margin-top: 6px;
  }

  /* Keep them compact vertically by hiding the long subtitle */
  .reg-landing__category-subtitle {
    display: none;
  }

  .reg-landing__category-meta {
    margin-top: 4px;
    font-size: 11px;
  }
}


@media (max-width: 640px) {
  /* Hero search stays full width */
  .reg-landing__search-field {
    min-width: 100%;
  }

  .reg-landing__title {
    font-size: 30px;
  }

  /* Stats row: keep all 4 items on one line on mobile */
  .reg-landing__trust-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .reg-landing__trust-value {
    font-size: 18px;   /* smaller so they fit */
    font-weight: 700;
  }

  .reg-landing__trust-label {
    font-size: 10px;
    margin-top: 1px;
  }
}

@media (max-width: 640px) {
  /* Hero search stays full width */
  .reg-landing__search-field {
    min-width: 100%;
  }

  .reg-landing__title {
    font-size: 30px;
  }

  /* Stats row: all 4 items on one line, stretched to full viewport width */
  .reg-landing__trust-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;

    /* break out of the inner shell so it uses full screen width */
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .reg-landing__trust-item {
    align-items: center;
  }

  .reg-landing__trust-value {
    font-size: 18px;
    font-weight: 700;
  }

  .reg-landing__trust-label {
    font-size: 11px;
    margin-top: 2px;
  }
}

/* Mobile: hero stats row should use full width and not feel cramped */
@media (max-width: 480px) {
  /* Slightly reduce side padding on the hero on very small screens */
  .reg-landing {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Stats row: full-width 4-column grid */
  .reg-landing__trust-row {
    margin-top: 24px;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 4px;
    justify-content: stretch;
  }

  .reg-landing__trust-item {
    width: auto;
    min-width: 0;
    text-align: center;
  }

  .reg-landing__trust-value {
    font-size: 16px;
    line-height: 1.1;
  }

  .reg-landing__trust-label {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------- */
/* Mobile: put "Search plates" button to the right of the bar */
/* ---------------------------------------------------------- */
@media (max-width: 480px) {
  .reg-landing__search {
    flex-wrap: nowrap;           /* keep input + button on one line */
    align-items: stretch;
  }

  .reg-landing__search-field {
    min-width: 0;                /* allow it to shrink */
    flex: 1 1 auto;              /* take remaining width */
  }

  .reg-landing__search-btn {
    margin-top: 0;
    flex: 0 0 auto;              /* no stretching, just hug content */
    padding: 0 14px;
    height: 44px;                /* similar to input height */
    white-space: nowrap;         /* keep text on one line */
    font-size: 13px;
  }
}

/* --- Hero search bar: UK plate styling --- */

.reg-landing__search-field {
  background-color: #DEDE17;              /* plate yellow */
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
}

/* Text inside the search bar */
.reg-landing__search-input {
  font-family: "UKNumberPlate", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  text-transform: uppercase;
  letter-spacing: 0em;
  color: #111827;
  border: none;
  background: transparent;                /* inherit yellow from field */
}

/* Placeholder matches reg style too */
.reg-landing__search-input::placeholder {
  font-family: "UKNumberPlate", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  text-transform: uppercase;
  letter-spacing: 0em;
  color: rgba(17, 24, 39, 0.6);
}

/* Accessible focus outline so we don't rely on the browser default */
.reg-landing__search-input:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.9);
  outline-offset: 2px;
}



.reg-landing__search-btn {
  color: #ffffff;        /* icon becomes white */
}

/* optional: make sure the svg itself doesn't override */
.reg-landing__search-icon {
  display: block;
}

.reg-landing_search-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
}

.reg-landing_search-input:focus,
.reg-landing_search-input:focus-visible {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Kill the blue focus box inside the yellow reg bar */
.reg-landing__search-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Some browsers (Chrome, Firefox) add a special focus-visible outline */
.reg-landing__search-input:focus,
.reg-landing__search-input:focus-visible {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}


/* Make sure the yellow wrapper itself never glows on focus */
.reg-landing__search-field:focus-within {
  outline: none !important;
  box-shadow: none !important;
}


.reg-landing__carousel-btn {
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    transform 0.12s ease;
}

.reg-landing__carousel-btn:hover {
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

/* Compact grid of plates under the carousel */


/* Slightly tighter on small screens */
@media (max-width: 640px) {
  .reg-landing__featured-carousel {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .reg-landing__carousel-btn {
    display: none;
  }

  .reg-landing__featured-grid {
    padding-inline: 0;
  }
}

/* Compact grid of plates under the carousel: 3 per row on desktop */
.reg-landing__featured-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

/* Each entry is a small dark card */
.reg-landing__featured-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

/* Plate text */
.reg-landing__featured-list-plate {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0em;

  /* Size + padding */
  font-size: 16px;
  padding: 3px 14px;

  /* UK rear plate styling */
  background: #DEDE17;
  border-radius: 3px;
  border: 1px solid #D1C044;
  color: #111827;

  /* Slight depth so it feels like a real plate */
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);

  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Price text */
.reg-landing__featured-list-price {
  font-weight: 600;
  font-size: 13px;
  color: #f9fafb;
  white-space: nowrap;
}

/* Responsive tweaks: 2 per row on small screens, 1 per row on very small */
@media (max-width: 900px) {
  .reg-landing__featured-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .reg-landing__featured-list {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ===== Featured carousel: mobile layout (2 cards visible) ===== */
@media (max-width: 768px) {
  /* Hide side arrows on small screens – swipe / auto-scroll is enough */
  .reg-landing__carousel-btn {
    display: none;
  }

  /* Track as a flex row (if not already) */
  #regFeaturedCarousel.reg-landing__featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Each card takes ~50% width so two are fully visible */
  #regFeaturedCarousel .reg-landing__feature-card {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* Compact grid of plates under the carousel */
.reg-landing__featured-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

/* Card pill stays the same */
.reg-landing__featured-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
}

/* Plate = yellow mini UK plate */
.reg-landing__featured-list-plate {
  font-family: "UKNumberPlate", "UKNumberPlate Regular", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0em;

  /* Size + padding */
  font-size: 16px;
  padding: 3px 14px;

  /* UK rear plate styling */
  background: #DEDE17;
  border-radius: 3px;
  border: 1px solid #D1C044;
  color: #111827;

  /* Slight depth so it feels like a real plate */
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);

  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Price */
.reg-landing__featured-list-price {
  font-weight: 600;
  font-size: 13px;
  color: #f9fafb;
  white-space: nowrap;
}

/* Tablets + mobile: 2 columns (so 12 rows for your 24 plates) */
@media (max-width: 900px) {
  .reg-landing__featured-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }
}

@media (max-width: 768px) {
  /* Big yellow plate text */
  .reg-landing__feature-plate {
    font-size: 18px;      /* was ~22–24px */
    padding-block: 8px;
    
  }
}

@media (max-width: 768px) {
  .reg-landing__feature-plate{
    padding: 5px 10px;
  }

}

/* ===== Featured carousel: 2 cards fully visible on mobile ===== */
@media (max-width: 768px) {
  /* Hide arrows, we use swipe + auto-scroll */
  .reg-landing__carousel-btn {
    display: none;
  }

  #regFeaturedCarousel.reg-landing__featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* HARD override desktop min-width so 2 cards fit */
  #regFeaturedCarousel .reg-landing__feature-card {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: none;
    flex: 0 0 calc(50% - 5px);
    padding: 12px 10px 10px; /* slightly tighter */
    scroll-snap-align: start;
  }

  /* Slightly smaller plate text so long regs don’t dominate */
  .reg-landing__feature-plate {
    font-size: 22px;
    letter-spacing: 0em;
    padding-block: 6px;
  }

  .reg-landing__feature-label {
    font-size: 11px;
  }

  .reg-landing__feature-price {
    font-size: 17px;
  }

  .reg-landing__feature-fee {
    font-size: 14px;
  }

  .reg-landing__feature-btn {
    font-size: 12px;
    padding-block: 7px;
  }
}


@media (max-width: 768px) {
  /* Tidy the "Featured" pill so it doesn't collide with the plate */
  .reg-landing__feature-badge {
    top: 6px;
    left: 10px;
    padding: 3px 8px;
    font-size: 13px;
  }

  /* Give the badge some breathing room above the plate */
  .reg-landing__feature-plate {
    margin-top: 26px; /* was 18px */
  }
}

/* =========================
   REG TICKER BAND
   ========================= */

.reg-ticker {
  background: #1b900e; /* almost black */
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.reg-ticker__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 0;
  overflow: hidden;
}

/* Container that actually moves */
.reg-ticker__track {
  display: flex;
  width: max-content;               /* shrink-wrap the two rows */
  animation: regTickerMove 30s linear infinite;
}

/* One "copy" of the row of plates */
.reg-ticker__row {
  display: flex;
  gap: 18px;
}

/* Each reg + price pair */
.reg-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Little UK plate pill */
.reg-ticker__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 6px 16px;
  border-radius: 3px;
  border: 1px solid #d1c044;
  background: #dede17;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.7);
  font-family: "UKNumberPlate", "UKNumberPlate Regular", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0em;
  text-transform: uppercase;
  color: #111827;
}

/* Price text */
.reg-ticker__price {
  font-size: 13px;
  color: #e5e7eb;
  opacity: 0.9;
}

/* Pause scroll when user hovers */
.reg-ticker__inner:hover .reg-ticker__track {
  animation-play-state: paused;
}

/* Infinite scroll keyframes:
   track width = 2 * row width, so -50% shifts by exactly one row */
@keyframes regTickerMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .reg-ticker__inner {
    padding: 8px 16px;
  }

  .reg-ticker__row {
    gap: 12px;
  }

  .reg-ticker__plate {
    min-width: 80px;
    padding: 4px 12px;
    font-size: 14px;
  }

  .reg-ticker__price {
    font-size: 11px;
  }
}


/* hard reset any earlier fade experiments */
.reg-landing__section::after {
  content: "";
  display: none;
}

.layout__content--reg-marketplace {
  margin-top: 0;
  background: #ffffff;
}


/* ===== Tighten green ticker band vertical spacing ===== */
.reg-ticker {
  padding-top: 0;
  padding-bottom: 0;
}

.reg-ticker__inner {
  padding: 12px 0;          /* just a tiny bit of breathing room */
  display: flex;
  align-items: center;     /* vertically center the row inside */
}

.reg-ticker__track {
  margin-top: 0;
  margin-bottom: 0;
}

/* Ensure listing action buttons never overlap */
.reg-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto; /* keeps actions at the bottom of the card */
}

/* Every direct child of the actions block becomes a full-width row */
.reg-card__actions > * {
  flex: 0 0 auto;
  width: 100%;
}

/* Normalise all action buttons inside the card */
.reg-card__actions .reg-card__btn-primary,
.reg-card__actions .reg-card__btn-secondary,
.reg-card__actions .reg-card__btn-buy {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Safety margin between stacked buttons in case gap gets overridden */
.reg-card__actions > * + * {
  margin-top: 6px;
}

@media (max-width: 768px) {
  .reg-card__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .reg-card__actions > * {
    width: 100% !important;
    flex: 0 0 auto !important;
  }

  .reg-card__btn-primary,
  .reg-card__btn-secondary,
  .reg-card__btn-buy {
    width: 100% !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}
