/* ============================================================
   Saberian Motors — dark luxury 3D theme
   ============================================================ */
:root {
  --bg: #07070f;
  --bg-2: #0d0d1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f2f3f7;
  --text-dim: #9aa0b4;
  --gold: #e8c15a;
  --gold-2: #b8860b;
  --wa: #25d366;
  --danger: #ff5c6c;
  --radius: 20px;
  --font-fa: 'Vazirmatn', sans-serif;
  --font-en: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute always wins, even over display rules on classes */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa), var(--font-en);
  overflow-x: hidden;
  min-height: 100vh;
}
html[lang="en"] body { font-family: var(--font-en), var(--font-fa); }

::selection { background: var(--gold); color: #000; }

/* ---------- animated background ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 90, 220, 0.18), transparent),
    var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: #3b2a7a; top: -12%; inset-inline-start: -8%; }
.orb-2 { width: 380px; height: 380px; background: #7a5b16; bottom: 8%; inset-inline-end: -6%; animation-delay: -8s; }
.orb-3 { width: 300px; height: 300px; background: #123c5c; top: 45%; inset-inline-start: 38%; animation-delay: -15s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -50px) scale(1.15); }
}

/* 3D perspective grid floor */
.grid-floor {
  position: absolute;
  left: -50%;
  bottom: -18%;
  width: 200%;
  height: 55%;
  background-image:
    linear-gradient(rgba(232, 193, 90, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 193, 90, 0.13) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(62deg);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent 85%);
  animation: gridmove 3.2s linear infinite;
}
@keyframes gridmove {
  from { background-position: 0 0; }
  to { background-position: 0 56px; }
}

/* ---------- glass ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  inset-inline: 4%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(10, 10, 22, 0.65);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #100c02;
  font-family: var(--font-en);
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: 0 4px 22px rgba(232, 193, 90, 0.35);
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: 0.25s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.25s, filter 0.25s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--on-accent, #161001);
  box-shadow: 0 8px 30px rgba(232, 193, 90, 0.3);
}
.btn-gold:hover { box-shadow: 0 12px 40px rgba(232, 193, 90, 0.45); }
.btn-wa {
  background: rgba(37, 211, 102, 0.09);
  color: #3fce7f;
  border: 1px solid rgba(37, 211, 102, 0.32);
  box-shadow: none;
}
.btn-wa:hover {
  background: rgba(37, 211, 102, 0.16);
  box-shadow: 0 8px 24px -10px rgba(37, 211, 102, 0.35);
}
html[data-mode="light"] .btn-wa {
  background: rgba(15, 143, 78, 0.07);
  color: #0f8f4e;
  border-color: rgba(15, 143, 78, 0.3);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 6% 60px;
  text-align: center;
}
.hero-content { max-width: 880px; }
.hero-badge {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.25;
  background: linear-gradient(180deg, #fff 30%, #b8b09a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.hero-sub {
  margin: 22px auto 36px;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.15rem;
  line-height: 1.9;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 22px;
  padding: 7px;
  padding-inline-start: 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.hero-search > i { color: var(--gold); width: 20px; height: 20px; flex-shrink: 0; }
.hero-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 2px;
}
.hero-search input::placeholder { color: var(--text-dim); }
.hero-search .btn { flex-shrink: 0; border-radius: 999px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}
.stat {
  padding: 18px 30px;
  display: grid;
  gap: 4px;
  min-width: 160px;
}
.stat b { font-size: 1.6rem; color: var(--gold); }
.stat span { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- sections ---------- */
.section { padding: 90px 6%; max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1px solid rgba(232, 193, 90, 0.35);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 900; }
.section-head p { color: var(--text-dim); margin-top: 12px; font-size: 1.02rem; }

/* ---------- filters ---------- */
.filters {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 36px;
}
.filters input, .filters select,
.budget-form input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.filters input:focus, .filters select:focus,
.budget-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 193, 90, 0.15);
}
.filters select option { background: var(--bg-2); }

/* ---------- car cards (3D tilt) ---------- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  perspective: 1400px;
}
.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  border-color: rgba(232, 193, 90, 0.45);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 40px -18px rgba(232, 193, 90, 0.4);
}
.car-card .glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.car-card:hover .glare { opacity: 1; }
.car-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #11121f;
}
/* swipeable photo slider (scroll-snap = native touch swipe on mobile) */
.car-img .slider {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.car-img .slider::-webkit-scrollbar { display: none; }
.car-img .slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  user-select: none;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
}
.slide-arrow.left { left: 10px; }
.slide-arrow.right { right: 10px; }
.slide-arrow svg { width: 18px; height: 18px; }
.car-img:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(0, 0, 0, 0.8); }
@media (hover: none) { .slide-arrow { display: none; } }
.slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}
.slide-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: 0.25s;
}
.slide-dots i.on { background: var(--gold); width: 16px; border-radius: 3px; }
.fav-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.2s, color 0.2s;
  display: grid;
  place-items: center;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.active { color: #ff5c7a; }
.fav-btn.shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.car-badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.badge-available { background: rgba(37, 211, 102, 0.2); color: #6cf0a5; border: 1px solid rgba(37, 211, 102, 0.4); }
.badge-reserved { background: rgba(232, 193, 90, 0.18); color: var(--gold); border: 1px solid rgba(232, 193, 90, 0.4); }
.badge-sold { background: rgba(255, 92, 108, 0.16); color: var(--danger); border: 1px solid rgba(255, 92, 108, 0.4); }
.badge-featured { background: rgba(120, 90, 220, 0.25); color: #c9b6ff; border: 1px solid rgba(150, 120, 255, 0.4); }
.car-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  transform: translateZ(24px);
}
.car-title { font-size: 1.14rem; font-weight: 900; }
.car-brand { color: var(--text-dim); font-size: 0.85rem; font-family: var(--font-en); letter-spacing: 2px; text-transform: uppercase; }
.car-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.86rem;
}
.car-meta span { display: inline-flex; align-items: center; gap: 5px; }
.car-price {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-en);
  direction: ltr;
}
.car-price small { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }
.car-actions { display: flex; gap: 10px; margin-top: auto; }
.car-actions .btn { flex: 1; padding: 11px 10px; font-size: 0.9rem; }
.empty-msg { text-align: center; color: var(--text-dim); padding: 40px 0; font-size: 1.05rem; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  perspective: 1200px;
}
.step {
  padding: 30px 24px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.3s;
}
.step:hover { border-color: rgba(232, 193, 90, 0.4); }
.step-num {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  font-size: 2.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  font-family: var(--font-en);
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(232, 193, 90, 0.18), rgba(232, 193, 90, 0.04));
  border: 1px solid rgba(232, 193, 90, 0.3);
  box-shadow: 0 8px 24px -8px rgba(232, 193, 90, 0.25);
}
.step-icon svg { width: 26px; height: 26px; color: var(--gold); }
.step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.85; }

/* ---------- budget ---------- */
.budget-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(232, 193, 90, 0.08), rgba(120, 90, 220, 0.07));
}
.budget-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 14px 0 12px; }
.budget-text p { color: var(--text-dim); }
.budget-form { display: grid; gap: 14px; }

/* ---------- about ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 14px 0 16px; }
.about-text p { color: var(--text-dim); line-height: 2; }
.about-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about-list li { color: var(--text); font-size: 0.98rem; }
.about-visual {
  padding: 44px 34px;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.route { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.route-point { display: grid; gap: 6px; font-size: 1rem; }
.route-point span { font-size: 2.4rem; }
.route-line {
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 12px, transparent 12px 22px);
  position: relative;
  border-radius: 2px;
}
.route-car {
  position: absolute;
  top: -19px;
  font-size: 1.6rem;
  /* the car emoji faces left by default: flip it when driving left-to-right (LTR) */
  transform: scaleX(-1);
  animation: driveacross 4s linear infinite;
}
html[dir="rtl"] .route-car { animation-name: driveacross-rtl; transform: none; }
@keyframes driveacross {
  from { left: -5%; }
  to { left: 95%; }
}
@keyframes driveacross-rtl {
  from { right: -5%; }
  to { right: 95%; }
}
.route-caption { margin-top: 26px; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer {
  margin: 60px 4% 24px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer > div { display: flex; align-items: center; gap: 12px; }
.footer p { color: var(--text-dim); font-size: 0.9rem; }
.footer-wa { color: var(--wa); text-decoration: none; font-family: var(--font-en); direction: ltr; }
.footer-admin { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-admin:hover { color: var(--gold); }

/* ---------- floating WhatsApp ---------- */
.float-wa {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 22, 19, 0.82);
  color: #3fce7f;
  border: 1px solid rgba(37, 211, 102, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background 0.25s;
}
.float-wa:hover { transform: scale(1.08); background: rgba(37, 211, 102, 0.16); }
html[data-mode="light"] .float-wa {
  background: rgba(255, 255, 255, 0.9);
  color: #0f8f4e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4%; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 4, 10, 0.8); backdrop-filter: blur(6px); }
.modal-card {
  position: relative;
  width: min(880px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  background: rgba(16, 16, 30, 0.92);
  animation: modal-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.modal-gallery { position: relative; aspect-ratio: 16/9; background: #0c0d18; }
.modal-gallery img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 8px; padding: 12px 24px 0; flex-wrap: wrap; }
.modal-thumbs img {
  width: 74px; height: 50px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: 0.2s;
}
.modal-thumbs img.active, .modal-thumbs img:hover { opacity: 1; border-color: var(--gold); }
.modal-body { padding: 24px 28px 30px; }
.modal-body h2 { font-size: 1.5rem; }
.modal-desc { color: var(--text-dim); line-height: 2; margin: 14px 0 18px; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}
.spec small { color: var(--text-dim); font-size: 0.75rem; }
.spec b { font-size: 0.95rem; }
.modal-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.2rem;
  cursor: pointer; backdrop-filter: blur(6px); transition: 0.2s;
}
.modal-close:hover { background: var(--danger); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* the header must NOT have backdrop-filter on mobile — a parent filter
     breaks the menu's own blur (Chrome backdrop-root rule) */
  .nav {
    background: rgba(8, 8, 16, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html[data-mode="light"] .nav { background: rgba(255, 255, 255, 0.96); }
  .nav-burger { margin-inline-start: auto; }
  /* logo + burger stay above the full-screen menu */
  .nav-brand, .nav-burger { position: relative; z-index: 120; }
  .nav-burger span { transition: transform 0.25s, opacity 0.2s; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* full-height blurred overlay menu */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    margin: 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(10, 10, 22, 0.6);
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    border: none;
    border-radius: 0;
    padding: 96px 6% 34px;
    overflow-y: auto;
    z-index: 99;
  }
  html[data-mode="light"] .nav-links { background: rgba(255, 255, 255, 0.55); }
  .nav-links.open { display: flex; animation: menuin 0.3s ease; }
  @keyframes menuin { from { opacity: 0; transform: translateY(-14px); } }
  .nav-links > a { font-size: 1.1rem; padding: 15px 18px; border-radius: 14px; }
  .nav-burger {
    display: grid; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .budget-card, .about-wrap { grid-template-columns: 1fr; padding: 30px 22px; }
  .hero { padding-top: 120px; }
  .section { padding: 60px 5%; }
}
@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr; }
  .nav { inset-inline: 0; padding: 8px 4%; gap: 10px; }
  .brand-name { display: none; }
  .hero-stats { gap: 10px; }
  .stat { min-width: 0; flex: 1; padding: 14px 10px; }
  .stat b { font-size: 1.2rem; }
  .car-actions .btn { padding: 13px 8px; }
  .budget-card { padding: 26px 18px; }
  .footer { flex-direction: column; text-align: center; }
}

/* ============================================================
   v2 — multi-page, account, toast
   ============================================================ */
.nav-links a.active { color: var(--gold); background: rgba(232, 193, 90, 0.1); }
.nav-account { white-space: nowrap; }
.page-section { padding-top: 130px; }
.center-cta { text-align: center; margin-top: 40px; }

#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: rgba(20, 20, 36, 0.95);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* account: auth */
.auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.auth-card h1 { font-size: 1.4rem; }
.auth-tabs {
  display: flex;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-dim);
  padding: 10px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
}
.auth-tab.active { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--on-accent, #161001); }
.auth-card form { width: 100%; display: grid; gap: 12px; }
.auth-card input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  text-align: center;
}
.auth-card input:focus { border-color: var(--gold); }
.login-err { color: var(--danger); font-size: 0.9rem; }

/* account: dashboard */
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.dash-head h1 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.dash-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 1.15rem;
  margin: 34px 0 16px;
}
.req-list { display: grid; gap: 14px; }
.req-card { padding: 20px 22px; display: grid; gap: 10px; }
.req-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.req-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.req-status.st-delivered { color: #6cf0a5; border-color: rgba(37, 211, 102, 0.5); }
.req-status.st-cancelled { color: var(--danger); border-color: rgba(255, 92, 108, 0.5); }
.req-status.st-pending { color: var(--text-dim); }
.req-status.st-searching, .req-status.st-found, .req-status.st-negotiating,
.req-status.st-purchased, .req-status.st-shipping { color: var(--gold); border-color: rgba(232, 193, 90, 0.5); }
.req-meta { color: var(--text-dim); font-size: 0.9rem; }
.req-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.req-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.6s;
}
.req-note {
  background: rgba(232, 193, 90, 0.08);
  border: 1px solid rgba(232, 193, 90, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
}
.modal-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.car-share-btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }

/* ===== share popup (link + ready-to-send message) — car page + admin ===== */
.share-pop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px;
}
.share-card {
  position: relative; width: min(460px, 100%);
  border: 1px solid var(--border); border-radius: 18px; padding: 24px 22px;
  display: grid; gap: 10px;
}
.share-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.share-close {
  position: absolute; top: 12px; inset-inline-end: 14px;
  background: none; border: none; color: var(--text-dim); font-size: 1.1rem; cursor: pointer;
}
.share-lbl { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }
.share-link-row { display: flex; gap: 8px; }
.share-url {
  flex: 1; min-width: 0; direction: ltr;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-family: var(--font-en); font-size: 0.85rem; outline: none;
}
.share-msg {
  width: 100%; resize: vertical;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 0.9rem; line-height: 1.9; outline: none;
}
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.share-actions .btn { flex: 1; justify-content: center; }
.share-actions .btn svg { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }

/* ============================================================
   v3 — luxury redesign: Lucide icons + signature effects
   ============================================================ */

/* icon sizing across components */
svg.lucide { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.nav-account svg { width: 16px; height: 16px; }
.footer-admin svg { width: 14px; height: 14px; margin-inline-end: 2px; }
.car-meta span svg { width: 14px; height: 14px; color: var(--gold); opacity: 0.75; }
.car-meta span { gap: 6px; }
.fav-btn svg { width: 18px; height: 18px; }
.fav-btn.active { color: #ff5c7a; }
.fav-btn.active svg { fill: #ff5c7a; }
.badge { display: inline-flex; align-items: center; gap: 4px; }
.badge-featured svg { width: 11px; height: 11px; fill: currentColor; }
.spec { grid-template-columns: 30px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 8px; }
.spec svg { grid-row: 1 / 3; width: 20px; height: 20px; color: var(--gold); opacity: 0.85; }
.spec small, .spec b { grid-column: 2; }

/* ===== car page: features / options (green-check list) ===== */
.car-features { margin-top: 22px; padding: 26px 28px; border-radius: var(--radius); }
.car-features .cf-title { font-size: 1.3rem; margin-bottom: 18px; }
.car-features .feat-cat { margin-bottom: 20px; }
.car-features .feat-cat:last-child { margin-bottom: 0; }
.car-features .feat-cat h3 {
  font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.car-features .feat-cat-count {
  font-size: 0.72rem; font-family: var(--font-en); color: var(--gold);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
}
.car-features .feat-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px;
}
.car-features .feat-item { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; color: var(--text); }
.car-features .feat-item svg { width: 17px; height: 17px; color: #22c55e; flex-shrink: 0; }
@media (max-width: 640px) { .car-features .feat-list { grid-template-columns: 1fr; } }
.about-list li { display: flex; align-items: center; gap: 12px; }
.about-list li svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  color: var(--gold);
  background: rgba(232, 193, 90, 0.1);
  border: 1px solid rgba(232, 193, 90, 0.25);
  border-radius: 10px;
  box-sizing: border-box;
}
.req-head b svg { width: 17px; height: 17px; color: var(--gold); margin-inline-end: 4px; }
.req-note svg { width: 14px; height: 14px; color: var(--gold); }

/* film-grain texture over the whole scene — the premium feel */
.bg-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.045;
  pointer-events: none;
}

/* shine sweep across every button on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 40%;
  left: -70%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* animated gold ring around featured cars */
.car-card.is-featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(120deg, transparent 30%, var(--gold) 48%, #fff6d8 50%, var(--gold) 52%, transparent 70%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: border-sweep 3.5s linear infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes border-sweep {
  0% { background-position: 120% 120%; }
  100% { background-position: -60% -60%; }
}

/* scrolling brand strip */
.brand-marquee {
  overflow: hidden;
  direction: ltr;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 15px 0;
  backdrop-filter: blur(6px);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 36px;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.mq-item { display: inline-flex; align-items: center; gap: 14px; }
.mq-item img { height: 34px; width: auto; opacity: 0.8; }
.marquee-track span {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 5px;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.5rem; opacity: 0.8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* golden glow behind the hero headline */
.hero { position: relative; }
.hero::after {
  content: '';
  position: absolute;
  width: 640px;
  max-width: 90vw;
  height: 640px;
  border-radius: 50%;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 193, 90, 0.1), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

/* icon-only nav buttons (top bar only — not the mobile menu) */
.nav-actions .btn-wa span, .nav-actions .nav-account span { display: none; }
.nav-actions .btn-wa, .nav-actions .nav-account {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}
.nav-actions .btn-wa svg, .nav-actions .nav-account svg { width: 18px; height: 18px; }
.btn-wa svg.lucide { width: 19px; height: 19px; }
.float-wa svg.lucide { width: 26px; height: 26px; }

/* uploaded logo replaces the SM mark */
.brand-mark.has-logo {
  background: none;
  box-shadow: none;
  overflow: hidden;
}
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; }

/* homepage aurora + starfield */
.aurora {
  position: absolute;
  inset: -25%;
  background: conic-gradient(from 0deg at 50% 42%,
    transparent 0deg,
    rgba(120, 90, 220, 0.13) 60deg,
    transparent 120deg,
    rgba(232, 193, 90, 0.1) 180deg,
    transparent 240deg,
    rgba(18, 110, 160, 0.13) 300deg,
    transparent 360deg);
  filter: blur(70px);
  animation: aurora-spin 45s linear infinite;
}
@keyframes aurora-spin { to { transform: rotate(360deg); } }
.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 22% 28%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 68% 14%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 84% 44%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 42% 62%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.6px 1.6px at 10% 74%, rgba(232, 193, 90, 0.6), transparent),
    radial-gradient(1px 1px at 55% 38%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.3px 1.3px at 92% 80%, rgba(232, 193, 90, 0.45), transparent);
  background-size: 480px 480px;
  background-repeat: repeat;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }

/* clickable card title */
.car-title-link { text-decoration: none; color: inherit; display: block; transition: color 0.2s; }
.car-title-link:hover .car-title { color: var(--gold); }

/* car detail page */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 22px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.back-link svg { width: 17px; height: 17px; }
html[dir="ltr"] .back-link svg { transform: scaleX(-1); }
.car-detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 26px;
  align-items: start;
}
.car-detail .detail-gallery {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.detail-info { padding: 30px 28px; }
.detail-info h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 8px 0 4px; }
@media (max-width: 860px) {
  .car-detail { grid-template-columns: 1fr; }
}

/* ============================================================
   v4 — wordmark logo, light mode, customer palette, intro
   ============================================================ */

/* page fade-in */
body { animation: pagein 0.45s ease both; }
@keyframes pagein { from { opacity: 0; } }

/* Sabero wordmark — one standard size everywhere */
.brand-logo { height: 32px; width: auto; display: block; }
.footer-logo { height: 28px; }
.auth-logo { height: 36px; margin-inline: auto; }
@media (max-width: 520px) { .brand-logo { height: 26px; } }

/* mode/palette switch animations */
.icon-btn.whirl svg { animation: whirl 0.65s cubic-bezier(0.3, 0.8, 0.3, 1); }
@keyframes whirl {
  from { transform: rotate(-200deg) scale(0.3); opacity: 0; }
  to { transform: none; opacity: 1; }
}
::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

/* round icon buttons in nav (mode + palette) */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s;
  padding: 0;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn svg { width: 18px; height: 18px; }

/* customer palette dropdown */
.palette-wrap { position: relative; }
.palette-pop {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(12, 12, 24, 0.96);
  border-radius: 18px;
  min-width: 170px;
}
.palette-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  padding: 0;
}
.palette-dot:hover { transform: scale(1.15); }
.palette-dot.on { border-color: #fff; }

/* splash intro */
#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #08060f;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#intro.done { opacity: 0; visibility: hidden; }
#intro .intro-speed {
  position: absolute;
  width: min(620px, 95vw);
  opacity: 0;
  animation: intro-speed 1.1s 0.1s ease-in-out forwards;
}
@keyframes intro-speed {
  0% { opacity: 0; transform: translateX(55vw); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(-55vw); }
}
#intro .intro-logo {
  width: min(440px, 72vw);
  opacity: 0;
  animation: intro-logo 1.5s 0.55s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}
@keyframes intro-logo {
  from { opacity: 0; transform: translateX(-46px) scale(0.93); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ============================================================
   light mode
   ============================================================ */
html[data-mode="light"] {
  --bg: #f3f1ea;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(20, 20, 40, 0.06);
  --border: rgba(20, 20, 40, 0.13);
  --text: #191921;
  --text-dim: #5d6170;
}
html[data-mode="light"] .bg-scene {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 90, 220, 0.12), transparent), var(--bg);
}
html[data-mode="light"] .stars { display: none; }
html[data-mode="light"] .orb { opacity: 0.2; }
html[data-mode="light"] .aurora { opacity: 0.45; }
html[data-mode="light"] .bg-scene::after { opacity: 0.028; }
html[data-mode="light"] .grid-floor { opacity: 0.45; }
html[data-mode="light"] .nav { background: rgba(255, 255, 255, 0.8); }
html[data-mode="light"] .hero-title {
  background: linear-gradient(180deg, #1d1d27 30%, #4d4738);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-mode="light"] .filters input,
html[data-mode="light"] .filters select,
html[data-mode="light"] .budget-form input,
html[data-mode="light"] .auth-card input {
  background: rgba(20, 20, 40, 0.05);
  color: var(--text);
}
html[data-mode="light"] .filters select option { background: #fff; color: #191921; }
html[data-mode="light"] .car-card { background: #ffffff; }
html[data-mode="light"] .car-img { background: #eceae3; }
html[data-mode="light"] .step-num { color: rgba(20, 20, 40, 0.07); }
html[data-mode="light"] .modal-card, html[data-mode="light"] .detail-info { background: rgba(255, 255, 255, 0.9); }
html[data-mode="light"] .modal-backdrop { background: rgba(30, 30, 45, 0.45); }
html[data-mode="light"] #toast { background: #ffffff; color: var(--text); }
html[data-mode="light"] .spec, html[data-mode="light"] .req-bar { background: rgba(20, 20, 40, 0.045); }
html[data-mode="light"] .marquee-track img { filter: invert(1); opacity: 0.55; }
html[data-mode="light"] .brand-marquee { background: rgba(255, 255, 255, 0.55); }
html[data-mode="light"] .slide-dots { background: rgba(255, 255, 255, 0.65); }
html[data-mode="light"] .slide-dots i { background: rgba(20, 20, 40, 0.3); }
html[data-mode="light"] .slide-dots i.on { background: var(--gold-2); }
html[data-mode="light"] .footer { background: rgba(255, 255, 255, 0.72); }
html[data-mode="light"] .palette-pop { background: rgba(255, 255, 255, 0.97); }
html[data-mode="light"] .palette-dot.on { border-color: #191921; }
html[data-mode="light"] .car-price { color: var(--gold-2); }
html[data-mode="light"] ::selection { background: var(--gold-2); color: #fff; }
html[data-mode="light"] ::-webkit-scrollbar-track { background: #e9e6de; }
html[data-mode="light"] .req-note { background: rgba(184, 134, 11, 0.07); }
html[data-mode="light"] .pricing-box { background: rgba(184, 134, 11, 0.06); }

/* ============================================================
   v5 — modern header, theme menu, mobile menu, pro footer
   ============================================================ */

/* modern full-width header */
.nav {
  top: 0;
  inset-inline: 0;
  border-radius: 0;
  padding: 12px 5%;
  background: rgba(8, 8, 18, 0.72);
  border: none;
  border-bottom: 1px solid var(--border);
}
html[data-mode="light"] .nav { background: rgba(255, 255, 255, 0.85); }
@media (min-width: 901px) {
  .nav-links a { padding: 9px 16px; }
  .nav-links a.active { background: none; position: relative; }
  .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    inset-inline: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }
}

/* theme menu panel */
.theme-pop {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-end: 0;
  z-index: 300;
  width: 305px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(13, 13, 24, 0.97);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7);
}
html[data-mode="light"] .theme-pop { background: rgba(255, 255, 255, 0.98); }
.tp-title { display: block; font-size: 0.95rem; margin-bottom: 6px; }
.tp-sec { display: block; color: var(--text-dim); font-size: 0.68rem; letter-spacing: 2px; margin: 12px 0 8px; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.2s;
  text-align: start;
}
html[data-mode="light"] .tp-item { background: rgba(20, 20, 40, 0.04); }
.tp-item:hover, .tp-item.on { border-color: var(--gold); }
.tp-item .sw { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18); flex-shrink: 0; }
.tp-item .tp-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-item svg { width: 13px; height: 13px; margin-inline-start: auto; color: var(--gold); flex-shrink: 0; }

/* mobile menu extras (hidden on desktop) */
.menu-extras { display: none; }

/* professional footer */
.footer2 {
  margin-top: 70px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 6% 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.f-col { display: grid; gap: 12px; align-content: start; justify-items: start; }
.f-col b { font-size: 0.95rem; margin-bottom: 4px; }
.f-col a, .f-col span { color: var(--text-dim); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.f-col a:hover { color: var(--gold); }
.f-brand p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.9; }
.f-num { font-family: var(--font-en); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 6%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nav-actions { display: none; }
  .nav-links .menu-extras {
    position: relative;
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 20px;
  }
  .me-icons { display: flex; gap: 16px; align-items: center; justify-content: center; }
  .me-icons .icon-btn { width: 52px; height: 52px; }
  .me-icons .icon-btn svg { width: 21px; height: 21px; }
  /* the theme panel opens inside the full-height menu, below the icon row */
  .nav-links .palette-wrap { position: static; }
  .nav-links .theme-pop {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    width: auto;
    max-height: 56vh;
    overflow-y: auto;
    z-index: 5;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 6% 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Toman price + estimate disclaimer + landed-cost box */
.toman-price { display: block; font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-en); direction: ltr; margin-top: 3px; font-weight: 400; }
.toman-price i { font-style: normal; opacity: 0.7; }
.car-price { display: block; }
.price-disclaimer {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-dim); font-size: 0.82rem; margin-top: 12px; line-height: 1.7;
}
.price-disclaimer svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }
.list-disclaimer { justify-content: center; margin: -18px 0 26px; }
.cost-estimate { margin-top: 20px; padding: 18px 20px; }
.cost-estimate h3 { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; margin-bottom: 14px; color: var(--gold); }
.cost-estimate h3 svg { width: 18px; height: 18px; }
.ce-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.ce-row b { font-family: var(--font-en); direction: ltr; font-weight: 500; }
.ce-row b small { color: var(--text-dim); }
.ce-tm { color: var(--gold); font-size: 0.82rem; }
.ce-total { border-bottom: none; margin-top: 4px; padding-top: 13px; border-top: 2px solid var(--gold); font-size: 1.02rem; }
.ce-total b { font-weight: 800; }
.ce-note { color: var(--text-dim); font-size: 0.8rem; margin-top: 12px; line-height: 1.8; }

/* custom modern dropdown (replaces native option list on .msel selects) */
.cselect { position: relative; }
.cselect select.msel { display: none; }
.cselect-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
html[data-mode="light"] .cselect-trigger { background: rgba(20, 20, 40, 0.05); }
.cselect-trigger:hover { border-color: var(--gold); }
.cselect-trigger.open { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.cselect-trigger svg { width: 16px; height: 16px; color: var(--text-dim); transition: transform 0.25s; flex-shrink: 0; }
.cselect-trigger.open svg { transform: rotate(180deg); }
.cselect-pop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: 60;
  padding: 6px;
  border-radius: 14px;
  background: rgba(14, 14, 26, 0.98);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.7);
  max-height: 280px;
  overflow-y: auto;
  animation: cselin 0.16s ease;
}
html[data-mode="light"] .cselect-pop { background: rgba(255, 255, 255, 0.99); }
@keyframes cselin { from { opacity: 0; transform: translateY(-6px); } }
.csel-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  text-align: start;
  padding: 11px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s;
}
.csel-opt:hover { background: var(--surface-2); }
.csel-opt.on { color: var(--gold); font-weight: 700; }
.csel-opt svg { width: 15px; height: 15px; flex-shrink: 0; }

/* modern dropdowns — every select across the site */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23848a9c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 14px center !important;
  background-size: 15px !important;
  padding-inline-end: 42px !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
html[dir="ltr"] select { background-position: right 14px center !important; }
select:hover { border-color: var(--gold) !important; }
select option { background: var(--bg-2); color: var(--text); padding: 10px 14px; }
html[data-mode="light"] select option { background: #ffffff; }

/* luxury scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  opacity: 0.6;
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }
