/* صفحه اصلی — glassmorphism + فونت نازک، الهام از DubiCars */

.page-home {
  --home-radius: 14px;
  --home-radius-lg: 20px;
  --home-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.1);
  --home-hero-h: clamp(440px, 72vh, 780px);
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 18px;
  font-weight: 300;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(99, 102, 241, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 20%, rgba(227, 30, 36, 0.06), transparent 50%),
    linear-gradient(165deg, #dce4ee 0%, #eef2f7 35%, #e8edf4 100%);
}

/* —— Glass utilities —— */
.glass-surface {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--home-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.glass-card {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border-radius: var(--home-radius);
}

/* باکس‌های صفحه اصلی — بدون گوشه راست */
.page-home .badge {
  border-radius: 10px;
}

.page-home .btn {
  border-radius: var(--home-radius);
}

.page-home .pwa-install-banner {
  border-radius: var(--home-radius-lg);
}

.page-home .home-car-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.page-home .home-car-card-wrap:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.page-home .home-car-card__media {
  border-radius: var(--home-radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-home .home-car-card-wrap .home-car-card {
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: block;
}

/* هدر شیشه‌ای */
.page-home .site-header {
  position: sticky;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.page-home .site-header .logo {
  color: var(--primary);
  font-weight: 400;
}
.page-home .site-header .main-nav a {
  color: var(--text-muted);
  font-weight: 300;
}
.page-home .site-header .main-nav a:hover { color: var(--primary); }
.page-home .site-header .menu-toggle span { background: var(--text); }

/* —— Hero —— */
.home-hero {
  position: relative;
  min-height: var(--home-hero-h);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media picture,
.home-hero__img {
  width: 100%;
  height: 100%;
  display: block;
}

.home-hero__img {
  object-fit: cover;
  object-position: center 35%;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.58) 0%,
    rgba(15, 23, 42, 0.22) 38%,
    rgba(15, 23, 42, 0.12) 58%,
    rgba(15, 23, 42, 0.42) 100%
  );
  pointer-events: none;
}

.home-hero__shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: var(--home-hero-h);
  padding: 3rem 1rem 1.5rem;
}

.home-hero__text {
  max-width: 34rem;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.home-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.home-hero__title {
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.4);
}

.home-hero__lead {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 300;
  line-height: 1.7;
  color: #f1f5f9;
  max-width: 28rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* —— جستجو داخل هیرو (پایین تصویر) —— */
.home-search-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding-top: 1.5rem;
}

.home-chips-wrap {
  padding: 1rem 0 0.25rem;
}

.home-search-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.24) 55%,
    rgba(255, 255, 255, 0.32) 100%
  );
  backdrop-filter: blur(32px) saturate(1.55);
  -webkit-backdrop-filter: blur(32px) saturate(1.55);
  border-radius: var(--home-radius-lg);
  padding: 1.35rem 1.5rem 1.45rem;
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.home-search-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.home-search-card__title {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(15, 23, 42, 0.35);
}

.home-search-card__hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.25);
}

.home-search-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.home-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.home-field--grow { grid-column: span 1; }

.home-field__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.3);
}

.home-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.home-field__icon {
  position: absolute;
  right: 0.85rem;
  width: 18px;
  height: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.home-field input,
.home-field select {
  width: 100%;
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--home-radius);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-field input::placeholder {
  color: #4b5563;
  opacity: 1;
  font-weight: 400;
}

.home-field select {
  color: #1f2937;
  cursor: pointer;
}

.home-field select option {
  color: #111827;
  background: #fff;
}

.home-field__control input {
  padding-right: 2.35rem;
}

.home-field input:focus,
.home-field select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 4px 16px rgba(15, 23, 42, 0.1);
}

.home-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: var(--home-radius);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.35);
}

.home-search-submit svg,
.home-search-submit__icon {
  width: 20px;
  height: 20px;
}

/* میانبرها */
.home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0;
  padding-bottom: 0.25rem;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 300;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--text);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}

.home-chip:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(227, 30, 36, 0.35);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.08);
}

.home-chip--accent {
  background: rgba(227, 30, 36, 0.1);
  border-color: rgba(227, 30, 36, 0.25);
  color: var(--primary);
  font-weight: 400;
}

/* —— مرور DubiCars-style —— */
.home-browse {
  padding: 2rem 0 1.5rem;
}

.home-browse__heading {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 400;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-browse__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.home-browse__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.15rem;
  margin-bottom: -1px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.home-browse__tab svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.home-browse__tab:hover {
  color: var(--text);
}

.home-browse__tab.is-active {
  color: var(--primary);
  font-weight: 400;
  border-bottom-color: var(--primary);
}

.home-browse__tab.is-active svg {
  opacity: 1;
}

.home-browse__frame {
  position: relative;
  border-radius: var(--home-radius-lg);
  padding: 1.25rem 3rem;
}

.home-browse__panels {
  min-height: 88px;
}

.home-browse__panel[hidden] {
  display: none;
}

.home-browse__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  justify-items: center;
  align-items: center;
}

.home-browse__grid--budget {
  grid-template-columns: repeat(3, 1fr);
}

.home-browse__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0.3rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.home-browse__card.glass-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: none;
}

.home-browse__card:hover,
.home-browse__card.glass-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: none;
}

.home-browse__card-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 1;
  min-height: 0;
}

.home-browse__card-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.home-browse__card-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex: 1;
  min-height: 0;
}

.home-browse__card-icon svg {
  width: 85%;
  height: 85%;
  max-width: 40px;
  max-height: 40px;
}

.home-browse__card--label {
  gap: 0.2rem;
  padding: 0.45rem 0.35rem;
}

.home-browse__card-label {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
  word-break: break-word;
}

.home-browse__card-sub {
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.home-browse__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
}

.home-browse__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
}

.home-browse__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-browse__nav[hidden] {
  display: none;
}

.home-browse__nav svg {
  width: 18px;
  height: 18px;
}

.home-browse__nav--prev { right: 0.65rem; }
.home-browse__nav--next { left: 0.65rem; }

.home-browse__dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  min-height: 10px;
}

.home-browse__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.home-browse__dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

/* سکشن‌های مشترک */
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-section-head h2 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
}

.home-section-link {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--primary);
}

.home-section-link:hover { text-decoration: underline; }

/* —— خودروهای ویژه —— */
.home-featured {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.home-car-grid {
  gap: 1.15rem;
}

.page-home .home-car-card {
  border-radius: var(--home-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-car-card-wrap .home-car-card {
  transition: box-shadow 0.2s ease;
}

.page-home .home-car-card-wrap:hover .home-car-card {
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-home .home-car-card-wrap:hover .home-car-card__media {
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.page-home .home-car-card-wrap .home-car-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.72);
}

.page-home .home-car-card__image,
.page-home .home-car-card .car-card-image {
  aspect-ratio: 16 / 10;
}

.home-car-card__tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 400;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
}

.page-home .home-car-card .car-card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.home-car-card__make {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.home-car-card__title {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.home-car-card__price {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  margin: 0 0 0.5rem !important;
}

.home-car-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
}

.home-car-card__meta li:not(:last-child)::after {
  content: '·';
  margin-right: 0.5rem;
  opacity: 0.5;
}

/* —— اعتماد —— */
.home-trust {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.home-trust__intro {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.home-trust__intro h2 {
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.home-trust__intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-trust-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--home-radius-lg);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.home-trust-card:hover {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.home-trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(227, 30, 36, 0.08);
}

.home-trust-card h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.home-trust-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

.home-trust__cta {
  text-align: center;
  margin-top: 2rem;
}

.home-trust__cta .btn {
  font-weight: 400;
}

/* —— دسکتاپ بزرگ —— */
@media (min-width: 769px) {
  .home-search-card {
    padding: 1.45rem 1.6rem 1.55rem;
  }

  .home-search-grid {
    gap: 0.85rem;
  }

  .home-field input,
  .home-field select {
    min-height: 48px;
  }

  .home-field__icon {
    color: #64748b;
  }

  .home-browse__grid {
    gap: 0.75rem;
  }

  .home-browse__card {
    width: 100%;
    max-width: 128px;
    height: auto;
    aspect-ratio: 1;
    padding: 0.35rem;
  }

  .home-browse__card--label {
    padding: 0.5rem 0.4rem;
  }

  .home-browse__card--label .home-browse__card-label {
    font-size: 0.82rem;
  }

  .home-browse__card-logo img {
    transform: scale(1.12);
  }

  .home-browse__panels {
    min-height: 132px;
  }
}

@media (min-width: 1024px) {
  .page-home {
    --home-hero-h: clamp(520px, 78vh, 860px);
  }

  .home-browse__card {
    max-width: 152px;
    padding: 0.3rem;
  }

  .home-browse__card--label .home-browse__card-label {
    font-size: 0.86rem;
  }

  .home-browse__card-logo img {
    transform: scale(1.18);
  }

  .home-browse__panels {
    min-height: 156px;
  }

  .home-browse__frame {
    padding: 1.25rem 3.25rem;
  }
}

/* —— موبایل — اپ‌مانند، ساده، Hero قابل مشاهده —— */
@media (max-width: 768px) {
  .page-home {
    --home-hero-h: auto;
    background: #f4f5f7;
    font-weight: 400;
  }

  /* هدر شناور روی تصویر */
  .page-home .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding-top: var(--safe-top);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    pointer-events: none;
  }

  .page-home .site-header .header-inner,
  .page-home .site-header .menu-toggle,
  .page-home .site-header .logo,
  .page-home .site-header .header-chat-btn,
  .page-home .site-header .header-user-btn {
    pointer-events: auto;
  }

  .page-home .site-header .menu-toggle {
    position: relative;
    z-index: 201;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .page-home .site-header .logo {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    font-weight: 600;
  }

  .page-home .site-header .menu-toggle span {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  }

  .page-home .header-chat-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    animation: none;
  }

  .page-home .header-chat-btn::after {
    display: none;
  }

  .page-home .header-user-btn {
    background: rgba(255, 255, 255, 0.92);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  }

  /* Hero: تصویر پس‌زمینه — متن بالا مثل دسکتاپ، جستجو و برندها پایین */
  .home-hero {
    position: relative;
    min-height: 92dvh;
    max-height: none;
    flex-direction: column;
    color: #fff;
    overflow: visible;
    margin-bottom: 0;
    padding-bottom: 1.5rem;
  }

  .home-hero__media {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 100%;
    max-height: none;
    flex-shrink: 0;
  }

  .home-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.68) 0%,
      rgba(15, 23, 42, 0.38) 22%,
      rgba(15, 23, 42, 0.1) 48%,
      rgba(15, 23, 42, 0.32) 78%,
      rgba(15, 23, 42, 0.55) 100%
    );
  }

  .home-hero__img {
    object-position: center 35%;
  }

  .home-hero__shell {
    position: relative;
    z-index: 3;
    min-height: 92dvh;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0;
    padding: calc(56px + env(safe-area-inset-top, 0px) + 0.75rem) 0.75rem 12rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .home-hero__text {
    max-width: none;
    text-align: right;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .home-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 300;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.85rem;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  }

  .home-hero__title {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 400;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    text-shadow:
      0 2px 10px rgba(0, 0, 0, 0.5),
      0 1px 3px rgba(0, 0, 0, 0.4);
  }

  .home-hero__lead {
    font-size: 0.95rem;
    font-weight: 300;
    color: #f1f5f9;
    line-height: 1.7;
    margin: 0;
    max-width: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  }

  /* جستجو — کارت شیشه‌ای شفاف‌تر */
  .home-search-wrap {
    margin-top: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--home-radius-lg);
    box-shadow:
      0 8px 28px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.55);
  }

  .home-search-card {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .home-search-card__head {
    display: none;
  }

  .home-search-grid {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: stretch;
  }

  .home-field--optional {
    display: none;
  }

  .home-field__label--desktop {
    display: none;
  }

  .home-field input {
    padding: 0.85rem 2.5rem 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.38);
    font-size: 0.95rem;
    min-height: 48px;
  }

  .home-search-submit {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    padding: 0;
  }

  /* میانبرها — مخفی، شلوغی کمتر */
  .home-chips-wrap {
    display: none;
  }

  /* مرور برندها — کارت سوم، کاملاً روی تصویر Hero */
  .home-browse {
    position: relative;
    z-index: 4;
    margin-top: calc(-12rem + 0.25rem);
    padding: 0 0.75rem 0.25rem;
    background: transparent;
  }

  .home-browse > .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0.65rem 0.75rem 0.6rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--home-radius-lg);
    box-shadow:
      0 12px 40px rgba(15, 23, 42, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .home-browse__heading {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    padding: 0;
  }

  .home-browse__tabs {
    display: none;
  }

  .home-browse__frame {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
  }

  .home-browse__nav {
    display: none !important;
  }

  .home-browse__panel[data-browse-panel="models"],
  .home-browse__panel[data-browse-panel="budget"] {
    display: none !important;
  }

  .home-browse__panel[data-browse-panel="makes"] {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    gap: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-browse__panel[data-browse-panel="makes"]::-webkit-scrollbar {
    display: none;
  }

  .home-browse__panel[data-browse-panel="makes"] .home-browse__page {
    display: block !important;
    flex-shrink: 0;
  }

  .home-browse__panel[data-browse-panel="makes"] .home-browse__page[hidden] {
    display: block !important;
  }

  .home-browse__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.65rem;
    padding: 0 0 0.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-browse__grid::-webkit-scrollbar {
    display: none;
  }

  .home-browse__card {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  }

  .home-browse__card-logo {
    padding: 0.1rem;
  }

  .home-browse__card-logo img {
    transform: scale(1.18);
  }

  .home-browse__dots {
    display: none;
  }

  /* خودروهای ویژه — کاروسل افقی، کارت تفکیک‌شده */
  .home-featured {
    padding-top: 0;
    padding-bottom: 1.5rem;
  }

  .home-featured > .container {
    padding: 1rem 0.85rem 0.85rem;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(1.45);
    -webkit-backdrop-filter: blur(22px) saturate(1.45);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--home-radius-lg);
    box-shadow:
      0 12px 40px rgba(15, 23, 42, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .home-section-head {
    margin-bottom: 0.75rem;
  }

  .home-section-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
  }

  .page-home .home-car-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-home .home-car-grid::-webkit-scrollbar {
    display: none;
  }

  .page-home .home-car-card-wrap {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: start;
    gap: 0.45rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .page-home .home-car-card-wrap:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
  }

  .page-home .home-car-card-wrap .home-car-card__media {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .page-home .home-car-card-wrap .home-car-card {
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .page-home .home-car-card .car-card-body {
    padding: 0.85rem 0.9rem 0.95rem;
  }

  .page-home .home-car-card:hover {
    transform: none;
  }

  /* اعتماد — فشرده */
  .home-trust {
    background: #fff;
    border-top: 1px solid var(--border);
    backdrop-filter: none;
    padding: 1.5rem 0 2rem;
  }

  .home-trust__intro {
    margin-bottom: 1rem;
    text-align: right;
  }

  .home-trust__intro h2 {
    font-size: 1.05rem;
    font-weight: 700;
  }

  .home-trust__intro p {
    display: none;
  }

  .home-trust__grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .home-trust-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: right;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border: 1px solid var(--border);
    backdrop-filter: none;
    border-radius: 14px;
  }

  .home-trust-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .home-trust-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
  }

  .home-trust-card p {
    font-size: 0.78rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-trust__cta {
    margin-top: 1.25rem;
  }

  .home-trust__cta .btn {
    width: 100%;
    border-radius: 14px;
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-car-card,
  .home-browse__card {
    transition: none;
  }
}
