/* ============================================
   Mashary Cars - Premium Styles
   Pure HTML/CSS/JS Version
   ============================================ */

/* CSS Variables - Design Tokens */
:root {
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --surface: #1a1a24;
  --surface-elevated: #22222e;
  --surface-secondary: #2a2a38;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #6b6b7b;
  --accent: #e8b923;
  --accent-hover: #f0c94c;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

/* Light Mode */
[data-theme="light"] {
  --bg: #fafafa;
  --bg-secondary: #f4f4f5;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-secondary: #f4f4f5;
  --border: rgba(0, 0, 0, 0.08);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent: #d4a017;
  --accent-hover: #b8941f;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition:
    background 0.3s,
    color 0.3s;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  padding: 4rem 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="light"] .header {
  background: rgba(250, 250, 250, 0.85);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  

}


/* الوضع الافتراضي للغة العربية (من اليمين لليسار) */


/* Desktop Nav */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(232, 185, 35, 0.1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .header-actions {
    display: flex;
  }
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.btn-icon:hover {
  background: var(--surface-elevated);
  color: var(--text-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
}
.btn-secondary:hover {
  border-color: rgba(232, 185, 35, 0.5);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  padding: 0.5rem;
  color: var(--text-primary);
}
@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  z-index: 1001;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
  animation: fadeIn 0.2s ease;
}
.mobile-menu .nav-link {
  display: block;
  padding: 1rem;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a0f 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: white;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: white;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ============================================
   CARDS & COMPONENTS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(232, 185, 35, 0.3);
  box-shadow: 0 8px 32px rgba(232, 185, 35, 0.08);
  transform: translateY(-4px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-accent {
  background: var(--accent);
  color: #000;
}
.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.badge-muted {
  background: var(--surface-elevated);
  color: var(--text-secondary);
}

/* ============================================
   CAR CATALOG
   ============================================ */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.car-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.car-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.car-card:hover .car-card-img img {
  transform: scale(1.05);
}
.car-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.car-card-badges .badge {
  pointer-events: auto;
}

.car-card-body {
  padding: 1.25rem;
}
.car-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.car-card-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.car-card-year {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.car-card-price {
  text-align: right;
}
.car-card-price .from {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.car-card-price .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.car-card-price .period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.car-spec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}
.car-spec svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-theme="light"] .car-spec {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.09);
}
.car-card-badges .badge {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16);
}

.car-actions {
  display: flex;
  gap: 0.75rem;
}
.car-actions .btn-secondary,
.car-actions .btn-primary {
  flex: 1;
  justify-content: center;
  padding: 0.625rem;
  font-size: 0.875rem;
}

/* ============================================
   FILTERS
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.filter-chip:hover {
  color: var(--text-primary);
}
.filter-chip.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: var(--transition);
}
.search-box input:focus {
  border-color: rgba(232, 185, 35, 0.5);
}
.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

/* ============================================
   CARS FILTER EXPERIENCE — compact premium panel
   ============================================ */
.cars-filter-shell {
  position: relative;
  padding: 1rem 1.05rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 1rem;
  background: linear-gradient(145deg, #15151e 0%, #101017 100%);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  overflow: hidden;
  isolation: isolate;
}
.cars-filter-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 185, 35, 0.38),
    transparent
  );
  pointer-events: none;
}
.cars-filter-shell::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 180px;
  top: -125px;
  right: 4%;
  background: radial-gradient(
    circle,
    rgba(232, 185, 35, 0.035),
    transparent 70%
  );
  pointer-events: none;
}
.cars-filter-head,
.cars-filter-controls,
.cars-category-row,
.cars-country-row {
  position: relative;
  z-index: 1;
}
.cars-filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  min-height: 24px;
}
.cars-filter-title-wrap {
  flex: 1;
  min-height: 1px;
}
.cars-filter-kicker {
  display: block;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.cars-filter-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.cars-filter-head .filter-reset {
  height: 25px;
  min-width: 0;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.cars-filter-head .filter-reset:hover {
  color: var(--text-primary);
  border-color: rgba(232, 185, 35, 0.22);
  background: rgba(232, 185, 35, 0.045);
}
.cars-country-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0 0 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.cars-country-label {
  min-width: 135px;
  display: flex;
  align-items: center;
}
.cars-country-label span {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0;
}
#country-filters {
  flex: 1;
  justify-content: flex-start;
}
.filter-chip {
  padding: 0.4rem 0.72rem;
  border-radius: 0.52rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(232, 185, 35, 0.2);
  transform: translateY(-1px);
}
.filter-chip.active {
  background: rgba(232, 185, 35, 0.11);
  color: var(--accent);
  border-color: rgba(232, 185, 35, 0.55);
  box-shadow: 0 5px 16px rgba(232, 185, 35, 0.06);
}
.cars-filter-controls {
  display: block;
}
.filter-search {
  min-width: 0;
  width: 100%;
}
.search-box {
  position: relative;
  width: 100%;
}
.cars-filter-controls .search-box input {
  width: 100%;
  height: 34px;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0.58rem;
  color: var(--text-primary);
  font-size: 0.66rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.cars-filter-controls .search-box input::placeholder {
  color: var(--text-muted);
}
.cars-filter-controls .search-box input:hover {
  border-color: rgba(255, 255, 255, 0.11);
}
.cars-filter-controls .search-box input:focus {
  border-color: rgba(232, 185, 35, 0.42);
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.055);
  background: rgba(255, 255, 255, 0.035);
}
.search-box svg {
  position: absolute;
  right: 0.78rem;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.cars-category-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding: 0.7rem 0.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}
.cars-category-label {
  min-width: 54px;
  display: flex;
  align-items: center;
}
.cars-category-label span {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.cars-category-row .filter-bar {
  flex: 1;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.cars-category-row .filter-bar::-webkit-scrollbar {
  display: none;
}
.cars-category-row .filter-chip {
  flex: 0 0 auto;
  padding: 0.38rem 0.64rem;
  border-radius: 0.5rem;
  font-size: 0.63rem;
  background: rgba(255, 255, 255, 0.02);
}
.cars-category-row .filter-chip.active {
  background: rgba(232, 185, 35, 0.11);
}
[dir="ltr"] .cars-filter-controls .search-box svg {
  right: auto;
  left: 0.78rem;
}
[dir="ltr"] .cars-filter-controls .search-box input {
  padding-left: 2.25rem;
  padding-right: 0.75rem;
}

[data-theme="light"] .cars-filter-shell {
  background: linear-gradient(145deg, #ffffff 0%, #f5f6f8 100%);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .cars-filter-shell::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 150, 18, 0.38),
    transparent
  );
}
[data-theme="light"] .cars-filter-shell .filter-chip {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .cars-filter-shell .filter-chip.active {
  background: rgba(199, 150, 18, 0.11);
  color: #9a7300;
  border-color: rgba(199, 150, 18, 0.48);
}
[data-theme="light"] .cars-filter-controls .search-box input {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .cars-filter-head .filter-reset {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.025);
}

@media (max-width: 700px) {
  .cars-filter-shell {
    padding: 0.8rem;
    border-radius: 0.9rem;
  }
  .cars-filter-head {
    margin-bottom: 0.7rem;
  }
  .cars-filter-title {
    font-size: 0.86rem;
  }
  .cars-country-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
  #country-filters {
    width: 100%;
  }
  .cars-category-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
  .cars-category-label {
    min-width: 0;
  }
  .cars-category-row .filter-bar {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cars-filter-shell::before {
    animation: none;
  }
}

/* ============================================
   CAR DETAIL PAGE
   ============================================ */
.car-detail-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .car-detail-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.gallery-main {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-elevated);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.gallery-thumb.active {
  border-color: var(--accent);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-elevated);
  padding: 1rem;
  border-radius: var(--radius);
}
.spec-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}
.spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.spec-value {
  font-weight: 600;
}

.price-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9375rem;
  outline: none;
  transition: var(--transition);
}
.form-input:focus,
.form-select:focus {
  border-color: rgba(232, 185, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.1);
}
.form-select {
  cursor: pointer;
  appearance: none;
}
.form-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.footer-link {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
  transition: var(--transition);
}
.footer-link:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ============================================
   MOBILE BOTTOM BAR
   ============================================ */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 900;
  display: flex;
  justify-content: space-around;
  padding: 0.35rem 0;
  min-height: 64px;
}
[data-theme="light"] .mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.95);
}
.mobile-bottom-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 1rem;
  min-width: 110px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}
.mobile-bottom-bar a.active {
  color: var(--accent);
}
.mobile-bottom-bar svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-8 {
  margin-top: 2rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-wrap {
  flex-wrap: wrap;
}
.grid {
  display: grid;
}
.w-full {
  width: 100%;
}
.max-w-2xl {
  max-width: 640px;
}
.max-w-3xl {
  max-width: 768px;
}
.max-w-4xl {
  max-width: 896px;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.hidden {
  display: none;
}
.block {
  display: block;
}
.relative {
  position: relative;
}
.overflow-hidden {
  overflow: hidden;
}
.rounded-2xl {
  border-radius: var(--radius-lg);
}

/* Section headings */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade {
  animation: fadeIn 0.5s ease forwards;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 50px;
}
.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(232, 185, 35, 0.2);
  line-height: 1;
}

/* ============================================
   HOW IT WORKS — premium responsive timeline cards
   ============================================ */
.how-it-works-section {
  padding: 5.75rem 0 6rem;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(232, 185, 35, 0.09),
      transparent 42%
    ),
    var(--bg);
}
.how-it-works-heading {
  margin-bottom: 2.65rem;
  text-align: center;
}
.how-it-works-heading .section-title {
  margin-bottom: 0.55rem;
  letter-spacing: -0.035em;
}
.how-it-works-heading .section-subtitle {
  margin: 0 auto;
  max-width: 660px;
}
.how-steps-grid {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}
.how-steps-grid::before {
  content: "";
  position: absolute;
  left: 5.2%;
  right: 5.2%;
  top: 2.65rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 23, 0.28) 8%,
    rgba(212, 160, 23, 0.28) 92%,
    transparent
  );
  z-index: 0;
}
.how-step-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 188px;
  padding: 1.1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid rgba(212, 160, 23, 0.15);
  border-radius: 1.15rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  backdrop-filter: blur(10px);
}
.how-step-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -68px;
  bottom: -68px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.07);
  pointer-events: none;
}
.how-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(
    90deg,
    rgba(212, 160, 23, 0.15),
    rgba(212, 160, 23, 0.72),
    rgba(212, 160, 23, 0.15)
  );
  opacity: 0.65;
}
.how-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 160, 23, 0.34);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.11);
}
.how-step-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid rgba(212, 160, 23, 0.36);
  border-radius: 0.95rem;
  background: rgba(212, 160, 23, 0.08);
  position: relative;
  z-index: 2;
}
.how-step-icon svg {
  width: 23px;
  height: 23px;
}
.how-step-number {
  position: absolute;
  top: 1rem;
  right: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 31px;
  height: 24px;
  padding: 0 0.4rem;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(212, 160, 23, 0.1);
  border: 1px solid rgba(212, 160, 23, 0.18);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 3;
}
.how-step-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.how-step-content h3 {
  margin: 0 0 0.38rem;
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 760;
  letter-spacing: -0.01em;
}
.how-step-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.52;
}
[dir="rtl"] .how-step-number {
  right: auto;
  left: 0.95rem;
}
[dir="rtl"] .how-step-card {
  text-align: right;
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.faq-q {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.faq-a {
  color: var(--text-secondary);
}

/* Why cards */
.why-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.why-card:hover {
  border-color: rgba(232, 185, 35, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(232, 185, 35, 0.08);
}
.why-card svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin: 0 auto 1rem;
  transition: transform 0.35s ease;
}
.why-card:hover svg {
  transform: translateY(-2px) scale(1.06);
}

/* Lightweight reveal animation - visual only, no layout/functionality changes */
.site-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
  will-change: opacity, transform;
}
.site-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.why-card-animated {
  transition-delay: var(--why-delay, 0ms);
}
.why-card-animated.site-reveal.is-visible {
  animation: whyCardIn 0.55s ease both;
  animation-delay: var(--why-delay, 0ms);
}
@keyframes whyCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .why-kayan-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .why-kayan-grid .why-card {
    padding: 1.5rem 1rem;
  }
}
@media (max-width: 480px) {
  .why-kayan-grid {
    grid-template-columns: 1fr;
  }
}

/* Country cards */
.country-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.country-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.country-card:hover {
  border-color: rgba(232, 185, 35, 0.3);
}
.country-flag {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Responsive padding for mobile bottom bar */
@media (max-width: 767px) {
  body {
    padding-bottom: 70px;
  }
  .header-inner {
    height: 64px;
  }
  section {
    padding: 2.5rem 0;
  }
  .car-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hidden-mobile {
    display: none;
  }
}

/* RTL Support */
[dir="rtl"] .car-card-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .car-card-price {
  text-align: left;
}
[dir="rtl"] .step-card {
  flex-direction: row-reverse;
}
[dir="rtl"] .spec-item {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .search-box input {
  padding: 0.75rem 2.75rem 0.75rem 1rem;
}
[dir="rtl"] .search-box svg {
  left: auto;
  right: 1rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   HOME CAR SHOWCASE
   Visual-only section replacing the old finder/featured list on home.
   ============================================ */
.cars-showcase-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(232, 185, 35, 0.055),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(232, 185, 35, 0.045),
      transparent 28%
    ),
    var(--bg-primary);
}
.cars-showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.showcase-kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.cars-showcase-heading .section-title {
  margin-bottom: 0.55rem;
}
.showcase-top-button {
  flex-shrink: 0;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.showcase-car {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(
    145deg,
    var(--surface),
    rgba(255, 255, 255, 0.012)
  );
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}
.showcase-car:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 185, 35, 0.42);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(232, 185, 35, 0.05);
}
.showcase-image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.showcase-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 11, 0.42), transparent 48%);
  pointer-events: none;
}
.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1),
    filter 0.45s ease;
}
.showcase-car:hover .showcase-image-wrap img {
  transform: scale(1.055);
  filter: saturate(1.05) contrast(1.02);
}
.showcase-badge {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.showcase-arrow {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: rgba(12, 12, 17, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1.15rem;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}
.showcase-car:hover .showcase-arrow {
  transform: translate(2px, -2px);
  background: var(--accent);
  color: #111;
}
.showcase-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.25rem 1.3rem;
}
.showcase-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}
.showcase-card-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}
.showcase-link {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}
.showcase-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.45rem 1.5rem;
  border: 1px solid rgba(232, 185, 35, 0.22);
  border-radius: 1.15rem;
  background: linear-gradient(
    90deg,
    rgba(232, 185, 35, 0.08),
    rgba(232, 185, 35, 0.025)
  );
}
.showcase-cta h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.showcase-cta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.site-reveal {
  transition-delay: var(--showcase-delay, 0ms);
}

[dir="rtl"] .showcase-badge {
  left: auto;
  right: 1rem;
}
[dir="rtl"] .showcase-arrow {
  right: auto;
  left: 1rem;
}
[dir="rtl"] .showcase-car:hover .showcase-arrow {
  transform: translate(-2px, -2px);
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
  .showcase-image-wrap {
    aspect-ratio: 16/9;
  }
}
@media (max-width: 767px) {
  .cars-showcase-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
  .showcase-top-button {
    width: 100%;
    justify-content: center;
  }
  .showcase-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .showcase-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* Showcase reveal: independent of the global section observer so this section never disappears if JS is delayed/blocked. */
.showcase-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: showcaseReveal 0.65s ease forwards;
  animation-delay: var(--showcase-delay, 0ms);
}
@keyframes showcaseReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Visual-only home fleet showcase */
.showcase-visual-grid .showcase-visual-card {
  cursor: default;
}
.showcase-visual-grid .showcase-visual-card:hover {
  transform: translateY(-6px);
}
.showcase-visual-card .showcase-image-wrap {
  aspect-ratio: 16 / 10;
}
.showcase-visual-cta {
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .showcase-visual-grid {
    grid-template-columns: 1fr;
  }
  .showcase-visual-grid .showcase-visual-card {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ============================================
   MASHARY CARS — LIGHT MODE POLISH
   ============================================ */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --bg-secondary: #eef0f3;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-secondary: #f3f4f6;
  --border: rgba(15, 23, 42, 0.1);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --accent: #c79612;
  --accent-hover: #a97d0d;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .hero-bg {
  background: #dfe3e7;
}

/* Light mode: keep the photo clean — no white fade, no gradient wash. */
[data-theme="light"] .hero-bg img {
  opacity: 1;
  filter: saturate(0.95) contrast(1.03);
}

[data-theme="light"] .hero-overlay {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .hero-content {
  text-shadow: none;
}

/* Dark mode: cinematic image with a restrained dark veil, never a white wash. */
[data-theme="dark"] .hero-bg {
  background: #0b0f13;
}

[data-theme="dark"] .hero-bg img {
  opacity: 0.92;
  filter: saturate(0.9) contrast(1.08) brightness(0.82);
}

[data-theme="dark"] .hero-overlay {
}

/* Light-mode filter shell: visible card separation without a heavy white block. */
[data-theme="light"] .cars-filter-shell {
  background: linear-gradient(145deg, #ffffff 0%, #f5f7f9 100%);
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(232, 185, 35, 0.06);
}

[data-theme="light"] .cars-filter-shell::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(199, 150, 18, 0.1) 25%,
    rgba(199, 150, 18, 0.72) 50%,
    rgba(199, 150, 18, 0.1) 75%,
    transparent 100%
  );
}

[data-theme="light"] .cars-filter-shell::after {
  background: radial-gradient(
    circle,
    rgba(199, 150, 18, 0.075),
    transparent 68%
  );
}

[data-theme="light"] .cars-filter-live {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .cars-filter-controls .form-select,
[data-theme="light"] .cars-filter-controls .search-box input {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text-primary);
}

[data-theme="light"] .cars-filter-controls .form-select:hover,
[data-theme="light"] .cars-filter-controls .search-box input:hover {
  background: #ffffff;
  border-color: rgba(199, 150, 18, 0.38);
}

[data-theme="light"] .cars-filter-controls .form-select:focus,
[data-theme="light"] .cars-filter-controls .search-box input:focus {
  background: #ffffff;
  border-color: rgba(199, 150, 18, 0.68);
  box-shadow: 0 0 0 3px rgba(199, 150, 18, 0.1);
}

[data-theme="light"] .cars-category-row {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .filter-chip.active {
  color: #171717;
}

[data-theme="light"] .card,
[data-theme="light"] .country-card,
[data-theme="light"] .car-card,
[data-theme="light"] .showcase-car,
[data-theme="light"] .step-card,
[data-theme="light"] .why-card,
[data-theme="light"] .search-box input {
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .showcase-car {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .showcase-car:hover,
[data-theme="light"] .card:hover {
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(199, 150, 18, 0.08);
}

[data-theme="light"] .showcase-image-wrap {
  background: #eef1f5;
}

[data-theme="light"] .image-nav {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .image-counter {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .car-image-overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.42), transparent 55%);
}

[data-theme="light"] .search-box input::placeholder {
  color: #9ca3af;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  color-scheme: light;
}

[data-theme="light"] .mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .mobile-bottom-bar a {
  color: var(--text-secondary);
}

[data-theme="light"] .footer {
  background: #eef0f3;
  color: var(--text-primary);
}

[data-theme="light"] .footer a {
  color: var(--text-secondary);
}

[data-theme="light"] .footer a:hover {
  color: var(--accent);
}

/* Remove dark-only decorative gradients from light surfaces */
[data-theme="light"] .showcase-car .showcase-image-wrap::after,
[data-theme="light"] .car-card-img::after {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.22), transparent 55%);
}

/* Booking page redesign */
.booking-page {
  padding-bottom: 5rem;
}
.booking-intro {
  margin-bottom: 2rem;
}
.booking-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.booking-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}
.booking-car-summary {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.booking-car-summary::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
[dir="rtl"] .booking-car-summary::before {
  inset: 0 0 0 auto;
}
.booking-car-summary .booking-summary-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.booking-car-summary .booking-summary-name {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.booking-car-summary .booking-summary-price {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.booking-car-summary .booking-summary-note {
  margin-top: 0.55rem;
  color: var(--warning);
  font-size: 0.78rem;
}
.booking-car-visual {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
  gap: 1rem;
}
.booking-car-image-wrap {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.booking-car-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.22));
  pointer-events: none;
}
.booking-car-image {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: block;
  object-fit: cover;
}
.booking-car-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.booking-section {
  padding: 1.4rem 0.25rem;
  border-top: 1px solid var(--border);
}
.booking-section:first-of-type {
  border-top: 0;
  padding-top: 1rem;
}
.booking-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.booking-step {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-size: 0.72rem;
  font-weight: 900;
}
.booking-section-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
}
.booking-section-head p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.booking-grid {
  display: grid;
  gap: 0.9rem;
}
.booking-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.booking-full {
  grid-column: 1/-1;
}
.booking-location-grid {
  align-items: start;
}
.booking-select-wrap {
  position: relative;
}
.booking-country-fixed {
  width: 100%;
}
.booking-country-display {
  width: 100%;
  min-height: 48px;
  font-weight: 800;
  cursor: default;
  opacity: 1;
  color: var(--text-primary);
  background: var(--surface-2, var(--bg-secondary));
  border-color: var(--border-color);
  pointer-events: none;
}
.booking-country-display:focus {
  outline: none;
  box-shadow: none;
}
.booking-field-hint {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}
.booking-section .form-group {
  margin-bottom: 0;
}
.booking-field-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}
.booking-field-title {
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 800;
}
.booking-inner-grid {
  gap: 0.75rem;
}
.booking-inner-grid .form-label {
  font-size: 0.68rem;
}
.booking-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}
.booking-submit-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.booking-submit-copy strong {
  color: var(--text-primary);
  font-size: 0.9rem;
}
.booking-submit-copy span {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.booking-submit-btn {
  min-width: 220px;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
}

@media (max-width: 767px) {
  .booking-page {
    padding-top: 82px !important;
  }
  .booking-shell {
    padding: 0.8rem;
    border-radius: 18px;
  }
  .booking-grid-2 {
    grid-template-columns: 1fr;
  }
  .booking-inner-grid {
    grid-template-columns: 1fr 1fr;
  }
  .booking-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-submit-btn {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 430px) {
  .booking-inner-grid {
    grid-template-columns: 1fr;
  }
  .booking-car-summary {
    padding: 1rem;
  }
  .booking-car-visual {
    grid-template-columns: 1fr;
  }
  .booking-car-image-wrap,
  .booking-car-image {
    min-height: 170px;
    height: 170px;
  }
}

/* Booking: country is inherited from the Cars page and is intentionally read-only. */
.booking-fixed-country {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}
.booking-fixed-country-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 32px;
}
.booking-fixed-country strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.booking-fixed-country small {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
\n\n/* ============================================
   FINAL UI POLISH — FILTERS + HOME SHOWCASE
   ============================================ */
select {
  color-scheme: dark;
}
select option {
  background: #20202a;
  color: #f5f5f7;
}
[data-theme="light"] select {
  color-scheme: light;
}
[data-theme="light"] select option {
  background: #ffffff;
  color: #111827;
}

.showcase-visual-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, #191922, #101015);
}
.showcase-visual-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(232, 185, 35, 0.24),
    transparent 32%,
    transparent 68%,
    rgba(255, 255, 255, 0.06)
  );
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}
.showcase-visual-card:nth-child(1) {
  transform: rotate(-1deg);
}
.showcase-visual-card:nth-child(3) {
  transform: rotate(1deg);
}
.showcase-visual-card:nth-child(1):hover,
.showcase-visual-card:nth-child(3):hover {
  transform: translateY(-9px) rotate(0deg);
}
.showcase-featured-card {
  transform: translateY(-10px) scale(1.025);
  box-shadow:
    0 26px 55px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(232, 185, 35, 0.08);
}
.showcase-featured-card:hover {
  transform: translateY(-16px) scale(1.035);
}
.showcase-visual-card .showcase-image-wrap {
  aspect-ratio: 16/10;
}
.showcase-visual-card .showcase-image-wrap::after {
  background: linear-gradient(
    to top,
    rgba(5, 5, 8, 0.78) 0%,
    rgba(5, 5, 8, 0.12) 48%,
    transparent 70%
  );
}
.showcase-hover-label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(8, 8, 12, 0.54);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.92;
  transition:
    transform 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
}
.showcase-hover-label b {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 1rem;
}
.showcase-visual-card:hover .showcase-hover-label {
  transform: translateY(-4px);
  background: rgba(8, 8, 12, 0.76);
  border-color: rgba(232, 185, 35, 0.3);
}
.showcase-shine {
  position: absolute;
  top: -20%;
  left: -55%;
  width: 35%;
  height: 150%;
  z-index: 4;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
  pointer-events: none;
}
.showcase-visual-card:hover .showcase-shine {
  left: 125%;
}
.showcase-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem 1.15rem;
}
.showcase-visual-caption div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.showcase-visual-caption strong {
  font-size: 0.95rem;
}
.showcase-visual-caption span {
  color: var(--text-secondary);
  font-size: 0.72rem;
}
.showcase-mini-arrow {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent) !important;
  font-size: 1rem !important;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}
.showcase-visual-card:hover .showcase-mini-arrow {
  transform: rotate(45deg);
  background: var(--accent);
  color: #111 !important;
}
@media (max-width: 900px) {
  .showcase-visual-card:nth-child(1),
  .showcase-visual-card:nth-child(3),
  .showcase-featured-card {
    transform: none;
  }
  .showcase-visual-card:nth-child(1):hover,
  .showcase-visual-card:nth-child(3):hover,
  .showcase-featured-card:hover {
    transform: translateY(-7px);
  }
}
[data-theme="light"] .showcase-visual-card {
  background: linear-gradient(145deg, #fff, #f4f5f7);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .showcase-hover-label {
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
  border-color: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .showcase-visual-caption strong {
  color: #111827;
}

/* Dropdown polish */
select {
  color-scheme: dark;
}
select option {
  background: #20202a;
  color: #f5f5f7;
}
[data-theme="light"] select {
  color-scheme: light;
}
[data-theme="light"] select option {
  background: #fff;
  color: #111827;
}

/* Explore Cars CTA — animated, premium, and isolated from the car showcase cards */
.showcase-explore-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 190px;
  padding: 0.78rem 1rem 0.78rem 0.78rem;
  border: 1px solid rgba(232, 185, 35, 0.55);
  border-radius: 999px;
  background: linear-gradient(135deg, #f2c21d 0%, #e8b923 55%, #d9a915 100%);
  color: #111;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 26px rgba(232, 185, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateZ(0);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    filter 0.35s ease;
}
.showcase-explore-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.48) 46%,
    transparent 68%
  );
  transform: translateX(-120%);
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.showcase-explore-btn:hover {
  transform: translateY(-4px) scale(1.025);
  filter: saturate(1.08);
  box-shadow:
    0 16px 34px rgba(232, 185, 35, 0.24),
    0 0 0 5px rgba(232, 185, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.showcase-explore-btn:hover::before {
  transform: translateX(120%);
}
.showcase-explore-btn:active {
  transform: translateY(-1px) scale(0.99);
}
.showcase-explore-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border-radius: 50%;
  background: #111;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.35s ease,
    color 0.35s ease;
}
.showcase-explore-icon svg {
  width: 1rem;
  height: 1rem;
}
.showcase-explore-text {
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.showcase-explore-glow {
  position: absolute;
  right: 13%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(-50%) scale(0.4);
  transition:
    opacity 0.3s ease,
    transform 0.35s ease;
}
.showcase-explore-btn:hover .showcase-explore-icon {
  transform: translateX(3px) rotate(-4deg);
  background: #17171d;
}
.showcase-explore-btn:hover .showcase-explore-glow {
  opacity: 0.85;
  transform: translateY(-50%) scale(1);
  animation: explorePulse 1.15s ease-in-out infinite;
}
@keyframes explorePulse {
  0%,
  100% {
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.55);
  }
}
[dir="rtl"] .showcase-explore-btn {
  padding: 0.78rem 0.78rem 0.78rem 1rem;
}
[dir="rtl"] .showcase-explore-btn:hover .showcase-explore-icon {
  transform: translateX(-3px) rotate(4deg);
}
@media (max-width: 767px) {
  .showcase-cta .showcase-explore-btn {
    width: 100%;
    min-width: 0;
  }
}

/* Country and availability filters - button based, no native selects */
.cars-country-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0 0 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.cars-country-label {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cars-country-label span {
  font-weight: 700;
}
.cars-country-label small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}
#country-filters,
#availability-filters {
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .cars-country-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .cars-country-label {
    min-width: 0;
  }
}

/* =========================================================
   FINAL PREMIUM FILTER + MOBILE HEADER POLISH
   ========================================================= */
.cars-filter-shell {
  padding: 1.15rem 1.15rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 1.25rem;
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(232, 185, 35, 0.09),
      transparent 26%
    ),
    linear-gradient(145deg, #171720 0%, #101016 58%, #0d0d13 100%);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.cars-filter-shell::before {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 185, 35, 0.78),
    rgba(232, 185, 35, 0.18),
    transparent
  );
  opacity: 0.85;
}
.cars-filter-shell::after {
  width: 320px;
  height: 230px;
  top: -170px;
  right: -30px;
  background: radial-gradient(circle, rgba(232, 185, 35, 0.1), transparent 68%);
}
.cars-filter-head {
  align-items: center;
  min-height: 42px;
  margin-bottom: 0.85rem;
}
.cars-filter-title-wrap {
  min-height: 42px;
}
.cars-filter-kicker {
  margin-bottom: 0.1rem;
  color: var(--accent);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  font-weight: 800;
}
.cars-filter-title {
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 750;
}
.cars-filter-subtitle {
  margin-top: 0.16rem;
  color: var(--text-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}
.cars-filter-head .filter-reset {
  height: 31px;
  padding: 0 0.82rem;
  border-radius: 999px;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}
.cars-filter-head .filter-reset::before {
  content: "↻";
  display: inline-block;
  margin-right: 0.3rem;
  font-size: 0.75rem;
}
[dir="rtl"] .cars-filter-head .filter-reset::before {
  margin-right: 0;
  margin-left: 0.3rem;
}
.cars-filter-head .filter-reset:hover {
  color: var(--accent);
  border-color: rgba(232, 185, 35, 0.35);
  background: rgba(232, 185, 35, 0.08);
  transform: translateY(-1px);
}
.cars-country-row {
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  margin-bottom: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}
.cars-country-label {
  min-width: 150px;
  padding-left: 0.05rem;
}
.cars-country-label span,
.cars-category-label span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.cars-country-label::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 185, 35, 0.6);
}
[dir="rtl"] .cars-country-label::before {
  margin-right: 0;
  margin-left: 0.45rem;
}
#country-filters {
  gap: 0.48rem;
}
.cars-filter-shell .filter-chip {
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(255, 255, 255, 0.075);
  color: #aaaab5;
  font-size: 0.63rem;
  font-weight: 650;
}
.cars-filter-shell .filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(232, 185, 35, 0.28);
  background: rgba(232, 185, 35, 0.055);
  transform: translateY(-1px);
}
.cars-filter-shell .filter-chip.active {
  color: #f4c52c;
  background: linear-gradient(
    135deg,
    rgba(232, 185, 35, 0.17),
    rgba(232, 185, 35, 0.07)
  );
  border-color: rgba(232, 185, 35, 0.65);
  box-shadow:
    0 5px 18px rgba(232, 185, 35, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cars-filter-controls {
  margin-bottom: 0.7rem;
}
.cars-filter-controls .search-box input {
  height: 42px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.032);
  border-color: rgba(255, 255, 255, 0.075);
  font-size: 0.67rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.018);
}
.cars-filter-controls .search-box input:focus {
  border-color: rgba(232, 185, 35, 0.52);
  box-shadow:
    0 0 0 4px rgba(232, 185, 35, 0.065),
    0 8px 24px rgba(0, 0, 0, 0.16);
}
.cars-filter-controls .search-box svg {
  width: 15px;
  height: 15px;
}
.cars-category-row {
  gap: 0.85rem;
  margin-top: 0;
  padding: 0.65rem 0 0;
  border-top: 0;
}
.cars-category-label {
  min-width: 64px;
}
.cars-category-row .filter-bar {
  gap: 0.42rem;
}
.cars-category-row .filter-chip {
  min-height: 30px;
  padding: 0.34rem 0.65rem;
  border-radius: 0.6rem;
}

/* Mobile header: make the hamburger impossible to miss and give it a premium control treatment. */
.mobile-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  color: var(--text-primary);
}
.mobile-whatsapp {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(232, 185, 35, 0.16);
  border-radius: 0.72rem;
  color: var(--accent);
  background: rgba(232, 185, 35, 0.055);
  transition: 0.22s ease;
}
.mobile-whatsapp:hover {
  background: rgba(232, 185, 35, 0.11);
  transform: translateY(-1px);
}
.mobile-menu-button {
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.78rem;
  color: #f5f5f7;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: 0.22s ease;
}
.mobile-menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease,
    width 0.22s ease;
}
.mobile-menu-button:hover,
.mobile-menu-button:focus-visible {
  color: var(--accent);
  border-color: rgba(232, 185, 35, 0.4);
  background: rgba(232, 185, 35, 0.08);
  outline: none;
  transform: translateY(-1px);
}
.mobile-menu.open ~ * {
  pointer-events: auto;
}
.header:has(.mobile-menu.open) .mobile-menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header:has(.mobile-menu.open) .mobile-menu-button span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.header:has(.mobile-menu.open) .mobile-menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.42);
  padding: 1rem;
}
.mobile-menu .nav-link {
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
}
.mobile-menu .nav-link:hover,
.mobile-menu .nav-link.active {
  background: rgba(232, 185, 35, 0.08);
  border-color: rgba(232, 185, 35, 0.12);
}

@media (max-width: 700px) {
  .cars-filter-shell {
    padding: 0.95rem;
    border-radius: 1.05rem;
  }
  .cars-filter-head {
    margin-bottom: 0.75rem;
  }
  .cars-filter-title {
    font-size: 0.9rem;
  }
  .cars-filter-subtitle {
    font-size: 0.58rem;
    max-width: 230px;
  }
  .cars-country-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
  .cars-country-label {
    min-width: 0;
  }
  #country-filters {
    width: 100%;
  }
  .cars-filter-shell .filter-chip {
    min-height: 31px;
  }
  .cars-category-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
  .cars-category-label {
    min-width: 0;
  }
  .cars-category-row .filter-bar {
    width: 100%;
  }
}

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

/* =========================================================
   FINAL UI REFINEMENT — FILTERS + LIGHT MODE + MOBILE HEADER
   ========================================================= */

/* Filter: premium, spacious, but not oversized */
.cars-filter-shell {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.35rem;
  background:
    radial-gradient(
      420px 180px at 92% 0%,
      rgba(232, 185, 35, 0.085),
      transparent 70%
    ),
    linear-gradient(145deg, #171821 0%, #12131a 52%, #101117 100%);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.cars-filter-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 185, 35, 0.65),
    transparent
  );
}
.cars-filter-shell::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -100px;
  bottom: -145px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 185, 35, 0.055),
    transparent 68%
  );
  pointer-events: none;
}

.cars-filter-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.cars-filter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.cars-filter-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232, 185, 35, 0.55);
}
.cars-filter-title {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cars-filter-subtitle {
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}
.cars-filter-head .filter-reset {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 650;
  transition: var(--transition);
}
.cars-filter-head .filter-reset::before {
  content: "↻";
  margin-right: 0.4rem;
  font-size: 0.85rem;
}
[dir="rtl"] .cars-filter-head .filter-reset::before {
  margin-right: 0;
  margin-left: 0.4rem;
}
.cars-filter-head .filter-reset:hover {
  color: var(--accent);
  border-color: rgba(232, 185, 35, 0.35);
  background: rgba(232, 185, 35, 0.07);
}

.cars-country-row,
.cars-category-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cars-country-row {
  padding: 0 0 1rem;
  margin: 0;
  border: 0;
}
.cars-category-row {
  padding: 1rem 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}
.cars-country-label,
.cars-category-label {
  min-width: 108px;
  flex: 0 0 108px;
}
.cars-country-label span,
.cars-category-label span {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--text-secondary);
}
.cars-country-label::before {
  display: none;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cars-filter-shell .filter-chip {
  min-height: 36px;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 650;
  transition: var(--transition);
}
.cars-filter-shell .filter-chip:hover {
  color: var(--text-primary);
  border-color: rgba(232, 185, 35, 0.28);
  background: rgba(232, 185, 35, 0.055);
  transform: translateY(-1px);
}
.cars-filter-shell .filter-chip.active {
  color: #f6cc3d;
  border-color: rgba(232, 185, 35, 0.65);
  background: linear-gradient(
    135deg,
    rgba(232, 185, 35, 0.18),
    rgba(232, 185, 35, 0.07)
  );
  box-shadow:
    0 6px 18px rgba(232, 185, 35, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cars-filter-controls {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
}
.cars-filter-controls .search-box {
  width: 100%;
}
.cars-filter-controls .search-box input {
  height: 48px;
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  font-size: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.cars-filter-controls .search-box input:focus {
  border-color: rgba(232, 185, 35, 0.55);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 4px rgba(232, 185, 35, 0.07);
}
.cars-filter-controls .search-box svg {
  width: 17px;
  height: 17px;
}

/* Light mode: clean white card, not a washed-out gray block */
[data-theme="light"] .cars-filter-shell {
  border-color: rgba(17, 24, 39, 0.1);
  background:
    radial-gradient(
      360px 160px at 92% 0%,
      rgba(199, 150, 18, 0.09),
      transparent 72%
    ),
    linear-gradient(145deg, #ffffff 0%, #fbfbfc 58%, #f5f6f8 100%);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .cars-filter-shell::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(199, 150, 18, 0.55),
    transparent
  );
}
[data-theme="light"] .cars-filter-head,
[data-theme="light"] .cars-category-row {
  border-color: rgba(15, 23, 42, 0.075);
}
[data-theme="light"] .cars-filter-subtitle {
  color: #7b8491;
}
[data-theme="light"] .cars-filter-head .filter-reset {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #687180;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .cars-filter-head .filter-reset:hover {
  background: rgba(199, 150, 18, 0.07);
  color: #9b740b;
}
[data-theme="light"] .cars-filter-shell .filter-chip {
  background: #f7f8fa;
  border-color: rgba(15, 23, 42, 0.09);
  color: #596273;
}
[data-theme="light"] .cars-filter-shell .filter-chip:hover {
  background: #fff;
  color: #1f2937;
  border-color: rgba(199, 150, 18, 0.35);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .cars-filter-shell .filter-chip.active {
  color: #8c6908;
  background: linear-gradient(
    135deg,
    rgba(199, 150, 18, 0.16),
    rgba(199, 150, 18, 0.07)
  );
  border-color: rgba(199, 150, 18, 0.55);
  box-shadow: 0 5px 14px rgba(199, 150, 18, 0.09);
}
[data-theme="light"] .cars-filter-controls .search-box input {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.11);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.035);
}
[data-theme="light"] .cars-filter-controls .search-box input:focus {
  background: #fff;
  border-color: rgba(199, 150, 18, 0.6);
  box-shadow:
    0 0 0 4px rgba(199, 150, 18, 0.09),
    0 6px 18px rgba(15, 23, 42, 0.05);
}

/* Header controls: visible in both themes */
.mobile-menu-button {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.78rem;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.mobile-menu-button span {
  width: 19px;
  height: 2px;
  background: currentColor;
}
.mobile-menu-button:hover,
.mobile-menu-button:focus-visible {
  color: var(--accent);
  border-color: rgba(232, 185, 35, 0.45);
  outline: none;
}
.mobile-menu-button.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-button.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
[data-theme="light"] .mobile-menu-button {
  color: #111827;
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.09);
}
[data-theme="light"] .mobile-menu-button:hover,
[data-theme="light"] .mobile-menu-button:focus-visible {
  color: #a77c0b;
}
[data-theme="light"] .mobile-whatsapp {
  background: rgba(199, 150, 18, 0.07);
  border-color: rgba(199, 150, 18, 0.18);
  color: #a77c0b;
}

@media (max-width: 767px) {
  .cars-filter-shell {
    padding: 1rem;
    border-radius: 1.1rem;
  }
  .cars-filter-head {
    align-items: flex-start;
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
  }
  .cars-filter-title {
    font-size: 1rem;
  }
  .cars-filter-subtitle {
    font-size: 0.68rem;
  }
  .cars-filter-head .filter-reset {
    height: 34px;
    padding: 0 0.7rem;
    font-size: 0.66rem;
  }
  .cars-country-row,
  .cars-category-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
  .cars-country-label,
  .cars-category-label {
    min-width: 0;
    flex-basis: auto;
  }
  .cars-filter-controls {
    margin-bottom: 0.9rem;
  }
  .cars-filter-controls .search-box input {
    height: 46px;
  }
  .cars-filter-shell .filter-chip {
    min-height: 34px;
    padding: 0.4rem 0.68rem;
  }
}

/* =========================================================
   MOBILE NAV — FINAL FIX
   The header uses backdrop-filter, so a fixed child menu can
   become trapped inside the header's containing block. Keep
   the menu absolute under the fixed header instead.
   ========================================================= */
@media (max-width: 767px) {
  .header {
    overflow: visible !important;
  }
  .mobile-menu {
    position: absolute !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100vh - 64px) !important;
    max-height: calc(100dvh - 64px) !important;
    overflow-y: auto !important;
    display: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    background: rgba(10, 10, 15, 0.985) !important;
    border-top: 1px solid rgba(232, 185, 35, 0.14) !important;
    padding: 1rem !important;
    z-index: 2005 !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .mobile-menu.open {
    display: block !important;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu .nav-link {
    display: flex !important;
    align-items: center;
    min-height: 54px;
    margin-bottom: 0.45rem !important;
    padding: 0.85rem 1rem !important;
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    font-size: 0.95rem;
    font-weight: 650;
  }

  .mobile-menu .nav-link:hover,
  .mobile-menu .nav-link.active {
    color: var(--accent) !important;
    background: rgba(232, 185, 35, 0.09) !important;
    border-color: rgba(232, 185, 35, 0.28) !important;
  }

  [data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.985) !important;
    border-top-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  }

  [data-theme="light"] .mobile-menu .nav-link {
    color: #111827 !important;
    background: #f7f8fa;
    border-color: rgba(15, 23, 42, 0.08) !important;
  }

  [data-theme="light"] .mobile-menu .nav-link:hover,
  [data-theme="light"] .mobile-menu .nav-link.active {
    color: #8c6908 !important;
    background: rgba(199, 150, 18, 0.09) !important;
    border-color: rgba(199, 150, 18, 0.28) !important;
  }

  .mobile-menu > div:last-child {
    margin-top: 0.8rem !important;
    padding: 0.85rem !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
  }

  [data-theme="light"] .mobile-menu > div:last-child {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: #f7f8fa;
  }
}

/* =========================================================
   MASHARY CARS — LIGHT MODE, PROFESSIONAL EDITION
   Pure additive refinement layer for [data-theme="light"].
   Nothing above this block is modified — this only raises
   the light theme to the same premium bar as the dark theme:
   richer tokens, real card elevation, a refined metallic
   gold instead of a flat mustard fill, and fixed low-contrast
   spots (ghost step numbers, washed-out filter surfaces).
   ========================================================= */

[data-theme="light"] {
  --bg: #f8f7f3;
  --bg-secondary: #f0eee6;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-secondary: #f3f1ea;
  --border: rgba(21, 22, 28, 0.09);
  --text-primary: #15161b;
  --text-secondary: #53545f;
  --text-muted: #83838f;
  --accent: #b6870f;
  --accent-hover: #96700c;
  --shadow: 0 12px 32px rgba(21, 22, 28, 0.09);
}

/* Clean, premium hero: vivid photo, no foggy wash — just a soft
   fade at the very bottom so it blends into the ivory page background. */
[data-theme="light"] .hero-bg {
  background: #e5e2d8;
}
[data-theme="light"] .hero-bg img {
  opacity: 1;
  filter: saturate(1.05) contrast(1.05);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(248, 247, 243, 0.55) 12%,
    rgba(248, 247, 243, 0.06) 32%,
    rgba(15, 16, 20, 0.06) 70%,
    rgba(15, 16, 20, 0.16) 100%
  );
}
[data-theme="light"] .hero-content h1 {
}
[data-theme="light"] .hero-content p {
}

/* Selection & focus rings that read as intentional, not default browser blue/gray */
[data-theme="light"] ::selection {
  background: rgba(182, 135, 15, 0.22);
  color: #15161b;
}
[data-theme="light"] a:focus-visible,
[data-theme="light"] button:focus-visible,
[data-theme="light"] input:focus-visible,
[data-theme="light"] select:focus-visible,
[data-theme="light"] textarea:focus-visible {
  outline: 2px solid rgba(182, 135, 15, 0.55);
  outline-offset: 2px;
}
[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--bg);
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(21, 22, 28, 0.16);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(21, 22, 28, 0.28);
}

/* Header: crisper hairline, no more chalky gray edge */
[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(21, 22, 28, 0.07);
  box-shadow: 0 1px 0 rgba(21, 22, 28, 0.03);
}
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  background: rgba(182, 135, 15, 0.1);
  color: #93700e;
}
[data-theme="light"] .btn-icon:hover {
  background: var(--surface-secondary);
}

/* Primary CTA: brushed-gold gradient with real depth instead of a flat mustard tile */
[data-theme="light"] .btn-primary {
  background: linear-gradient(160deg, #d8a726 0%, #b6870f 55%, #a1760c 100%);
  color: #201802;
  box-shadow:
    0 8px 20px rgba(182, 135, 15, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(160deg, #e0b437 0%, #c19312 55%, #a97d0d 100%);
  box-shadow:
    0 10px 26px rgba(182, 135, 15, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
[data-theme="light"] .btn-secondary {
  background: var(--surface);
  border: 1px solid rgba(21, 22, 28, 0.12);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(21, 22, 28, 0.04);
}
[data-theme="light"] .btn-secondary:hover {
  border-color: rgba(182, 135, 15, 0.45);
  background: rgba(182, 135, 15, 0.05);
}

/* Badges: deep charcoal-on-gold reads far more premium than pure black-on-mustard */
[data-theme="light"] .badge-accent {
  background: linear-gradient(160deg, #dcae2c, #b6870f);
  color: #201802;
  box-shadow: 0 3px 10px rgba(182, 135, 15, 0.28);
}
[data-theme="light"] .badge-muted {
  background: var(--surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
[data-theme="light"] .car-card-badges .badge {
  box-shadow: 0 6px 16px rgba(21, 22, 28, 0.14);
}

/* Elevated surfaces: give white cards real presence on the ivory ground */
[data-theme="light"] .card,
[data-theme="light"] .why-card,
[data-theme="light"] .country-card,
[data-theme="light"] .step-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .car-card {
  background: #f0eee6;
  margin: 10px;
}
[data-theme="light"] .why-card,
[data-theme="light"] .country-card {
  box-shadow: 0 4px 16px rgba(21, 22, 28, 0.05);
}
[data-theme="light"] .why-card:hover,
[data-theme="light"] .country-card:hover,
[data-theme="light"] .card:hover,
[data-theme="light"] .car-card:hover {
  border-color: rgba(182, 135, 15, 0.32);
  box-shadow:
    0 16px 36px rgba(21, 22, 28, 0.1),
    0 0 0 1px rgba(182, 135, 15, 0.06);
}
[data-theme="light"] .why-card svg,
[data-theme="light"] .car-spec svg {
  color: #a1760c;
}
[data-theme="light"] .faq-item {
  box-shadow: 0 2px 10px rgba(21, 22, 28, 0.04);
}

/* Ghost step numbers were nearly invisible on white — give them a readable, still-quiet tint */
[data-theme="light"] .step-num {
  color: rgba(182, 135, 15, 0.32);
}

/* Form fields (contact / booking) */
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #ffffff;
  border-color: rgba(21, 22, 28, 0.12);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(21, 22, 28, 0.03);
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: rgba(182, 135, 15, 0.6);
  box-shadow: 0 0 0 3px rgba(182, 135, 15, 0.1);
}

/* Toast */
[data-theme="light"] .toast {
  background: #ffffff;
  border-color: rgba(21, 22, 28, 0.1);
  box-shadow: 0 14px 34px rgba(21, 22, 28, 0.14);
}

/* Footer: a quiet gold hairline ties it back to the brand instead of ending on flat gray */
[data-theme="light"] .footer {
  background: #f1efe7;
  border-top: 1px solid rgba(182, 135, 15, 0.18);
}

/* Contact cards */
.contact-cards-grid {
  max-width: 1100px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.25rem !important;
}
.contact-cards-grid .why-card {
  min-width: 0;
}

/* How It Works responsive layout */
@media (max-width: 1199px) {
  .how-steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .how-steps-grid::before {
    top: 2.55rem;
    left: 9%;
    right: 9%;
  }
  .contact-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  .how-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .how-steps-grid::before {
    display: none;
  }
}
@media (max-width: 767px) {
  .contact-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .how-it-works-section {
    padding-top: 5.4rem;
    padding-bottom: 3.2rem;
  }
  .how-it-works-heading {
    margin-bottom: 1.75rem;
  }
  .how-it-works-heading .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  .how-it-works-heading .section-subtitle {
    font-size: 0.94rem;
    padding: 0 0.25rem;
  }
  .how-steps-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .how-step-card {
    min-height: 0;
    padding: 0.9rem;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1rem;
  }
  .how-step-card::before {
    top: 0;
    left: 0.8rem;
    right: 0.8rem;
  }
  .how-step-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 0.9rem;
  }
  .how-step-number {
    top: 0.8rem;
    right: 0.8rem;
    min-width: 29px;
    height: 22px;
    font-size: 0.68rem;
  }
  .how-step-content {
    flex: 1;
    min-width: 0;
    padding-right: 2.2rem;
  }
  .how-step-content h3 {
    font-size: 0.96rem;
    margin-bottom: 0.2rem;
  }
  .how-step-content p {
    font-size: 0.79rem;
    line-height: 1.45;
  }
  [dir="rtl"] .how-step-card {
    flex-direction: row-reverse;
    text-align: right;
  }
  [dir="rtl"] .how-step-number {
    left: 0.8rem;
    right: auto;
  }
  [dir="rtl"] .how-step-content {
    padding-right: 0;
    padding-left: 2.2rem;
  }
  body {
    padding-bottom: 76px;
  }
  .mobile-bottom-bar {
    min-height: 64px;
  }
}
@media (max-width: 380px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .how-step-card {
    padding: 0.8rem;
  }
  .how-step-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .how-step-icon svg {
    width: 21px;
    height: 21px;
  }
  .how-step-content h3 {
    font-size: 0.92rem;
  }
  .how-step-content p {
    font-size: 0.75rem;
  }
}

/* ============================================
   LANGUAGE DROPDOWN
============================================ */
.lang-dropdown {
  position: relative;
  display: inline-flex;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.75rem 0 0.5rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.lang-trigger:hover {
  border-color: var(--accent);
  background: var(--surface-elevated);
}
.lang-dropdown.open .lang-trigger {
  border-color: var(--accent);
  background: var(--surface-elevated);
}

.lang-trigger-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(232, 185, 35, 0.14);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-trigger-label {
  color: var(--text-primary);
}

.lang-trigger-caret {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}
.lang-dropdown.open .lang-trigger-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-start: 0;
  min-width: 200px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 100;
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--text-primary);
  text-align: start;
  transition: var(--transition);
  cursor: pointer;
}
.lang-option:hover {
  background: var(--surface-secondary);
}
.lang-option.active {
  background: rgba(232, 185, 35, 0.1);
}

.lang-option-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.lang-option.active .lang-option-badge {
  background: var(--accent);
  color: #000;
}

.lang-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex: 1;
}
.lang-option-native {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.lang-option-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lang-check {
  color: var(--accent);
  flex-shrink: 0;
}

/* Mobile variant: sits inline with the theme toggle, menu floats like desktop */
.lang-dropdown-mobile .lang-trigger {
  border-radius: 999px;
  padding: 0 0.75rem 0 0.5rem;
}
.lang-dropdown-mobile .lang-menu {
  z-index: 1100;
}

[dir="rtl"] .lang-menu {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

/* =========================================================
   PREMIUM HEADER CAR FLIGHT — LOGO-SYNCED, DIRECTION-AWARE
   - Anchored to the real logo position (computed in JS via
     --car-anchor), so it starts/ends exactly at the logo in
     every language, on every screen size.
   - Uses the logical property `inset-inline-start` instead of
     the physical `right`, so the same keyframes automatically
     work whether the logo sits on the left (LTR: en/fr) or on
     the right (RTL: ar) — no per-language overrides needed.
   - The car sprite is flipped with --car-face so it always
     drives nose-first in its direction of travel, instead of
     appearing to reverse in LTR languages.
   ========================================================= */

.header {
  overflow: visible !important;
  isolation: isolate;
}

.header-inner {
  position: relative;
  z-index: 2;
}

:root {
  --car-face: 1; /* RTL default: sprite already faces the direction of travel */
}
[dir="ltr"] {
  --car-face: -1; /* LTR: mirror the sprite so its nose leads left-to-right */
}

.header-car-flight {
  position: absolute;
  top: 50%;
  inset-inline-start: var(--car-anchor, 18px);
  width: clamp(76px, 8vw, 112px);
  height: 54px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  z-index: 20;
  opacity: 0;
  visibility: hidden;

  transform-origin: center center;

  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 12px rgba(232, 185, 35, 0.18));

  will-change: inset-inline-start, transform, opacity;
}

.header-car-flight.is-ready {
  visibility: visible;
}

/*
 * `--car-anchor` is set by JS to the exact edge of the logo (in
 * pixels, measured from the header's inline-start edge), so
 * every "near logo" keyframe below lines up with the real logo
 * regardless of language/direction/screen width. The "far side"
 * keyframes stay percentage-based since they just need to reach
 * the opposite edge of the header.
 */
.header-car-flight.is-flying {
  animation: masharyHeaderCarFlightFixed 6.8s cubic-bezier(0.22, 0.72, 0.2, 1)
    both;
}

@keyframes masharyHeaderCarFlightFixed {
  0% {
    inset-inline-start: calc(var(--car-anchor, 18px) - 6%);
    opacity: 0;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.78)
      rotate(0deg);
  }

  8% {
    inset-inline-start: var(--car-anchor, 18px);
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.9)
      rotate(0deg);
  }

  14% {
    inset-inline-start: var(--car-anchor, 18px);
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(1)
      rotate(0deg);
  }

  38% {
    inset-inline-start: 55%;
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scaleX(var(--car-face)) scale(1.03)
      rotate(0deg);
  }

  48% {
    inset-inline-start: 108%;
    opacity: 0.9;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.92)
      rotate(0deg);
  }

  50% {
    inset-inline-start: 120%;
    opacity: 0;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.82)
      rotate(0deg);
  }

  52% {
    inset-inline-start: calc(var(--car-anchor, 18px) - 92%);
    opacity: 0;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.82)
      rotate(0deg);
  }

  58% {
    inset-inline-start: calc(var(--car-anchor, 18px) - 40%);
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.9)
      rotate(0deg);
  }

  86% {
    inset-inline-start: var(--car-anchor, 18px);
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(1.05)
      rotate(0deg);
  }

  93% {
    inset-inline-start: var(--car-anchor, 18px);
    opacity: 1;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.97)
      rotate(0deg);
  }

  100% {
    inset-inline-start: var(--car-anchor, 18px);
    opacity: 0;
    transform: translate3d(0, -50%, 0) scaleX(var(--car-face)) scale(0.75)
      rotate(0deg);
  }
}

@media (max-width: 767px) {
  .header-car-flight {
    width: 72px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-car-flight {
    display: none !important;
  }
}
