/* ============================================================
   موتور (Motor) — main.css
   Editorial luxury automotive aesthetic
   Mobile-first → tablet (768px) → desktop (1024px) → wide (1280px)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ============================================================ */
:root {
  /* Brand palette */
  --c-bg:        #0d0d0d;
  --c-bg-soft:   #161616;
  --c-bg-elev:   #1c1c1c;
  --c-bg-elev-2: #242424;
  --c-line:      rgba(245, 244, 239, 0.08);
  --c-line-strong: rgba(245, 244, 239, 0.16);

  --c-ink:       #f5f4ef;
  --c-ink-soft:  rgba(245, 244, 239, 0.72);
  --c-ink-mute:  rgba(245, 244, 239, 0.52);
  --c-ink-dim:   rgba(245, 244, 239, 0.32);

  --c-gold:      #e8c97e;
  --c-gold-soft: #f0d894;
  --c-gold-deep: #c9a85a;
  --c-gold-glow: rgba(232, 201, 126, 0.35);

  --c-red:       #c0392b;
  --c-red-soft:  #e25745;

  --c-green:     #4ec9a8;
  --c-amber:     #f4b842;

  /* Typography */
  --ff-body:    'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-display: 'Tajawal', 'Cairo', sans-serif;

  --fs-xs:   0.75rem;   /* 12 */
  --fs-sm:   0.875rem;  /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md:   1.125rem;  /* 18 */
  --fs-lg:   1.375rem;  /* 22 */
  --fs-xl:   1.75rem;   /* 28 */
  --fs-2xl:  2.25rem;   /* 36 */
  --fs-3xl:  3rem;      /* 48 */
  --fs-4xl:  4rem;      /* 64 */
  --fs-display: clamp(2.6rem, 8vw, 5.5rem);

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  22px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(0,0,0,0.4);
  --sh-md: 0 8px 24px rgba(0,0,0,0.45);
  --sh-lg: 0 24px 60px rgba(0,0,0,0.55);
  --sh-glow: 0 0 0 1px var(--c-gold), 0 0 24px var(--c-gold-glow);

  /* Layout */
  --container-max: 1280px;
  --header-h: 68px;
  --bottom-nav-h: 68px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-med:  340ms;
  --t-slow: 600ms;
}

/* ===== Light theme overrides ===== */
[data-theme="light"] {
  --c-bg:        #f5f4ef;
  --c-bg-soft:   #ebeae3;
  --c-bg-elev:   #ffffff;
  --c-bg-elev-2: #f9f8f3;
  --c-line:      rgba(13, 13, 13, 0.10);
  --c-line-strong: rgba(13, 13, 13, 0.20);

  --c-ink:       #0d0d0d;
  --c-ink-soft:  rgba(13, 13, 13, 0.72);
  --c-ink-mute:  rgba(13, 13, 13, 0.55);
  --c-ink-dim:   rgba(13, 13, 13, 0.35);

  --c-gold-glow: rgba(201, 168, 90, 0.28);

  --sh-md: 0 8px 24px rgba(13,13,13,0.10);
  --sh-lg: 0 24px 60px rgba(13,13,13,0.15);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--bottom-nav-h); /* room for mobile bottom nav */
  transition: background var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}

.page-home {
  position: relative;
  background: var(--c-bg);
}

.home-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-home > :not(.home-bg):not(.site-header):not(.bottom-nav) {
  position: relative;
  z-index: 1;
}

.home-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 72% at 50% 18%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 18%, #000 25%, transparent 78%);
  opacity: 0.46;
}

.home-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: floatGlow 14s ease-in-out infinite;
}

.home-bg-glow-1 {
  width: 60vmin;
  height: 60vmin;
  background: radial-gradient(circle, var(--c-gold) 0%, transparent 60%);
  top: -10vmin;
  inset-inline-start: -10vmin;
  opacity: 0.32;
}

.home-bg-glow-2 {
  width: 70vmin;
  height: 70vmin;
  background: radial-gradient(circle, #6c5ce7 0%, transparent 60%);
  bottom: -15vmin;
  inset-inline-end: -15vmin;
  opacity: 0.18;
  animation-delay: -7s;
}

.home-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  outline: 0;
}

ul, ol { list-style: none; }

::selection { background: var(--c-gold); color: var(--c-bg); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--sp-6); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--sp-7); }
}

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 12px var(--c-gold);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.25rem;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
  border: 1px solid transparent;
  min-height: 44px; /* touch target */
  -webkit-tap-highlight-color: transparent;
}

.btn-lg { padding: 0.95rem 1.7rem; font-size: var(--fs-base); min-height: 52px; }

.btn-primary {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}
.btn-primary:hover {
  background: var(--c-gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--c-gold-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn:focus-visible,
.icon-btn:focus-visible,
.nav-link:focus-visible,
.m-link:focus-visible {
  outline: 2px solid rgba(232, 201, 126, 0.85);
  outline-offset: 3px;
}
.btn:active,
.icon-btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.btn-ghost:hover {
  background: var(--c-bg-elev);
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.btn-glow {
  position: relative;
  isolation: isolate;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--c-gold), transparent 40%, var(--c-gold) 80%);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity var(--t-med) var(--ease-out);
}
.btn-glow:hover::after { opacity: 0.6; }

/* Icon button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--c-ink);
  background: transparent;
  border: 1px solid var(--c-line);
  transition: all var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(232,201,126,0.06);
}

/* Theme toggle: show one icon at a time */
.theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ============================================================
   5. HEADER / TOP NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--c-line);
  transition: background var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}

[data-theme="light"] .site-header {
  background: rgba(245, 244, 239, 0.78);
}

.site-header.is-scrolled {
  background: rgba(13, 13, 13, 0.92);
  border-bottom-color: var(--c-line-strong);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(245, 244, 239, 0.95);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-ink);
}

.brand-mark {
  display: inline-flex;
  color: var(--c-gold);
  filter: drop-shadow(0 0 8px var(--c-gold-glow));
}

.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Primary nav */
.primary-nav {
  display: none;
  align-items: center;
  gap: var(--sp-2);
}

@media (min-width: 1024px) {
  .primary-nav { display: inline-flex; }
}

.nav-link {
  position: relative;
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink-soft);
  transition: all var(--t-fast) var(--ease-out);
}
.nav-link:hover {
  color: var(--c-ink);
  background: var(--c-bg-elev);
}
.nav-link.is-active {
  color: var(--c-gold);
  background: rgba(232, 201, 126, 0.08);
}

/* Right actions */
.nav-actions {
  display: none;
  align-items: center;
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .nav-actions { display: inline-flex; }
}

/* Hamburger */
.menu-toggle {
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--c-line-strong);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: var(--header-h);
  inset-inline: 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line-strong);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  box-shadow: var(--sh-md);
  transform-origin: top center;
  animation: slideDown 240ms var(--ease-out);
}
.mobile-menu.is-closing {
  animation: slideUp 180ms var(--ease-in-out) forwards;
}
@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}
.m-link {
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-ink-soft);
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
}
.m-link:hover, .m-link.is-active {
  color: var(--c-gold);
  background: var(--c-bg-elev);
}
.m-link:active { transform: scale(0.985); }
.m-link-cta {
  margin-top: var(--sp-2);
  background: var(--c-gold);
  color: var(--c-bg) !important;
  text-align: center;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes homeDropdownIn {
  from { opacity: 0; transform: translateY(-6px) scaleY(0.98); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes homeDropdownOut {
  from { opacity: 1; transform: translateY(0) scaleY(1); }
  to   { opacity: 0; transform: translateY(-5px) scaleY(0.98); }
}
@keyframes homeHeroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding-block: var(--sp-5) var(--sp-9);
  overflow: hidden;
  isolation: isolate;
}
.page-home .hero-copy > *,
.page-home .hero-stage {
  opacity: 0;
  animation: homeHeroIn 580ms var(--ease-out) forwards;
}
.page-home .hero-copy .eyebrow { animation-delay: 70ms; }
.page-home .hero-title { animation-delay: 140ms; }
.page-home .hero-lede { animation-delay: 210ms; }
.page-home .hero-search { animation-delay: 280ms; }
.page-home .trust-strip { animation-delay: 350ms; }
.page-home .hero-stage { animation-delay: 260ms; }

@media (min-width: 1024px) {
  .hero { min-height: calc(100vh - var(--header-h)); padding-block: var(--sp-8) var(--sp-7); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -30px) scale(1.08); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(430px, 0.95fr) minmax(460px, 1.05fr);
    gap: clamp(3rem, 5vw, 6rem);
  }
}

/* ===== Hero copy column ===== */
.hero-copy { display: flex; flex-direction: column; gap: var(--sp-5); }

.hero-title-mobile,
.hero-lede-mobile {
  display: none;
}

.hero-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}
.title-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: titleRise 900ms var(--ease-out) forwards;
}
.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.25s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

.title-accent {
  background: linear-gradient(120deg, var(--c-gold) 0%, var(--c-gold-soft) 50%, var(--c-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
}
.title-accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  inset-inline-start: 0;
  width: 100%;
  height: 4px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: right;
  animation: titleUnderline 600ms var(--ease-out) 1.1s forwards;
}

@keyframes titleRise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes titleUnderline {
  to { transform: scaleX(1); }
}

.hero-lede {
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
  max-width: 56ch;
  opacity: 0;
  animation: fadeIn 800ms var(--ease-out) 0.6s forwards;
}
.hero-lede strong {
  color: var(--c-ink);
  font-weight: 700;
}

@media (max-width: 767px) {
  .hero-copy {
    gap: var(--sp-3);
  }

  .hero-title-desktop,
  .hero-lede-desktop {
    display: none;
  }

  .hero-title-mobile {
    display: block;
    font-size: clamp(2.05rem, 11vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .hero-lede-mobile {
    display: block;
    max-width: 26ch;
    font-size: var(--fs-base);
    line-height: 1.65;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    gap: var(--sp-4);
    align-self: center;
  }

  .hero-title {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 0.92;
  }

  .hero-lede {
    display: none;
  }
}

@keyframes fadeIn { to { opacity: 1; } }

/* ===== Hero search ===== */
.hero-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  opacity: 0;
  animation: fadeIn 800ms var(--ease-out) 0.8s forwards;
}
.page-home .hero-search-shell {
  min-height: 418px;
  visibility: hidden;
}
@media (min-width: 640px) {
  .page-home .hero-search-shell { min-height: 290px; }
}
@media (min-width: 1024px) {
  .page-home .hero-search-shell { min-height: 420px; }
}

/* backdrop-filter lives on ::before so it doesn't create a compositing group
   that makes absolutely-positioned picker lists appear transparent */
.hero-search::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

[data-theme="light"] .hero-search::before {
  background: linear-gradient(160deg, #fff, var(--c-bg-elev-2));
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hs-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .hs-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .hs-row { grid-template-columns: 1fr 1fr 1fr auto; }
}

.hs-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.55rem 0.9rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out);
}
.hs-field:hover, .hs-field:focus-within {
  border-color: var(--c-gold);
}
.hs-field:has(.brand-picker-btn[aria-expanded="true"]),
.hs-field:has(.model-picker-btn[aria-expanded="true"]),
.hs-field:has(.year-picker-btn[aria-expanded="true"]) {
  border-color: var(--c-gold);
  border-bottom-color: rgba(232,201,126,0.28);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.hs-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.05em;
}
.hs-field:has(#yearPicker) .hs-label {
  display: none;
}
.hs-field:has(#yearPicker)::before {
  content: 'سنة الموديل';
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.05em;
}
.hs-field select {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-block: 4px;
  width: 100%;
}
.hs-field select option { background: var(--c-bg-elev); color: var(--c-ink); }

.hs-field:has(.brand-picker) select,
.hs-field:has(.model-picker) select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.brand-picker,
.model-picker,
.year-picker {
  position: relative;
  isolation: isolate;
}

.brand-picker-btn,
.model-picker-btn,
.year-picker-btn {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: start;
}

.model-picker-btn,
.year-picker-btn {
  min-height: 42px;
  background: var(--c-bg-elev);
}
.model-picker-btn:disabled {
  cursor: not-allowed;
  color: var(--c-ink-mute);
  opacity: 0.72;
}

.brand-logo {
  width: 48px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--c-gold);
  font-size: 0.62rem;
  font-weight: 900;
  font-family: var(--ff-display);
  letter-spacing: 0;
}
.brand-logo svg {
  width: 32px;
  height: 32px;
  display: block;
}
.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-picker-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-picker-caret,
.model-picker-caret,
.year-picker-caret {
  margin-inline-start: auto;
  color: var(--c-ink-mute);
  font-size: 0.7rem;
}

/* Shared visual styles for all three picker lists */
.brand-picker-list,
.model-picker-list,
.year-picker-list {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: var(--sp-2);
  background:
    linear-gradient(180deg, rgba(232,201,126,0.055), transparent 42%),
    #1c1c1c;
  border: 1px solid var(--c-gold);
  border-top-color: rgba(232,201,126,0.28);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 18px 34px rgba(0,0,0,0.36);
  scrollbar-width: thin;
  scrollbar-color: var(--c-line-strong) transparent;
}

/* Brand picker is NOT portalled — keep absolute positioning */
.brand-picker-list {
  position: absolute;
  z-index: 9999;
  inset-block-start: calc(100% - 1px);
  inset-inline: 0;
}

/* Model and year lists are portalled to <body> via JS — no positional CSS here */
.model-picker-list,
.year-picker-list {
  position: absolute;
  z-index: 9999;
  inset-block-start: calc(100% - 1px);
  inset-inline: 0;
}

.year-picker-list {
  max-height: 220px;
}

[data-theme="light"] .brand-picker-list,
[data-theme="light"] .model-picker-list,
[data-theme="light"] .year-picker-list {
  background: #ffffff;
}

.brand-picker-list::-webkit-scrollbar,
.model-picker-list::-webkit-scrollbar,
.year-picker-list::-webkit-scrollbar {
  width: 6px;
}
.brand-picker-list::-webkit-scrollbar-track,
.model-picker-list::-webkit-scrollbar-track,
.year-picker-list::-webkit-scrollbar-track {
  background: transparent;
}
.brand-picker-list::-webkit-scrollbar-thumb,
.model-picker-list::-webkit-scrollbar-thumb,
.year-picker-list::-webkit-scrollbar-thumb {
  background: var(--c-line-strong);
  border-radius: var(--r-pill);
}

.brand-option,
.model-option,
.year-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.55rem 0.6rem;
  border-radius: var(--r-sm);
  color: var(--c-ink-soft);
  text-align: start;
}

.brand-option:hover,
.brand-option.is-selected,
.model-option:hover,
.model-option.is-selected,
.year-option:hover,
.year-option.is-selected {
  background: rgba(232,201,126,0.10);
  color: var(--c-ink);
}
.model-option.is-model-child {
  padding-inline-start: 1.35rem;
  color: var(--c-ink-mute);
}
.model-option.is-model-child::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--c-gold);
  opacity: 0.75;
}

.model-picker-name,
.year-picker-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-option,
.year-option {
  min-height: 44px;
  justify-content: flex-start;
  font-size: var(--fs-sm);
  font-weight: 800;
}

.year-option {
  justify-content: space-between;
}

.year-option::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  opacity: 0.55;
}

.year-option.is-selected::after {
  background: var(--c-gold);
  border-color: var(--c-gold);
  box-shadow: inset 0 0 0 3px #1c1c1c;
  opacity: 1;
}
.year-picker-submit {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 44px;
  margin-top: var(--sp-2);
  padding: 0.65rem 1rem;
  color: #111;
  background: var(--c-gold);
  border-radius: var(--r-sm);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 -10px 22px rgba(28,28,28,0.82);
}

.brand-option-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-option-ar {
  font-size: var(--fs-sm);
  font-weight: 800;
}

.brand-option-en {
  font-size: 0.7rem;
  color: var(--c-ink-mute);
  font-weight: 700;
}

.hs-submit { min-height: 56px; }

.hs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-ink-soft);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  transition: all var(--t-fast) var(--ease-out);
}
.chip:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
  transform: translateY(-1px);
}

/* Desktop rebuild: keep the phone-style stacked hero search instead of the
   cramped four-column toolbar. */
.hero-search {
  z-index: 20;
}
.hs-field {
  position: relative;
  min-height: 68px;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  z-index: 1;
}
.hs-field:hover,
.hs-field:focus-within {
  z-index: 60;
}
.hs-field:has(#yearPicker)::before {
  content: 'سنة الموديل';
}
.brand-picker,
.model-picker,
.year-picker {
  min-width: 0;
}
.brand-picker-btn,
.model-picker-btn,
.year-picker-btn {
  min-height: 38px;
}
.model-picker-btn,
.year-picker-btn {
  background: transparent;
}
.brand-picker-list {
  z-index: 9999;
}
@media (min-width: 1024px) {
  .hero-copy {
    width: min(100%, 540px);
    justify-self: start;
  }

  .hero-search {
    width: min(100%, 520px);
    padding: var(--sp-4);
    border-radius: var(--r-xl);
  }
  .hs-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .hs-field {
    min-height: 68px;
    padding: 0.65rem 0.9rem;
  }
  .hs-submit {
    width: 100%;
    min-height: 56px;
  }
  .hs-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hs-chips .chip {
    justify-content: center;
    min-height: 38px;
  }
}
.hs-field:has(#yearPicker)::before {
  content: '\0633\0646\0629 \0627\0644\0645\0648\062F\064A\0644';
}

/* Hero search v2: self-contained dropdowns, no portalling, no scroll-follow JS. */
.hero-search-v2 {
  overflow: visible;
}
.hero-search-v2 .hs2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.hero-search-v2 .hs2-field {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.7rem 0.95rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease-out),
              border-radius var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  z-index: 1;
}
.hero-search-v2 .hs2-field:hover,
.hero-search-v2 .hs2-field:focus-within,
.hero-search-v2 .hs2-field.is-open {
  border-color: var(--c-gold);
}
.hero-search-v2 .hs2-field.is-open {
  border-bottom-color: rgba(232,201,126,0.28);
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  z-index: 100;
}
.hero-search-v2 .hs2-label {
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.hero-search-v2 .hs2-trigger {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--c-ink);
  text-align: start;
  font: inherit;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}
.hero-search-v2 .hs2-trigger:focus-visible,
.hero-search-v2 .hs2-option:focus-visible,
.hero-search-v2 .chip:focus-visible {
  outline: 2px solid rgba(232, 201, 126, 0.85);
  outline-offset: 3px;
}
.hero-search-v2 .hs2-trigger:disabled {
  color: var(--c-ink-mute);
  cursor: not-allowed;
  opacity: 0.7;
}
.hero-search-v2 .hs2-value {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-search-v2 .hs2-logo {
  width: 48px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-search-v2 .hs2-logo img,
.hero-search-v2 .hs2-logo svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.hero-search-v2 .hs2-caret {
  color: var(--c-ink-mute);
  font-size: 0.72rem;
  transition: transform var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.hero-search-v2 .hs2-trigger[aria-expanded="true"] .hs2-caret {
  color: var(--c-gold);
  transform: rotate(180deg);
}
.hero-search-v2 .hs2-menu {
  position: absolute;
  z-index: 1000;
  inset-block-start: calc(100% - 1px);
  inset-inline: -1px;
  max-height: min(320px, 52vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-2);
  background: #1c1c1c;
  border: 1px solid var(--c-gold);
  border-top-color: rgba(232,201,126,0.28);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: 0 18px 34px rgba(0,0,0,0.36);
  scrollbar-width: thin;
  scrollbar-color: rgba(232,201,126,0.45) transparent;
  transform-origin: top center;
  animation: homeDropdownIn 180ms var(--ease-out);
  will-change: opacity, transform;
}
.hero-search-v2 .hs2-menu.is-closing {
  animation: homeDropdownOut 150ms var(--ease-in-out) forwards;
}
.hero-search-v2 .hs2-menu::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.hero-search-v2 .hs2-menu::-webkit-scrollbar-track {
  background: transparent;
}
.hero-search-v2 .hs2-menu::-webkit-scrollbar-thumb {
  background: rgba(232,201,126,0.45);
  border-radius: var(--r-pill);
}
[data-theme="light"] .hero-search-v2 .hs2-menu {
  background: #fff;
}
.hero-search-v2 .hs2-option {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.55rem 0.65rem;
  border-radius: var(--r-sm);
  color: var(--c-ink-soft);
  text-align: start;
  font: inherit;
  font-weight: 800;
  transition: background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.hero-search-v2 .hs2-menu-years .hs2-option {
  justify-content: space-between;
}
.hero-search-v2 .hs2-menu-years .hs2-option::after {
  content: '\2713';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-inline-start: var(--sp-3);
  border: 1px solid rgba(232,201,126,0.55);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}
.hero-search-v2 .hs2-menu-years .hs2-option.is-selected::after {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #111;
}
.hero-search-v2 .hs2-option:hover,
.hero-search-v2 .hs2-option.is-selected {
  color: var(--c-ink);
  background: rgba(232,201,126,0.10);
}
.hero-search-v2 .hs2-option.is-model-child {
  padding-inline-start: 1.1rem;
  color: var(--c-ink-mute);
}
.hero-search-v2 .hs2-option.is-model-child::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--c-gold);
  opacity: 0.75;
}
.hero-search-v2 .hs2-option:active {
  transform: scale(0.985);
}
.hero-search-v2 .hs2-option span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.2;
}
.hero-search-v2 .hs2-option small {
  color: var(--c-ink-mute);
  font-size: 0.7rem;
}
.hero-search-v2 .hs2-menu-submit {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 46px;
  margin-top: var(--sp-2);
  padding: 0.7rem 1rem;
  color: #111;
  background: var(--c-gold);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 -10px 22px rgba(28,28,28,0.82);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.hero-search-v2 .hs2-menu-submit:hover {
  background: var(--c-gold-soft);
}
.hero-search-v2 .hs2-menu-submit:active {
  transform: scale(0.985);
}
.hero-search-v2 .hs2-submit {
  width: 100%;
  min-height: 58px;
}
.hero-search-v2 .hs-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hero-search-v2 .chip {
  justify-content: center;
  min-height: 38px;
  text-align: center;
  transition: transform var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.hero-search-v2 .chip:active {
  transform: scale(0.98);
}
@media (min-width: 640px) {
  .hero-search-v2 .hs2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-search-v2 .hs2-submit {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .hero-search-v2 .hs2-grid {
    grid-template-columns: 1fr;
  }
  .hero-search-v2 .hs2-submit {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(440px, 520px) minmax(440px, 520px);
    grid-template-areas:
      "copy copy"
      "stage search";
    justify-content: center;
    align-items: start;
    column-gap: clamp(1.5rem, 3vw, 3rem);
    row-gap: var(--sp-4);
  }

  .hero-copy {
    grid-area: copy;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, auto);
    grid-template-areas:
      "eyebrow title"
      "lede title";
    align-items: start;
    column-gap: var(--sp-5);
    row-gap: var(--sp-2);
  }

  .hero-copy .eyebrow {
    grid-area: eyebrow;
    justify-self: start;
  }

  .hero-title {
    grid-area: title;
    justify-self: end;
  }

  .hero-lede {
    grid-area: lede;
    display: block;
    max-width: 38ch;
    margin: 0;
    font-size: var(--fs-sm);
    line-height: 1.75;
    text-align: start;
  }

  .hero-search {
    grid-area: search;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    min-height: 360px;
  }

  .trust-strip {
    grid-area: trust;
  }

  .hero-stage {
    grid-area: stage;
    width: 100%;
    aspect-ratio: auto;
    min-height: 360px;
    justify-self: stretch;
    align-self: stretch;
  }

  .car3d {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 360px;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(440px, 520px) minmax(440px, 520px);
    grid-template-areas:
      "eyebrow lede"
      "title lede"
      "search stage"
      "trust trust";
    align-items: start;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .eyebrow {
    grid-area: eyebrow;
    justify-self: start;
    align-self: end;
  }

  .hero-title {
    grid-area: title;
    justify-self: start;
    align-self: start;
  }

  .hero-lede {
    grid-area: lede;
    align-self: center;
    justify-self: end;
    max-width: 38ch;
  }

  .hero-search,
  .hero-stage {
    width: 100%;
    min-height: 420px;
    align-self: start;
  }

  .hero-search {
    grid-area: search;
  }

  .hero-stage {
    grid-area: stage;
    aspect-ratio: auto;
  }

  .car3d {
    height: 420px;
    min-height: 420px;
  }

  .trust-strip {
    grid-area: trust;
    width: min(100%, 720px);
    justify-self: end;
  }
}

/* ===== Trust strip ===== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
  opacity: 0;
  animation: fadeIn 800ms var(--ease-out) 1s forwards;
}
.trust-strip li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trust-strip strong {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1;
}
.trust-strip span {
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  font-weight: 600;
}

@media (min-width: 768px) {
  .trust-strip strong { font-size: var(--fs-2xl); }
  .trust-strip span   { font-size: var(--fs-sm); }
}

/* ============================================================
   7. HERO 3D STAGE
   ============================================================ */
.hero-stage {
  position: relative;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  aspect-ratio: 5 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1000ms var(--ease-out) 0.5s forwards;
}

.stage-shadow {
  position: absolute;
  inset-inline: 10%;
  bottom: 6%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(8px);
  z-index: 0;
}

.car3d {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,201,126,0.10), transparent 60%),
    linear-gradient(160deg, var(--c-bg-elev) 0%, var(--c-bg-soft) 100%);
  border: 1px solid var(--c-line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    var(--sh-lg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform 240ms var(--ease-out);
  cursor: grab;
  outline: none;
  z-index: 1;
}
.car3d:active { cursor: grabbing; }

/* Glowing rim */
.car3d-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(232,201,126,0.6) 0%,
    transparent 30%,
    transparent 70%,
    rgba(232,201,126,0.6) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.car3d-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8% 6% 6%;
  transform: translateZ(40px);
}
.car3d-art svg { width: 100%; height: auto; }
.car3d-art img {
  width: 100%;
  height: 100%;
  max-height: 82%;
  object-fit: contain;
  border-radius: var(--r-xl);
  filter: drop-shadow(0 24px 34px rgba(0,0,0,0.55));
}

/* Floating spec chips (anchored to corners with translateZ for parallax depth) */
.spec-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.55rem 0.85rem;
  background: rgba(13,13,13,0.86);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
  white-space: nowrap;
  transform: translateZ(60px);
}
[data-theme="light"] .spec-chip {
  background: rgba(255,255,255,0.92);
}

.spec-chip-tl { top:  6%;   inset-inline-start:  4%;  }
.spec-chip-tr { top:  6%;   inset-inline-end:    4%;  }
.spec-chip-bl { bottom: 22%; inset-inline-start: 6%;  }
.spec-chip-br { bottom: 22%; inset-inline-end:   6%;  }

.sc-icon { color: var(--c-gold); font-size: 1rem; }
.sc-value {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-gold);
}
.sc-label { color: var(--c-ink-soft); font-weight: 600; font-size: 0.7rem; }
.spec-chip-bl, .spec-chip-br {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0.55rem 0.95rem;
}

/* Price tag — bottom center */
.car3d-price {
  position: absolute;
  bottom: 4%;
  inset-inline-start: 50%;
  transform: translateX(50%) translateZ(80px); /* RTL: visual centering via 50% positive shift */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0.7rem 1.4rem;
  background: linear-gradient(160deg, var(--c-gold) 0%, var(--c-gold-deep) 100%);
  color: var(--c-bg);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 36px var(--c-gold-glow), inset 0 1px 0 rgba(255,255,255,0.4);
}
.cp-currency {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.cp-amount {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-lg);
  line-height: 1;
}

@media (min-width: 768px) {
  .cp-amount { font-size: var(--fs-xl); }
}

/* Hide some chips on very small screens to avoid overlap */
@media (max-width: 480px) {
  .spec-chip-bl, .spec-chip-br { display: none; }
}

/* ===== Scroll indicator ===== */
.scroll-indicator {
  position: absolute;
  bottom: var(--sp-5);
  inset-inline-start: 50%;
  transform: translateX(50%); /* RTL */
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .scroll-indicator { display: inline-flex; }
}
.scroll-indicator:hover { color: var(--c-gold); }

.si-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.si-wheel {
  position: absolute;
  top: 6px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 3px;
  height: 6px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheel 1.6s var(--ease-in-out) infinite;
}
@keyframes scrollWheel {
  0%   { transform: translate(50%, 0); opacity: 1; }
  100% { transform: translate(50%, 12px); opacity: 0; }
}

/* ============================================================
   8. SEARCH BY MAKE
   ============================================================ */
.make-search-section {
  position: relative;
  padding-block: var(--sp-8);
  background: transparent;
  overflow: hidden;
}
.make-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.make-search-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-top: var(--sp-2);
  max-width: 22ch;
}
.make-search-all {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-gold);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.make-search-all:hover { color: var(--c-gold-soft); }
.make-search-rail {
  --make-card-w: 148px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--make-card-w);
  gap: var(--sp-3);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: var(--sp-2);
  padding: var(--sp-1) var(--sp-1) var(--sp-3);
  margin-inline: calc(var(--sp-1) * -1);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.make-search-rail::-webkit-scrollbar { height: 8px; }
.make-search-rail::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}
.make-search-rail::-webkit-scrollbar-thumb {
  background: rgba(232,201,126,0.42);
  border-radius: 999px;
}
.make-card {
  min-height: 156px;
  display: grid;
  grid-template-rows: 70px auto auto;
  align-items: center;
  justify-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-bg-elev);
  color: var(--c-ink);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.make-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-gold);
  box-shadow: var(--sh-md);
  background: var(--c-bg-elev);
}
.make-card-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.make-card-logo img,
.make-card-logo svg {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.make-card-name {
  max-width: 100%;
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-base);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.make-card-count {
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 700;
}

@media (max-width: 640px) {
  .make-search-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--sp-2);
  }
  .make-search-rail {
    --make-card-w: 124px;
    gap: var(--sp-2);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .make-search-rail::-webkit-scrollbar {
    display: none;
  }
  .make-card {
    min-height: 138px;
    grid-template-rows: 58px auto auto;
    padding: var(--sp-3) var(--sp-2);
  }
  .make-card-logo {
    width: 54px;
    height: 54px;
  }
  .make-card-logo img,
  .make-card-logo svg {
    width: 38px;
    height: 38px;
  }
}
@media (min-width: 1024px) {
  .make-search-section { padding-block: var(--sp-9); }
}

/* ============================================================
   9. SECTIONS (shared)
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--sp-8);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.section.is-revealed { opacity: 1; transform: translateY(0); }

@media (min-width: 1024px) {
  .section { padding-block: var(--sp-9); }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-top: var(--sp-2);
  max-width: 22ch;
}
.section-head-center .section-title { max-width: 28ch; }

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-gold);
}
.section-cta:hover { color: var(--c-gold-soft); }
.section-cta:hover svg { transform: translateX(-4px); }
.section-cta svg { transition: transform var(--t-fast) var(--ease-out); }

/* ============================================================
   10. CATEGORIES
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (max-width: 639px) {
  .cat-grid {
    grid-auto-flow: column;
    grid-auto-columns: 124px;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sp-4);
    padding: 2px var(--sp-1) var(--sp-2);
    margin-inline: calc(var(--sp-1) * -1);
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .cat-grid::-webkit-scrollbar {
    display: none;
  }
  .cat-card {
    min-height: 132px;
    padding: var(--sp-3) var(--sp-2);
    scroll-snap-align: start;
  }
  .cat-icon {
    width: 48px;
    height: 32px;
  }
  .cat-name {
    font-size: var(--fs-sm);
  }
  .cat-count {
    min-height: 1.2em;
    font-size: 0.68rem;
    line-height: 1.2;
  }
}
@media (min-width: 640px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-5) var(--sp-3);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all var(--t-med) var(--ease-out);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.cat-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.cat-card:nth-child(2).is-revealed { transition-delay: 60ms; }
.cat-card:nth-child(3).is-revealed { transition-delay: 120ms; }
.cat-card:nth-child(4).is-revealed { transition-delay: 180ms; }
.cat-card:nth-child(5).is-revealed { transition-delay: 240ms; }
.cat-card:nth-child(6).is-revealed { transition-delay: 300ms; }

.cat-card:hover {
  border-color: var(--c-gold);
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.cat-card:hover .cat-icon { color: var(--c-gold); transform: scale(1.05); }

.cat-icon {
  width: 56px;
  height: 36px;
  color: var(--c-ink-soft);
  transition: all var(--t-med) var(--ease-out);
}
.cat-icon svg { width: 100%; height: 100%; }
.cat-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.cat-count {
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  font-weight: 600;
}
.cat-card-feature {
  background: linear-gradient(160deg, rgba(232,201,126,0.18), rgba(232,201,126,0.05));
  border-color: var(--c-gold);
}
.cat-card-feature .cat-icon { color: var(--c-gold); }
.cat-card-feature .cat-count { color: var(--c-gold); }

/* ============================================================
   11. FEATURED LISTINGS GRID
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px)  { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }

/* Listing card (also used on listings.html) */
.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
  isolation: isolate;
}

@media (hover: hover) {
  .listing-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-gold);
    box-shadow: var(--sh-lg);
  }
}

@media (hover: hover) and (min-width: 1024px) {
  .listing-card { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; perspective: 1000px; }
  .listing-card:hover { transform: translateY(-6px) rotateX(2deg) rotateY(-2deg); }
}

.lc-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
}
.lc-photo-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-2xl);
  color: rgba(245,244,239,0.08);
  letter-spacing: -0.02em;
}
.lc-photo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lc-photo svg.lc-illus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
  transition: transform var(--t-med) var(--ease-out);
}
@media (hover: hover) {
  .listing-card:hover .lc-illus { transform: scale(1.04); }
}

.lc-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-med) var(--ease-out),
              opacity 260ms var(--ease-out);
}
.page-home .lc-photo-img:not(.is-loaded) { opacity: 0; }
.page-home .lc-photo-img.is-loaded { opacity: 1; }
@media (hover: hover) {
  .listing-card:hover .lc-photo-img { transform: scale(1.04); }
}

.lc-photo-gallery {
  z-index: 2;
  cursor: pointer;
  touch-action: pan-y;
}
.lc-photo-track {
  position: absolute;
  inset: 0;
  display: grid;
  direction: ltr;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 260ms var(--ease-out);
  will-change: transform;
}
.lc-photo-track::-webkit-scrollbar {
  display: none;
}
.lc-photo-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  direction: rtl;
  background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
}
.lc-photo-slide-lazy {
  display: grid;
  place-items: center;
  color: var(--c-ink-dim);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.lc-photo-slide .lc-photo-img,
.lc-photo-slide .lc-photo-fallback {
  pointer-events: none;
}
.lc-photo-dots {
  position: absolute;
  inset-inline: 0;
  bottom: var(--sp-2);
  z-index: 3;
  display: flex;
  direction: ltr;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.lc-photo-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(245,244,239,0.42);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: width var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.lc-photo-dots span.is-active {
  width: 16px;
  background: var(--c-gold);
}
/* Source logo footer — shown at the bottom of each imported listing card */
.lc-source-footer {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  align-items: center;
  padding: var(--sp-2) 0 0;
  border-top: 1px solid var(--c-line);
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.lc-source-logo {
  display: block;
  height: 14px;
  width: auto;
  opacity: 0.75;
  transition: opacity var(--t-fast) var(--ease-out);
}
@media (hover: hover) {
  .listing-card:hover .lc-source-logo { opacity: 1; }
}

.page-home .featured-grid .listing-card {
  opacity: 0;
  transform: translateY(18px);
}
.page-home .featured-grid .listing-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms var(--ease-out),
              transform 520ms var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
.page-home .featured-grid .listing-card.is-revealed:nth-child(2) { transition-delay: 55ms; }
.page-home .featured-grid .listing-card.is-revealed:nth-child(3) { transition-delay: 110ms; }
.page-home .featured-grid .listing-card.is-revealed:nth-child(4) { transition-delay: 165ms; }
.page-home .featured-grid .listing-card.is-revealed:nth-child(5) { transition-delay: 220ms; }
.page-home .featured-grid .listing-card.is-revealed:nth-child(6) { transition-delay: 275ms; }
@media (max-width: 767px) {
  .page-home .featured-grid {
    gap: 8px;
  }
  .page-home .featured-grid .listing-card {
    flex-direction: row;
    min-height: 118px;
    border-radius: var(--r-md);
  }
  .page-home .featured-grid .lc-photo {
    width: 38%;
    min-width: 126px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .page-home .featured-grid .lc-body {
    min-width: 0;
    gap: 6px;
    padding: 9px 10px;
  }
  .page-home .featured-grid .lc-trim {
    font-size: 0.68rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-home .featured-grid .lc-title {
    font-size: 0.94rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-home .featured-grid .lc-specs {
    gap: 4px 8px;
    font-size: 0.68rem;
    line-height: 1.2;
  }
  .page-home .featured-grid .lc-spec svg {
    width: 12px;
    height: 12px;
  }
  .page-home .featured-grid .lc-meta {
    padding-top: 6px;
  }
  .page-home .featured-grid .lc-price-amount {
    font-size: 1rem;
  }
  .page-home .featured-grid .lc-price-currency,
  .page-home .featured-grid .lc-location {
    font-size: 0.62rem;
  }
  .page-home .featured-grid .lc-badges {
    top: 6px;
    inset-inline-start: 6px;
    gap: 4px;
  }
  .page-home .featured-grid .lc-badge {
    padding: 0.18rem 0.42rem;
    font-size: 0.58rem;
  }
  .page-home .featured-grid .lc-fav {
    top: 6px;
    inset-inline-end: 6px;
    width: 28px;
    height: 28px;
  }
  .page-home .featured-grid .lc-fav svg {
    width: 15px;
    height: 15px;
  }
}
@media (hover: hover) {
  .page-home .featured-grid .listing-card.is-revealed:hover {
    transform: translateY(-4px);
  }
}
@media (hover: hover) and (min-width: 1024px) {
  .page-home .featured-grid .listing-card.is-revealed:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  }
}

/* Dark mode: add a faint light pill so dark-text SVG logos stay readable */
[data-theme="dark"] .lc-source-logo {
  background: rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 0px 0px;
  height: 28px;
  width: auto;
  max-width: 98px;
}

/* ── Motorgy  (red #DF1F26) ── */
.lc-source-motorgy {
  border-left: 3px solid rgba(223,31,38,0.55);
  border-bottom: 3px solid rgba(223,31,38,0.55);
}
.lc-source-motorgy .lc-photo {
  background: linear-gradient(135deg, #2a1010, #120808);
}
.lc-source-motorgy:hover {
  border-color: #DF1F26;
  box-shadow: 0 12px 32px rgba(223,31,38,0.22);
}
.lc-source-motorgy .lc-source-footer { border-top-color: rgba(223,31,38,0.25); }

/* ── OpenSooq  (green #90C145) ── */
.lc-source-opensooq {
  border-left: 3px solid rgba(144,193,69,0.55);
  border-bottom: 3px solid rgba(144,193,69,0.55);
}
.lc-source-opensooq .lc-photo {
  background: linear-gradient(135deg, #162208, #0c1705);
}
.lc-source-opensooq:hover {
  border-color: #90C145;
  box-shadow: 0 12px 32px rgba(144,193,69,0.2);
}
.lc-source-opensooq .lc-source-footer { border-top-color: rgba(144,193,69,0.25); }

/* ── YallaMotor  (blue #124D98) ── */
.lc-source-yallamotor {
  border-left: 3px solid rgba(18,77,152,0.65);
  border-bottom: 3px solid rgba(18,77,152,0.65);
}
.lc-source-yallamotor .lc-photo {
  background: linear-gradient(135deg, #091525, #05101c);
}
.lc-source-yallamotor:hover {
  border-color: #124D98;
  box-shadow: 0 12px 32px rgba(18,77,152,0.25);
}
.lc-source-yallamotor .lc-source-footer { border-top-color: rgba(18,77,152,0.25); }

.lc-badges {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  z-index: 2;
}
.lc-badge-source {
  border-color: rgba(232,201,126,0.7);
  color: var(--c-gold);
  background: rgba(13,13,13,0.78);
}
.lc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(13,13,13,0.85);
  color: var(--c-ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--c-line-strong);
}
.lc-badge-gold {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}
.lc-badge-new {
  background: var(--c-green);
  color: var(--c-bg);
  border-color: var(--c-green);
}
.lc-badge-silent {
  background: rgba(13,13,13,0.85);
  color: var(--c-gold);
  border-color: var(--c-gold);
}

.lc-fav {
  position: absolute;
  top: var(--sp-2);
  inset-inline-end: var(--sp-2);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13,13,13,0.7);
  color: var(--c-ink-soft);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--c-line-strong);
  z-index: 2;
  transition: all var(--t-fast) var(--ease-out);
}
.lc-fav svg {
  width: 17px;
  height: 17px;
}
@media (hover: hover) {
  .lc-fav:hover { color: var(--c-red-soft); border-color: var(--c-red-soft); }
}
.lc-fav.is-fav { color: var(--c-red-soft); border-color: var(--c-red-soft); }
.lc-fav.is-fav svg { fill: currentColor; }

.lc-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  flex: 1;
}

.lc-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  line-height: 1.2;
  color: var(--c-ink);
}
.lc-trim {
  font-size: var(--fs-xs);
  color: var(--c-gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lc-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  font-weight: 600;
}
.lc-spec { display: inline-flex; align-items: center; gap: 4px; }
.lc-spec svg { width: 14px; height: 14px; color: var(--c-gold); }

.lc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}
.lc-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lc-price-amount {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-lg);
  color: var(--c-gold);
  line-height: 1;
}
.lc-price-currency {
  font-size: 0.65rem;
  color: var(--c-ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.lc-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  font-weight: 600;
}
.lc-location svg { width: 12px; height: 12px; color: var(--c-gold); }

/* Make full card clickable via overlay */
.lc-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.listing-preview-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: 0.45rem var(--sp-4);
  background: rgba(18,18,18,0.96);
  border-bottom: 1px solid var(--c-gold);
  box-shadow: var(--sh-md);
}
body.is-listing-preview {
  padding-top: 94px;
}
.listing-preview-bar strong {
  display: block;
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
}
.listing-preview-bar span {
  display: block;
  color: var(--c-ink-soft);
  font-size: 0.72rem;
}
.lpb-actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.lpb-actions .btn {
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  font-size: var(--fs-xs);
}
@media (min-width: 760px) {
  body.is-listing-preview {
    padding-top: 92px;
  }
  .listing-preview-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    inset-inline: 24px;
    max-width: min(1180px, calc(100vw - 48px));
    margin: var(--sp-3) auto 0;
    padding: var(--sp-3) var(--sp-5);
    border: 1px solid rgba(232,201,126,0.42);
    border-radius: var(--r-xl);
    background:
      linear-gradient(145deg, rgba(232,201,126,0.16), rgba(255,255,255,0.045)),
      rgba(18,18,18,0.94);
    box-shadow: 0 22px 70px rgba(0,0,0,0.44), 0 0 0 1px rgba(255,255,255,0.05) inset;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .listing-preview-bar strong {
    font-size: var(--fs-md);
  }
  .listing-preview-bar span {
    max-width: 58ch;
    font-size: var(--fs-sm);
  }
  .lpb-actions {
    flex-wrap: nowrap;
    gap: var(--sp-2);
  }
  .lpb-actions .btn {
    min-height: 38px;
    padding-inline: var(--sp-4);
    white-space: nowrap;
  }
}
@media (max-width: 420px) {
  body.is-listing-preview {
    padding-top: 126px;
  }
}

.gm-photo,
.gt-photo,
.gt-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gm-photo {
  position: absolute;
  inset: 0;
  background: var(--c-bg-elev);
}
.gm-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gt-fallback {
  position: absolute;
  inset: 0;
}
.gallery-main.has-photo .gm-watermark {
  display: none;
}
.gallery-main.has-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.64));
  pointer-events: none;
}
body.gallery-expanded-open {
  overflow: hidden;
}
.gallery.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  gap: var(--sp-3);
  background: #000;
}
.gallery.is-expanded .gallery-main {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  background: #000 !important;
  border: 0;
  border-radius: 0;
  cursor: default;
}
.gallery.is-expanded .gm-photo {
  object-fit: contain;
  background: #000;
}
.gallery.is-expanded .gallery-main::after {
  display: none;
}
.gallery.is-expanded .gallery-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-block: var(--sp-1);
}
.gallery.is-expanded .gt-thumb {
  flex: 0 0 clamp(88px, 14vw, 150px);
}
.gallery-close {
  position: absolute;
  top: var(--sp-3);
  inset-inline-start: var(--sp-3);
  z-index: 4;
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.66);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.gallery-close svg {
  display: block;
  pointer-events: none;
}
.gallery.is-expanded .gallery-close {
  display: inline-flex;
}
@media (hover: hover) {
  .gallery-close:hover {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-bg);
    transform: scale(1.04);
  }
}
.gallery.is-expanded .gallery-counter {
  inset-inline-end: var(--sp-3);
}
.gallery:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  gap: var(--sp-3);
  background: #000;
}
.gallery:fullscreen .gallery-main {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  background: #000 !important;
  border: 0;
  border-radius: 0;
}
.gallery:fullscreen .gm-photo {
  object-fit: contain;
  background: #000;
}
.gallery:fullscreen .gallery-main::after {
  display: none;
}
.gallery:fullscreen .gallery-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-block: var(--sp-1);
}
.gallery:fullscreen .gt-thumb {
  flex: 0 0 clamp(88px, 14vw, 150px);
}
.gt-thumb {
  overflow: hidden;
}
.gt-photo {
  position: absolute;
  inset: 0;
}

/* ============================================================
   12. THE MOTOR DIFFERENCE (3-up)
   ============================================================ */
.section-difference {
  position: relative;
  background: var(--c-bg-soft);
  overflow: hidden;
}
.diff-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--c-gold-glow), transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 768px)  { .diff-grid { grid-template-columns: repeat(3, 1fr); } }

.diff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
.diff-card.is-revealed { opacity: 1; transform: translateY(0); }
.diff-card:nth-child(2).is-revealed { transition-delay: 100ms; }
.diff-card:nth-child(3).is-revealed { transition-delay: 200ms; }

.diff-card:hover { border-color: var(--c-gold); }

.diff-card-featured {
  background: linear-gradient(160deg, rgba(232,201,126,0.12), rgba(232,201,126,0.02));
  border-color: var(--c-gold);
}

.diff-num {
  position: absolute;
  top: var(--sp-3);
  inset-inline-end: var(--sp-4);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-2xl);
  color: var(--c-line-strong);
  line-height: 1;
}

.diff-icon { color: var(--c-gold); }

.diff-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-ink);
}
.diff-text {
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.diff-link {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-gold);
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease-out);
}
.diff-link:hover { border-bottom-color: var(--c-gold); }

/* ============================================================
   13. HOW IT WORKS (4 steps)
   ============================================================ */
.how-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
@media (min-width: 640px)  { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); } }

.how-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.how-step.is-revealed { opacity: 1; transform: translateY(0); }
.how-step:nth-child(2).is-revealed { transition-delay: 80ms; }
.how-step:nth-child(3).is-revealed { transition-delay: 160ms; }
.how-step:nth-child(4).is-revealed { transition-delay: 240ms; }

.how-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-3xl);
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.how-step h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.how-step p {
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
}

/* ============================================================
   14. BIG CTA
   ============================================================ */
.cta-card {
  position: relative;
  padding: var(--sp-7) var(--sp-5);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid var(--c-gold);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 768px) {
  .cta-card { padding: var(--sp-9) var(--sp-7); }
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, var(--c-gold-glow), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(108, 92, 231, 0.2), transparent 50%);
  z-index: -1;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: flex-start;
  max-width: 56ch;
}
.cta-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
}
.cta-lede { color: var(--c-ink-soft); font-size: var(--fs-md); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-2); }

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-line);
  padding-top: var(--sp-7);
  margin-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--sp-7); } }

.footer-brand { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-tag {
  font-family: var(--ff-display);
  font-weight: 800;
  color: var(--c-gold);
  font-size: var(--fs-md);
}
.footer-text { color: var(--c-ink-soft); font-size: var(--fs-sm); max-width: 40ch; }

.footer-col h4 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  color: var(--c-ink);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  transition: color var(--t-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--c-gold); }

.footer-bottom {
  border-top: 1px solid var(--c-line);
  padding-block: var(--sp-4);
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}
.footer-made { color: var(--c-gold); font-weight: 700; }

@media (max-width: 639px) {
  .site-footer {
    padding-top: var(--sp-4);
    margin-top: var(--sp-5);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3) var(--sp-4);
    padding-bottom: var(--sp-3);
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: var(--sp-2);
  }

  .footer-tag {
    font-size: var(--fs-sm);
  }

  .footer-text {
    font-size: var(--fs-xs);
    line-height: 1.55;
  }

  .footer-col h4 {
    margin-bottom: 0.45rem;
    font-size: var(--fs-xs);
  }

  .footer-col ul {
    gap: 0.35rem;
  }

  .footer-col a {
    font-size: var(--fs-xs);
  }

  .footer-bottom {
    padding-block: var(--sp-2);
  }

  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--sp-2);
    text-align: start;
  }
}

/* ============================================================
   16. MOBILE BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  height: var(--bottom-nav-h);
  padding: 0 var(--sp-2);
  background: rgba(13,13,13,0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-line-strong);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) var(--ease-out);
  will-change: transform;
}
[data-theme="light"] .bottom-nav {
  background: rgba(245,244,239,0.96);
}
body.keyboard-open .bottom-nav {
  transform: translateY(calc(100% + env(safe-area-inset-bottom)));
  opacity: 0;
  pointer-events: none;
}

.listing-detail-overlay-open {
  position: fixed;
  inset-inline: 0;
  top: var(--listing-detail-scroll-y, 0);
  width: 100%;
  overflow: hidden;
}
.listing-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: var(--c-bg);
}
.listing-detail-overlay[hidden] {
  display: none !important;
}
.listing-detail-overlay-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--c-bg);
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--c-ink-mute);
  transition: color var(--t-fast) var(--ease-out);
  min-height: 44px;
}
.bn-item svg { width: 22px; height: 22px; }
.bn-item.is-active { color: var(--c-gold); }
.bn-item:hover { color: var(--c-ink); }

.bn-item-cta {
  position: relative;
  color: var(--c-ink) !important;
}
.bn-cta-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-bg);
  margin-top: -16px;
  box-shadow: 0 8px 24px var(--c-gold-glow);
}
.bn-cta-circle svg { width: 22px; height: 22px; }

/* ============================================================
   17. LISTINGS PAGE
   ============================================================ */

/* Visually hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Page hero ===== */
.listings-hero {
  position: relative;
  padding-block: var(--sp-7) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232,201,126,0.08), transparent 60%),
    var(--c-bg);
}

.lh-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .lh-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--sp-6); }
}

.lh-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  margin-top: var(--sp-2);
}

.lh-sub {
  margin-top: var(--sp-2);
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.lh-sub strong { color: var(--c-gold); font-weight: 800; }

/* Top inline search */
.lh-search {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.lh-search-icon {
  position: absolute;
  inset-inline-end: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-gold);
  pointer-events: none;
}
.lh-search input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.1rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  color: var(--c-ink);
  font-size: var(--fs-base);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px transparent;
  transition:
    border-color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}
.lh-search input::placeholder { color: var(--c-ink-mute); }
.lh-search input:focus {
  border-color: var(--c-gold);
  background: var(--c-bg-elev-2);
  box-shadow: 0 0 0 4px rgba(232,201,126,0.12);
}

/* Quick chip rail (horizontal scroll on mobile) */
.chip-rail {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-block: var(--sp-4) var(--sp-2);
  margin-top: var(--sp-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.chip-rail::-webkit-scrollbar { display: none; }
.chip-rail .chip { flex-shrink: 0; }
.chip-rail .new-search-chip {
  order: 99;
  margin-inline-start: auto;
  background: var(--c-bg-elev);
  border-color: var(--c-gold);
  color: var(--c-gold);
  font-weight: 800;
  text-decoration: none;
}
.chip-rail .new-search-chip:hover {
  background: var(--c-gold);
  color: var(--c-bg);
}
.chip-rail .chip.is-active {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}
@media (max-width: 639px) {
  .chip-rail {
    overflow: visible;
  }
  .chip-rail .chip:not(.new-search-chip) {
    display: none;
  }
  .chip-rail .new-search-chip {
    width: 100%;
    justify-content: center;
    margin-inline-start: 0;
    min-height: 44px;
  }
}

/* ===== Layout grid ===== */
.listings-layout { padding-block: var(--sp-6) var(--sp-8); }

.ll-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 1024px) {
  .ll-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: start;
  }
}
@media (min-width: 1280px) {
  .ll-grid { grid-template-columns: 380px minmax(0, 1fr); }
}

/* ===== Filter panel ===== */
.filter-panel {
  /* Default = mobile drawer */
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
  overflow: hidden;
}
.filter-panel.is-open { transform: translateY(0); }

@media (min-width: 1024px) {
  .filter-panel {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    max-height: calc(100vh - var(--header-h) - var(--sp-7));
    inset: auto;
    z-index: 1;
    transform: none;
    background: var(--c-bg-elev);
    border: 1px solid var(--c-line);
    border-radius: var(--r-lg);
    transition: none;
  }
}

.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 2;
}
.fp-header h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.btn-text {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover { color: var(--c-gold-soft); }

.fp-close {
  width: 36px; height: 36px;
}
@media (min-width: 1024px) { .fp-close { display: none; } }

.fp-form {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
@media (min-width: 1024px) {
  .fp-form {
    scrollbar-width: thin;
    scrollbar-color: rgba(232,201,126,0.45) transparent;
  }
  .fp-form::-webkit-scrollbar {
    width: 6px;
    height: 0;
  }
  .fp-form::-webkit-scrollbar-track {
    background: transparent;
  }
  .fp-form::-webkit-scrollbar-thumb {
    background: rgba(232,201,126,0.35);
    border-radius: 999px;
  }
  .fp-form::-webkit-scrollbar-thumb:hover {
    background: rgba(232,201,126,0.55);
  }
}

.fp-group {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}
.fp-group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.fp-group legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--c-ink);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}
.fp-group-toggle {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--c-gold);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}
.fp-group-toggle:hover {
  background: rgba(232,201,126,0.08);
}
.fp-group.is-collapsed > :not(legend) {
  display: none;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
#makeCheckboxes:not(.is-expanded) label:nth-of-type(n+7) {
  display: none;
}
#yearCheckboxes:not(.is-expanded) label:nth-of-type(n+13) {
  display: none;
}
.make-toggle {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-height: 34px;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.make-toggle:hover {
  background: rgba(232,201,126,0.08);
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 0.6rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-out);
}
.checkbox-grid label:hover { background: var(--c-bg-elev); }
[data-theme="light"] .checkbox-grid label:hover { background: var(--c-bg-soft); }
.checkbox-grid input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--c-gold);
  cursor: pointer;
}
.checkbox-grid label.is-checked { color: var(--c-gold); }
.cb-count {
  margin-inline-start: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-ink-mute);
  background: var(--c-bg-soft);
  padding: 1px 7px;
  border-radius: var(--r-pill);
  min-width: 24px;
  text-align: center;
}
[data-theme="light"] .cb-count {
  background: var(--c-bg-elev-2);
}

/* Pill options (radio/checkbox) */
.pill-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.advanced-filters {
  border-bottom: 1px solid var(--c-line);
  padding-bottom: var(--sp-4);
}
.advanced-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 var(--sp-1);
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.advanced-filters summary::-webkit-details-marker {
  display: none;
}
.advanced-filters summary::after {
  content: '+';
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  color: var(--c-gold);
  font-family: var(--ff-body);
}
.advanced-filters[open] summary::after {
  content: '-';
}
.advanced-filters .fp-group {
  padding-top: var(--sp-4);
}
.pill-opt {
  position: relative;
  cursor: pointer;
}
.pill-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pill-opt span {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: all var(--t-fast) var(--ease-out);
}
[data-theme="light"] .pill-opt span { background: var(--c-bg-soft); }
.pill-opt:hover span { border-color: var(--c-gold); color: var(--c-ink); }
.pill-opt input:checked + span {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}

/* Range row */
.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.range-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem 0.7rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out);
}
[data-theme="light"] .range-field { background: var(--c-bg-soft); }
.range-field:focus-within { border-color: var(--c-gold); }
.range-field span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.range-field input,
.range-field select {
  width: 100%;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  appearance: none;
  -webkit-appearance: none;
}
.range-field input::placeholder { color: var(--c-ink-dim); }
.range-field select option { background: var(--c-bg-elev); color: var(--c-ink); }

.quick-prices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.chip-mini {
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--c-bg-elev);
  color: var(--c-ink-soft);
  border: 1px solid var(--c-line);
  transition: all var(--t-fast) var(--ease-out);
}
[data-theme="light"] .chip-mini { background: var(--c-bg-soft); }
.chip-mini:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

/* Switch row (toggle) */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.5rem 0;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
}
.switch-row > span:first-child { flex: 1; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  background: var(--c-bg-elev-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-out);
}
.switch-thumb {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 16px;
  height: 16px;
  background: var(--c-ink);
  border-radius: 50%;
  transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.switch-row input:checked ~ .switch-track {
  background: var(--c-gold);
  border-color: var(--c-gold);
}
.switch-row input:checked ~ .switch-track .switch-thumb {
  transform: translateX(-16px); /* RTL: thumb starts at right, slides left when on */
  background: var(--c-bg);
}

/* Filter footer (mobile drawer apply button) */
.fp-footer {
  padding: var(--sp-4);
  border-top: 1px solid var(--c-line);
  background: inherit;
}
.fp-footer .btn { width: 100%; }
@media (min-width: 1024px) { .fp-footer { display: none; } }

/* Backdrop */
.filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.filter-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) { .filter-backdrop { display: none !important; } }

/* Floating filter FAB on mobile */
.filter-fab {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--sp-4));
  inset-inline-start: var(--sp-4);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--c-gold);
  color: var(--c-bg);
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: 0 12px 30px var(--c-gold-glow), 0 4px 12px rgba(0,0,0,0.3);
  transition: transform var(--t-fast) var(--ease-out);
}
.filter-fab:hover { transform: translateY(-2px); }
@media (max-width: 1023px) { .filter-fab { display: none; } }
@media (min-width: 1024px) { .filter-fab { display: none; } }


/* Make the toolbar filter button visible on mobile */
@media (min-width: 1024px) { .rt-filter-btn { display: none; } }

.filter-fab-badge,
.rt-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--c-bg);
  color: var(--c-gold);
  font-size: 0.7rem;
  font-weight: 800;
}
.rt-filter-badge { background: var(--c-gold); color: var(--c-bg); }

/* ===== Toolbar ===== */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-4);
}

.rt-count {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink);
}
.rt-count strong { color: var(--c-gold); font-family: var(--ff-display); font-size: var(--fs-md); }

.rt-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.rt-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: var(--fs-sm);
  font-family: inherit;
  font-weight: 600;
  min-height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  color: var(--c-ink);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.rt-filter-btn:hover { border-color: var(--c-gold); background: rgba(232,201,126,0.08); }

/* ── Sort button & dropdown ── */
.sort-wrap {
  position: relative;
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  color: var(--c-ink);
  font-family: var(--ff-ui);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.sort-btn:hover,
.sort-btn[aria-expanded="true"] {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.sort-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.sort-btn[aria-expanded="true"] .sort-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.sort-dropdown {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 150px;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
  padding: 4px;
  list-style: none;
  margin: 0;
  z-index: 200;
}
.sort-dropdown.is-toolbar-sort-menu {
  position: fixed;
  inset: auto;
  top: var(--sort-menu-top);
  left: var(--sort-menu-left);
  right: auto;
  bottom: auto;
  width: max-content;
  min-width: 150px;
  max-width: calc(100vw - (var(--sp-4) * 2));
  transform: translateX(-50%);
  z-index: 2147483000;
}
.sort-opt {
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--c-ink);
  transition: background var(--t-fast), color var(--t-fast);
  user-select: none;
  white-space: nowrap;
}
.sort-opt:hover {
  background: rgba(232,201,126,0.1);
  color: var(--c-gold);
}
.sort-opt[aria-selected="true"] {
  background: rgba(232,201,126,0.14);
  color: var(--c-gold);
}

.view-toggle {
  display: inline-flex;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-pill);
  padding: 3px;
}
.vt-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--c-ink-mute);
  transition: all var(--t-fast) var(--ease-out);
}
.vt-btn.is-active {
  background: var(--c-gold);
  color: var(--c-bg);
}

/* Hide list-view toggle on small screens (grid-only) */
@media (max-width: 639px) { .view-toggle { display: none; } }

@media (max-width: 1023px) {
  .ll-results {
    min-width: 0;
  }

  .results-toolbar {
    position: sticky;
    top: calc(var(--header-h, 64px) - 1px);
    z-index: 45;
    margin: 0 calc(var(--sp-3) * -1) var(--sp-3);
    padding: 0.45rem var(--sp-3);
    min-height: 48px;
    flex-wrap: nowrap;
    gap: var(--sp-2);
    background: color-mix(in srgb, var(--c-bg) 88%, transparent);
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .rt-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .rt-count {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--c-ink-soft);
    font-size: 0.78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rt-count strong {
    font-size: 0.98rem;
  }

  .rt-right {
    flex: 0 0 auto;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .rt-filter-btn,
  .sort-btn {
    min-height: 36px;
    padding: 0.45rem 0.62rem;
    border-radius: var(--r-pill);
    font-size: 0.78rem;
  }

  .rt-filter-btn svg,
  .sort-btn svg {
    width: 14px;
    height: 14px;
  }

  .sort-btn {
    background: var(--c-gold);
    border-color: var(--c-gold);
    color: var(--c-bg);
  }

  .sort-btn[aria-expanded="true"],
  .sort-btn:hover {
    color: var(--c-bg);
    filter: brightness(1.04);
  }

  .sort-chevron {
    opacity: 0.75;
  }

  .view-toggle {
    display: none;
  }
}

@media (max-width: 639px) {
  .results-toolbar {
    position: static;
  }

  .floating-sort-btn {
    position: fixed;
    inset-inline-start: 50%;
    bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom));
    z-index: 10020;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 112px;
    min-height: 42px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(14px);
    border: 1px solid var(--c-gold);
    border-radius: var(--r-pill);
    background: var(--c-gold);
    color: var(--c-bg);
    padding-inline: 0.85rem;
    font-family: var(--ff-ui);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    transition:
      opacity 180ms var(--ease-out),
      transform 220ms var(--ease-out);
  }

  body.sort-float-visible .floating-sort-btn:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .floating-sort-btn svg {
    flex: 0 0 auto;
  }

  .sort-dropdown.is-floating-sort-menu {
    position: fixed;
    inset: auto;
    inset-block-start: auto;
    inset-block-end: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
    top: auto;
    bottom: calc(var(--bottom-nav-h) + 62px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    width: max-content;
    min-width: 150px;
    max-width: calc(100vw - (var(--sp-4) * 2));
    transform: translateX(-50%);
    isolation: isolate;
    z-index: 2147483000;
  }

  .sort-dropdown.is-toolbar-sort-menu {
    position: fixed;
    inset: auto;
    inset-block-start: auto;
    inset-block-end: auto;
    inset-inline-start: auto;
    inset-inline-end: auto;
    top: var(--sort-menu-top);
    left: var(--sort-menu-left);
    right: auto;
    bottom: auto;
    width: max-content;
    min-width: 150px;
    max-width: calc(100vw - (var(--sp-4) * 2));
    transform: translateX(-50%);
    isolation: isolate;
    z-index: 2147483000;
  }

  body.filter-open .sort-wrap {
    display: none;
  }
}

/* ===== Active filter pills ===== */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--sp-4);
}
.fallback-note {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid rgba(232,201,126,0.35);
  border-radius: var(--r-md);
  background: rgba(232,201,126,0.08);
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(232,201,126,0.12);
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.af-pill-sort {
  background: rgba(255,255,255,0.06);
  border-color: var(--c-line-strong);
  color: var(--c-ink-soft);
}
.af-pill button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-gold);
  color: var(--c-bg);
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.af-pill button:hover { background: var(--c-gold-soft); }
.af-clear-all {
  margin-inline-start: auto;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-red-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Results grid ===== */
.results-grid {
  display: grid;
  gap: var(--sp-4);
}
.results-grid.is-view-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .results-grid.is-view-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .results-grid.is-view-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .results-grid.is-view-grid { grid-template-columns: repeat(3, 1fr); }
}

/* List view */
.results-grid.is-view-list {
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.results-grid.is-view-list .listing-card {
  flex-direction: row;
}
@media (max-width: 767px) {
  .results-grid.is-view-list .listing-card { flex-direction: column; }
}
.results-grid.is-view-list .lc-photo {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 5/3;
}
@media (max-width: 767px) {
  .results-grid.is-view-list .lc-photo { width: 100%; aspect-ratio: 16/10; }
}
.results-grid.is-view-list .lc-body { padding: var(--sp-5); }
@media (hover: hover) {
  .results-grid.is-view-list .listing-card:hover {
    transform: translateY(-2px);
  }
}
@media (max-width: 767px) {
  .page-listings .results-grid {
    gap: 10px;
  }
  .page-listings .results-grid.is-view-grid .listing-card {
    flex-direction: row;
    min-height: 142px;
    border-radius: var(--r-md);
  }
  .page-listings .results-grid.is-view-grid .lc-photo {
    width: 42%;
    min-width: 150px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .page-listings .results-grid.is-view-grid .lc-body {
    min-width: 0;
    gap: 8px;
    padding: 11px 12px;
  }
  .page-listings .results-grid.is-view-grid .lc-trim {
    font-size: 0.74rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-listings .results-grid.is-view-grid .lc-title {
    font-size: 1.05rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-listings .results-grid.is-view-grid .lc-specs {
    gap: 5px 9px;
    font-size: 0.74rem;
    line-height: 1.25;
  }
  .page-listings .results-grid.is-view-grid .lc-spec {
    max-width: 100%;
  }
  .page-listings .results-grid.is-view-grid .lc-spec svg {
    width: 13px;
    height: 13px;
  }
  .page-listings .results-grid.is-view-grid .lc-meta {
    padding-top: 7px;
  }
  .page-listings .results-grid.is-view-grid .lc-price-amount {
    font-size: 1.12rem;
  }
  .page-listings .results-grid.is-view-grid .lc-price-currency,
  .page-listings .results-grid.is-view-grid .lc-location {
    font-size: 0.68rem;
  }
  .page-listings .results-grid.is-view-grid .lc-badges {
    top: 6px;
    inset-inline-start: 6px;
    gap: 4px;
  }
  .page-listings .results-grid.is-view-grid .lc-badge {
    padding: 0.18rem 0.42rem;
    font-size: 0.58rem;
  }
  .page-listings .results-grid.is-view-grid .lc-fav {
    top: 6px;
    inset-inline-end: 6px;
    width: 28px;
    height: 28px;
  }
  .page-listings .results-grid.is-view-grid .lc-fav svg {
    width: 15px;
    height: 15px;
  }
  .page-listings .results-grid.is-view-grid .lc-source-footer {
    display: none;
  }
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  gap: var(--sp-3);
}
.empty-icon { font-size: 3rem; opacity: 0.6; }
.empty-state-favorites {
  border-style: solid;
  border-color: rgba(47, 128, 237, 0.24);
  background:
    radial-gradient(circle at 50% 0%, rgba(47, 128, 237, 0.16), transparent 48%),
    var(--c-bg-elev);
}
.empty-asset {
  width: min(220px, 72vw);
}
.empty-asset img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.24));
}
.empty-state h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-ink);
}
.empty-state p { color: var(--c-ink-soft); font-size: var(--fs-sm); }

/* Skeleton loaders */
.skeleton-card {
  border-radius: var(--r-lg);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  height: 380px;
  position: relative;
  overflow: hidden;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(245,244,239,0.06) 50%,
    transparent 70%
  );
  animation: skelShimmer 1.6s ease-in-out infinite;
}
@keyframes skelShimmer {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}
@media (max-width: 767px) {
  .page-listings .skeleton-card {
    height: 142px;
    border-radius: var(--r-md);
  }
}
.sell-choice-skeleton {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.sell-choice-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(245,244,239,0.06) 50%, transparent 70%);
  animation: skelShimmer 1.6s ease-in-out infinite;
}
.sell-choice-skeleton-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.sell-choice-skeleton-line {
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  width: 58%;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-7);
}
.pg-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  color: var(--c-ink);
  transition: all var(--t-fast) var(--ease-out);
}
.pg-btn:hover:not(:disabled) {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pg-pages { display: inline-flex; gap: 4px; }
.pg-page {
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--c-ink-soft);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all var(--t-fast) var(--ease-out);
}
.pg-page:hover { color: var(--c-gold); }
.pg-page.is-active {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}
.pg-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 40px;
  color: var(--c-ink-mute);
}

.listing-load-more {
  min-height: 54px;
  margin-top: var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-align: center;
}

.listing-load-more[hidden] {
  display: none;
}

.listing-load-more small {
  color: var(--c-ink-dim);
}

.listing-load-more-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid rgba(232, 201, 126, 0.72);
  border-radius: var(--r-pill);
  background: var(--c-gold);
  color: var(--c-bg);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232, 201, 126, 0.14);
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              filter var(--t-fast) var(--ease-out);
}

.listing-load-more-btn span {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(13, 13, 13, 0.12);
  font-size: 0.92rem;
  line-height: 1;
}

.listing-load-more-btn strong {
  font-weight: 900;
}

.listing-load-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(232, 201, 126, 0.20);
  filter: brightness(1.03);
}

.listing-load-more-btn:active {
  transform: translateY(0);
}

.mini-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-line-strong);
  border-top-color: var(--c-gold);
  border-radius: 999px;
  animation: spin 820ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Lock body scroll when filter drawer open on mobile */
body.filter-open { overflow: hidden; }

/* ============================================================
   18. LISTING DETAIL PAGE
   ============================================================ */

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-xs);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--c-ink-mute);
  font-weight: 600;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  color: var(--c-ink-dim);
  margin-inline-start: 6px;
}
.breadcrumbs a { color: var(--c-ink-mute); transition: color var(--t-fast) var(--ease-out); }
.breadcrumbs a:hover { color: var(--c-gold); }
.breadcrumbs li[aria-current="page"] { color: var(--c-ink); }

/* Not-found state */
.not-found-state { padding-block: var(--sp-9); }
.nf-card {
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.nf-card h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  color: var(--c-ink);
}
.nf-card p { color: var(--c-ink-soft); max-width: 50ch; }

/* ===== Detail layout ===== */
.detail-main { padding-block: var(--sp-5) var(--sp-7); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--sp-6);
    align-items: start;
  }
}
@media (min-width: 1280px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 400px; }
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  min-width: 0;
}

@media (max-width: 1023px) {
  .detail-grid {
    display: flex;
    flex-direction: column;
  }
}
@media (min-width: 1024px) {
  .similar-section { grid-column: 1; }
}

/* ===== Mobile-only / desktop-only title visibility ===== */
.detail-title-mobile { display: block; }
@media (min-width: 1024px) {
  .detail-title-mobile { display: none; }
}

/* ===== Gallery ===== */
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  background: linear-gradient(135deg, var(--c-bg-elev), var(--c-bg-soft));
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.gallery-main svg.lc-illus {
  width: 90%;
  max-width: min(600px, 90%);
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: opacity 350ms var(--ease-out), transform 500ms var(--ease-out);
}
.gallery-main .gm-label {
  display: none;
}
.gallery-main .gm-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 900;
  color: rgba(245,244,239,0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,13,0.7);
  color: var(--c-ink);
  border: 1px solid var(--c-line-strong);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 2;
  transition: all var(--t-fast) var(--ease-out);
}
[data-theme="light"] .gallery-arrow { background: rgba(255,255,255,0.85); }
.gallery-arrow:hover { background: var(--c-gold); color: var(--c-bg); border-color: var(--c-gold); }
.gallery-prev { inset-inline-start: var(--sp-3); }
.gallery-next { inset-inline-end: var(--sp-3); }

.gallery-counter {
  position: absolute;
  top: var(--sp-3);
  inset-inline-end: var(--sp-3);
  padding: 0.35rem 0.85rem;
  background: rgba(13,13,13,0.8);
  color: var(--c-gold);
  font-family: var(--ff-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-strong);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.gallery-fullscreen {
  display: none;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-2);
}
@media (max-width: 480px) {
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}

.gt-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  border: 2px solid var(--c-line);
  overflow: hidden;
  cursor: pointer;
  background: var(--c-bg-elev);
  transition: border-color var(--t-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gt-thumb svg { width: 90%; max-width: 100%; height: auto; }
.gt-thumb.is-active { border-color: var(--c-gold); }
.gt-thumb:hover { border-color: var(--c-gold-soft); }
.gt-more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  pointer-events: none;
}
.gt-more-count {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  pointer-events: none;
}
.gt-label {
  display: none;
}

/* ===== Detail title block ===== */
.dt-block { display: flex; flex-direction: column; gap: var(--sp-2); }
.detail-title-mobile { display: flex; flex-direction: column; gap: var(--sp-2); }

.dt-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-1); }

.dt-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  min-height: 1.2em;
}
.dt-trim {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.02em;
  min-height: 1.35em;
}
.dt-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  font-weight: 600;
  margin-top: var(--sp-1);
}
.dt-location svg { width: 14px; height: 14px; color: var(--c-gold); }

/* ===== Quick specs strip ===== */
.quickspecs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
}
@media (min-width: 480px) { .quickspecs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .quickspecs { grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); } }

.qs-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-md);
  transition: background var(--t-fast) var(--ease-out);
}
@media (hover: hover) {
  .qs-tile:hover { background: var(--c-bg-soft); }
}
.qs-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,201,126,0.1);
  color: var(--c-gold);
  margin-bottom: 4px;
}
.qs-icon svg { width: 22px; height: 22px; }
.qs-label {
  font-size: 0.7rem;
  color: var(--c-ink-mute);
  font-weight: 600;
}
.qs-value {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}

@media (max-width: 767px) {
  .quickspecs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: var(--r-lg);
  }

  .qs-tile {
    gap: 2px;
    padding: 7px 4px;
    min-width: 0;
    border-radius: var(--r-sm);
  }

  .qs-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 1px;
  }

  .qs-icon svg {
    width: 15px;
    height: 15px;
  }

  .qs-label {
    font-size: 0.62rem;
    line-height: 1.15;
  }

  .qs-value {
    max-width: 100%;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ===== Market CTA ===== */
.market-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(232,201,126,0.18), transparent 60%),
    linear-gradient(160deg, var(--c-bg-elev) 0%, var(--c-bg-soft) 100%);
  border: 1px solid var(--c-gold);
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) {
  .market-cta { flex-direction: row; align-items: center; padding: var(--sp-5) var(--sp-6); }
}

.mc-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  background: rgba(232,201,126,0.12);
  color: var(--c-gold);
}
.mc-text { flex: 1; }
.mc-text h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
  margin-bottom: 2px;
}
.mc-text p { color: var(--c-ink-soft); font-size: var(--fs-sm); }

@media (max-width: 639px) {
  .market-cta {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-2) var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-lg);
  }

  .mc-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
  }

  .mc-icon svg {
    width: 25px;
    height: 25px;
  }

  .mc-text h3 {
    font-size: var(--fs-sm);
    line-height: 1.25;
    margin-bottom: 1px;
  }

  .mc-text p {
    font-size: var(--fs-xs);
    line-height: 1.45;
  }

  .market-cta .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 1rem;
    font-size: var(--fs-sm);
  }
}

/* ===== Spec sections ===== */
.spec-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.spec-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--c-line);
}
.spec-section-head h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--c-ink);
  letter-spacing: -0.02em;
}
.spec-section-head p {
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  margin-top: 4px;
}

/* ===== Spec cards ===== */
.spec-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 640px)  { .spec-card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .spec-card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .spec-card-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }

.spec-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  min-height: 220px;
}
.sc-head { display: flex; flex-direction: column; gap: 2px; }
.sc-head h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.sc-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sc-bottom {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}
.sc-bottom > div { display: flex; flex-direction: column; gap: 2px; }
.sc-mini-label {
  font-size: 0.7rem;
  color: var(--c-ink-mute);
  font-weight: 600;
}
.sc-mini-value {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}

/* Cylinder diagram */
.cylinder-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) 0;
  flex: 1;
  color: var(--c-gold);
}
.cylinder-diagram svg { width: 100%; max-width: 180px; height: auto; }

/* Drive diagram */
.drive-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) 0;
  flex: 1;
  color: var(--c-gold);
}
.drive-diagram svg { width: 100%; max-width: 160px; height: auto; }

/* Gauge */
.gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: var(--sp-2) 0;
}
.gauge {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 200px;
  height: auto;
  color: var(--c-gold);
}
.gauge-value {
  position: absolute;
  z-index: 2;
  top: 60%;
  inset-inline-start: 50%;
  transform: translateX(50%);
  padding: 0.1rem 0.35rem;
  background: var(--c-bg-elev);
  border-radius: var(--r-sm);
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-2xl);
  color: var(--c-ink);
  line-height: 1;
}
.gauge-label {
  position: absolute;
  z-index: 2;
  top: 80%;
  inset-inline-start: 50%;
  transform: translateX(50%);
  padding-inline: 0.25rem;
  background: var(--c-bg-elev);
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-ink-mute);
  letter-spacing: 0.1em;
}

/* Big stat */
.big-stat {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.bs-value {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--c-gold);
  line-height: 1;
}
.bs-unit {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink-mute);
}

.bs-bar {
  height: 6px;
  background: rgba(245,244,239,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.bs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-soft));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s var(--ease-out);
}
@media (max-width: 640px) {
  #engineSection.spec-section {
    gap: 10px;
  }
  #engineSection .spec-section-head {
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 8px;
  }
  #engineSection .spec-section-head h2 {
    font-size: 1.15rem;
  }
  #engineSection .spec-section-head p {
    margin-top: 2px;
    font-size: 0.78rem;
  }
  #engineSection .spec-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #engineSection .spec-card {
    min-height: 126px;
    gap: 6px;
    padding: 10px;
    border-radius: var(--r-md);
  }
  #engineSection .sc-head {
    gap: 0;
  }
  #engineSection .sc-head h3 {
    font-size: 0.88rem;
  }
  #engineSection .sc-sub {
    font-size: 0.62rem;
    letter-spacing: 0;
  }
  #engineSection .cylinder-diagram,
  #engineSection .drive-diagram,
  #engineSection .gauge-wrap {
    min-height: 54px;
    padding: 0;
  }
  #engineSection .cylinder-diagram svg {
    max-width: 106px;
    max-height: 68px;
  }
  #engineSection .drive-diagram svg {
    max-width: 92px;
    max-height: 62px;
  }
  #engineSection .gauge {
    max-width: 104px;
  }
  #engineSection .gauge-value {
    top: 58%;
    font-size: 1.15rem;
    padding: 0.05rem 0.25rem;
  }
  #engineSection .gauge-label {
    top: 78%;
    font-size: 0.58rem;
    letter-spacing: 0;
  }
  #engineSection .big-stat {
    padding: 0;
    gap: 4px;
  }
  #engineSection .bs-value {
    font-size: 1.55rem;
  }
  #engineSection .bs-unit {
    font-size: 0.68rem;
  }
  #engineSection .bs-bar {
    height: 4px;
  }
  #engineSection .sc-bottom {
    gap: 8px;
    padding-top: 6px;
  }
  #engineSection .sc-mini-label {
    font-size: 0.58rem;
  }
  #engineSection .sc-mini-value {
    font-size: 0.78rem;
  }
}

/* ===== Features tabs ===== */
.features-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.features-tabs::-webkit-scrollbar { display: none; }
.ft-tab {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--t-fast) var(--ease-out);
}
.ft-tab:hover { color: var(--c-ink); border-color: var(--c-gold); }
.ft-tab.is-active {
  background: var(--c-gold);
  color: var(--c-bg);
  border-color: var(--c-gold);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 480px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.85rem 1rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink);
  transition: border-color var(--t-fast) var(--ease-out);
}
.feature-pill:hover { border-color: var(--c-gold); }
.feature-pill .fp-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(78,201,168,0.15);
  color: var(--c-green);
}
.feature-pill .fp-check svg { width: 14px; height: 14px; }

/* ===== History & condition ===== */
.history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 640px)  { .history-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .history-grid { grid-template-columns: repeat(4, 1fr); } }

.history-card {
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hc-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(232,201,126,0.1);
  color: var(--c-gold);
}
.hc-icon.hc-icon-red {
  background: rgba(192,57,43,0.12);
  color: var(--c-red-soft);
}
.hc-icon.hc-icon-green {
  background: rgba(78,201,168,0.12);
  color: var(--c-green);
}
.hc-icon svg { width: 22px; height: 22px; }
.hc-label { font-size: var(--fs-xs); color: var(--c-ink-mute); font-weight: 600; }
.hc-value {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}

@media (max-width: 767px) {
  .history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-2);
  }

  .history-card {
    padding: 0.7rem;
    gap: 0.3rem;
    min-width: 0;
  }

  .hc-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
  }

  .hc-icon svg {
    width: 17px;
    height: 17px;
  }

  .hc-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .hc-value {
    font-size: 0.9rem;
    line-height: 1.25;
  }
}

/* ===== Description ===== */
.description-card {
  padding: var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  color: var(--c-ink-soft);
  line-height: 1.85;
}

/* ===== Similar grid ===== */
.similar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px)  { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .similar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .similar-grid { grid-template-columns: repeat(4, 1fr); } }

.page-detail .lc-source-motorgy,
.page-detail .lc-source-opensooq,
.page-detail .lc-source-yallamotor {
  border-left-color: var(--c-line);
  border-bottom-color: var(--c-line);
}
.page-detail .lc-source-motorgy .lc-photo,
.page-detail .lc-source-opensooq .lc-photo,
.page-detail .lc-source-yallamotor .lc-photo {
  background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
}
.page-detail .lc-source-motorgy:hover,
.page-detail .lc-source-opensooq:hover,
.page-detail .lc-source-yallamotor:hover {
  border-color: var(--c-gold);
  box-shadow: 0 12px 32px rgba(232,201,126,0.16);
}
.page-detail .lc-source-motorgy .lc-source-footer,
.page-detail .lc-source-opensooq .lc-source-footer,
.page-detail .lc-source-yallamotor .lc-source-footer {
  border-top-color: var(--c-line);
}

@media (max-width: 767px) {
  .page-detail .similar-grid {
    gap: 10px;
  }
  .page-detail .similar-grid .listing-card {
    flex-direction: row;
    min-height: 142px;
    border-radius: var(--r-md);
  }
  .page-detail .similar-grid .lc-photo {
    width: 42%;
    min-width: 150px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .page-detail .similar-grid .lc-body {
    min-width: 0;
    gap: 8px;
    padding: 11px 12px;
  }
  .page-detail .similar-grid .lc-trim {
    font-size: 0.74rem;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .page-detail .similar-grid .lc-title {
    font-size: 1.05rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .page-detail .similar-grid .lc-specs {
    gap: 5px 9px;
    font-size: 0.74rem;
    line-height: 1.25;
  }
  .page-detail .similar-grid .lc-spec svg {
    width: 13px;
    height: 13px;
  }
  .page-detail .similar-grid .lc-meta {
    padding-top: 7px;
  }
  .page-detail .similar-grid .lc-price-amount {
    font-size: 1.12rem;
  }
  .page-detail .similar-grid .lc-price-currency,
  .page-detail .similar-grid .lc-location {
    font-size: 0.68rem;
  }
  .page-detail .similar-grid .lc-badges {
    top: 6px;
    inset-inline-start: 6px;
    gap: 4px;
  }
  .page-detail .similar-grid .lc-badge {
    padding: 0.18rem 0.42rem;
    font-size: 0.58rem;
  }
  .page-detail .similar-grid .lc-fav {
    top: 6px;
    inset-inline-end: 6px;
    width: 28px;
    height: 28px;
  }
  .page-detail .similar-grid .lc-fav svg {
    width: 15px;
    height: 15px;
  }
  .page-detail .similar-grid .skeleton-card,
  .page-detail .skeleton-card {
    height: 142px;
    border-radius: var(--r-md);
  }
}

/* ============================================================
   19. DETAIL SIDEBAR
   ============================================================ */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 1024px) {
  .detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-4));
    align-self: start;
    max-height: calc(100vh - var(--header-h) - var(--sp-5));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--c-line-strong) transparent;
  }
  .detail-sidebar::-webkit-scrollbar { width: 6px; }
  .detail-sidebar::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 3px; }
}

/* Hide title block on mobile (it's shown in detail-content instead) */
@media (max-width: 1023px) {
  .detail-sidebar > .dt-block { display: none; }
}

/* Price card */
.price-card {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--c-bg-elev) 0%, var(--c-bg-soft) 100%);
  border: 1px solid var(--c-gold);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.pc-row { display: flex; flex-direction: column; gap: 2px; }
.pc-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pc-amount {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--c-ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.pc-currency {
  font-size: var(--fs-sm);
  color: var(--c-ink-mute);
  font-weight: 700;
}

.pc-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.pc-actions #contactActions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.pc-actions .btn { width: 100%; }
.pc-actions .btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.pc-actions .btn-whatsapp:hover {
  background: #1ebe5b;
  box-shadow: 0 12px 30px rgba(37,211,102,0.35);
}
.pc-actions .btn-call {
  background: var(--c-bg-elev-2);
  color: var(--c-ink);
  border-color: var(--c-line-strong);
}
.pc-actions .btn-call:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}
.offer-action-note {
  margin: -0.15rem 0 0;
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 767px) {
  .price-card {
    padding: 0.85rem;
    border-radius: var(--r-lg);
    gap: 0.7rem;
  }

  .pc-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
  }

  .pc-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .pc-amount {
    font-size: 1.55rem;
    line-height: 1;
    text-align: start;
  }

  .pc-currency {
    font-size: 0.72rem;
  }

  .pc-actions,
  .pc-actions #contactActions {
    gap: 0.5rem;
  }

  .pc-actions .btn,
  .pc-actions #contactActions .btn {
    min-height: 42px;
    padding: 0.62rem 0.85rem;
    font-size: var(--fs-sm);
  }

  .offer-action-note {
    line-height: 1.35;
  }
}

/* Silent block */
.silent-block {
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-gold);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.silent-banner {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: rgba(232,201,126,0.08);
  border-radius: var(--r-md);
  border: 1px solid rgba(232,201,126,0.2);
}
.sb-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232,201,126,0.15);
  color: var(--c-gold);
}
.silent-banner strong {
  display: block;
  color: var(--c-gold);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  margin-bottom: 2px;
}
.silent-banner p { color: var(--c-ink-soft); font-size: var(--fs-xs); line-height: 1.5; }

/* Offer form */
.offer-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.offer-form h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}

.of-field { display: flex; flex-direction: column; gap: 6px; }
.of-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-ink-soft);
  letter-spacing: 0.02em;
}
.of-input-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.35rem 0.75rem;
  background: var(--c-bg-elev-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease-out);
}
.of-input-wrap:focus-within {
  border-color: var(--c-gold);
}
.of-input-wrap input {
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0;
  direction: ltr;
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--ff-display);
  transition: none;
}
.of-suffix {
  position: static;
  min-width: 2.2rem;
  justify-self: end;
  text-align: end;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  pointer-events: none;
}
.offer-form .of-input-wrap input {
  padding: 0.5rem 0;
  background: transparent;
  border: 0 !important;
  outline: 0;
  box-shadow: none;
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--ff-display);
}
.offer-form .of-input-wrap input:focus {
  border: 0 !important;
  outline: 0;
  box-shadow: none;
}
/* Legacy amount-input positioning kept below for older markup; disabled by the grid rules above. */
/*
.of-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.of-input-wrap input {
  width: 100%;
  padding: 0.85rem 1rem;
  padding-inline-end: 4rem;
  direction: ltr;
  text-align: start;
  background: var(--c-bg-elev-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--ff-display);
  transition: border-color var(--t-fast) var(--ease-out);
}
.of-suffix {
  position: absolute;
  inset-inline-end: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--c-gold);
  pointer-events: none;
}
.offer-form .of-input-wrap input {
  padding: 0.85rem 1rem;
  padding-inline-end: 4rem;
  font-size: var(--fs-md);
  font-weight: 700;
  font-family: var(--ff-display);
}
*/
.offer-form input,
.offer-form textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  background: var(--c-bg-elev-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  transition: border-color var(--t-fast) var(--ease-out);
}
.offer-form input::placeholder,
.offer-form textarea::placeholder { color: var(--c-ink-dim); }
.offer-form input:focus,
.offer-form textarea:focus { border-color: var(--c-gold); }
.offer-form textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.offer-form input[aria-invalid="true"],
.offer-form textarea[aria-invalid="true"] { border-color: var(--c-red-soft); }

.of-hint {
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
}
.of-hint.is-warn { color: var(--c-amber); }
.of-hint.is-good { color: var(--c-green); }

.of-submit { width: 100%; margin-top: var(--sp-2); }
.of-disclaimer {
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  text-align: center;
  line-height: 1.6;
  padding-top: var(--sp-2);
}

/* Success state for the offer form (after submit) */
.offer-success {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.os-check {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(78,201,168,0.18);
  color: var(--c-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.os-check svg { width: 32px; height: 32px; }
.offer-success h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-ink);
}
.offer-success p { color: var(--c-ink-soft); font-size: var(--fs-sm); }
.offer-status-card {
  padding-block: var(--sp-4);
}
.offer-status-card .btn {
  margin-top: var(--sp-1);
}

@media (max-width: 767px) {
  .silent-block {
    padding: 0.85rem;
    border-radius: var(--r-lg);
    gap: 0.75rem;
  }

  .silent-banner {
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .sb-icon {
    width: 34px;
    height: 34px;
  }

  .silent-banner strong {
    font-size: 0.86rem;
    margin-bottom: 0;
  }

  .silent-banner p {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .offer-form {
    gap: 0.58rem;
  }

  .offer-form h3 {
    font-size: 0.95rem;
  }

  .of-field {
    gap: 4px;
  }

  .offer-form input,
  .offer-form textarea {
    padding: 0.58rem 0.72rem;
    font-size: 0.82rem;
    border-radius: var(--r-sm);
  }

  .of-input-wrap {
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-sm);
  }

  .offer-form .of-input-wrap input {
    padding: 0.38rem 0;
    font-size: 0.95rem;
  }

  .offer-form textarea {
    min-height: 58px;
  }

  .of-submit {
    margin-top: 0.2rem;
    min-height: 42px;
  }

  .of-disclaimer {
    padding-top: 0;
    line-height: 1.35;
  }

  .offer-success,
  .offer-status-card {
    padding: 0.85rem 0.55rem;
    gap: 0.55rem;
  }

  .os-check {
    width: 42px;
    height: 42px;
  }

  .offer-success h3 {
    font-size: 1rem;
  }

  .offer-success p {
    font-size: 0.78rem;
    line-height: 1.4;
  }
}

.external-source-notice {
  padding: var(--sp-4);
  border: 1px solid rgba(232,201,126,0.34);
  border-radius: var(--r-lg);
  background: rgba(232,201,126,0.08);
}
.external-source-notice strong {
  display: block;
  color: var(--c-gold);
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}
.external-source-notice p,
.external-source-hint {
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  line-height: 1.75;
}
.external-source-notice a {
  display: inline-flex;
  margin-top: var(--sp-3);
  color: var(--c-gold);
  font-weight: 900;
}

/* Seller card */
.seller-card {
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.seller-card-external {
  border-color: rgba(232,201,126,0.28);
  background: rgba(232,201,126,0.06);
}
.seller-card-external .sl-avatar {
  background: rgba(232,201,126,0.16);
  color: var(--c-gold);
}
.sl-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.sl-head-link {
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-lg);
  transition: background var(--t-fast) var(--ease-out);
}
.sl-head-link:hover {
  background: rgba(232,201,126,0.06);
}
.sl-avatar {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-deep));
  color: var(--c-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-md);
  overflow: hidden;
}
.sl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-info { flex: 1; min-width: 0; }
.sl-name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.sl-verified { color: var(--c-gold); }
.sl-verified svg { width: 16px; height: 16px; }
.sl-type {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--c-gold);
  background: rgba(232,201,126,0.1);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.sl-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--c-line);
}
.sl-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sl-stat span:first-child {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--c-ink);
}
.sl-stat span:last-child {
  font-size: 0.7rem;
  color: var(--c-ink-mute);
  font-weight: 600;
}
.sl-showroom-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--r-md);
  border: 1px solid rgba(232,201,126,0.42);
  color: var(--c-gold);
  font-weight: 900;
  text-decoration: none;
  background: rgba(232,201,126,0.08);
}
.sl-showroom-link:hover {
  border-color: var(--c-gold);
  background: rgba(232,201,126,0.14);
}

/* Extra actions */
.extra-actions {
  display: flex;
  gap: var(--sp-2);
}
.ea-btn {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.7rem 0.5rem;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  transition: all var(--t-fast) var(--ease-out);
}
.ea-btn:hover { color: var(--c-gold); border-color: var(--c-gold); }
.ea-btn.is-active { color: var(--c-gold); border-color: var(--c-gold); background: rgba(232,201,126,0.08); }
.ea-btn.is-active svg { fill: currentColor; }
.ea-btn-danger:hover { color: var(--c-red-soft); border-color: var(--c-red-soft); }

/* Listing meta card */
.listing-meta-card {
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
}
.lmc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-ink-mute);
}
.lmc-row strong { color: var(--c-ink); font-weight: 700; }

/* ============================================================
   20. STICKY MOBILE PRICE BAR
   ============================================================ */
.sticky-price-bar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  inset-inline: 0;
  z-index: 55;
  background: rgba(13,13,13,0.95);
  border-top: 1px solid var(--c-line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: var(--sp-2) 0;
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
}
[data-theme="light"] .sticky-price-bar {
  background: rgba(245,244,239,0.96);
}
.sticky-price-bar.is-visible { transform: translateY(0); }

@media (min-width: 1024px) {
  .sticky-price-bar { display: none; }
}

.spb-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.spb-price { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.spb-amount {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: var(--fs-base);
  color: var(--c-gold);
  line-height: 1.1;
}
.spb-currency {
  font-size: 0.6rem;
  color: var(--c-ink-mute);
  font-weight: 700;
}
.spb-actions {
  display: flex;
  gap: var(--sp-2);
  margin-inline-start: auto;
  flex-shrink: 0;
}
.spb-actions .btn { padding: 0.4rem 0.8rem; font-size: var(--fs-xs); min-height: 34px; }

/* ============================================================
   21. MARKET CHART MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 240ms var(--ease-out);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 92vh;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--sh-lg);
  animation: modalIn 320ms var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.modal-head h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-lg);
  color: var(--c-ink);
}
.modal-sub { color: var(--c-gold); font-size: var(--fs-sm); font-weight: 700; margin-top: 4px; }

.modal-close { width: 36px; height: 36px; flex-shrink: 0; }

.modal-body {
  padding: var(--sp-5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.market-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}
@media (min-width: 640px) { .market-kpis { grid-template-columns: repeat(4, 1fr); } }
.mk-tile {
  padding: var(--sp-3);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mk-label { font-size: 0.7rem; color: var(--c-ink-mute); font-weight: 600; }
.mk-value {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--c-ink);
}
.mk-value.is-up   { color: var(--c-green); }
.mk-value.is-down { color: var(--c-red-soft); }

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 4px;
  background: var(--c-bg-soft);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
}
.mt-tab {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--t-fast) var(--ease-out);
}
.mt-tab:hover { color: var(--c-ink); }
.mt-tab.is-active {
  background: var(--c-gold);
  color: var(--c-bg);
}

.chart-wrap {
  position: relative;
  height: 320px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}

.market-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--c-ink-soft);
  font-weight: 600;
}
.ml-item { display: inline-flex; align-items: center; gap: 6px; }
.ml-dot { width: 12px; height: 12px; border-radius: 50%; }
.ml-bar { width: 14px; height: 6px; border-radius: 2px; background: rgba(108,92,231,0.5); }

.market-disclaimer {
  font-size: var(--fs-xs);
  color: var(--c-ink-mute);
  line-height: 1.6;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}

/* Modal open: lock body */
body.modal-open { overflow: hidden; }

/* ============================================================
   CONFIRMATION DIALOG
   ============================================================ */
body.confirm-dialog-open { overflow: hidden; }

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.confirm-dialog.is-closing {
  pointer-events: none;
}

.confirm-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeIn 180ms var(--ease-out);
}

.confirm-dialog-panel {
  position: relative;
  width: min(100%, 430px);
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid rgba(232,201,126,0.28);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(232,201,126,0.08), transparent 46%),
    var(--c-bg-elev);
  box-shadow: var(--sh-lg);
  animation: confirmDialogIn 220ms var(--ease-out);
}

.confirm-dialog.is-closing .confirm-dialog-panel {
  animation: confirmDialogOut 160ms var(--ease-out) forwards;
}

@keyframes confirmDialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confirmDialogOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

.confirm-dialog-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(232,201,126,0.13);
  color: var(--c-gold);
}

.confirm-dialog-icon svg {
  width: 26px;
  height: 26px;
}

.confirm-dialog-copy {
  display: grid;
  gap: var(--sp-1);
}

.confirm-dialog-copy h2 {
  margin: 0;
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 900;
  line-height: 1.25;
}

.confirm-dialog-copy p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.75;
}

.confirm-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding-top: var(--sp-1);
}

.confirm-dialog-actions .btn {
  min-height: 46px;
}

.confirm-dialog-danger .confirm-dialog-icon {
  background: rgba(255,99,99,0.12);
  color: var(--c-red-soft);
}

.confirm-dialog-danger .confirm-dialog-panel {
  border-color: rgba(255,99,99,0.24);
}

.confirm-dialog-success .confirm-dialog-icon {
  background: rgba(72,187,120,0.12);
  color: var(--c-green);
}

@media (max-width: 640px) {
  .confirm-dialog {
    align-items: flex-end;
    padding: var(--sp-3);
    padding-bottom: calc(var(--bottom-nav-h) + var(--sp-3));
  }

  .confirm-dialog-panel {
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) var(--r-md) var(--r-md);
    padding: var(--sp-3);
  }

  .confirm-dialog-actions {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--sp-5));
  inset-inline-start: 50%;
  transform: translateX(50%) translateY(20px);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.8rem 1.3rem;
  background: var(--c-ink);
  color: var(--c-bg);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-out);
  box-shadow: var(--sh-lg);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}
.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
  font-size: 0.85rem;
}
@media (min-width: 1024px) {
  .toast { bottom: var(--sp-5); }
}

/* Add bottom padding to body when sticky-price-bar is visible (mobile) */
@media (max-width: 1023px) {
  body.has-sticky-bar { padding-bottom: calc(var(--bottom-nav-h) + 54px); }
}

/* ============================================================
   23. SELL PAGE
   ============================================================ */
.sell-hero {
  padding-block: calc(var(--header-h) + var(--sp-6)) var(--sp-6);
  background:
    linear-gradient(180deg, rgba(232,201,126,0.08), transparent 55%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.sell-hero-grid {
  display: grid;
  gap: var(--sp-5);
  align-items: end;
}
@media (min-width: 900px) {
  .sell-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}
.sell-hero-copy h1 {
  max-width: 14ch;
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  font-weight: 900;
  color: var(--c-ink);
}
.sell-hero-copy p {
  max-width: 56ch;
  margin-top: var(--sp-4);
  color: var(--c-ink-soft);
  font-size: var(--fs-md);
}
.sell-summary {
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg);
  display: grid;
  gap: var(--sp-3);
}
.selected-plan-banner {
  padding: var(--sp-3);
  background: rgba(232,201,126,0.10);
  border: 1px solid rgba(232,201,126,0.28);
  border-radius: var(--r-md);
}
.selected-plan-banner span {
  display: block;
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.selected-plan-banner strong {
  display: block;
  margin-top: 2px;
  color: var(--c-gold);
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  line-height: 1;
}
.ss-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
}
.ss-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ss-row strong { color: var(--c-gold); font-family: var(--ff-display); font-size: var(--fs-md); }

.sell-flow-section { padding-block: var(--sp-6) var(--sp-8); }
.sell-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 1024px) {
  .sell-layout { max-width: 1080px; }
}
.sell-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
  padding: var(--sp-2) 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  scrollbar-width: thin;
}
@media (min-width: 1024px) {
  .sell-steps {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: var(--sp-4) var(--sp-5);
    background:
      linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
      rgba(18,18,17,0.62);
    border: 1px solid rgba(232,201,126,0.18);
    border-radius: var(--r-xl);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    scrollbar-width: none;
  }

  .sell-steps::-webkit-scrollbar {
    display: none;
  }

  .sell-step {
    min-width: 0;
    flex: 1 1 0;
  }
}
.sell-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  flex: 1 0 38px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--c-ink-soft);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease-out);
}
.sell-step::before,
.sell-step::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 19px);
  height: 3px;
  background: rgba(255,255,255,0.12);
  transform: translateY(-50%);
  transition: background var(--t-fast) var(--ease-out);
}
.sell-step::before { inset-inline-start: 0; }
.sell-step::after { inset-inline-end: 0; }
.sell-step:first-child::before,
.sell-step:last-child::after {
  display: none;
}
.sell-step span {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--c-gold);
  font-weight: 900;
  box-shadow: 0 0 0 6px rgba(13,13,13,0.65);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.sell-step strong { white-space: nowrap; }
.sell-step .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sell-step.is-active {
  color: var(--c-ink);
  background: transparent;
}
.sell-step.is-active span {
  border-color: var(--c-gold);
  background: rgba(232,201,126,0.16);
  color: var(--c-ink);
}
.sell-step.is-complete::before,
.sell-step.is-complete::after,
.sell-step.is-active::before {
  background: var(--c-gold);
}
.sell-step.is-complete span {
  background: var(--c-gold);
  color: #111;
  border-color: var(--c-gold);
}

.sell-form {
  display: flex;
  flex-direction: column;
  height: 700px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025)),
    rgba(22,22,20,0.78);
  border: 1px solid rgba(232,201,126,0.22);
  border-radius: var(--r-2xl);
  box-shadow: 0 28px 90px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.sell-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--sp-4);
  background: transparent;
  border: 0;
  border-radius: 0;
}
.sell-step-panel[hidden] { display: none; }
[data-step-panel="3"] .sell-specs-list { flex: 1; overflow-y: auto; min-height: 0; }
@media (min-width: 768px) {
  .sell-form { height: 740px; }
  .sell-panel { padding: var(--sp-5); }
}
.sell-panel-head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.sell-panel-num {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(232,201,126,0.12);
  color: var(--c-gold);
  font-weight: 900;
}
.sell-panel-head h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  line-height: 1.1;
  color: var(--c-ink);
}
.sell-panel-head p {
  margin-top: 4px;
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
}

.sell-plan-grid {
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 780px) {
  .sell-plan-grid { grid-template-columns: repeat(3, 1fr); }
}
.sell-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.sell-plan input { position: absolute; opacity: 0; pointer-events: none; }
.sell-plan.is-selected { border-color: var(--c-gold); box-shadow: inset 0 0 0 1px var(--c-gold); }
.sell-plan-name { color: var(--c-gold); font-weight: 800; }
.sell-plan strong { font-family: var(--ff-display); font-size: var(--fs-xl); color: var(--c-ink); }
.sell-plan span:last-child { color: var(--c-ink-mute); font-size: var(--fs-sm); }
.plan-reflection {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(232,201,126,0.08);
  border: 1px solid rgba(232,201,126,0.24);
  border-radius: var(--r-md);
}
.plan-reflection strong {
  color: var(--c-gold);
  font-family: var(--ff-display);
  font-size: var(--fs-md);
}
.plan-reflection p {
  margin-top: 4px;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
}

.sell-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  overflow-y: auto;
  overflow-x: hidden;
  padding-inline-end: var(--sp-2);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,201,126,0.34) transparent;
}
.sell-field-grid::-webkit-scrollbar {
  width: 5px;
}
.sell-field-grid::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--r-pill);
}
.sell-field-grid::-webkit-scrollbar-thumb {
  background: rgba(232,201,126,0.32);
  border-radius: var(--r-pill);
}
.sell-field-grid:hover::-webkit-scrollbar-thumb {
  background: rgba(232,201,126,0.5);
}
@media (min-width: 720px) {
  .sell-field-grid { grid-template-columns: repeat(2, 1fr); }
}
.sell-field-grid-slim {
  max-width: 560px;
}
.sell-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sell-field span {
  color: var(--c-ink-soft);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.sell-field input,
.sell-field select,
.sell-field textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  min-height: 48px;
  background: var(--c-bg-elev-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
  color: var(--c-ink);
  font: inherit;
  transition: border-color var(--t-fast) var(--ease-out);
}
.page-sell,
.page-sell .sell-form,
.page-sell .sell-panel,
.page-sell .sell-field-grid,
.page-sell .sell-field select,
.page-sell .sell-field textarea {
  scrollbar-width: thin;
  scrollbar-color: rgba(232,201,126,0.34) transparent;
}
.page-sell ::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.page-sell ::-webkit-scrollbar-track {
  background: transparent;
}
.page-sell ::-webkit-scrollbar-thumb {
  background-color: rgba(232,201,126,0.32);
  border-radius: var(--r-pill);
}
.page-sell ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(232,201,126,0.5);
}
.page-sell .sell-field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.page-sell .sell-field input[type="number"]::-webkit-outer-spin-button,
.page-sell .sell-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sell-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.sell-field input:focus,
.sell-field select:focus,
.sell-field textarea:focus { border-color: var(--c-gold); }
.sell-auto-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-inline-start: 6px;
  padding: 1px 7px;
  background: rgba(0, 176, 123, 0.15);
  color: #00b07b;
  border: 1px solid rgba(0, 176, 123, 0.3);
  border-radius: var(--r-pill, 999px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: middle;
  line-height: 1.6;
}
.page-sell .sell-field input:focus,
.page-sell .sell-field select:focus,
.page-sell .sell-field textarea:focus,
.page-sell .sell-field input:focus-visible,
.page-sell .sell-field select:focus-visible,
.page-sell .sell-field textarea:focus-visible {
  outline: 0;
  outline-offset: 0;
  box-shadow: none;
}
.sell-field [aria-invalid="true"] { border-color: var(--c-red-soft); }
.sell-field-full { margin-top: var(--sp-3); }
.sell-native-select {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.sell-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 4px;
  padding-inline-end: 0;
  padding-bottom: var(--sp-1);
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sell-inline-trim {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  gap: var(--sp-3);
}
.sell-inline-trim[hidden] {
  display: none;
}
.sell-step-choice-stage {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}
.sell-step-choice-stage[hidden] {
  display: none;
}
.sell-back-inline {
  align-self: flex-start;
  padding: 0.55rem 0.9rem;
  color: var(--c-gold);
  background: rgba(232,201,126,0.08);
  border: 1px solid rgba(232,201,126,0.28);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 900;
  cursor: pointer;
}
.sell-choice-grid::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.sell-choice-grid::-webkit-scrollbar-track {
  display: none;
}
.sell-choice-grid::-webkit-scrollbar-thumb {
  display: none;
}
.sell-choice-grid:hover::-webkit-scrollbar-thumb {
  display: none;
}
.sell-choice-grid-makes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 680px) {
  .sell-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sell-choice-grid-makes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .sell-choice-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sell-choice-grid-makes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.sell-choice-card {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  color: var(--c-ink);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.sell-choice-card:hover,
.sell-choice-card.is-selected {
  transform: translateY(-1px);
  border-color: var(--c-gold);
  background: rgba(232,201,126,0.12);
}
.sell-choice-card strong {
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.sell-choice-logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sell-choice-logo--initials {
  border-radius: 50%;
  color: var(--c-gold);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 900;
}
.sell-choice-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.30));
}
@media (max-width: 520px) {
  [data-step-panel="2"].sell-panel {
    padding: 12px;
  }
  [data-step-panel="2"] .sell-panel-head {
    gap: 10px;
    margin-bottom: 10px;
  }
  [data-step-panel="2"] .sell-panel-num {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }
  [data-step-panel="2"] .sell-panel-head h2 {
    font-size: 1.2rem;
  }
  [data-step-panel="2"] .sell-panel-head p {
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  [data-step-panel="2"] .sell-field-grid {
    gap: 8px;
    padding-inline-end: 10px;
  }
  [data-step-panel="2"] .sell-field {
    gap: 4px;
  }
  [data-step-panel="2"] .sell-field span {
    font-size: 0.72rem;
  }
  [data-step-panel="2"] .sell-field input,
  [data-step-panel="2"] .sell-field select {
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }
  [data-step-panel="2"] .sell-step-actions {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 0;
  }
  [data-step-panel="2"] .sell-step-actions .btn {
    min-width: 116px;
    min-height: 40px;
    padding-block: 0.58rem;
  }
  [data-step-panel="3"].sell-panel {
    padding: 12px;
  }
  [data-step-panel="3"] .sell-panel-head {
    gap: 10px;
    margin-bottom: 8px;
  }
  [data-step-panel="3"] .sell-panel-num {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }
  [data-step-panel="3"] .sell-panel-head h2 {
    font-size: 1.2rem;
  }
  [data-step-panel="3"] .sell-panel-head p {
    margin-top: 2px;
    font-size: 0.78rem;
    line-height: 1.35;
  }
  [data-step-panel="3"] .sell-condition-page-head {
    padding: 0.35rem 0 0.25rem;
  }
  [data-step-panel="3"] .sell-condition-page-head span {
    font-size: 0.7rem;
  }
  [data-step-panel="3"] .sell-condition-page-head strong {
    font-size: 0.82rem;
  }
  [data-step-panel="3"] .sell-spec-group {
    gap: 0.28rem;
    padding: 0.38rem 0;
  }
  [data-step-panel="3"] .sell-spec-row-label {
    font-size: 0.62rem;
  }
  [data-step-panel="3"] .sell-spec-options {
    gap: 0.22rem;
  }
  [data-step-panel="3"] .sell-spec-tag {
    padding: 0.18rem 0.52rem;
    font-size: 0.72rem;
    line-height: 1.35;
  }
  [data-step-panel="3"] .sell-step-actions {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 0;
  }
  [data-step-panel="3"] .sell-step-actions .btn {
    min-width: 116px;
    min-height: 40px;
    padding-block: 0.58rem;
  }
  .sell-choice-grid {
    gap: 8px;
    padding-inline-end: 0;
    scrollbar-gutter: auto;
  }
  .sell-choice-card {
    min-height: 72px;
    gap: 6px;
    padding: 9px 6px;
  }
  .sell-choice-card strong {
    font-size: 0.74rem;
    line-height: 1.15;
  }
  .sell-choice-logo,
  .sell-choice-logo img {
    width: 36px;
    height: 36px;
  }
}
.sell-choice-empty {
  grid-column: 1 / -1;
  padding: var(--sp-5);
  color: var(--c-ink-mute);
  text-align: center;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
}
.sell-price-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-2);
  padding-inline-end: var(--sp-3);
  background: var(--c-bg-elev-2);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-md);
}
.sell-price-input input {
  border: 0;
  background: transparent;
  direction: ltr;
  text-align: start;
}
.sell-price-input strong { color: var(--c-gold); font-size: var(--fs-sm); }

.photo-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 720px) {
  .photo-slot-grid { grid-template-columns: repeat(3, 1fr); }
}
.photo-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-slot-grid.is-dragging .photo-slot {
  border-color: var(--c-gold);
  background: rgba(232,201,126,0.10);
}
.photo-slot {
  min-height: 96px;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3);
  background: var(--c-bg-soft);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
}
.photo-slot:hover { border-color: var(--c-gold); color: var(--c-gold); }
.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-slot.has-photo {
  border-style: solid;
  border-color: rgba(232,201,126,0.45);
}
.photo-slot.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.72));
}
.photo-slot-label {
  position: relative;
  z-index: 1;
  text-align: center;
}
.photo-slot.has-photo .photo-slot-label {
  align-self: flex-end;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.photo-upload-note {
  margin-top: var(--sp-3);
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
}

.sell-step-actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-top: 1px solid var(--c-line);
  position: sticky;
  bottom: 0;
  background: var(--c-bg-elev);
  z-index: 1;
}
.sell-step-actions .btn {
  min-width: 132px;
}
.sell-step-actions .btn-primary {
  margin-inline-start: auto;
}
.sell-review-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: rgba(232,201,126,0.08);
  border: 1px solid rgba(232,201,126,0.24);
  border-radius: var(--r-lg);
}
.sell-review-card strong {
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
}
.sell-review-card span {
  color: var(--c-ink-soft);
}

.sell-submit-bar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-gold);
  border-radius: var(--r-lg);
}
@media (min-width: 720px) {
  .sell-submit-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.sell-submit-bar strong { display: block; color: var(--c-ink); font-family: var(--ff-display); font-size: var(--fs-lg); }
.sell-submit-bar span { color: var(--c-ink-mute); font-size: var(--fs-sm); }

.dealer-package-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .dealer-package-grid { grid-template-columns: repeat(3, 1fr); }
}
.dealer-package {
  padding: var(--sp-4);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.dealer-package span { color: var(--c-gold); font-size: var(--fs-xs); font-weight: 800; }
.dealer-package strong { display: block; margin-top: var(--sp-1); color: var(--c-ink); font-family: var(--ff-display); font-size: var(--fs-xl); }
.dealer-package p { margin-top: var(--sp-2); color: var(--c-ink-mute); font-size: var(--fs-sm); }

/* ============================================================
   24. PRE-SELL PLAN PAGE
   ============================================================ */
.plan-main {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(232,201,126,0.10), transparent 42%),
    var(--c-bg);
}
.plan-hero {
  padding-block: calc(var(--header-h) + var(--sp-7)) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.plan-hero-inner {
  max-width: 780px;
}
.plan-hero h1 {
  margin-top: var(--sp-3);
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  color: var(--c-ink);
}
.plan-hero p {
  margin-top: var(--sp-4);
  color: var(--c-ink-soft);
  font-size: var(--fs-md);
  max-width: 58ch;
}
.plan-section {
  padding-block: var(--sp-6) var(--sp-9);
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 860px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.pre-sell-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.pre-sell-card.is-featured {
  border-color: var(--c-gold);
  box-shadow: inset 0 0 0 1px var(--c-gold), var(--sh-md);
}
.plan-duration {
  width: max-content;
  padding: 0.35rem 0.75rem;
  background: rgba(232,201,126,0.10);
  border: 1px solid rgba(232,201,126,0.28);
  border-radius: var(--r-pill);
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 900;
}
.pre-sell-card h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  color: var(--c-ink);
}
.pre-sell-card strong {
  font-family: var(--ff-display);
  font-size: var(--fs-2xl);
  line-height: 1;
  color: var(--c-gold);
}
.pre-sell-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
}
.pre-sell-card li {
  position: relative;
  padding-inline-start: 1rem;
}
.pre-sell-card li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-gold);
}
.pre-sell-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ============================================================
   25. SELL PAGE — DESKTOP ENHANCEMENTS
   ============================================================ */

/* ── sell.html hero ────────────────────────────────────────── */
@media (min-width: 1100px) {
  .sell-hero {
    padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-7);
  }
  .sell-hero-grid {
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: var(--sp-8);
  }
  .sell-hero-copy h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    max-width: 16ch;
  }
  .sell-summary {
    padding: var(--sp-5);
    border-radius: var(--r-xl);
    gap: var(--sp-4);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  }
  .selected-plan-banner {
    padding: var(--sp-4);
    border-radius: var(--r-lg);
  }
  .selected-plan-banner strong {
    font-size: var(--fs-2xl);
    margin-top: var(--sp-1);
  }
  .ss-row {
    padding-block: var(--sp-3);
    font-size: var(--fs-base);
  }
  .ss-row strong {
    font-size: var(--fs-lg);
  }
}

/* ── sell.html layout sidebar ─────────────────────────────── */
@media (min-width: 1200px) {
  .sell-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    align-items: start;
  }
  .sell-step {
    padding: 0;
  }
  .sell-step span {
    width: 40px;
    height: 40px;
    font-size: var(--fs-md);
  }
}

/* ── sell.html panels ─────────────────────────────────────── */
@media (min-width: 1100px) {
  .sell-panel {
    padding: var(--sp-6);
    border-radius: var(--r-xl);
  }
  .sell-panel-head {
    margin-bottom: var(--sp-5);
    gap: var(--sp-4);
  }
  .sell-panel-num {
    width: 46px;
    height: 46px;
    font-size: var(--fs-md);
    flex-shrink: 0;
  }
  .sell-panel-head h2 {
    font-size: var(--fs-2xl);
  }
  .sell-panel-head p {
    font-size: var(--fs-base);
  }
}

/* ── sell.html field grid: 3 cols on wide desktop ─────────── */
@media (min-width: 1100px) {
  .sell-field-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
  .sell-field span {
    font-size: var(--fs-sm);
  }
}

/* ── sell.html plan grid: 4 cols ──────────────────────────── */
@media (min-width: 1024px) {
  .sell-plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .sell-plan {
    padding: var(--sp-5);
  }
  .sell-plan strong {
    font-size: var(--fs-2xl);
  }
}

/* ── sell.html photo slots ────────────────────────────────── */
@media (min-width: 1024px) {
  .photo-slot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
  .photo-slot {
    min-height: 140px;
    font-size: var(--fs-sm);
    border-radius: var(--r-lg);
  }
}

/* ── sell.html submit bar ─────────────────────────────────── */
@media (min-width: 1100px) {
  .sell-submit-bar {
    padding: var(--sp-5) var(--sp-6);
    border-radius: var(--r-xl);
  }
  .sell-submit-bar strong {
    font-size: var(--fs-xl);
  }
}

/* ── sell.html plan-reflection ────────────────────────────── */
@media (min-width: 1100px) {
  .plan-reflection {
    padding: var(--sp-5);
    border-radius: var(--r-lg);
  }
  .plan-reflection strong {
    font-size: var(--fs-lg);
  }
  .plan-reflection p {
    font-size: var(--fs-base);
    margin-top: var(--sp-2);
  }
}

/* ── sell.html dealer packages ────────────────────────────── */
@media (min-width: 1100px) {
  .dealer-package {
    padding: var(--sp-5);
    border-radius: var(--r-xl);
  }
  .dealer-package strong {
    font-size: var(--fs-2xl);
  }
  .dealer-package p {
    font-size: var(--fs-base);
    margin-top: var(--sp-3);
  }
}

/* ============================================================
   26. SELL-PLANS PAGE — DESKTOP ENHANCEMENTS
   ============================================================ */

/* ── plan-hero: full-width on desktop ─────────────────────── */
@media (min-width: 1100px) {
  .plan-hero {
    padding-block: calc(var(--header-h) + var(--sp-9)) var(--sp-7);
  }
  .plan-hero-inner {
    max-width: 100%;
    display: grid;
    /* In RTL: col-1 = right side, col-2 = left side.
       stats (col-1) land on the right, text (col-2) lands on the left. */
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: var(--sp-8);
  }
  /* text → col-2 = left side in RTL */
  .plan-hero-text {
    grid-column: 2;
    grid-row: 1;
  }
  /* stats → col-1 = right side in RTL */
  .plan-hero-stats {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    gap: var(--sp-5);
    margin-top: 0;
    padding: var(--sp-5) var(--sp-6);
    background: var(--c-bg-elev);
    border: 1px solid var(--c-line-strong);
    border-radius: var(--r-xl);
    min-width: 240px;
    align-self: stretch;
    justify-content: center;
  }
  .plan-hero h1 {
    font-size: clamp(3.5rem, 5.5vw, 6.5rem);
    margin-top: var(--sp-3);
  }
  .plan-hero p {
    font-size: var(--fs-lg);
    max-width: 52ch;
  }
  .hero-stat-num {
    font-size: var(--fs-2xl);
  }
  .hero-stat-lbl {
    font-size: var(--fs-sm);
    margin-top: 0.2rem;
  }
}

/* ── plan cards: 4-col grid with elevated card ────────────── */
@media (min-width: 1100px) {
  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: var(--sp-4);
  }
  .pre-sell-card {
    padding: var(--sp-5) var(--sp-5) var(--sp-6);
  }
  .pre-sell-card h2 {
    font-size: var(--fs-xl);
  }
  /* Price number: big on desktop */
  .plan-price-amount {
    font-size: 3.5rem;
  }
  .plan-price-amount.is-free {
    font-size: 2.6rem;
  }
  .plan-price-amount.is-super {
    font-size: 4rem;
  }
  /* Featured card elevates above the rest */
  .pre-sell-card.is-featured {
    transform: translateY(-10px);
    padding-top: var(--sp-6);
    box-shadow:
      inset 0 0 0 1px var(--c-gold),
      0 24px 60px rgba(232,201,126,0.18),
      0 4px 20px rgba(0,0,0,0.4);
  }
  /* Super premium card slight lift */
  .pre-sell-card.is-super {
    transform: translateY(-6px);
  }
}

/* ── plan section spacing ─────────────────────────────────── */
@media (min-width: 1100px) {
  .plan-section {
    padding-block: var(--sp-7) var(--sp-10);
  }
}

/* ── dealership card on desktop ───────────────────────────── */
@media (min-width: 1100px) {
  .dealership-card {
    padding: var(--sp-6) var(--sp-8);
    border-radius: var(--r-2xl);
  }
  .dealership-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-2);
  }
  .dealership-desc {
    font-size: var(--fs-base);
  }
  .dealership-features {
    gap: var(--sp-2);
    margin-top: var(--sp-4);
  }
  .dealership-chip {
    font-size: var(--fs-sm);
    padding: 0.4rem 1rem;
  }
}

/* ============================================================
   23. ACCOUNT PAGES
   ============================================================ */
.account-main {
  padding-block: calc(var(--sp-5) + 64px) var(--sp-8);
}
@media (max-width: 719px) {
  .account-main {
    padding-block-start: 44px;
  }
}
.favorites-main {
  padding-block: calc(var(--sp-5) + 64px) calc(var(--sp-8) + 74px);
}
.account-shell {
  max-width: 980px;
  margin-inline: auto;
}
.favorites-shell {
  display: grid;
  gap: var(--sp-5);
}
.favorites-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.account-mobile-back {
  display: none;
  margin-bottom: var(--sp-3);
}
.account-mobile-back a {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  color: var(--c-ink);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 800;
}
.account-mobile-back svg {
  color: var(--c-gold);
}
@media (max-width: 719px) {
  .account-mobile-back {
    display: block;
  }
  .account-mobile-back + .container.account-shell .account-hero > .section-cta {
    display: none;
  }
}
.account-hero {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.account-kicker {
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.account-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--c-ink);
  line-height: 1.08;
}
.account-subtitle {
  color: var(--c-ink-soft);
  line-height: 1.7;
  max-width: 62ch;
}
.account-user-card {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  width: max-content;
  max-width: 100%;
  padding: var(--sp-3);
  color: var(--c-ink);
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.account-avatar {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--c-bg);
  background: var(--c-gold);
  font-weight: 900;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-user-card strong,
.account-user-card span {
  display: block;
}
.account-user-card span {
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  direction: ltr;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 720px) {
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.account-tile,
.account-panel {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.account-tile {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  color: var(--c-ink);
  text-decoration: none;
  text-align: inherit;
  min-height: 88px;
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
button.account-tile {
  width: 100%;
  font: inherit;
  cursor: pointer;
}
.account-tile:hover {
  border-color: var(--c-gold);
  transform: translateY(-2px);
}
.account-tile-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: rgba(232,201,126,0.10);
  color: var(--c-gold);
}
.account-tile h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 900;
  color: var(--c-ink);
}
.account-tile p {
  margin-top: 2px;
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  line-height: 1.45;
}
.account-tile-meta {
  display: inline-flex;
  width: max-content;
  min-width: 92px;
  min-height: 24px;
  margin-top: var(--sp-2);
  padding: 0.22rem 0.55rem;
  color: var(--c-gold);
  background: rgba(232,201,126,0.10);
  border: 1px solid rgba(232,201,126,0.22);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.account-skeleton {
  pointer-events: none;
  user-select: none;
}
.account-user-card.account-skeleton {
  min-width: min(100%, 320px);
}
.account-skeleton-avatar,
.account-skeleton-line,
.account-skeleton-pill {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(110deg, rgba(245,244,239,0.08) 0%, rgba(245,244,239,0.15) 38%, rgba(245,244,239,0.08) 76%);
  background-size: 240% 100%;
  animation: accountSkeletonShimmer 1.45s var(--ease-in-out) infinite;
}
.account-skeleton-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.account-skeleton-copy {
  display: grid;
  gap: 9px;
  min-width: 190px;
}
.account-skeleton-line {
  height: 12px;
  border-radius: var(--r-pill);
}
.account-skeleton-line.is-tiny { width: 42px; }
.account-skeleton-line.is-short { width: 74px; }
.account-skeleton-line.is-medium { width: 124px; }
.account-skeleton-line.is-long { width: 190px; max-width: 100%; }
.account-skeleton-pill {
  color: transparent;
  border-color: rgba(245,244,239,0.08);
}
.account-record-skeleton {
  min-height: 76px;
}
.account-skeleton-list li {
  min-height: 52px;
}
@keyframes accountSkeletonShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
.account-tile-arrow {
  color: var(--c-gold);
}
.account-panel {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.legal-panel {
  display: grid;
  gap: var(--sp-5);
  line-height: 1.9;
}

.legal-panel section {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}

.legal-panel section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-panel h2 {
  margin-bottom: var(--sp-2);
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 900;
}

.legal-panel p,
.legal-panel li {
  color: var(--c-ink-soft);
}

.legal-panel ul {
  display: grid;
  gap: var(--sp-2);
  padding-inline-start: var(--sp-5);
  list-style: disc;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.account-danger-zone {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid rgba(192,57,43,.32);
  border-radius: var(--r-lg);
  background: rgba(192,57,43,.08);
}

.account-danger-zone strong {
  display: block;
  color: var(--c-ink);
  margin-bottom: var(--sp-1);
}

.account-danger-zone p {
  margin: 0 0 var(--sp-3);
  color: var(--c-ink-mute);
  line-height: 1.7;
}

.account-security-summary {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.account-security-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.025);
}
.account-security-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--c-gold);
  background: rgba(232,201,126,0.12);
}
.account-security-card div {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}
.account-security-card span,
.account-security-card small {
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.account-security-card strong {
  min-width: 0;
  color: var(--c-ink);
  font-size: var(--fs-md);
  overflow-wrap: anywhere;
}
.account-security-note {
  padding: var(--sp-4);
  border: 1px solid rgba(78,201,168,0.24);
  border-radius: var(--r-lg);
  background: rgba(78,201,168,0.08);
}
.account-security-note strong {
  display: block;
  margin-bottom: var(--sp-1);
  color: var(--c-ink);
  font-weight: 900;
}
.account-security-note p {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.7;
}

/* ============================================================
   Segmented dealer registration
   ============================================================ */
.dealer-register-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-2);
  margin: var(--sp-5) 0;
}

.dealer-register-step {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: var(--sp-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-ink-mute);
  font: inherit;
  cursor: pointer;
}

.dealer-register-step span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line-strong);
  font-weight: 900;
}

.dealer-register-step strong {
  font-size: var(--fs-xs);
}

.dealer-register-step.is-active,
.dealer-register-step.is-complete {
  border-color: rgba(232,201,126,.44);
  color: var(--c-ink);
}

.dealer-register-step.is-active span,
.dealer-register-step.is-complete span {
  background: var(--c-gold);
  color: #111;
  border-color: var(--c-gold);
}

.dealer-register-panel[hidden] {
  display: none;
}

.dealer-media-grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 720px) {
  .dealer-media-grid {
    grid-template-columns: .7fr 1.3fr;
  }
}

.dealer-media-slot {
  min-height: 220px;
  position: relative;
  display: grid;
  align-content: end;
  gap: var(--sp-1);
  padding: var(--sp-4);
  border: 1.5px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--c-ink);
  background: var(--c-bg-elev);
  cursor: pointer;
}

.dealer-media-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dealer-media-preview {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78)),
    linear-gradient(135deg, rgba(232,201,126,.14), rgba(255,255,255,.04));
  background-size: cover;
  background-position: center;
}

.dealer-media-slot strong,
.dealer-media-slot small {
  position: relative;
  z-index: 1;
}

.dealer-media-slot small {
  color: rgba(255,255,255,.74);
}

.dealer-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.dealer-map-preview {
  min-height: 260px;
  display: grid;
  place-items: center;
  margin-top: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-elev);
  color: var(--c-ink-mute);
  text-align: center;
}

.dealer-map-preview iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.dealer-register-review {
  display: grid;
  gap: var(--sp-2);
}

.dealer-register-review div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  min-width: 0;
  padding: var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-elev);
}

.dealer-register-review span {
  color: var(--c-ink-mute);
}

.dealer-register-review strong {
  min-width: 0;
  color: var(--c-ink);
  text-align: end;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 620px) {
  .dealer-register-steps {
    grid-template-columns: repeat(5, 42px);
    overflow-x: auto;
  }

  .dealer-register-step strong {
    display: none;
  }

  .dealer-register-review div {
    display: grid;
    gap: var(--sp-1);
  }

  .dealer-register-review strong {
    text-align: inherit;
  }
}

/* ============================================================
   Public dealership showroom page
   ============================================================ */
.page-showroom {
  background: var(--c-bg);
}

.showroom-main {
  padding-bottom: calc(var(--bottom-nav-h) + var(--sp-8));
}

.showroom-hero {
  position: relative;
  min-height: 210px;
  padding-top: var(--header-h);
  overflow: hidden;
  border-bottom: 1px solid var(--c-line);
}

.showroom-cover {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,.18), rgba(13,13,13,.90)),
    radial-gradient(circle at 22% 16%, rgba(232,201,126,.10), transparent 34%),
    linear-gradient(135deg, #262626, #101010 58%, #2e2412);
  background-size: cover;
  background-position: center;
}

.showroom-profile {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: end;
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-4);
}

.showroom-avatar {
  width: clamp(68px, 7vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255,255,255,.16);
  background: var(--c-gold);
  color: #111;
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.showroom-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showroom-headline {
  min-width: 0;
}

.showroom-kicker {
  color: var(--c-gold);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.showroom-headline h1 {
  margin: var(--sp-2) 0 var(--sp-1);
  color: #fff;
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.showroom-headline p {
  color: rgba(255,255,255,.78);
  margin: 0;
  font-size: var(--fs-md);
}

.showroom-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: var(--sp-5);
  align-items: start;
  padding-top: var(--sp-5);
}

.showroom-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-3));
  display: grid;
  gap: var(--sp-3);
}

.showroom-actions {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-bg-card);
}

.showroom-actions h2 {
  margin: 0 0 var(--sp-1);
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-md);
}

.showroom-actions .btn {
  justify-content: center;
  border-color: var(--c-line-strong);
  background: rgba(255,255,255,.035);
  color: var(--c-ink);
  box-shadow: none;
}

.showroom-actions .btn:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(232,201,126,.08);
}

.showroom-extra {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-bg-card);
  color: var(--c-ink-soft);
}

.showroom-extra p,
.showroom-extra span {
  margin: 0;
  line-height: 1.7;
}

.showroom-extra-links {
  display: grid;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.showroom-details:empty {
  display: none;
}

.showroom-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
}

.showroom-stats article {
  padding: var(--sp-3);
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}

.showroom-stats span {
  display: block;
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-1);
}

.showroom-stats strong {
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
}

.showroom-content {
  min-width: 0;
}

.showroom-content .section-head {
  margin-bottom: var(--sp-4);
}

.showroom-content .results-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.showroom-card-tools {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3);
  border-top: 1px solid var(--c-line);
  background: rgba(13,13,13,.72);
}

.showroom-card-tools a,
.showroom-card-tools button,
.showroom-status {
  min-height: 34px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.04);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 800;
}

.showroom-card-tools a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.showroom-card-tools button {
  cursor: pointer;
}

.showroom-card-tools a:hover,
.showroom-card-tools button:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.showroom-status {
  display: inline-flex;
  align-items: center;
  color: var(--c-gold);
}

.listing-card.is-inactive-listing {
  opacity: .72;
}

.listing-card.is-inactive-listing::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.04) 8px, transparent 8px, transparent 16px);
}

@media (max-width: 900px) {
  .showroom-layout {
    grid-template-columns: 1fr;
  }

  .showroom-sidebar {
    position: static;
    order: 2;
  }

  .showroom-content {
    order: 1;
  }

  .showroom-profile {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .showroom-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showroom-extra {
    grid-column: auto;
  }

  .showroom-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .showroom-hero {
    min-height: 250px;
  }

  .showroom-profile {
    min-height: 180px;
  }

  .showroom-actions {
    grid-template-columns: 1fr;
  }

  .showroom-stats {
    grid-template-columns: 1fr;
  }
}
.account-list {
  display: grid;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}
.account-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
}
.account-list strong {
  color: var(--c-ink);
  direction: ltr;
}
.account-records {
  display: grid;
  gap: var(--sp-2);
}
.account-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  color: var(--c-ink);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.account-record strong,
.account-record span,
.account-record a {
  display: block;
}
.account-record span {
  margin-top: 0.15rem;
  color: var(--c-ink-mute);
  font-size: var(--fs-sm);
}
.account-record-side {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  direction: ltr;
}
.account-record-side a {
  color: var(--c-gold);
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration: none;
}
.offer-summary-strip {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--sp-3);
  padding: 0.28rem;
  border: 1px solid rgba(232,201,126,0.16);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.035);
  overflow-x: auto;
  scrollbar-width: none;
}
.offer-summary-strip::-webkit-scrollbar {
  display: none;
}
.offer-filter-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  flex: 1 0 max-content;
  min-height: 42px;
  padding: 0.52rem 0.85rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 900;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--tr-fast), background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast);
}
.offer-filter-chip:hover,
.offer-filter-chip:focus-visible,
.offer-filter-chip.is-active {
  border-color: rgba(232,201,126,0.58);
  background:
    linear-gradient(180deg, rgba(232,201,126,0.22), rgba(232,201,126,0.1)),
    rgba(232,201,126,0.12);
  color: var(--c-ink);
}
.offer-filter-chip:hover {
  transform: translateY(-1px);
}
.offer-filter-chip:focus-visible {
  outline: 2px solid rgba(232,201,126,0.42);
  outline-offset: 2px;
}
.offer-summary-strip strong {
  color: var(--c-ink);
  font-size: var(--fs-sm);
  line-height: 1;
}
.account-offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
  padding: var(--sp-3);
  border-color: rgba(232,201,126,0.16);
  background:
    linear-gradient(135deg, rgba(232,201,126,0.06), transparent 38%),
    var(--c-bg-soft);
}
.account-offer-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  width: auto;
  background: var(--c-gold);
  opacity: 0.54;
}
.account-offer-card[data-offer-status="accepted"]::before {
  background: var(--c-green);
  opacity: 0.72;
}
.offer-card-head,
.offer-card-body,
.offer-card-foot,
.offer-actions {
  position: relative;
  z-index: 1;
}
.offer-card-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.offer-card-body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}
.offer-role {
  display: inline-flex;
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 900;
  white-space: nowrap;
}
.offer-message {
  max-width: 52ch;
  margin: 0.45rem 0 0;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.offer-response {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(232,201,126,0.24);
  border-radius: var(--r-pill);
  background: rgba(232,201,126,0.08);
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 900;
}
.offer-response.is-good { color: var(--c-green); border-color: rgba(95,201,142,0.25); background: rgba(95,201,142,0.08); }
.offer-response.is-muted { color: var(--c-ink-mute); border-color: var(--c-line); background: rgba(255,255,255,0.03); }
.offer-response-note {
  max-width: 46ch;
  margin: 0.25rem 0 0;
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.offer-seller-contact {
  display: grid;
  gap: 0.38rem;
  width: min(100%, 430px);
  margin-top: 0.7rem;
  padding: 0.72rem;
  border: 1px solid rgba(95,201,142,0.24);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(95,201,142,0.1), rgba(95,201,142,0.035)),
    rgba(255,255,255,0.025);
}
.offer-seller-contact span {
  margin: 0;
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.offer-seller-contact strong {
  color: var(--c-ink);
  font-size: var(--fs-md);
}
.offer-seller-contact small {
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.45;
}
.offer-seller-contact div {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.offer-seller-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.4rem 0.72rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.07);
  color: var(--c-gold);
  font-size: var(--fs-xs);
  font-weight: 900;
  text-decoration: none;
}
.offer-card-foot {
  align-self: end;
  justify-items: end;
  min-width: 128px;
  direction: rtl;
  text-align: end;
}
.offer-card-foot strong {
  color: var(--c-ink);
  font-size: var(--fs-xl);
  line-height: 1;
  direction: ltr;
}
.offer-status {
  width: fit-content;
  padding: 0.24rem 0.62rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  color: var(--c-ink-soft);
  font-size: var(--fs-xs);
  font-weight: 900;
  white-space: nowrap;
}
.offer-status-pending { color: var(--c-gold); background: rgba(232,201,126,0.1); }
.offer-status-accepted { color: var(--c-green); background: rgba(95,201,142,0.1); }
.offer-status-rejected { color: var(--c-red-soft); background: rgba(255,107,107,0.09); }
.offer-status-countered { color: var(--c-gold); background: rgba(232,201,126,0.1); }
.offer-status-withdrawn { color: var(--c-ink-mute); background: rgba(255,255,255,0.055); }
.offer-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.offer-actions .btn {
  min-height: 38px;
  padding: 0.55rem 0.85rem;
}
@media (max-width: 520px) {
  .offer-filter-chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
  }
  .account-user-card,
  .account-record {
    width: 100%;
  }
  .account-record:not(.account-offer-card) {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-offer-card {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    padding: var(--sp-3);
  }
  .offer-card-head {
    gap: var(--sp-1);
  }
  .account-record-side {
    width: 100%;
    text-align: right;
  }
  .offer-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    justify-items: initial;
    min-width: 0;
    padding-top: var(--sp-2);
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .offer-card-foot strong {
    font-size: var(--fs-lg);
  }
  .offer-actions {
    width: 100%;
    justify-content: stretch;
  }
  .offer-actions .btn {
    flex: 1 1 90px;
  }
  .offer-seller-contact {
    width: 100%;
  }
  .offer-seller-contact a {
    flex: 1 1 90px;
  }
}
.account-empty {
  padding: var(--sp-5);
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--r-lg);
  color: var(--c-ink-mute);
  background: rgba(255,255,255,0.02);
  line-height: 1.7;
}
.account-empty-offers {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-style: solid;
  border-color: rgba(232,201,126,0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(232,201,126,0.14), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  text-align: center;
}
.account-empty-art {
  width: min(230px, 76vw);
  color: var(--c-gold);
}
.account-empty-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,0.24));
}
.account-empty-copy {
  display: grid;
  gap: var(--sp-2);
  max-width: 560px;
}
.account-empty-copy strong {
  color: var(--c-ink);
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 900;
}
.account-empty-copy p {
  margin: 0;
  color: var(--c-ink-soft);
}
.account-empty-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .account-empty-actions {
    width: 100%;
  }
  .account-empty-actions .btn {
    width: 100%;
  }
  .account-switch-google {
    align-items: stretch;
    flex-direction: column;
  }
  .account-switch-google .btn {
    width: 100%;
  }
}
.account-form {
  display: grid;
  gap: var(--sp-3);
}
.account-info-form {
  min-height: 360px;
  align-content: center;
}
.account-info-form .account-actions {
  justify-content: center;
}
.account-switch-google {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-line);
}
.account-switch-google div {
  display: grid;
  gap: 0.22rem;
}
.account-switch-google strong {
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 900;
}
.account-switch-google small {
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
@media (max-width: 520px) {
  .account-switch-google {
    align-items: stretch;
    flex-direction: column;
  }
  .account-switch-google .btn {
    width: 100%;
  }
}
.account-field {
  display: grid;
  gap: var(--sp-2);
}
.account-field span {
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.account-field small {
  color: var(--c-ink-mute);
  font-size: var(--fs-xs);
  line-height: 1.6;
}
.account-field input,
.account-field select,
.account-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  color: var(--c-ink);
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font: inherit;
}
.account-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline: 0.9rem 2.6rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--c-ink-soft) 50%) left 1.05rem center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--c-ink-soft) 50%, transparent 50%) left 0.72rem center / 7px 7px no-repeat,
    var(--c-bg-card);
  cursor: pointer;
}
.account-field select:hover {
  border-color: var(--c-line-strong);
}
.account-field select:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(232,201,126,0.12);
}
.account-field select option {
  color: var(--c-ink);
  background: var(--c-bg-elev);
}
.account-field input[readonly] {
  color: var(--c-ink-soft);
  background: rgba(255,255,255,0.035);
  cursor: default;
}
.account-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   24. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
