/* ============================================================
   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: #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: linear-gradient(135deg, #2ee979, #128c4b);
  color: #04130a;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.25);
}
.btn-wa:hover { box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4); }
.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-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 {
  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.prev { left: 10px; }
.slide-arrow.next { right: 10px; }
.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-card.is-sold .car-img img { filter: grayscale(0.85); }
.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: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2ee979, #128c4b);
  color: #04130a;
  box-shadow: 0 10px 34px rgba(37, 211, 102, 0.45);
  animation: pulse-wa 2.4s ease-in-out infinite;
  transition: transform 0.2s;
}
.float-wa:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 10px 34px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 10px 34px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------- 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) {
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); inset-inline: 0; flex-direction: column; background: rgba(12, 12, 24, 0.96); border: 1px solid var(--border); border-radius: 18px; padding: 12px; }
  .nav-links.open { display: flex; }
  .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: 3%; padding: 8px 12px; gap: 10px; }
  .nav .btn-wa span, .nav-account span { display: none; }
  .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: #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; }

/* ============================================================
   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; }
.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: 10px; }
.mq-item img { height: 22px; width: auto; opacity: 0.65; }
.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 */
.nav .btn-wa span, .nav .nav-account span { display: none; }
.nav .btn-wa, .nav .nav-account {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}
.nav .btn-wa svg, .nav .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);
}
.car-detail.is-sold .detail-gallery img { filter: grayscale(0.85); }
.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; }
}

/* luxury scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 193, 90, 0.5), rgba(184, 134, 11, 0.35));
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }
