/* =====================================================================
   CaddyLucky - Car details (.cd-*) + Profile (.pf-*) pages
   Uses the same tokens as style.css: #0f0f0f ink, #f4f4f2 soft bg,
   #deded9 borders, Instrument Sans, 7px / 11px radii, pill chips.
   Breakpoints: 1199 / 991 / 767 / 575
   ===================================================================== */

.cd-page,
.pf-page {
  --ink: var(--color-primary, #0f0f0f);
  --soft: #f4f4f2;
  --line: #deded9;
  --line-soft: #e7e7e4;
  --muted: #6c6c68;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.cd-page h1,
.cd-page h2,
.cd-page h3,
.pf-page h1,
.pf-page h2,
.pf-page h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
}
.cd-page p,
.pf-page p {
  font-size: 15px;
  line-height: 1.6;
}
.cd-page ul,
.cd-page dl,
.pf-page ul,
.pf-page dl {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cd-page button,
.pf-page button {
  font-family: inherit;
}

/* ---------- shared bits ------------------------------------------------ */
.cd-eyebrow {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.cd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.cd-chip--outline {
  border-color: var(--line);
  background: #fff;
  color: #363632;
}

.cd-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.cd-btn i {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.cd-btn:hover i.fa-arrow-right {
  transform: translateX(4px);
}
.cd-btn--primary {
  background: var(--ink);
  color: #fff;
}
.cd-btn--primary:hover {
  background: #2a2a28;
  border-color: #2a2a28;
  color: #fff;
}
.cd-btn--ghost {
  border-color: var(--line);
  background: #fff;
}
.cd-btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.cd-btn--danger {
  border-color: #c8372d;
  background: #fff;
  color: #c8372d;
}
.cd-btn--danger:hover {
  background: #c8372d;
  color: #fff;
}
.cd-btn--sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
.cd-btn--block {
  width: 100%;
  justify-content: space-between;
}
.cd-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}
.cd-btn:focus-visible,
.cd-icon-btn:focus-visible,
.cd-gallery__nav:focus-visible,
.cd-gallery__thumb:focus-visible,
.pf-nav__item:focus-visible,
.pf-switch:focus-visible,
.pf-unsave:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.cd-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.cd-field > label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #363632;
  font-size: 13px;
  font-weight: 600;
}
.cd-field input:not([type="range"]),
.cd-field select,
.cd-field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #dededb;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cd-field textarea {
  min-height: 110px;
  resize: vertical;
}
.cd-field input::placeholder,
.cd-field textarea::placeholder {
  color: #999;
  opacity: 1;
}
.cd-field input:focus,
.cd-field select:focus,
.cd-field textarea:focus {
  border-color: var(--ink);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
}
.cd-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.cd-form-error {
  margin: -4px 0 14px;
  color: #c8372d;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- car details: top bar --------------------------------------- */
.cd-page {
  padding-bottom: 100px;
}
.cd-top {
  padding: 130px 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.cd-top .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}
.cd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.cd-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.cd-breadcrumb i {
  font-size: 9px;
}
.cd-breadcrumb [aria-current] {
  color: var(--ink);
  font-weight: 700;
}
.cd-back,
.cd-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.cd-back i,
.cd-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}
.cd-back:hover i {
  transform: translateX(-4px);
}
.cd-link:hover i {
  transform: translateX(4px);
}

/* ---------- car details: layout ---------------------------------------- */
.cd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  padding-top: 36px;
  align-items: start;
}
.cd-main {
  min-width: 0;
}
.cd-side {
  min-width: 0;
  align-self: start;
}

.cd-heading {
  display: block;
  margin-bottom: 22px;
}
.cd-heading .cd-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.cd-heading h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 14px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.15;
}
.cd-heading h1 span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f6f4;
  color: #4a4a46;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  transform: translateY(-2px);
}
.cd-heading__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.cd-heading__loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: #4a4a46;
  font-size: 14px;
  font-weight: 600;
}

/* gallery */
.cd-gallery__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f1f1ef;
  outline: 0;
}
.cd-gallery__stage:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.25);
}
.cd-gallery__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.cd-gallery__stage img.is-active {
  opacity: 1;
}
.cd-gallery__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.cd-gallery__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.cd-gallery__nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}
.cd-gallery__nav:hover {
  background: var(--ink);
  color: #fff;
}
.cd-gallery__nav--prev {
  left: 14px;
}
.cd-gallery__nav--next {
  right: 14px;
}
.cd-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cd-gallery__thumb {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f1f1ef;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.cd-gallery__thumb:hover {
  opacity: 1;
}
.cd-gallery__thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}
.cd-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* mobile price bar (the page header is outside the smooth scroller, fixed bars would not work here) */
.cd-mobile-cta {
  display: none;
}

/* sections */
.cd-section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.cd-section__title {
  margin-bottom: 20px !important;
  font-size: 26px !important;
  letter-spacing: -0.8px;
}
.cd-prose {
  max-width: 70ch;
  color: #3c3c38;
}
.cd-prose + .cd-prose {
  margin-top: 14px;
}
.cd-key-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cd-key-specs li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.cd-key-specs__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: 15px;
}
.cd-key-specs small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.cd-key-specs strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.cd-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.cd-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
}
.cd-features i {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
}
.cd-spec-table {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.cd-spec-table > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  font-size: 14px;
}
.cd-spec-table > div:nth-child(odd) {
  background: #fafaf8;
}
.cd-spec-table > div + div {
  border-top: 1px solid var(--line-soft);
}
.cd-spec-table dt {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 500;
}
.cd-spec-table dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  text-align: right;
}

/* calculator */
.cd-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.cd-calc__controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.cd-calc__controls .cd-field:last-child,
.cd-calc__controls .cd-field-row .cd-field {
  margin-bottom: 0;
}
.cd-calc__controls > .cd-field {
  margin-bottom: 20px;
}
.cd-calc input[type="range"] {
  width: 100%;
  height: 6px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(to right, var(--ink) var(--fill, 20%), #e3e3df var(--fill, 20%));
  cursor: pointer;
}
.cd-calc input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.cd-calc input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.cd-calc__result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}
.cd-calc__result .cd-eyebrow {
  color: #a8a8a3;
}
.cd-calc__result > strong {
  display: block;
  margin: 8px 0 18px;
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
}
.cd-calc__result > strong small {
  margin-left: 4px;
  color: #a8a8a3;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.cd-calc__result dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
}
.cd-calc__result dt {
  color: #c5c5c1;
  font-weight: 500;
}
.cd-calc__result dd {
  margin: 0;
  font-weight: 700;
}
.cd-calc__result p {
  margin-top: 14px;
  color: #a8a8a3;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

/* sidebar card */
.cd-side-card {
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.cd-side-card__price strong {
  display: block;
  margin: 6px 0 4px;
  font-size: clamp(36px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}
.cd-side-card__monthly {
  color: #4a4a46;
  font-size: 14px;
}
.cd-icon-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.cd-icon-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cd-icon-btn:hover {
  border-color: var(--ink);
}
.cd-icon-btn.is-on {
  border-color: var(--ink);
  background: var(--soft);
}
.cd-icon-btn.is-on i {
  color: #c8372d;
}
.cd-seller {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.cd-seller__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.cd-seller strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}
.cd-seller div > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.cd-seller i {
  color: #1f7a3d;
}
.cd-contact {
  padding-top: 22px;
  scroll-margin-top: 100px; /* keeps the form below the fixed header when the page scrolls to it */
}
.cd-contact h2 {
  margin-bottom: 16px !important;
  font-size: 20px !important;
  letter-spacing: -0.4px;
}
.cd-contact .cd-field {
  margin-bottom: 14px;
}
.cd-contact .cd-field textarea {
  min-height: 84px;
}
.cd-safety {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cd-safety li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #5a5a56;
  font-size: 13.5px;
  line-height: 1.5;
}
.cd-safety li > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
}
.cd-safety strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 14px;
}
.cd-form-success {
  padding: 22px 8px;
  text-align: center;
}
.cd-form-success__icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.cd-form-success h3 {
  margin-bottom: 6px !important;
  font-size: 20px !important;
}
.cd-form-success p {
  margin-bottom: 18px;
  color: #4a4a46;
}

/* similar cars */
.cd-similar {
  margin-top: 90px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.cd-similar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 28px;
}
.cd-similar__head h2 {
  margin-top: 8px !important;
  font-size: clamp(30px, 3.4vw, 44px) !important;
  letter-spacing: -1.4px;
}

/* ---------- profile ----------------------------------------------------- */
.pf-hero {
  padding: 135px 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.pf-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pf-hero__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 22px;
}
.pf-avatar {
  display: grid;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
}
.pf-avatar--sm {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: 20px;
}
.pf-hero h1 {
  margin: 8px 0 10px !important;
  font-size: clamp(34px, 4.6vw, 58px) !important;
  letter-spacing: -2px;
}
.pf-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: #4a4a46;
  font-size: 14px !important;
}
.pf-hero__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px !important;
}
.pf-stats li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.pf-stats__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  font-size: 15px;
}
.pf-stats strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.pf-stats small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.pf-body {
  padding: 44px 0 100px;
}
.pf-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.pf-nav__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.pf-nav__item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #363632;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.pf-nav__item i {
  width: 18px;
  font-size: 14px;
  text-align: center;
}
.pf-nav__item em {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.pf-nav__item:hover {
  background: var(--soft);
}
.pf-nav__item.is-active {
  background: var(--ink);
  color: #fff;
}
.pf-nav__item.is-active em {
  background: #fff;
}
.pf-nav__cta {
  margin-top: 16px;
  padding: 22px;
  border-radius: 11px;
  background: var(--soft);
}
.pf-nav__cta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}
.pf-nav__cta p {
  margin-bottom: 16px;
  color: #4a4a46;
  font-size: 14px !important;
}

.pf-content {
  min-width: 0;
}
.pf-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.pf-panel-head h2 {
  font-size: clamp(26px, 3vw, 36px) !important;
  letter-spacing: -1.2px;
}
.pf-panel-head p {
  margin-top: 6px;
  color: var(--muted);
}

/* listings */
.pf-list {
  display: grid;
  gap: 16px;
}
.pf-listing {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.pf-listing:hover {
  border-color: #b9b9b2;
}
.pf-listing__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  background: #f1f1ef;
}
.pf-listing__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pf-listing__info {
  min-width: 0;
}
.pf-listing__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.pf-listing__stats {
  color: var(--muted);
  font-size: 12px;
}
.pf-listing h3 {
  font-size: 21px !important;
  letter-spacing: -0.6px;
  line-height: 1.2 !important;
}
.pf-listing__info p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px !important;
}
.pf-listing__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.pf-listing__side > strong {
  font-size: 22px;
  letter-spacing: -0.6px;
  line-height: 1;
}
.pf-listing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.pf-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.pf-status--active {
  background: #e8f4ec;
  color: #1f7a3d;
}
.pf-status--paused {
  background: #fbf3df;
  color: #8a6100;
}
.pf-status--sold {
  background: #ececea;
  color: #55554f;
}

/* saved */
.pf-saved-grid.car-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pf-saved-grid .car-product-card {
  position: relative;
}
.pf-unsave {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #c8372d;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pf-unsave:hover {
  transform: scale(1.08);
}
.pf-empty {
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: 11px;
  text-align: center;
}
.pf-empty > i {
  margin-bottom: 14px;
  font-size: 30px;
}
.pf-empty h3 {
  margin-bottom: 6px !important;
  font-size: 22px !important;
}
.pf-empty p {
  margin-bottom: 20px;
  color: var(--muted);
}

/* settings */
.pf-settings {
  display: block;
}
.pf-card {
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.pf-card > h3 {
  margin-bottom: 20px !important;
  font-size: 20px !important;
  letter-spacing: -0.4px;
}
.pf-photo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.pf-photo p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px !important;
}
.pf-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 6px;
}
.pf-saved {
  color: #1f7a3d;
  font-size: 13px;
  font-weight: 700;
}
.pf-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.pf-toggle:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.pf-toggle:last-child {
  padding-bottom: 0;
}
.pf-toggle label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pf-toggle p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px !important;
}
.pf-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4d4cf;
  cursor: pointer;
  transition: background 0.2s ease;
}
.pf-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.pf-switch.is-on {
  background: var(--ink);
}
.pf-switch.is-on span {
  transform: translateX(20px);
}
.pf-card--danger {
  border-color: #efc9c5;
  background: #fffafa;
}
.pf-card--danger p {
  margin-bottom: 18px;
  color: #5a5a56;
}

/* ==================================================================== */
/* Responsive                                                            */
/* ==================================================================== */
@media (max-width: 1199.98px) {
  .cd-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
  .cd-side-card {
    padding: 22px;
  }
  .pf-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
  }
  .pf-listing {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 18px;
  }
}

@media (max-width: 991.98px) {
  /* car details: single column */
  .cd-top {
    padding-top: 118px;
  }
  .cd-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 28px;
  }
  .cd-side {
    margin-top: 44px;
  }
  .cd-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--soft);
  }
  .cd-mobile-cta strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.8px;
    line-height: 1.1;
  }
  .cd-mobile-cta span {
    color: #4a4a46;
    font-size: 13px;
  }

  /* profile: tabs become a horizontal scroller */
  .pf-hero {
    padding-top: 120px;
  }
  .pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-body {
    padding-top: 28px;
  }
  .pf-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .pf-nav__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pf-nav__list::-webkit-scrollbar {
    display: none;
  }
  .pf-nav__item {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .pf-nav__cta {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .cd-key-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cd-safety {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-section {
    margin-top: 36px;
    padding-top: 30px;
  }
  .cd-similar {
    margin-top: 64px;
  }
  .cd-gallery__nav {
    width: 42px;
    height: 42px;
  }

  .pf-hero__identity {
    align-items: flex-start;
  }
  .pf-avatar {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    font-size: 24px;
  }
  .pf-hero__actions {
    width: 100%;
  }
  .pf-hero__actions .cd-btn {
    flex: 1 1 0;
  }
  .pf-listing {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .pf-listing__side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
  }
  .pf-listing h3 {
    font-size: 18px !important;
  }
  .pf-saved-grid.car-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }
}

@media (max-width: 991.98px) {
  .cd-side-card {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 575.98px) {
  .cd-heading .cd-eyebrow {
    font-size: 11px;
    letter-spacing: 1.2px;
  }
  .cd-heading h1 {
    gap: 4px 8px;
    margin: 0 0 12px;
    font-size: clamp(22px, 6.4vw, 26px);
  }
  .cd-heading h1 span {
    padding: 2px 8px;
    font-size: 12px;
  }
  .pf-nav__item {
    gap: 8px;
    padding: 10px 12px;
  }
  .cd-top {
    padding-top: 108px;
  }
  .cd-gallery__thumbs {
    gap: 7px;
  }
  .cd-key-specs li {
    padding: 13px;
    gap: 10px;
  }
  .cd-key-specs__icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 13px;
  }
  .cd-features,
  .cd-safety {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-spec-table > div {
    padding: 12px 14px;
  }
  .cd-calc__controls,
  .cd-calc__result {
    padding: 20px;
  }
  .cd-side-card {
    padding: 20px;
  }
  .cd-field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .cd-calc .cd-field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cd-mobile-cta .cd-btn {
    min-height: 44px;
    padding: 9px 14px;
  }

  .pf-hero {
    padding-top: 108px;
  }
  .pf-hero__identity {
    flex-direction: column;
    gap: 14px;
  }
  .pf-stats {
    gap: 10px;
  }
  .pf-stats li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }
  .pf-stats strong {
    font-size: 22px;
  }
  .pf-panel-head .cd-btn {
    width: 100%;
  }
  .pf-listing {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-listing__img {
    aspect-ratio: 16 / 9;
  }
  .pf-listing__side {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pf-listing__actions {
    justify-content: stretch;
  }
  .pf-listing__actions .cd-btn {
    flex: 1 1 0;
  }
  .pf-saved-grid.car-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-card {
    padding: 20px;
  }
  .pf-form-actions .cd-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cd-gallery__stage img,
  .cd-btn,
  .pf-switch,
  .pf-switch span {
    transition: none;
  }
}

/* ---------- auth forms (signup / login / OTP) ---------------------------- */
.auth-alert {
  margin: 16px 0 0;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.auth-alert a {
  margin-left: 4px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-alert--error {
  border-color: #f1c9c5;
  background: #fdf1f0;
  color: #b3261e;
}
.auth-alert--ok {
  border-color: #c6e5cf;
  background: #eff8f1;
  color: #1f7a3d;
}
.signup-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.signup-button:disabled:hover i {
  transform: none;
}
.signup-field input[aria-invalid="true"] {
  border-color: #c8372d;
}
.signup-otp .signup-fields,
.signup-otp .signup-field {
  margin: 0;
}
.signup-otp .signup-field .signup-otp-input {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
}
.auth-otp-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
}
.auth-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary, #0f0f0f);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auth-link-btn:disabled {
  color: #888;
  cursor: not-allowed;
  text-decoration: none;
}

/* ---------- profile: real account details -------------------------------- */
.pf-details {
  display: grid;
  gap: 0;
}
.pf-details > div {
  display: grid;
  grid-template-columns: minmax(130px, 200px) 1fr;
  gap: 8px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.pf-details > div:first-child {
  padding-top: 0;
}
.pf-details > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.pf-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pf-details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 600;
}
.pf-hint {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12.5px !important;
}
.pf-msg-inline {
  margin: 0 !important;
}
@media (max-width: 575px) {
  .pf-details > div {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sell Cadillac form ------------------------------------------- */
.sell-layout {
  max-width: 1200px;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}
.sell-promo h1 {
  font-size: clamp(38px, 4.2vw, 58px);
}
.sell-perks {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.sell-perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.45;
}
.sell-perks i {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-size: 11px;
}
.sell-card {
  min-width: 0;
}
.sell-group {
  min-width: 0;
  margin: 0 0 30px;
  padding: 0;
  border: 0;
}
.sell-group legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e7e7e4;
  float: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.sell-group-no {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
}
.sell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
}
.sell-span-2 {
  grid-column: 1 / -1;
}
.sell-grid .signup-field {
  min-width: 0;
}
.sell-page .signup-field select,
.sell-page .signup-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #dededb;
  border-radius: 7px;
  background: #fff;
  color: var(--color-primary);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sell-page .signup-field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f0f0f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
  cursor: pointer;
}
.sell-page .signup-field select:disabled {
  background-color: #f6f6f4;
  color: #999;
  cursor: not-allowed;
}
.sell-page .signup-field textarea {
  min-height: 112px;
  resize: vertical;
}
.sell-page .signup-field select:focus,
.sell-page .signup-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
  outline: 0;
}
.sell-page .signup-field select[aria-invalid="true"],
.sell-page .signup-field textarea[aria-invalid="true"] {
  border-color: #c8372d;
}
.sell-page .signup-field label em {
  color: #888;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.sell-readonly {
  background: #f6f6f4 !important;
  color: #666 !important;
  cursor: default;
}
.sell-affix {
  position: relative;
}
.sell-affix::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: #888;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(-50%);
}
.sell-affix[data-affix="mi"]::after {
  content: "mi";
}
.sell-affix[data-affix="$"] input {
  padding-left: 30px;
}
.sell-affix[data-affix="$"]::before {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  color: #555;
  font-size: 15px;
  font-weight: 600;
  content: "$";
  pointer-events: none;
  transform: translateY(-50%);
}
.sell-affix[data-affix="mi"] input {
  padding-right: 38px;
}
.sell-error {
  display: block;
  margin-top: 5px;
  color: #b3261e;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}
.sell-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  color: #555;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
}
.sell-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}
.sell-done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.sell-done h2 {
  margin: 10px 0 10px;
  font-size: clamp(32px, 3vw, 42px);
  letter-spacing: -1.2px;
}
.sell-done p {
  max-width: 520px;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}
.sell-done-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 22px;
}
.sell-ref {
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 520px;
  margin: 24px 0 28px;
  padding: 18px 20px;
  border: 1px solid #e7e7e4;
  border-radius: 9px;
  background: #fafaf9;
}
.sell-ref span {
  color: #777;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.sell-ref strong {
  font-size: 26px;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
}
.sell-done-actions {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}
.sell-done-actions .signup-button {
  margin-top: 0;
  text-decoration: none;
}
.sell-done-actions .signup-verify-button {
  margin-top: 0;
}
@media only screen and (max-width: 991.98px) {
  .sell-layout {
    max-width: 760px;
    grid-template-columns: 1fr;
  }
  .sell-promo {
    min-height: 0;
  }
  .sell-perks {
    margin-top: 24px;
  }
}
@media only screen and (max-width: 575.98px) {
  .sell-grid {
    grid-template-columns: 1fr;
  }
  .sell-span-2 {
    grid-column: auto;
  }
  .sell-group legend {
    font-size: 17px;
  }
  .sell-ref strong {
    font-size: 22px;
  }
}

/* ===== Home: "Cadillacs near you" - more filters (colors, body, fuel, year, price...) ===== */
.nearby-cars-more {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #e7e7e3;
}
.nearby-cars-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.nearby-cars-more > summary::-webkit-details-marker {
  display: none;
}
.nearby-cars-more > summary i {
  margin-right: 6px;
  font-size: 12px;
}
.nearby-cars-more > summary .nearby-more-chevron {
  margin: 0;
  transition: transform 0.2s ease;
}
.nearby-cars-more[open] > summary .nearby-more-chevron {
  transform: rotate(180deg);
}
.nearby-more-count {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}
.nearby-more-count[hidden] {
  display: none;
}
.nearby-cars-more__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 12px 4px;
}
.nearby-more-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.nearby-more-field input.nearby-more-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #deded9;
  border-radius: 5px;
  outline: 0;
  background-color: #fafaf8;
  color: var(--color-primary);
  font: inherit;
  font-size: 13px;
}
.nearby-more-field input.nearby-more-input:focus {
  border-color: var(--color-primary);
  background-color: #fff;
}
.nearby-more-field select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #deded9;
  border-radius: 5px;
  outline: 0;
  background-color: #fafaf8;
  color: var(--color-primary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.nearby-more-field select:focus {
  border-color: var(--color-primary);
  background-color: #fff;
}
.nearby-cars-more__actions {
  display: flex;
  justify-content: flex-end;
  padding: 8px 12px 4px;
}
.nearby-cars-reset {
  padding: 6px 2px;
  border: 0;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.nearby-cars-reset:hover {
  color: var(--color-primary);
}
@media only screen and (max-width: 1199.98px) {
  .nearby-cars-more__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-right: 8px;
    padding-left: 8px;
  }
}
@media only screen and (max-width: 991.98px) {
  .nearby-cars-more__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 767.98px) {
  .nearby-cars-more__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 359.98px) {
  .nearby-cars-more__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ===== v2: image uploader, seller listings, services (profile) ===== */
.imgup{margin:0 0 18px}
.imgup-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:14px}
.imgup-head span{color:#777;font-size:13px}
.imgup-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.imgup-item{position:relative;margin:0;aspect-ratio:4/3;border-radius:9px;overflow:hidden;border:1px solid #deded9;background:#f4f4f2}
.imgup-item img{width:100%;height:100%;object-fit:cover;display:block}
.imgup-badge{position:absolute;left:6px;top:6px;background:#0f0f0f;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:5px}
.imgup-actions{position:absolute;right:6px;top:6px;display:flex;gap:4px}
.imgup-actions button{width:26px;height:26px;border:0;border-radius:50%;background:rgba(15,15,15,.82);color:#fff;font-size:12px;line-height:1;cursor:pointer}
.imgup-add{aspect-ratio:4/3;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;border:2px dashed #c9c9c3;border-radius:9px;background:#fff;color:#444;font-size:13px;cursor:pointer}
.imgup-add:hover,.imgup-add.is-drag{border-color:#0f0f0f;background:#f4f4f2}
.imgup-add i{font-size:20px}
.imgup.is-invalid .imgup-add{border-color:#c62828}
.sl-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #e7e7e4}
.sl-row:last-child{border-bottom:0}
.sl-row small{display:block;color:#777;font-size:12px;margin-top:2px}
.sl-note{color:#444!important}
.sl-status{font-size:12px;font-weight:700;padding:4px 12px;border-radius:99px;white-space:nowrap}
.sl-status--review{background:#fff4d6;color:#8a5a00}
.sl-status--approved{background:#dff5e3;color:#14702a}
.sl-status--rejected{background:#fde2e2;color:#a31b1b}
.sl-group{margin-top:22px}.sl-group h3{font-size:17px;margin-bottom:10px}
.sl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.sl-card{border:1px solid #deded9;border-radius:11px;overflow:hidden;background:#fff}
.sl-card img,.sl-noimg{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:#eee}
.sl-card-body{padding:14px;display:flex;flex-direction:column;gap:4px;font-size:13px;color:#555}
.sl-card-body strong{font-size:15px;color:#0f0f0f}
.sl-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.sl-actions button{border:1px solid #deded9;background:#fff;border-radius:7px;padding:5px 11px;font-size:12px;cursor:pointer}
.sl-actions button:hover{background:#f4f4f2}.sl-actions .is-danger{color:#a31b1b;border-color:#f0c4c4}
.sl-features{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px 16px;font-size:14px}
.sl-features label{display:flex;gap:8px;align-items:center;cursor:pointer}

/* ======================================================================
   Forms - unified theme + responsive (v3)
   ====================================================================== */

/* select / textarea everywhere a .signup-field is used (profile, listing and service forms too, not only the sell page) */
.signup-field select,
.signup-field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #dededb;
  border-radius: 7px;
  background: #fff;
  color: var(--color-primary);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f0f0f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 15px center;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
  cursor: pointer;
}
.signup-field select:disabled {
  background-color: #f6f6f4;
  color: #999;
  cursor: not-allowed;
}
.signup-field textarea {
  min-height: 112px;
  resize: vertical;
}
.signup-field select:focus,
.signup-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
  outline: 0;
}
.signup-field textarea::placeholder {
  color: #999;
  opacity: 1;
}
.signup-field label em {
  color: #888;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}
.signup-field input:disabled {
  background: #f6f6f4;
  color: #888;
  cursor: not-allowed;
}
/* keep native checkboxes / radios small inside field wrappers */
.signup-field input[type="checkbox"],
.signup-field input[type="radio"] {
  display: inline-block;
  width: 18px;
  min-height: 0;
  height: 18px;
  padding: 0;
  accent-color: var(--color-primary);
}
.signup-fields .signup-field,
.sell-grid .signup-field {
  min-width: 0;
}
.signup-field input,
.signup-field select,
.signup-field textarea {
  max-width: 100%;
  font-size: 16px; /* stops iOS from zooming into the field on focus */
}

/* profile / car details fields (.cd-field) - same look, 16px on phones */
.cd-field input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
.cd-field select,
.cd-field textarea {
  max-width: 100%;
  font-size: 16px;
}

/* password show / hide */
.pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.pw-wrap > input {
  padding-right: 48px !important;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #777;
  font-size: 15px;
  cursor: pointer;
  transform: translateY(-50%);
}
.pw-toggle:hover {
  color: var(--color-primary);
}
.pw-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* login: forgot password link sits opposite "Remember me" */
.login-options {
  flex-wrap: wrap;
}
.login-forgot:hover {
  opacity: 0.7;
}

/* forgot password: success state */
.auth-success {
  display: grid;
  justify-items: start;
  gap: 16px;
}
.auth-success p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}
.auth-success__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 22px;
}
.auth-success .signup-button {
  margin-top: 6px;
  text-decoration: none;
}

/* contact page form (template .form-control) - same field look as the rest of the site */
.quanto-contact__form .form-control {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}
.quanto-contact__form textarea.form-control {
  min-height: 150px;
  resize: vertical;
}
.quanto-contact__form button.quanto-link-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.quanto-contact__form .auth-alert {
  margin: 0;
}
.cf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cf-success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 8px 0;
}
.cf-success h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
}
.cf-success p {
  margin: 0;
  max-width: 460px;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

/* disabled buttons in profile / listing forms */
.cd-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* sell + listing + service forms: tablet and phone */
@media only screen and (max-width: 767.98px) {
  .sell-grid {
    grid-template-columns: 1fr;
  }
  .sell-span-2 {
    grid-column: auto;
  }
  .sl-features {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .pf-form-actions {
    flex-wrap: wrap;
  }
}
@media only screen and (max-width: 575.98px) {
  .signup-card {
    padding: 28px 18px;
  }
  .signup-card-heading h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .signup-button,
  .signup-verify-button {
    min-height: 50px;
  }
  .login-options {
    gap: 10px 12px;
  }
  .auth-otp-links {
    flex-direction: column;
    align-items: flex-start;
  }
  .sl-features {
    grid-template-columns: 1fr 1fr;
    font-size: 13px;
  }
  .sl-cards {
    grid-template-columns: 1fr;
  }
  .sl-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .pf-form-actions .cd-btn {
    width: 100%;
    justify-content: center;
  }
  .cf-success {
    justify-items: stretch;
  }
  .cf-success .cd-btn {
    width: 100%;
    justify-content: center;
  }
}
@media only screen and (max-width: 359.98px) {
  .signup-card {
    padding: 24px 14px;
  }
  .sl-features {
    grid-template-columns: 1fr;
  }
}

/* ---- toasts (profile actions) ---- */
.cl-toasts{position:fixed;right:16px;bottom:16px;z-index:99999;display:flex;flex-direction:column;gap:10px;max-width:calc(100vw - 32px)}
.cl-toast{display:flex;align-items:center;gap:10px;min-width:260px;max-width:420px;padding:13px 14px;background:#0f0f0f;color:#fff;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:14px;line-height:1.4;animation:cl-toast-in .22s ease-out}
.cl-toast i{font-size:17px}.cl-toast span{flex:1}
.cl-toast--success i{color:#4ade80}.cl-toast--error{background:#7f1d1d}.cl-toast--error i{color:#fecaca}.cl-toast--info i{color:#93c5fd}
.cl-toast button{background:none;border:0;color:inherit;opacity:.7;font-size:20px;line-height:1;cursor:pointer;padding:0 2px}
.cl-toast button:hover{opacity:1}
@keyframes cl-toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width:520px){.cl-toasts{left:16px;right:16px;bottom:12px}.cl-toast{min-width:0;max-width:none}}

/* ---- dealer services ---- */
.sv-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.sv-stat{background:#fff;border:1px solid #deded9;border-radius:11px;padding:14px 16px}
.sv-stat small{display:block;color:#777;font-size:12px}.sv-stat strong{font-size:24px}
.sv-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.sv-toolbar input,.sv-toolbar select{height:42px;border:1px solid #deded9;border-radius:8px;padding:0 12px;font-size:16px;background:#fff;min-width:0}
.sv-toolbar input{flex:1 1 200px}
.sv-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}
.sv-card{background:#fff;border:1px solid #deded9;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.sv-card__img{position:relative;aspect-ratio:16/10;background:#ecece8}
.sv-card__img img{width:100%;height:100%;object-fit:cover;display:block}
.sv-badge{position:absolute;top:10px;left:10px;background:#0f0f0f;color:#fff;border-radius:99px;padding:3px 10px;font-size:11px;font-weight:600}
.sv-badge--draft{background:#b45309}
.sv-count{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.65);color:#fff;border-radius:99px;padding:2px 9px;font-size:11px}
.sv-card__body{padding:14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.sv-cat{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#777}
.sv-card__body h4{margin:0;font-size:18px;line-height:1.25}
.sv-card__body p{margin:0;color:#555;font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sv-price{font-weight:700;font-size:15px}
.sv-meta{display:flex;flex-direction:column;gap:3px;font-size:13px;color:#555}
.sv-meta i{width:16px;color:#888}
.sv-tags{display:flex;flex-wrap:wrap;gap:5px}.sv-tags span{background:#f4f4f2;border:1px solid #e7e7e4;border-radius:99px;padding:2px 9px;font-size:11.5px}
.sv-card .sl-actions{margin-top:auto;padding-top:10px}
.sv-detail{display:grid;gap:8px;margin:0;padding:0}.sv-detail div{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid #e7e7e4;font-size:14px}
.sv-detail dt{color:#777}.sv-detail dd{margin:0;font-weight:600;word-break:break-word}
.sv-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-bottom:16px}
.sv-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block}
.sv-fill{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 12px}
.sv-skeleton{opacity:.55;pointer-events:none}
@media (max-width:640px){.sv-stats{grid-template-columns:repeat(3,1fr);gap:8px}.sv-stat{padding:10px}.sv-stat strong{font-size:20px}.sv-list{grid-template-columns:1fr}.sv-detail div{grid-template-columns:1fr;gap:2px}}

/* ---- dealer parts ---- */
.sv-stats--4{grid-template-columns:repeat(4,1fr)}
.sv-badge--sold{background:#555}
.sv-qty{font-weight:400;color:#777;font-size:13px}
.sv-models{max-height:220px;overflow:auto;border:1px solid #e7e7e4;border-radius:9px;padding:10px;margin-bottom:12px}
@media (max-width:640px){.sv-stats--4{grid-template-columns:repeat(2,1fr)}}
