/* ============================================
   Car Wash Finder — Design System (v5, "Oasis")
   Palette: Teal → Blue as the brand gradient (fixed-location and
   home-service respectively), Amber for moto-mobile and extras, a warm
   Gold accent reserved for ratings/badges/highlights. Rounded,
   color-blocked cards carry depth via soft floating shadows instead of
   borders + a corner accent.
   Type: Cairo — a single typeface built for Arabic and Latin together.
   ============================================ */

:root {
  /* Core palette */
  --ink: #17212B;
  --ink-2: #202B38;
  --ink-soft: #3A4A57;
  --teal: #0EA5A0;
  --teal-dark: #0B8681;
  --teal-tint: #E3F7F5;
  --blue: #2563EB;
  --blue-dark: #1D4FC4;
  --blue-tint: #E8EFFE;
  --amber: #F59E0B;
  --amber-dark: #C97D07;
  --amber-tint: #FEF3E0;
  --amber-ink: #5A3B02;
  --accent: #FDE047;
  --accent-ink: #4A3D02;
  --purple: #6A5CD0;
  --purple-dark: #4B3FA8;
  --purple-tint: #EFECFB;
  --success: #2E9E6D;
  --success-tint: #E7F6EE;
  --danger: #D6493F;
  --danger-tint: #FCEAE8;
  --gradient-brand: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);

  /* Neutrals — a barely-there cool "oasis whisper" background, the same
     restrained treatment as the stone+amber background it replaces, just
     shifted cool to match teal/blue instead of warm to match amber. */
  --bg: #F7FAFA;
  --bg-gradient: linear-gradient(160deg, #F7FAFA 0%, #EAF6F5 100%);
  --surface: #FFFFFF;
  --surface-alt: #EFF5F5;
  --border: #DCE7E7;
  --border-soft: #E9F1F1;
  --card-border: var(--ink);
  --text: #17212B;
  --text-muted: #64748B;
  --text-faint: #99A6B3;

  /* Shape & elevation — bigger radii and softer floating shadows,
     matching the rounded/color-blocked "Karam → Oasis" direction. */
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23, 33, 43, 0.05), 0 6px 16px -10px rgba(23, 33, 43, 0.12);
  --shadow-md: 0 10px 26px -14px rgba(23, 33, 43, 0.24);
  --shadow-lg: 0 24px 56px -20px rgba(23, 33, 43, 0.32);
  --shadow-glow-teal: 0 8px 22px rgba(14, 165, 160, 0.35);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', -apple-system, 'Tahoma', sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cairo', -apple-system, 'Tahoma', sans-serif;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

a {
  color: inherit;
}

::selection {
  background: var(--teal);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============ App Bar ============ */

.appbar {
  background: var(--gradient-brand);
  color: white;
  padding: 1.1rem 1.25rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 16px rgba(23, 33, 43, 0.18);
}

.appbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.appbar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  flex-shrink: 0;
}

.appbar-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.appbar-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Plain white, not a gradient-text-clip — the appbar itself now uses the
   same brand gradient as its background, so clipping the brand-mark text
   to that identical gradient made it nearly disappear into the bar. */
.appbar-title .brand-mark {
  color: white;
}

.appbar-spacer {
  flex: 1;
}

/* ============ Layout ============ */

.section {
  padding: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.35rem;
  display: block;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

.section-title i {
  color: var(--teal);
  font-size: 1.05rem;
}

/* ============ Buttons ============ */

.btn {
  background: var(--gradient-brand);
  color: white;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-teal);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
}

.btn-outline:hover {
  background: var(--teal-tint);
  box-shadow: none;
}

.btn-ghost {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--border-soft);
  box-shadow: none;
}

.btn-danger {
  background: var(--danger);
}

.btn-danger:hover {
  background: #B8382F;
}

.btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* ============ Cards ============ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: none;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.price-distance {
  display: flex;
  justify-content: space-between;
  margin: 0.85rem 0;
  font-size: 0.88rem;
  color: var(--text);
}

.price-distance span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.price-distance i {
  color: var(--teal);
}

/* ---------- Icon badge (circular outlined icon container) ---------- */
.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-tint);
  border: none;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

/* ---------- Featured card (highlighted "Popular" package) ---------- */
.card.card-featured {
  background: var(--gradient-brand);
  border-color: transparent;
  box-shadow: 0 16px 34px -16px rgba(14, 165, 160, 0.55);
}
.card.card-featured h3,
.card.card-featured .price-distance,
.card.card-featured .price-distance i {
  color: white;
}
.card.card-featured .meta {
  color: rgba(255, 255, 255, 0.82);
}
.card.card-featured .icon-badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}
.card.card-featured .btn {
  background: white;
  color: var(--teal-dark);
}
.featured-tag {
  position: absolute;
  top: -10px;
  right: 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(253, 224, 71, 0.5);
}
html[dir="rtl"] .featured-tag {
  right: auto;
  left: 1.1rem;
}

/* ============ Chips / tags ============ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-weight: 500;
}

/* Only apply hover darkening on devices with real hover (mouse/trackpad) —
   touchscreens have no real "unhover" moment, so a tapped chip can get
   visually stuck in this dark state otherwise (reported: the "Open Now"
   filter chip staying black after being tapped, even when toggled off). */
@media (hover: hover) {
  .chip:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
  }
}

.chip.active {
  background: var(--teal);
  border-color: var(--teal);
}

/* ============ Forms ============ */

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}

/* ============ Footer ============ */

footer.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 2.5rem;
}

footer.site-footer p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.5rem;
}

.footer-legal-links {
  font-size: 0.78rem;
  margin-top: 0.5rem;
}
.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}
.footer-legal-links a:hover { color: white; }

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin: 1rem 0;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
}

.payment-icons i {
  transition: color 0.2s var(--ease);
}

.payment-icons i:hover {
  color: var(--teal);
}

/* ============ Bottom nav ============ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 0.85rem 0 0.8rem;
  box-shadow: 0 -4px 16px rgba(23, 33, 43, 0.08);
  z-index: 100;
  border-top: 1px solid var(--border-soft);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.9rem;
  position: relative;
}

.nav-item i {
  font-size: 1.1rem;
}

.nav-item.active {
  color: var(--teal-dark);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  top: -0.4rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

body.has-bottom-nav {
  padding-bottom: 84px;
}

/* ============ Utility ============ */

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

@media (max-width: 480px) {
  .section { padding: 1.1rem; }
  .section-title { font-size: 1.25rem; }
  .btn { padding: 0.68rem 1.1rem; font-size: 0.88rem; }
}

/* ============================================================
   Extended components — auth, modals, service tabs, big-choice
   cards, slot grids, toasts. Added for the v3 feature set.
   ============================================================ */

/* ---------- Auth forms ---------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
}

.auth-logo i { color: var(--teal); }

.auth-card h1 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
}

.auth-error {
  background: var(--danger-tint);
  color: var(--danger);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-error.visible { display: block; }

.auth-footer-link {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-footer-link a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.demo-hint {
  background: var(--teal-tint);
  color: var(--teal-dark);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* ---------- Modals (generic) ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 43, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  padding: 1.25rem;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-14px) scale(0.98);
  transition: transform 0.25s var(--ease);
}

.modal-overlay.active .modal-panel { transform: translateY(0) scale(1); }

.modal-close {
  background: var(--surface-alt);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--text-muted);
  float: right;
}

/* ---------- Offer detail modal ---------- */

.offer-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.offer-modal-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.offer-modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.offer-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.offer-scope-badge, .offer-expiry-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.offer-scope-badge.nationwide { background: var(--teal-tint); color: var(--teal-dark); }
.offer-scope-badge.app-only { background: var(--amber-tint); color: var(--amber-dark); }
.offer-expiry-badge { background: var(--surface-alt); color: var(--text-muted); }

/* ---------- Service type tabs ---------- */

.service-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}

.service-tabs::-webkit-scrollbar { display: none; }

.service-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.service-tab.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.service-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-type-badge.location { background: var(--teal-tint); color: var(--teal-dark); }
.service-type-badge.home-service { background: var(--blue-tint); color: var(--blue-dark); }
.service-type-badge.moto-mobile { background: var(--amber-tint); color: var(--amber-dark); }

/* ---------- Big choice cards (wash type) ---------- */

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0.75rem 0 1.5rem;
}

.choice-card {
  background: var(--surface-alt);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}

.choice-card:hover { border-color: var(--border); }

.choice-card.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.choice-card i {
  font-size: 1.5rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
  display: block;
}

.choice-card.selected i { color: var(--teal); }

.choice-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: inherit;
}

.choice-card .choice-desc {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-bottom: 0.6rem;
}

.choice-card .choice-price {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal);
}

@media (max-width: 480px) {
  .choice-grid { grid-template-columns: 1fr; }
}

/* ---------- Slot grid with capacity ---------- */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.slot-chip {
  position: relative;
  background: var(--surface-alt);
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s var(--ease);
}

.slot-chip:hover { border-color: var(--teal); }

.slot-chip.selected { background: var(--teal); color: white; }

.slot-chip.full {
  background: var(--border-soft);
  color: var(--text-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot-chip .slot-spots {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.75;
  margin-top: 0.1rem;
}

/* ---------- Category cards (home page) ---------- */

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 140px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,33,43,0) 30%, rgba(23,33,43,0.82) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: white;
}

.category-card-overlay h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.category-card-overlay p {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.8);
}

/* ---------- Promo graphic slides (carousel) ---------- */

.promo-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  position: relative;
  overflow: hidden;
}

.promo-slide.promo-a { background: linear-gradient(135deg, var(--ink) 0%, var(--blue-dark) 100%); }
.promo-slide.promo-b { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); }

.promo-slide::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.promo-slide-content { position: relative; z-index: 1; color: white; }

.promo-slide-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

.promo-slide-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error { background: var(--danger); }
.toast i.fa-check-circle { color: var(--teal); }

/* ---------- Misc ---------- */

.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2.2rem;
  color: var(--border);
  margin-bottom: 1rem;
  display: block;
}

/* ============================================================
   RTL support (Arabic)
   Most flexbox layouts mirror automatically under dir="rtl", since
   `flex-direction: row` follows the document's writing direction.
   These rules cover the handful of spots using fixed left/right
   positioning or values that don't mirror on their own.
   ============================================================ */
body.rtl {
  /* Cairo covers Arabic natively now, so this no longer needs a Tahoma
     fallback the way the old Inter/Space Grotesk pairing did — kept only
     as an ultimate fallback if the webfont fails to load. */
  font-family: 'Cairo', 'Tahoma', -apple-system, sans-serif;
}

html[dir="rtl"] .hero-caption,
html[dir="rtl"] .wash-hero-caption {
  left: 1.25rem;
  right: 1.25rem;
  text-align: right;
}

html[dir="rtl"] .appbar-btn .fa-arrow-left {
  transform: scaleX(-1); /* back button should point the other way in RTL */
}

/* ============================================================
   Slide-out navigation drawer (hamburger menu)
   ============================================================ */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 43, 0.5);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.nav-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(300px, 82vw);
  background: var(--surface);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.28s var(--ease);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem;
  overflow-y: auto;
}
html[dir="rtl"] .nav-drawer {
  left: auto;
  right: 0;
  transform: translateX(100%);
}
.nav-drawer.active {
  transform: translateX(0);
}
/* html[dir="rtl"] .nav-drawer has higher specificity than .nav-drawer.active
   alone (the extra html element selector), so without this explicit rule
   the drawer's "open" transform never wins in Arabic — it stays visually
   off-screen forever, even though the .active class gets added correctly.
   This is the actual bug behind "the menu doesn't work in Arabic". */
html[dir="rtl"] .nav-drawer.active {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}
.nav-drawer-brand {
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-drawer-brand i { color: var(--teal); }

.nav-drawer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}
.nav-drawer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: 'Cairo', sans-serif;
  flex-shrink: 0;
}
.nav-drawer-user-name { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.nav-drawer-user-role { font-size: 0.75rem; color: var(--text-muted); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s var(--ease);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
html[dir="rtl"] .nav-drawer-link { text-align: right; }
.nav-drawer-link:hover { background: var(--surface-alt); }
.nav-drawer-link i { width: 20px; text-align: center; color: var(--teal); }

.nav-drawer-logout {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}
.nav-drawer-logout i { color: var(--danger); }

/* ============================================================
   Demo mode banner
   ============================================================ */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}
.demo-banner button {
  background: var(--ink);
  color: white;
  border: none;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================
   Login page: "Try demo instantly" card
   ============================================================ */
.demo-try-card {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.demo-try-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.demo-try-buttons {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.demo-try-buttons .btn {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.6rem 0.5rem;
}
.demo-try-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   Home page points ring widget
   ============================================================ */
#pointsWidget:not(:empty) {
  display: flex;
  justify-content: center;
  padding: 0.85rem 0 0.25rem;
}
.points-ring-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.points-ring-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.points-ring-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.points-ring {
  transform: rotate(-90deg);
}
.points-ring-track {
  fill: none;
  stroke: var(--surface-alt);
  stroke-width: 6;
}
.points-ring-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s var(--ease);
}
.points-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.points-ring-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: capitalize;
}

/* ============================================================
   Logo mark
   ============================================================ */
.appbar-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}
.auth-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

/* ============================================================
   Currency (SAR)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sar-symbol {
  font-weight: 600;
  font-size: 0.82em;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* ============================================================
   Payment status labels
   ============================================================ */
.payment-status-paid { color: var(--success); font-weight: 700; }
.payment-status-unpaid { color: var(--amber); font-weight: 700; }
.payment-status-refunded { color: var(--text-muted); font-weight: 700; }

/* ============================================================
   Add Payment Method modal (shared between profile.html and booking-details.html)
   ============================================================ */
.payment-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1.1rem; }
.payment-type-btn {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.4rem;
  text-align: center; cursor: pointer; font-size: 1.3rem; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.payment-type-btn span { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.01em; }
.payment-type-btn.selected { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-dark); }
.last4-group { display: none; }
.last4-group.visible { display: block; }

/* ============================================================
   Section divider (shared between signup.html and seller-dashboard.html)
   ============================================================ */
.section-divider {
  border-top: 1px dashed var(--border);
  margin: 1.25rem 0;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Seller dashboard: stats date filter and open/closed badges */
.stats-date-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.stats-date-row .form-control { margin: 0; }
.stats-date-row button { font-size: 0.8rem; padding: 0.5rem 0.9rem; width: auto; }
.open-now-badge, .closed-now-badge {
  font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.02em; vertical-align: middle;
}
.open-now-badge { background: var(--success-tint); color: var(--success); }
.closed-now-badge { background: var(--danger-tint); color: var(--danger); }

/* Seller dashboard: earnings / payouts panel */
.earnings-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.earnings-tile {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.earnings-tile-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.earnings-tile-value { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.payout-history { display: flex; flex-direction: column; gap: 0.4rem; }
.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.payout-status { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; }
.payout-status-pending, .payout-status-processing { background: var(--amber-tint); color: var(--amber); }
.payout-status-paid { background: var(--success-tint); color: var(--success); }
.payout-status-failed { background: var(--danger-tint); color: var(--danger); }

/* ============================================================
   Per-vehicle-type pricing grid (signup + seller dashboard)
   ============================================================ */
.vehicle-pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.vehicle-pricing-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.6rem;
}
.vehicle-pricing-row .vp-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.vehicle-pricing-row input {
  padding: 0.5rem 0.6rem;
  font-size: 0.88rem;
}
.vp-col-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
  display: block;
}

/* ============================================================
   Seller dashboard: wash card actions and time slots table
   ============================================================ */
.wash-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.btn-small {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}
.btn-small:hover { background: var(--teal-tint); border-color: var(--teal); color: var(--teal-dark); }

.slots-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}
.slot-cell {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-soft);
}
.slot-cell.slot-free { background: var(--success-tint); color: var(--success); }
.slot-cell.slot-partial { background: var(--amber-tint); color: var(--amber); }
.slot-cell.slot-full { background: var(--danger-tint); color: var(--danger); }
.slot-cell .slot-cell-count { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.85; }

/* ============================================================
   Standalone back button for auth pages (login/signup have no appbar)
   ============================================================ */
.auth-back-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
}
html[dir="rtl"] .auth-back-btn {
  left: auto;
  right: 1rem;
}

/* ---------- Multi-step signup wizard ---------- */
.wizard-progress {
  margin-bottom: 1.5rem;
}
.wizard-steps-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.6rem;
}
.wizard-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.wizard-dot {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.25s var(--ease);
}
.wizard-dot.done { background: var(--teal); }
.wizard-dot.active { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }

.wizard-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.wizard-actions .btn { flex: 1; }
.wizard-skip-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}
.wizard-skip-link:hover { color: var(--text); }

.wizard-review-section {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.9rem;
}
.wizard-review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.wizard-review-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.wizard-review-edit-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
}
.wizard-review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  padding: 0.3rem 0;
}
.wizard-review-row .label { color: var(--text-muted); }
.wizard-review-row .value { font-weight: 600; text-align: right; }
html[dir="rtl"] .wizard-review-row .value { text-align: left; }
.wizard-review-empty {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ============================================================
   Book page search bar
   ============================================================ */
.book-search-bar {
  position: relative;
  margin-bottom: 1rem;
}
.book-search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 0.9rem;
}
html[dir="rtl"] .book-search-bar i { left: auto; right: 1rem; }
.book-search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}
html[dir="rtl"] .book-search-bar input { padding: 0.75rem 2.6rem 0.75rem 1rem; }
.book-search-bar input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }

/* ============================================================
   Seller: gallery photo management (Add/Edit Wash modal)
   ============================================================ */
.gallery-url-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
}
.gallery-url-row img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border-soft);
}
.gallery-url-row .gallery-url-text {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Customer-facing wash photo gallery (wash-about.html)
   ============================================================ */
.wash-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.wash-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

/* ============================================================
   Saudi-style plate input (Add Vehicle modal) — two-row widget
   with live Arabic <-> English auto-transliteration per cell.
   ============================================================ */
.ksa-plate-widget {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  direction: ltr; /* physical plate layout — never flips with the app's language */
}
.ksa-plate-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.6rem;
}
.ksa-plate-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  direction: ltr;
}
.ksa-plate-row-sep {
  height: 2px;
  background: var(--card-border);
  opacity: 0.55;
  margin: 0.3rem 0;
}
.ksa-cell-group {
  display: flex;
  gap: 0.25rem;
  direction: ltr;
}
.ksa-cell-divider {
  width: 2px;
  align-self: stretch;
  background: var(--card-border);
  opacity: 0.35;
}
.ksa-cell {
  width: 1.9rem;
  height: 2.3rem;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--surface-alt);
  outline: none;
  padding: 0;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
}
.ksa-cell:focus {
  border-color: var(--teal);
  background: var(--surface);
  box-shadow: var(--shadow-glow-teal);
}
.ksa-cell-ar { font-family: 'Tahoma', 'Segoe UI', sans-serif; }
.ksa-cell-en { text-transform: uppercase; }
.ksa-plate-strip {
  width: 20px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0B6B3A, #0a5c31);
  border-left: 2px solid var(--ink);
}
@media (max-width: 380px) {
  .ksa-cell { width: 1.5rem; height: 2rem; font-size: 0.95rem; }
  .ksa-plate-strip { width: 16px; }
}

/* ============================================================
   Google Maps pickers / views (seller dashboard, profile,
   booking details, search)
   ============================================================ */
.map-picker {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 0.6rem;
  background: var(--surface-alt);
}
.map-picker-tall { height: 280px; }
.map-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.map-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}
.address-search-input {
  margin-top: 0.6rem;
}
.saved-address-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.saved-address-card i { color: var(--teal); margin-top: 0.15rem; }
.saved-address-card .addr-text { flex: 1; font-size: 0.9rem; color: var(--ink); }
.moto-address-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.moto-address-note i { color: var(--teal-dark); margin-top: 0.15rem; }
.moto-address-note a { color: var(--teal-dark); font-weight: 600; text-decoration: underline; }

.nw-days-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.4rem;
}
.nw-days-grid label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.default-vehicle-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-inline-start: 0.4rem;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .vehicle-pricing-row { grid-template-columns: 60px 1fr 1fr 1fr; font-size: 0.85em; }
  .vehicle-pricing-row .vp-label span { display: none; }
}

.password-field-wrap { position: relative; }
.password-field-wrap .form-control { padding-right: 2.6rem; }
html[dir="rtl"] .password-field-wrap .form-control { padding-right: 0.9rem; padding-left: 2.6rem; }
.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.3rem;
}
html[dir="rtl"] .password-toggle-btn { right: auto; left: 0.75rem; }

/* ============================================================
   Vehicle-type / saved-vehicle picker (Booking page, Step 1)
   — was previously unstyled; matches the .choice-card look.
   ============================================================ */
.vehicle-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.vehicle-type-btn {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}
.vehicle-type-btn:hover { border-color: var(--teal); }
.vehicle-type-btn.selected { border-color: var(--teal); background: var(--teal-tint); }
.vehicle-type-btn i { font-size: 1.4rem; color: var(--text-muted); display: block; margin-bottom: 0.4rem; }
.vehicle-type-btn.selected i { color: var(--teal); }
.vehicle-type-btn .choice-desc {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.3;
}
@media (max-width: 380px) {
  .vehicle-type-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .vehicle-type-btn { padding: 0.7rem 0.5rem; font-size: 0.82rem; }
}
