/*
 * GHJ AUTO HUB — Premium Automotive UI
 * Design System: Deep Navy · Teal · Amber Gold
 * "Where Ghanaian automotive energy meets global design excellence"
 */

/* ============================================================
   CSS Custom Properties — Design Tokens
   ============================================================ */
:root {
  /* ── Brand Colors ── */
  --ah-primary:        #0D9488;
  --ah-primary-dark:   #0F766E;
  --ah-primary-light:  #14B8A6;
  --ah-primary-soft:   rgba(13, 148, 136, 0.10);
  --ah-primary-medium: rgba(13, 148, 136, 0.20);
  --ah-primary-glow:   rgba(13, 148, 136, 0.35);

  --ah-accent:       #F59E0B;
  --ah-accent-dark:  #D97706;
  --ah-accent-light: #FCD34D;
  --ah-accent-soft:  rgba(245, 158, 11, 0.12);

  /* ── Dark Palette ── */
  --ah-dark:      #030E1C;
  --ah-dark-2:    #071428;
  --ah-dark-3:    #0C1A35;
  --ah-dark-4:    #111F3D;
  --ah-secondary: #0F172A;
  --ah-navy:      #1E293B;

  /* ── Light Palette ── */
  --ah-surface:   #F2F5F9;
  --ah-surface-2: #E8EEF5;
  --ah-surface-3: #DDE5F0;
  --ah-card:      #FFFFFF;

  /* ── Text ── */
  --ah-text:             #1E293B;
  --ah-text-muted:       #64748B;
  --ah-text-light:       #94A3B8;
  --ah-text-white:       rgba(255, 255, 255, 0.92);
  --ah-text-white-muted: rgba(255, 255, 255, 0.60);

  /* ── Borders ── */
  --ah-border:       #E2E8F0;
  --ah-border-soft:  rgba(226, 232, 240, 0.50);
  --ah-border-dark:  rgba(255, 255, 255, 0.10);

  /* ── Border Radii ── */
  --ah-radius-xs:  6px;
  --ah-radius-sm:  8px;
  --ah-radius:     12px;
  --ah-radius-lg:  16px;
  --ah-radius-xl:  22px;
  --ah-radius-2xl: 30px;
  --ah-radius-pill: 9999px;

  /* ── Shadows ── */
  --ah-shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
  --ah-shadow-sm:      0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --ah-shadow:         0 4px 16px rgba(0,0,0,0.08);
  --ah-shadow-md:      0 8px 28px rgba(0,0,0,0.10);
  --ah-shadow-lg:      0 20px 48px rgba(0,0,0,0.13);
  --ah-shadow-xl:      0 40px 80px rgba(0,0,0,0.17);
  --ah-shadow-card:    0 2px 12px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --ah-shadow-hover:   0 16px 40px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.07);
  --ah-shadow-teal:    0 8px 24px rgba(13, 148, 136, 0.28);
  --ah-shadow-accent:  0 8px 24px rgba(245, 158, 11, 0.28);

  /* ── Motion ── */
  --ah-ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ah-ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --ah-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ah-t:   0.20s var(--ah-ease);
  --ah-t-lg: 0.35s var(--ah-ease);

  /* ── Typography ── */
  --ah-font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ah-font-display: 'Sora', var(--ah-font);

  /* ── Layout ── */
  /* ── Layout ── */
  --ah-header-h: 72px;
  --ah-tab-bar-h: 0px;
  --ah-max-w:    1320px;
}

/* ============================================================
   Performance: GPU-composited layers for animated elements
   ============================================================ */

/* Promote elements that animate so the browser doesn't repaint layers */
.car-item,
.ah-metric-card,
.ah-stat-item,
.card,
.button,
.ah-hero-slide {
  will-change: transform;
  transform: translateZ(0);   /* create stacking context on GPU */
  backface-visibility: hidden;
}

/* Off-screen sections: skip layout + paint until near viewport */
.page-section-ptb,
.section-ptb,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;   /* rough hint so scroll-bar stays stable */
}

/* Images: remove layout shift by enforcing aspect-ratio fallback */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c0392b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a93226; }

/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body.ah-site {
  font-family: var(--ah-font) !important;
  color: var(--ah-text) !important;
  background-color: var(--ah-surface) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--ah-header-h) !important;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ah-font-display) !important;
  color: var(--ah-secondary) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

p { line-height: 1.72; }
img { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

a { text-decoration: none; transition: color var(--ah-t); }
a:hover { color: var(--ah-primary) !important; }

/* ============================================================
   Buttons
   ============================================================ */
.button,
button.button,
a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  background: var(--ah-primary) !important;
  color: #fff !important;
  border: 2px solid transparent !important;
  border-radius: var(--ah-radius-pill) !important;
  padding: 10px 26px !important;
  font-family: var(--ah-font) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: var(--ah-shadow-teal) !important;
  transition:
    background var(--ah-t),
    color var(--ah-t),
    border-color var(--ah-t),
    transform var(--ah-t),
    box-shadow var(--ah-t) !important;
}
.button::before { display: none !important; }

.button:hover,
.button:focus {
  background: var(--ah-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(13, 148, 136, 0.40) !important;
  text-decoration: none !important;
}

.button.extra-large {
  padding: 13px 34px !important;
  font-size: 15px !important;
}

/* Outline */
.button.border {
  background: transparent !important;
  border: 2px solid var(--ah-primary) !important;
  color: var(--ah-primary) !important;
  box-shadow: none !important;
}
.button.border:hover {
  background: var(--ah-primary) !important;
  color: #fff !important;
  box-shadow: var(--ah-shadow-teal) !important;
  transform: translateY(-2px);
}

/* Ghost (dark hero backgrounds) */
.button.button-ghost {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.button.button-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  transform: translateY(-2px);
}

/* Accent gold */
.button.button-accent {
  background: var(--ah-accent) !important;
  box-shadow: var(--ah-shadow-accent) !important;
  color: var(--ah-dark) !important;
}
.button.button-accent:hover {
  background: var(--ah-accent-dark) !important;
  transform: translateY(-2px);
}

/* Outline light */
.button.ah-btn-outline {
  background: transparent !important;
  border: 2px solid var(--ah-border) !important;
  color: var(--ah-secondary) !important;
  box-shadow: none !important;
}
.button.ah-btn-outline:hover {
  border-color: var(--ah-primary) !important;
  color: var(--ah-primary) !important;
  background: var(--ah-primary-soft) !important;
  transform: translateY(-1px);
}

/* red alias = primary */
.button.red { background: var(--ah-primary) !important; }
.button.red::before { display: none !important; }
.button.red:hover { background: var(--ah-primary-dark) !important; }

/* ============================================================
   Back to Top
   ============================================================ */
.car-top {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 48px !important;
  height: 48px !important;
  background: var(--ah-secondary) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--ah-shadow-md) !important;
  z-index: 999;
  transition: background var(--ah-t), transform var(--ah-t), box-shadow var(--ah-t) !important;
}
.car-top:hover {
  background: var(--ah-primary) !important;
  transform: translateY(-5px) !important;
  box-shadow: var(--ah-shadow-teal) !important;
}
.car-top span img { filter: brightness(0) invert(1); width: 20px; height: 20px; }

/* ============================================================
   Page Loader
   ============================================================ */
#loading.ah-loading {
  background: #fff !important;
  backdrop-filter: none !important;
}

/* ============================================================
   Header / Navbar
   ============================================================ */
#header.ah-site-header.defualt,
#header.ah-site-header.defualt.header-fancy {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: saturate(200%) blur(22px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(22px) !important;
  border-bottom: 1px solid var(--ah-border) !important;
  box-shadow: none !important;
  transition:
    background var(--ah-t-lg),
    border-color var(--ah-t-lg),
    box-shadow var(--ah-t-lg) !important;
}

/* Scrolled state - subtle shadow elevation */
#header.ah-site-header.ah-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.09) !important;
}

/* Container */
.ah-nav-container {
  max-width: var(--ah-max-w) !important;
  margin: 0 auto !important;
  padding-left: clamp(16px, 3vw, 28px) !important;
  padding-right: clamp(16px, 3vw, 28px) !important;
}
.menu.header-navbar-v2 .menu-list-items { background: transparent !important; }

/* Logo */
.mega-menu .menu-logo { padding: 0 !important; margin: 0 !important; float: none !important; }
.mega-menu .menu-logo > li {
  line-height: 1 !important;
  float: none !important;
  display: flex !important;
  align-items: center !important;
}
.mega-menu .menu-logo > li > a,
.ah-nav-logo-link {
  display: flex !important;
  align-items: center !important;
  float: none !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.mega-menu .menu-logo img,
.ah-nav-brand img,
#logo_img.ah-nav-logo-img {
  display: block !important;
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: min(160px, 32vw) !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Desktop navbar — flex row locks logo + links + actions on one line */
@media (min-width: 992px) {
  #header.ah-site-header.defualt.header-fancy .menu.header-navbar-v2 .header-inner,
  #header.ah-site-header.defualt.header-fancy .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    min-height: var(--ah-header-h) !important;
    padding: 0 !important;
    border-bottom: none !important;
  }

  #header.ah-site-header .header-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
  }

  #header.ah-site-header .header-right {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    margin-left: auto !important;
  }

  #header.ah-site-header .menu-logo,
  #header.ah-site-header .header-inner .menu-logo {
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }

  #header.ah-site-header.header-fancy .header-left .menu-logo {
    padding-right: 24px !important;
  }

  #header.ah-site-header .menu-links {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header.ah-site-header .menu-links > li {
    float: none !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* Nav links */
.mega-menu .menu-links > li { line-height: var(--ah-header-h) !important; }
.mega-menu .menu-links > li > a {
  font-family: var(--ah-font) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--ah-navy) !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  padding: 8px 14px !important;
  border-radius: var(--ah-radius) !important;
  transition: color var(--ah-t), background var(--ah-t) !important;
}
.mega-menu .menu-links > li > a:hover,
.mega-menu .menu-links > li.active > a {
  color: var(--ah-primary) !important;
  background: var(--ah-primary-soft) !important;
}

/* CTA buttons */
.header-button .button { margin-left: 8px !important; margin-top: 6px !important; }
.ah-nav-cta-group .button:first-child { box-shadow: var(--ah-shadow-teal) !important; }

/* Legacy mega-menu hamburger — hidden; site uses .ah-hamburger */
.mega-menu .menu-mobile-collapse-trigger,
#header.light .mega-menu .menu-mobile-collapse-trigger,
#header.fancy .mega-menu .menu-mobile-collapse-trigger,
#header.defualt .menu.header-navbar-v2 .mega-menu .menu-mobile-collapse-trigger {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   Mobile Navigation ≤ 991px
   ============================================================ */
@media (max-width: 991px) {
  body.ah-site { padding-top: 0 !important; }
  #header.defualt { position: relative !important; }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-list-items {
    position: relative !important;
    background: transparent !important;
  }

  #header.defualt .menu.header-navbar-v2 .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--ah-border) !important;
  }

  #header.defualt .menu.header-navbar-v2 .header-inner .header-left {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-logo {
    float: none !important;
    width: auto !important;
    flex: 1 1 auto;
    padding: 0 !important;
    margin: 0 !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-logo > li {
    float: none !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    line-height: normal !important;
    padding-right: 0 !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-logo > li > a {
    float: none !important;
    line-height: 1 !important;
    padding: 6px 0 !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-logo img {
    height: 36px !important;
  }

  #header.defualt .menu.header-navbar-v2 .header-inner .header-right {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    margin-left: 0 !important;
  }

  #header.defualt .menu.header-navbar-v2 .header-inner .header-button {
    display: flex !important;
    align-items: center !important;
    gap: 6px;
    margin-left: 0 !important;
  }

  #header.defualt .menu.header-navbar-v2 .header-inner .header-button .button {
    margin-left: 0 !important;
    padding: 7px 13px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    white-space: nowrap;
  }

  /* Slide-down menu panel */
  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-links {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 8px 0 16px !important;
    background: var(--ah-card) !important;
    border-top: 1px solid var(--ah-border) !important;
    border-radius: 0 0 var(--ah-radius-xl) var(--ah-radius-xl) !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16) !important;
    max-height: min(70vh, 520px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    z-index: 1002 !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-links > li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-links > li > a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: var(--ah-secondary) !important;
    border-radius: 0 !important;
    border-bottom: 1px solid var(--ah-border) !important;
    transition: color var(--ah-t), background var(--ah-t) !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-links > li:last-child > a {
    border-bottom: none !important;
  }

  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-links > li > a:hover,
  #header.defualt .menu.header-navbar-v2 .mega-menu .menu-links > li.active > a {
    color: var(--ah-primary) !important;
    background: var(--ah-primary-soft) !important;
  }
}

@media (max-width: 575px) {
  #header.defualt .menu.header-navbar-v2 .header-inner .header-button .button {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }
}

/* Sticky scroll state (desktop) */
.mega-menu.desktopTopFixed .menu-list-items {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: var(--ah-shadow-sm) !important;
}

/* ============================================================
   Hero Section — Full-screen Banner Carousel
   ============================================================ */
.banner-slider-ad.ah-hero { position: relative; margin-bottom: 0; }
.banner-slider-ad .carousel-inner { overflow: hidden; }
.banner-slider-ad .carousel-item { min-height: 420px; }

.banner-slider-ad .banner-slider-slide.ah-hero-slide,
.banner-slider-ad .banner-slider-slide {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: clamp(72px, 10vw, 110px);
  padding-bottom: clamp(88px, 12vw, 130px);
}

/* Cinematic multi-layer overlay */
.banner-slider-ad .banner-slider-slide.ah-hero-slide::after,
.banner-slider-ad .banner-slider-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(3, 14, 28, 0.85) 0%, rgba(3, 14, 28, 0.52) 48%, rgba(13, 148, 136, 0.12) 100%),
    linear-gradient(180deg, transparent 38%, rgba(3, 14, 28, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.banner-slider-ad .banner-slider-slide .container {
  position: relative;
  z-index: 2;
}

/* Hero Eyebrow badge */
.ah-hero-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-family: var(--ah-font) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--ah-accent) !important;
  margin-bottom: 1.25rem !important;
  padding: 6px 16px !important;
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  border-radius: var(--ah-radius-pill) !important;
  width: fit-content;
}

/* Hero headings */
.ah-hero-content h1,
.banner-content h1 {
  font-family: var(--ah-font-display) !important;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.07 !important;
  color: #fff !important;
  margin-bottom: 1.1rem !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.18);
}

.banner-content h5 {
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.80) !important;
  letter-spacing: 0 !important;
  line-height: 1.58 !important;
  max-width: 540px;
  margin-bottom: 2rem !important;
}

.banner-content p.home-banner-tagline {
  font-size: 1rem !important;
  color: rgba(255, 255, 255, 0.70) !important;
  max-width: 480px;
  margin: 0 auto 2rem !important;
}

/* All banner text: white */
.banner-slider-ad .banner-content,
.banner-slider-ad .banner-content * { color: #fff !important; }
.banner-slider-ad .banner-content a.button { color: #fff !important; }

/* Carousel indicators — pill style */
.banner-slider-ad .carousel-indicators { bottom: 28px !important; gap: 6px; }
.banner-slider-ad .carousel-indicators [data-bs-target] {
  width: 24px !important;
  height: 4px !important;
  border-radius: 2px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.30) !important;
  margin: 0 !important;
  transition: width var(--ah-t), background var(--ah-t) !important;
}
.banner-slider-ad .carousel-indicators .active {
  background: #fff !important;
  width: 42px !important;
}

/* Prev/next arrows — appear on hover */
.banner-slider-ad .carousel-control-prev,
.banner-slider-ad .carousel-control-next {
  width: 46px;
  height: 46px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s, background 0.2s !important;
}
.banner-slider-ad:hover .carousel-control-prev,
.banner-slider-ad:hover .carousel-control-next { opacity: 1; }
.banner-slider-ad .carousel-control-prev-icon,
.banner-slider-ad .carousel-control-next-icon { width: 18px; height: 18px; }

@media (max-width: 991px) {
  .banner-slider-ad .carousel-item,
  .banner-slider-ad .banner-slider-slide { min-height: 320px; padding-top: 56px; padding-bottom: 72px; }
}
@media (max-width: 767px) {
  .banner-slider-ad .carousel-item,
  .banner-slider-ad .banner-slider-slide { min-height: 280px; padding-top: 48px; padding-bottom: 64px; }
  .banner-content h1 { font-size: 1.95rem !important; }
}

/* ============================================================
   Stats Bar
   ============================================================ */
.ah-stats-bar {
  background: var(--ah-card);
  border-bottom: 1px solid var(--ah-border);
  padding: 20px 0;
  box-shadow: var(--ah-shadow-xs);
  position: relative;
  z-index: 2;
}

.ah-stat-item {
  padding: 8px 20px;
  position: relative;
  text-align: center;
}

.ah-stat-item + .ah-stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 1px;
  background: var(--ah-border);
}

.ah-stat-number {
  font-family: var(--ah-font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ah-primary);
  letter-spacing: -0.05em;
  line-height: 1;
}

.ah-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ah-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ============================================================
   Home — service shortcut cards (mobile-first)
   ============================================================ */
.ah-home-services {
  background: var(--ah-surface);
  border-bottom: 1px solid var(--ah-border);
  padding: 14px 0 16px;
  position: relative;
  z-index: 2;
}

.ah-home-services-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ah-text-muted);
  margin: 0 0 10px 2px;
}

.ah-home-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ah-home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 8px;
  border-radius: var(--ah-radius-lg);
  text-decoration: none !important;
  border: 1px solid var(--ah-border);
  background: var(--ah-card);
  box-shadow: var(--ah-shadow-xs);
  transition: transform 0.18s var(--ah-ease-spring), box-shadow 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.ah-home-service-card:active {
  transform: scale(0.97);
}

.ah-home-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ah-home-service-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.ah-home-service-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ah-secondary);
  line-height: 1.2;
}

.ah-home-service-hint {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ah-text-muted);
  line-height: 1.2;
}

.ah-home-service-cars .ah-home-service-icon {
  background: rgba(13, 148, 136, 0.12);
  color: var(--ah-primary);
}
.ah-home-service-mechanics .ah-home-service-icon {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}
.ah-home-service-parts .ah-home-service-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}
.ah-home-service-rentals .ah-home-service-icon {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

@media (hover: hover) {
  .ah-home-service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ah-shadow-md);
    border-color: rgba(13, 148, 136, 0.35);
  }
}

@media (max-width: 767px) {
  .ah-home-services {
    padding: 12px 0 14px;
    background: var(--ah-card);
  }

  .ah-home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ah-home-service-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    text-align: left;
  }

  .ah-home-service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .ah-home-service-text {
    align-items: flex-start;
    text-align: left;
  }

  .ah-home-service-label {
    font-size: 0.92rem;
  }

  .ah-home-service-hint {
    font-size: 0.72rem;
  }

  .ah-stats-bar {
    padding: 14px 0;
  }

  .ah-stat-number {
    font-size: 1.35rem;
  }

  .ah-stat-label {
    font-size: 9px;
  }

  .ah-stat-item {
    padding: 6px 8px;
  }
}

@media (min-width: 992px) {
  .ah-home-services {
    padding: 18px 0 20px;
  }

  .ah-home-service-card {
    min-height: 96px;
  }
}

/* PWA standalone — keep shortcuts visible above tab bar */
html.ah-pwa-mode .ah-home-services {
  padding-bottom: 12px;
}

/* Site-wide explore strip: mobile + tablet (desktop uses navbar links) */
@media (min-width: 992px) {
  .ah-site-explore-strip {
    display: none;
  }
}

.ah-home-service-card.is-current {
  border-color: var(--ah-primary);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.35), var(--ah-shadow-sm);
}

@media (min-width: 992px) and (max-width: 1199px) {
  .ah-main-nav-links > li > a {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 0.88rem !important;
  }
}

/* ============================================================
   Home Search Strip
   ============================================================ */
.home-search-bar.ah-search-strip {
  background: var(--ah-dark-2);
  position: relative;
  overflow: hidden;
  padding-top: 3rem !important;
  padding-bottom: 3.5rem !important;
}

.home-search-bar.ah-search-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 10% -10%, rgba(13, 148, 136, 0.26), transparent 55%),
    radial-gradient(ellipse 60% 60% at 90% 110%, rgba(245, 158, 11, 0.11), transparent 50%);
  pointer-events: none;
}

.home-search-bar.ah-search-strip > .container { position: relative; z-index: 1; }

/* Search card floats up over the hero bottom */
@media (min-width: 992px) {
  .home-search-bar .search-block-wrapper.ah-search-card { margin-top: -5rem; }
}

/* Search card */
.home-search-bar .search-block-wrapper.ah-search-card,
.search-block-wrapper {
  background: var(--ah-card) !important;
  border-radius: var(--ah-radius-xl) !important;
  box-shadow: var(--ah-shadow-xl) !important;
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
  border: 1px solid var(--ah-border-soft) !important;
}

.ah-search-title {
  font-family: var(--ah-font-display) !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: var(--ah-secondary) !important;
  letter-spacing: -0.03em !important;
}

.ah-search-subtitle {
  font-size: 0.875rem;
  color: var(--ah-text-muted);
  line-height: 1.55;
}

/* Form labels inside search */
.home-search-bar .form-label,
.home-search-bar .ah-search-card .form-label {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--ah-text-light) !important;
  margin-bottom: 6px !important;
}

/* Form controls */
.home-search-bar .form-control,
.home-search-bar select.form-select,
.home-search-bar select.form-control {
  border-radius: var(--ah-radius) !important;
  border: 1.5px solid var(--ah-border) !important;
  background: var(--ah-surface) !important;
  color: var(--ah-secondary) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: border-color var(--ah-t), box-shadow var(--ah-t), background var(--ah-t) !important;
}
.home-search-bar .form-control:focus,
.home-search-bar select.form-control:focus {
  border-color: var(--ah-primary) !important;
  box-shadow: 0 0 0 3px var(--ah-primary-soft) !important;
  background: #fff !important;
  outline: none !important;
}
.home-search-bar .form-select option { color: var(--ah-secondary); }

/* Bootstrap-select in search */
.home-search-bar .bootstrap-select { width: 100% !important; }
.home-search-bar .bootstrap-select > .dropdown-toggle {
  border-radius: var(--ah-radius) !important;
  border: 1.5px solid var(--ah-border) !important;
  background: var(--ah-surface) !important;
  color: var(--ah-secondary) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  min-height: 42px;
  box-shadow: none !important;
}
.home-search-bar .bootstrap-select > .dropdown-toggle:focus,
.home-search-bar .bootstrap-select.show > .dropdown-toggle {
  border-color: var(--ah-primary) !important;
  box-shadow: 0 0 0 3px var(--ah-primary-soft) !important;
  outline: none !important;
}
.home-search-bar .bootstrap-select .dropdown-menu {
  border-radius: var(--ah-radius-lg) !important;
  border: 1px solid var(--ah-border) !important;
  box-shadow: var(--ah-shadow-lg) !important;
  max-height: 260px;
  overflow-y: auto;
}
.home-search-bar .bootstrap-select .dropdown-menu .inner { max-height: none !important; }
.home-search-bar .bootstrap-select .bs-searchbox input.form-control {
  border-radius: var(--ah-radius) !important;
}
.home-search-bar .bootstrap-select .dropdown-toggle .filter-option {
  color: var(--ah-secondary) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-search-bar .bootstrap-select .dropdown-toggle::after {
  border-top-color: var(--ah-text-muted) !important;
}

.home-search-bar .button.extra-large {
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  width: 100% !important;
}

/* ============================================================
   Section Headings
   ============================================================ */
.ah-section-eyebrow {
  display: inline-block !important;
  font-family: var(--ah-font) !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--ah-primary) !important;
  margin-bottom: 0.75rem !important;
  padding: 4px 12px !important;
  background: var(--ah-primary-soft) !important;
  border-radius: var(--ah-radius-pill) !important;
}

.section-title-new .main-title,
.section-title h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem) !important;
  font-weight: 800 !important;
  color: var(--ah-secondary) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.12 !important;
  text-transform: none !important;
}

.ah-section-lead {
  font-size: 1rem !important;
  color: var(--ah-text-muted) !important;
  line-height: 1.72 !important;
  max-width: 42rem;
}

.ah-featured-section .section-title-new .main-title { margin-top: 0 !important; }

/* ============================================================
   Page Sections
   ============================================================ */
.page-section-ptb { padding: 80px 0 !important; }
.page-section-ptb h2 { font-size: 1.5rem !important; font-weight: 800 !important; color: var(--ah-secondary) !important; margin-bottom: 0.75rem !important; letter-spacing: -0.03em !important; }
.page-section-ptb h3 { font-size: 1.25rem !important; font-weight: 700 !important; color: var(--ah-secondary) !important; }
.page-section-ptb h4 { font-size: 1.1rem !important; font-weight: 700 !important; color: var(--ah-secondary) !important; }

.section-title span { color: var(--ah-text-muted) !important; font-size: 0.95rem; }
.section-title .separator {
  background: var(--ah-primary) !important;
  height: 3px;
  width: 48px;
  margin: 0.75rem 0 1rem;
  border: none;
  border-radius: 2px;
}

/* ============================================================
   Car Cards — Featured (home.html vehicle-showcase-6)
   ============================================================ */
.car-item,
.car-item.gray-bg {
  background: var(--ah-card) !important;
  border-radius: var(--ah-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--ah-shadow-card) !important;
  border: 1px solid var(--ah-border) !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: box-shadow var(--ah-t-lg), transform var(--ah-t-lg), border-color var(--ah-t-lg) !important;
}

.car-item:hover {
  box-shadow: var(--ah-shadow-hover) !important;
  transform: translateY(-6px) !important;
  border-color: rgba(13, 148, 136, 0.22) !important;
}

/* Card image zone */
.car-item .car-image {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  aspect-ratio: 16 / 10 !important;
  background: var(--ah-surface-2) !important;
  flex-shrink: 0 !important;
}

.car-item .car-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.55s var(--ah-ease) !important;
}

.car-item:hover .car-image img { transform: scale(1.07) !important; }

/* Price badge (home featured cards — overlaid on image, bottom-right) */
.car-item .price.car-price,
.vehicle-showcase-6 .car-image .price.car-price,
.vehicle-showcase-6 .car-image .car-price {
  position: absolute !important;
  left: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  z-index: 2 !important;
  background: rgba(15, 23, 42, 0.52) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: var(--ah-radius-sm, 8px) !important;
  padding: 6px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18) !important;
}

.car-item .price.car-price .new-price,
.car-item .price.car-price bdi.new-price {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  font-family: var(--ah-font-display) !important;
}

/* Price in content area (car_list cards) */
.car-item .price .new-price,
.car-item .price span.new-price {
  color: var(--ah-primary) !important;
  font-family: var(--ah-font-display) !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
}

/* Overlay action buttons */
.car-item .car-overlay-banner {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 14, 28, 0.50) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  z-index: 3 !important;
  transition: opacity var(--ah-t) !important;
}
.car-item:hover .car-overlay-banner { opacity: 1 !important; }

.car-item .car-overlay-banner ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  gap: 10px !important;
}

.car-item .car-overlay-banner ul li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--ah-secondary) !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  transition: background var(--ah-t), color var(--ah-t), transform var(--ah-t) !important;
}
.car-item .car-overlay-banner ul li a:hover {
  background: var(--ah-primary) !important;
  color: #fff !important;
  transform: scale(1.12) !important;
}

/* Specs row */
.car-item .car-list {
  background: var(--ah-surface) !important;
  position: relative !important;
  height: auto !important;
  bottom: auto !important;
  padding: 10px 16px !important;
  border-bottom: 1px solid var(--ah-border) !important;
  flex-shrink: 0 !important;
}

.car-item .car-list ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
}

.car-item .car-list li {
  color: var(--ah-text-muted) !important;
  font-size: 12.5px !important;
  padding: 0 10px !important;
  border-right: 1px solid var(--ah-border) !important;
  line-height: 1.4 !important;
}
.car-item .car-list li:first-child { padding-left: 0 !important; }
.car-item .car-list li:last-child { border-right: none !important; }
.car-item .car-list li i { color: var(--ah-primary) !important; margin-right: 4px !important; }

/* Card content area */
.car-item .car-content {
  padding: 18px 20px !important;
  background: var(--ah-card) !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.car-item .car-attribute-subtitle {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--ah-primary) !important;
  margin-bottom: 6px !important;
}

/* Card title */
.car-item .car-content > a,
.car-item .item-title a {
  font-family: var(--ah-font-display) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--ah-secondary) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.36 !important;
  min-height: 2.72em !important;
  transition: color var(--ah-t) !important;
}
.car-item .car-content > a:hover,
.car-item .item-title a:hover { color: var(--ah-primary) !important; }

.car-item .separator {
  height: 1px !important;
  background: var(--ah-border) !important;
  margin: 12px 0 !important;
  border: none !important;
}
.car-item .separator::before,
.car-item .separator::after { display: none !important; }

.car-item .car-description {
  font-size: 13.5px !important;
  color: var(--ah-text-muted) !important;
  line-height: 1.58 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.car-item .car-content .small.text-muted {
  margin-top: auto !important;
  padding-top: 10px !important;
  font-size: 12px !important;
  color: var(--ah-text-light) !important;
}

/* vehicle-showcase-6 */
.car-item.vehicle-showcase-6 { display: flex !important; flex-direction: column !important; }
.car-item.vehicle-showcase-6 .car-image { aspect-ratio: 16 / 10 !important; flex-shrink: 0 !important; }
.car-item.vehicle-showcase-6 .car-content { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; padding: 1.25rem !important; }
.car-item.vehicle-showcase-6 .item-title a { min-height: 2.8em !important; }

/* Car item wrappers for equal-height grids */
.car-item-wrapper,
.product-listing .row .col-lg-4 .car-item-wrapper,
.product-listing .row .col-sm-6 .car-item-wrapper { height: 100%; }
.car-item-wrapper .car-item { height: 100%; }

/* ============================================================
   Page Intro (inner-intro header for listing/detail pages)
   ============================================================ */
.inner-intro {
  min-height: 140px !important;
  height: auto !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 48px 0 18px !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}

.inner-intro.bg-1.bg-overlay-black-70::before {
  background: linear-gradient(
    180deg,
    rgba(3, 14, 28, 0.18) 0%,
    rgba(3, 14, 28, 0.88) 100%
  ) !important;
}

.intro-title h1,
.inner-intro h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem) !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
  line-height: 1.18 !important;
}

ul.page-breadcrumb { font-size: 13px; list-style: none; padding: 0; margin: 8px 0 0 !important; }
ul.page-breadcrumb li { display: inline; }
ul.page-breadcrumb a { color: rgba(255, 255, 255, 0.68) !important; text-decoration: none; transition: color var(--ah-t); }
ul.page-breadcrumb a:hover { color: rgba(255, 255, 255, 0.95) !important; }
ul.page-breadcrumb span { color: rgba(255, 255, 255, 0.88); }
ul.page-breadcrumb i { font-size: 10px; opacity: 0.65; }

/* ============================================================
   Listing Page — Sidebar
   ============================================================ */
.listing-sidebar .widget {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 24px !important;
  box-shadow: var(--ah-shadow-sm) !important;
  overflow: hidden;
}

.listing-sidebar .widget-search h5 {
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: var(--ah-secondary) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid var(--ah-surface-2) !important;
}

.listing-sidebar label {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--ah-text-muted) !important;
  margin-bottom: 6px !important;
  display: block;
}

.listing-sidebar .form-control {
  border-radius: var(--ah-radius) !important;
  border: 1.5px solid var(--ah-border) !important;
  background: var(--ah-surface) !important;
  color: var(--ah-secondary) !important;
  font-size: 13.5px !important;
  padding: 9px 12px !important;
  transition: border-color var(--ah-t), background var(--ah-t), box-shadow var(--ah-t) !important;
}
.listing-sidebar .form-control:focus {
  border-color: var(--ah-primary) !important;
  box-shadow: 0 0 0 3px var(--ah-primary-soft) !important;
  background: #fff !important;
  outline: none !important;
}

.listing-sidebar .button.red,
.listing-sidebar #filterBtn {
  width: 100% !important;
  margin-top: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.listing-sidebar #clearFiltersBtn,
#clearFiltersBtn {
  width: 100% !important;
  margin-top: 8px !important;
  background: transparent !important;
  border: 1.5px solid var(--ah-border) !important;
  color: var(--ah-text-muted) !important;
  box-shadow: none !important;
}
.listing-sidebar #clearFiltersBtn:hover,
#clearFiltersBtn:hover {
  border-color: var(--ah-primary) !important;
  color: var(--ah-primary) !important;
  background: var(--ah-primary-soft) !important;
}

/* Results header */
#resultsCount h5 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--ah-secondary) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 2px !important;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination { gap: 4px; }
.pagination .page-link {
  border-radius: var(--ah-radius) !important;
  border: 1.5px solid var(--ah-border) !important;
  color: var(--ah-secondary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 8px 14px !important;
  transition: background var(--ah-t), color var(--ah-t), border-color var(--ah-t) !important;
}
.pagination .page-item.active .page-link {
  background: var(--ah-primary) !important;
  border-color: var(--ah-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
}
.pagination .page-link:hover {
  background: var(--ah-primary-soft) !important;
  color: var(--ah-primary) !important;
  border-color: rgba(13, 148, 136, 0.30) !important;
}

/* ============================================================
   Car Detail Page
   ============================================================ */
.car-details { padding-top: 96px !important; }
.car-details h3 { font-size: 1.65rem !important; font-weight: 800 !important; letter-spacing: -0.03em !important; }

.car-details .car-price,
.car-price-amount {
  color: var(--ah-primary) !important;
  font-size: 1.7rem !important;
  font-weight: 800 !important;
  font-family: var(--ah-font-display) !important;
  letter-spacing: -0.03em !important;
}

.car-details .car-details-sidebar {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 24px !important;
  box-shadow: var(--ah-shadow-sm) !important;
}

.car-details-sidebar .details-block h5 {
  font-weight: 800 !important;
  font-size: 1rem !important;
  letter-spacing: -0.02em !important;
  color: var(--ah-secondary) !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--ah-surface-2) !important;
}

.car-details-sidebar .details-block ul { list-style: none; padding: 0; margin: 0; }
.car-details-sidebar .details-block ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ah-border);
  font-size: 13.5px;
}
.car-details-sidebar .details-block ul li:last-child { border-bottom: none; }
.car-details-sidebar .details-block ul li span { color: var(--ah-text-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.car-details-sidebar .details-block ul li strong { color: var(--ah-secondary); font-weight: 600; }

.car-detail-title { font-size: clamp(1.5rem, 3vw, 2rem) !important; font-weight: 800 !important; letter-spacing: -0.04em !important; }
.car-description-text { color: var(--ah-text); line-height: 1.72; }

.sticky-sidebar { position: sticky; top: 90px; }
@media (max-width: 991px) { .sticky-sidebar { position: static; } }

/* ============================================================
   Footer
   ============================================================ */
.footer.ah-footer {
  position: relative;
  background: linear-gradient(
    170deg,
    var(--ah-dark)   0%,
    var(--ah-dark-2) 50%,
    var(--ah-dark-3) 100%
  ) !important;
  color: rgba(255, 255, 255, 0.80);
  padding: 0 !important;
  overflow: hidden;
}
.footer.ah-footer::before { display: none !important; }

/* Top gradient glow line */
.ah-footer-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 820px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 148, 136, 0.60) 30%,
    rgba(245, 158, 11, 0.40) 70%,
    transparent 100%
  );
}

.ah-footer-inner {
  padding-top: clamp(3rem, 5.5vw, 4.5rem) !important;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem) !important;
  position: relative;
  z-index: 1;
}

.ah-footer-top { padding-bottom: 0.5rem; }
.ah-footer-logo { max-height: 52px; width: auto; }
.ah-footer-wordmark {
  font-family: var(--ah-font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff !important;
}
.ah-footer-brand:hover .ah-footer-wordmark { color: #fff !important; }

.ah-footer-tagline {
  font-size: 0.88rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.52) !important;
  max-width: 30rem;
}

/* Social icons */
.ah-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ah-radius) !important;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.80) !important;
  font-size: 15px;
  transition: background var(--ah-t), color var(--ah-t), border-color var(--ah-t), transform var(--ah-t) !important;
}
.ah-footer-social-link:hover {
  background: var(--ah-primary) !important;
  border-color: var(--ah-primary) !important;
  color: #fff !important;
  transform: translateY(-3px) !important;
}

/* Divider */
.ah-footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  margin: 2.5rem 0 !important;
}

/* Column headings */
.ah-footer-heading {
  font-family: var(--ah-font) !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 1.25rem !important;
}

/* Contact list */
.ah-footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 0.9rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62) !important;
  line-height: 1.55;
}
.ah-footer-list li:last-child { padding-bottom: 0; }
.ah-footer-list i { color: var(--ah-primary) !important; margin-top: 2px; flex-shrink: 0; width: 1.1rem; text-align: center; font-size: 13px; }
.ah-footer-list a { color: rgba(255, 255, 255, 0.78) !important; text-decoration: none; }
.ah-footer-list a:hover { color: #fff !important; }

/* Explore links */
.ah-footer-links li { margin-bottom: 0.6rem; }
.ah-footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.60) !important;
  text-decoration: none;
  display: inline-block;
  transition: color var(--ah-t), padding-left var(--ah-t) !important;
}
.ah-footer-links a:hover { color: #fff !important; padding-left: 4px; }

.ah-footer-blurb { font-size: 14px; color: rgba(255, 255, 255, 0.50) !important; line-height: 1.65; }
.ah-footer-cta.button { background: var(--ah-primary) !important; color: #fff !important; }

/* Bottom bar */
.ah-footer-bar {
  background: rgba(0, 0, 0, 0.30);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 0;
}
.ah-footer-copy,
.ah-footer-legal { font-size: 12px; color: rgba(255, 255, 255, 0.42) !important; }
.ah-footer-legal { text-decoration: none; transition: color var(--ah-t); }
.ah-footer-legal:hover { color: rgba(255, 255, 255, 0.82) !important; }

/* Legacy footer blocks */
.footer.bg-2.bg-overlay-black-90 { background: var(--ah-dark-2) !important; }
.footer.bg-2.bg-overlay-black-90::before { background: none !important; }
.footer .widgettitle { color: #fff !important; font-weight: 700 !important; }
.footer .address ul li,
.footer .usefull-link a,
.footer .recent-post-block a { color: rgba(255,255,255,0.68) !important; }
.footer .usefull-link a:hover,
.footer .recent-post-block a:hover { color: #fff !important; }
.footer .about-content p { color: rgba(255,255,255,0.62) !important; }
.footer h6::before,
.footer .widgettitle::before { background: var(--ah-primary) !important; }
.copyright { background: rgba(0,0,0,0.28) !important; border: none !important; }
.copyright.copyright-border { border-top: 1px solid rgba(255,255,255,0.10) !important; }
.copyright p, .copyright a { color: rgba(255,255,255,0.62) !important; }
.copyright a:hover { color: #fff !important; }

/* ============================================================
   Forms
   ============================================================ */
.gray-form,
.contact-form,
.register-form .gray-form,
.login-form .gray-form,
form.contact-form {
  background: var(--ah-card) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 40px !important;
  box-shadow: var(--ah-shadow-sm) !important;
  border: 1px solid var(--ah-border) !important;
}

.form-control {
  border-radius: var(--ah-radius) !important;
  border: 1.5px solid var(--ah-border) !important;
  padding: 11px 16px !important;
  font-size: 14px !important;
  color: var(--ah-secondary) !important;
  background: var(--ah-surface) !important;
  transition: border-color var(--ah-t), box-shadow var(--ah-t), background var(--ah-t) !important;
}
.form-control:focus {
  border-color: var(--ah-primary) !important;
  box-shadow: 0 0 0 3px var(--ah-primary-soft) !important;
  background: #fff !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--ah-text-light) !important; }

.form-label, label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--ah-navy) !important;
  margin-bottom: 6px !important;
}
select.form-control { appearance: auto; }
.form-check-input:checked { background-color: var(--ah-primary) !important; border-color: var(--ah-primary) !important; }

/* ============================================================
   Alerts
   ============================================================ */
.alert {
  border-radius: var(--ah-radius-lg) !important;
  border: none !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
}
.alert-danger  { background: #FEF2F2 !important; color: #991B1B !important; }
.alert-success { background: #F0FDF4 !important; color: #166534 !important; }
.alert-info    { background: #EFF6FF !important; color: #1E40AF !important; }
.alert-warning { background: #FFFBEB !important; color: #92400E !important; }

/* ============================================================
   Generic Cards (dashboard, services)
   ============================================================ */
.card {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-xl) !important;
  box-shadow: var(--ah-shadow-sm) !important;
  overflow: hidden;
  transition: box-shadow var(--ah-t-lg) !important;
}
.card:hover { box-shadow: var(--ah-shadow-md) !important; }

.card-header {
  background: #0b3a78 !important;
  border-bottom: 1px solid var(--ah-border) !important;
  padding: 16px 20px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: #fff !important;
  font-family: var(--ah-font-display) !important;
  letter-spacing: -0.02em !important;
}
.card-body {
  padding: 1.25rem 1.5rem !important;
  color: var(--ah-text) !important;
}
/* Admin cards — compact; avoids stacked pt-4/px-4 + huge padding */
.ah-admin-shell .card-header {
  padding: 1rem 1.25rem !important;
}
.ah-admin-shell .card-body {
  padding: 3rem 1.25rem !important;
}
.ah-admin-shell .card-body.p-0,
.ah-admin-shell .card-body.px-0,
.ah-admin-shell .card-body.pb-0 {
  padding: 0 !important;
}
.ah-admin-shell .card-header.bg-white {
  padding-top: 1rem !important;
}
.ah-admin-sync-body {
  padding: 1.25rem !important;
}

.ah-car-sync-progress-track {
  height: 12px;
  border-radius: 9999px;
  background: var(--ah-surface-2, #E8EEF5);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ah-car-sync-progress-bar {
  background: linear-gradient(90deg, var(--ah-primary, #0D9488) 0%, #14b8a6 100%);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

.ah-car-sync-progress-bar.is-complete {
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.ah-car-sync-progress-bar.is-error {
  background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.ah-car-sync-progress-pct {
  min-width: 2.5rem;
  text-align: right;
  color: var(--ah-primary, #0D9488);
}
.card-title { font-weight: 700 !important; color: var(--ah-secondary) !important; letter-spacing: -0.02em; }

.card .text-primary { color: var(--ah-primary) !important; }
.card .text-success { color: #16A34A !important; }
.card .text-warning { color: var(--ah-accent-dark) !important; }
.card .text-danger  { color: #DC2626 !important; }
.card .text-info    { color: var(--ah-primary) !important; }

/* ============================================================
   Tables
   ============================================================ */
.table { color: var(--ah-text); border-color: var(--ah-border) !important; font-size: 14px; }
.table thead th {
  background: var(--ah-surface) !important;
  color: var(--ah-text-muted) !important;
  font-weight: 700 !important;
  font-size: 10.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  border-bottom: 2px solid var(--ah-border) !important;
  padding: 12px 16px !important;
}
.table td { padding: 12px 16px !important; vertical-align: middle !important; border-color: var(--ah-border) !important; }
.table-hover tbody tr:hover { background: var(--ah-surface) !important; }
.table .btn { padding: 5px 10px; font-size: 12.5px; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  font-family: var(--ah-font) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 4px 9px !important;
  border-radius: var(--ah-radius-sm) !important;
  letter-spacing: 0.02em;
}
.badge.bg-primary   { background: var(--ah-primary) !important; }
.badge.bg-success   { background: #16A34A !important; }
.badge.bg-warning   { background: var(--ah-accent) !important; color: var(--ah-dark) !important; }
.badge.bg-danger    { background: #DC2626 !important; }
.badge.bg-info      { background: var(--ah-primary) !important; }
.badge.bg-secondary { background: var(--ah-text-muted) !important; }

/* ============================================================
   Bootstrap Buttons (dashboard / admin)
   ============================================================ */
.btn {
  border-radius: var(--ah-radius) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 8px 16px !important;
  transition: background var(--ah-t), border-color var(--ah-t), transform var(--ah-t), box-shadow var(--ah-t) !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 5px 10px !important; font-size: 12px !important; }
.btn-primary  { background: var(--ah-primary) !important; border-color: var(--ah-primary) !important; }
.btn-primary:hover { background: var(--ah-primary-dark) !important; border-color: var(--ah-primary-dark) !important; }
.btn-success  { background: #16A34A !important; border-color: #16A34A !important; }
.btn-danger   { background: #DC2626 !important; border-color: #DC2626 !important; }
.btn-info     { background: var(--ah-primary) !important; border-color: var(--ah-primary) !important; }
.btn-secondary { background: var(--ah-text-muted) !important; border-color: var(--ah-text-muted) !important; }
.btn-warning  { background: var(--ah-accent) !important; border-color: var(--ah-accent) !important; color: var(--ah-dark) !important; }
.btn-outline-primary { color: var(--ah-primary) !important; border-color: var(--ah-primary) !important; }
.btn-outline-primary:hover { background: var(--ah-primary) !important; color: #fff !important; }

/* ============================================================
   Modals
   ============================================================ */
/* Override legacy style.css (.modal-backdrop z-index: 99999) */
.modal-backdrop {
  z-index: 1050 !important;
}
.modal {
  z-index: 1055 !important;
}
.modal-content {
  border: none !important;
  border-radius: var(--ah-radius-xl) !important;
  box-shadow: var(--ah-shadow-xl) !important;
}
.modal-header {
  background: var(--ah-surface) !important;
  border-bottom: 1px solid var(--ah-border) !important;
  padding: 18px 24px !important;
  border-radius: var(--ah-radius-xl) var(--ah-radius-xl) 0 0 !important;
}
.modal-title { font-weight: 800 !important; font-size: 1.05rem !important; color: var(--ah-secondary) !important; letter-spacing: -0.02em !important; }
.modal-body { padding: 24px !important; }
.modal-footer { border-top: 1px solid var(--ah-border) !important; padding: 16px 24px !important; background: var(--ah-surface) !important; }
.btn-close { opacity: 0.45; }
.btn-close:hover { opacity: 1; }

/* ============================================================
   Services & Mechanics
   ============================================================ */
.service-item.card .card-title,
.mechanic-card .card-title { color: var(--ah-secondary) !important; font-weight: 700 !important; }
.mechanic-profile-card .card-body h2 { color: var(--ah-secondary) !important; font-weight: 800 !important; }
.mechanic-description { color: var(--ah-text); line-height: 1.72; }

.mechanic-about-block {
  background: var(--ah-surface) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 1.5rem 1.75rem !important;
  box-shadow: var(--ah-shadow-sm) !important;
  border: 1px solid var(--ah-border) !important;
}

.mechanic-hero-image    { height: 230px; object-fit: cover; }
.mechanic-logo-wrapper  { height: 210px; background: var(--ah-surface); }
.mechanic-logo          { max-height: 130px; object-fit: contain; }
.mechanic-placeholder-wrapper { height: 210px; background: var(--ah-surface); }
.mechanic-placeholder-icon { font-size: 3rem; color: var(--ah-text-muted); }

.mechanic-contact-list li { font-size: 14px; margin-bottom: 0.25rem; }
.mechanic-contact-list a { color: var(--ah-secondary); text-decoration: none; }
.mechanic-contact-list a:hover { color: var(--ah-primary); }

.service-detail-hero {
  background: var(--ah-surface) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 1.5rem 1.75rem !important;
  box-shadow: var(--ah-shadow-sm) !important;
}
.service-detail-hero h1 { font-size: 1.9rem !important; font-weight: 800 !important; letter-spacing: -0.03em !important; }
.service-hero-media { border-radius: var(--ah-radius-xl); overflow: hidden; border: 1px solid var(--ah-border); }
.service-hero-media img { width: 100%; height: 180px; object-fit: cover; }
.service-hero-icon {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ah-primary-light) 0%, var(--ah-primary) 100%);
  color: #fff;
  font-size: 2.5rem;
  border-radius: var(--ah-radius-lg);
}
.service-mechanics .service-mechanic-card { transition: transform var(--ah-t), box-shadow var(--ah-t) !important; }
.service-mechanics .service-mechanic-card:hover { transform: translateY(-3px) !important; box-shadow: var(--ah-shadow-md) !important; }
.service-mechanic-logo-wrapper { background: #fff !important; }
.service-mechanic-logo { max-height: 100%; max-width: 100%; object-fit: contain; }
.service-mechanic-call-btn { width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important; }

/* ============================================================
   Contact Info
   ============================================================ */
.contact-info-card,
.page-section-ptb .address {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 1.5rem 1.75rem !important;
  box-shadow: var(--ah-shadow-sm) !important;
}
.page-section-ptb .address ul { list-style: none; padding: 0; margin: 0; }
.page-section-ptb .address ul li { padding: 10px 0; border-bottom: 1px solid var(--ah-border); color: var(--ah-text); display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.page-section-ptb .address ul li:last-child { border-bottom: none; }
.page-section-ptb .address ul li i { color: var(--ah-primary); margin-top: 2px; min-width: 1.25rem; }

/* ============================================================
   Error Pages
   ============================================================ */
.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-page h1 { font-size: clamp(4rem, 10vw, 7rem) !important; font-weight: 800 !important; color: var(--ah-primary) !important; line-height: 1 !important; letter-spacing: -0.06em !important; }
.error-page h2 { font-size: clamp(1.25rem, 3vw, 1.65rem) !important; font-weight: 700 !important; color: var(--ah-secondary) !important; margin-bottom: 1rem !important; }
.error-page p  { color: var(--ah-text-muted); margin-bottom: 2rem; }

/* ============================================================
   Blog Sidebar
   ============================================================ */
.blog-sidebar .sidebar-widget,
.sidebar-widget {
  background: var(--ah-card) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-xl) !important;
  padding: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-shadow: var(--ah-shadow-sm) !important;
}
.blog-sidebar .sidebar-widget h6,
.sidebar-widget h6 { color: var(--ah-secondary) !important; font-weight: 800 !important; font-size: 0.95rem !important; margin-bottom: 1rem !important; padding-bottom: 0.75rem !important; border-bottom: 2px solid var(--ah-surface-2) !important; }
.blog-sidebar .widget-link a { color: var(--ah-text); text-decoration: none; }
.blog-sidebar .widget-link a:hover { color: var(--ah-primary); }

/* ============================================================
   List Group
   ============================================================ */
.list-group-item { border-color: var(--ah-border) !important; color: var(--ah-text) !important; padding: 12px 16px !important; font-size: 14px; }
.list-group-item.active { background: var(--ah-primary) !important; border-color: var(--ah-primary) !important; }

/* ============================================================
   Coming Soon Page
   ============================================================ */
.coming-soon-layout header#header,
.coming-soon-layout footer.footer,
.coming-soon-layout .car-top { display: none !important; }

.coming-soon-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top, var(--ah-dark-2) 0%, var(--ah-dark) 55%);
  color: #E5E7EB;
  position: relative;
  overflow: hidden;
}
.coming-soon-page::before,
.coming-soon-page::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.52;
  animation: cs-pulse 14s ease-in-out infinite alternate;
}
.coming-soon-page::before { width: 300px; height: 300px; background: rgba(13, 148, 136, 0.48); top: -80px; right: 10%; }
.coming-soon-page::after  { width: 240px; height: 240px; background: rgba(245, 158, 11, 0.30); bottom: -60px; left: 8%; animation-delay: -5s; }

.coming-soon-card {
  background: rgba(10, 20, 44, 0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--ah-radius-2xl) !important;
  box-shadow: 0 32px 80px rgba(3, 14, 28, 0.82);
  color: #E5E7EB;
  position: relative;
  overflow: hidden;
}

.coming-soon-heading {
  background: linear-gradient(135deg, #E5E7EB 0%, #A5F3FC 35%, #6EE7B7 65%, #FCD34D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.coming-soon-icon .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ah-primary-light) 0%, var(--ah-primary) 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.52);
  font-size: 1.8rem;
  animation: cs-float 4s ease-in-out infinite;
}
.coming-soon-subtitle { font-size: 0.95rem; }
.coming-soon-pills { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.coming-soon-pills .pill { padding: 0.2rem 0.7rem; border-radius: 999px; background: rgba(15,23,42,0.85); border: 1px solid rgba(148,163,184,0.55); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: #E5E7EB; }
.coming-soon-form .button[disabled] { opacity: 0.7; cursor: default; position: relative; overflow: hidden; }
.coming-soon-form .button[disabled]::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent); animation: cs-shimmer 2.5s infinite; }
.coming-soon-card .form-control[disabled] { opacity: 0.7; cursor: default; }

.coming-soon-car-track { position: relative; width: 100%; max-width: 260px; margin: 0 auto 0.5rem; height: 40px; overflow: hidden; }
.coming-soon-car-track .road-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(148,163,184,0.7) 20%, rgba(148,163,184,0.7) 80%, transparent); transform: translateY(-50%); }
.coming-soon-car { position: absolute; top: 50%; left: -80px; width: 96px; height: auto; transform: translateY(-50%); filter: hue-rotate(-35deg) saturate(1.7) drop-shadow(0 10px 20px rgba(15,23,42,0.95)); animation: cs-car-drive 5s ease-in-out infinite; }

@keyframes cs-pulse  { 0% { transform: scale(1) translate(0,0); opacity: 0.52; } 100% { transform: scale(1.15) translate(10px,-12px); opacity: 0.72; } }
@keyframes cs-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cs-shimmer { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }
@keyframes cs-car-drive {
  0%   { transform: translate3d(0,-50%,0);   opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate3d(260px,-55%,0); }
  70%  { transform: translate3d(320px,-52%,0); opacity: 1; }
  100% { transform: translate3d(380px,-50%,0); opacity: 0; }
}

/* ============================================================
   Utility
   ============================================================ */
.lead         { font-size: 1.1rem !important; line-height: 1.72 !important; }
.text-muted   { color: var(--ah-text-muted) !important; }
.text-primary { color: var(--ah-primary) !important; }

/* ============================================================
   Global Responsive
   ============================================================ */
@media (max-width: 991px) {
  .page-section-ptb { padding: 52px 0 !important; }
  .inner-intro { padding: 44px 0 16px !important; min-height: 120px !important; }
  .inner-intro .row { flex-direction: column; align-items: center; text-align: center; }
  .intro-title .text-md-start { text-align: center !important; }
  .intro-title .text-md-end   { text-align: center !important; margin-top: 0.5rem; }
  ul.page-breadcrumb { margin-top: 0.5rem; }
  .contact .row .col-lg-4 { margin-bottom: 1.5rem; }
  .search-block-wrapper { padding: 24px !important; margin-left: 0; margin-right: 0; }
  .ah-stats-bar .ah-stat-item + .ah-stat-item::before { display: none; }
}

@media (max-width: 767px) {
  .page-section-ptb { padding: 40px 0 !important; }
  .gray-form, .contact-form, .login-form .gray-form, .register-form .gray-form { padding: 24px 20px !important; }
  .card-header { padding: 12px 16px !important; }
  .card-body   { padding: 16px !important; }
  .inner-intro { min-height: 100px !important; padding: 36px 0 14px !important; }
  .section-title-new .main-title, .section-title h2 { font-size: 1.65rem !important; }
  .modal-dialog { margin: 0.5rem; max-width: calc(100% - 1rem); }
  .modal-content { border-radius: var(--ah-radius-lg) !important; }
  .modal-header, .modal-body, .modal-footer { padding: 1rem !important; }
  .table thead th, .table td { padding: 10px 8px !important; }
  .table { font-size: 0.8125rem; }
  .super-admin-listings-table thead th, .super-admin-dealers-table thead th { padding: 0.65rem 0.5rem !important; font-size: 0.68rem; }
  .super-admin-btn-group { flex-direction: column; }
  .super-admin-btn-group .btn { width: 100%; }
  .footer .row.mt-5 > [class*="col-"] { padding-top: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .footer .row.mt-5 > [class*="col-"]:last-child { border-bottom: none; }
}

@media (max-width: 575px) {
  .page-section-ptb { padding: 32px 0 !important; }
  .gray-form, .contact-form { padding: 20px 16px !important; }
  .error-page h1 { font-size: 3.5rem !important; }
  .car-top { bottom: 20px !important; right: 16px !important; }
  .header-button .button { display: inline-block; margin: 4px !important; }
  ul.page-breadcrumb li { display: inline; }
  ul.page-breadcrumb { word-break: break-word; }
  .pagination .page-link { padding: 7px 10px; font-size: 13px; }
}

/* Prevent image overflow */
.car-item .car-image img,
.product-listing .car-item .car-image img { width: 100%; height: auto; object-fit: cover; }

/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

/* ── Keyframes ── */
@keyframes ah-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ah-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ah-fade-left {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ah-fade-right {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ah-scale-in {
  from { opacity: 0; transform: scale(0.90); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ah-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

@keyframes ah-eyebrow-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
  50%       { box-shadow: 0 0 14px 4px rgba(245, 158, 11, 0.22); }
}

@keyframes ah-float-btn {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes ah-underline-grow {
  from { width: 0; }
  to   { width: 48px; }
}

@keyframes ah-dot-ping {
  0%   { transform: scale(1);   opacity: 1; }
  75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes ah-number-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes ah-slide-down-nav {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page entrance ── */
body.ah-site {
  animation: ah-fade-in 0.45s ease both;
}

/* ── Hero text stagger (plays on every active carousel slide) ── */
.carousel-item.active .ah-hero-eyebrow {
  animation: ah-fade-up 0.65s 0.28s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.carousel-item.active .ah-hero-content h1,
.carousel-item.active .banner-content h1 {
  animation: ah-fade-up 0.75s 0.44s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.carousel-item.active .banner-content h5 {
  animation: ah-fade-up 0.65s 0.60s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.carousel-item.active .banner-content p.home-banner-tagline {
  animation: ah-fade-up 0.60s 0.72s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.carousel-item.active .banner-content .d-flex {
  animation: ah-fade-up 0.60s 0.80s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Eyebrow pill — subtle ambient glow loop */
.carousel-item.active .ah-hero-eyebrow {
  animation:
    ah-fade-up 0.65s 0.28s cubic-bezier(0.4, 0, 0.2, 1) both,
    ah-eyebrow-glow 3.5s 1.2s ease-in-out infinite;
}

/* ── Navbar links slide down on load ── */
.mega-menu .menu-links > li {
  animation: ah-slide-down-nav 0.4s ease both;
}
.mega-menu .menu-links > li:nth-child(1) { animation-delay: 0.05s; }
.mega-menu .menu-links > li:nth-child(2) { animation-delay: 0.10s; }
.mega-menu .menu-links > li:nth-child(3) { animation-delay: 0.15s; }
.mega-menu .menu-links > li:nth-child(4) { animation-delay: 0.20s; }
.mega-menu .menu-links > li:nth-child(5) { animation-delay: 0.25s; }
.mega-menu .menu-links > li:nth-child(6) { animation-delay: 0.30s; }
.mega-menu .menu-links > li:nth-child(7) { animation-delay: 0.35s; }
.mega-menu .menu-links > li:nth-child(8) { animation-delay: 0.40s; }

/* ── Active nav link — animated dot indicator ── */
.mega-menu .menu-links > li.active > a {
  position: relative;
}
.mega-menu .menu-links > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ah-primary);
  animation: ah-dot-ping 1.8s ease-in-out infinite;
}

/* ── Scroll-reveal base state ── */
.ah-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  0.62s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.62s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.ah-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variants */
.ah-reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.ah-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ah-reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}
.ah-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.ah-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.ah-reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Section eyebrow — animated underline when visible ── */
.ah-section-eyebrow.is-visible {
  animation: ah-scale-in 0.5s ease both;
}

/* ── Section title underline grow ── */
.section-title .separator.is-visible,
.ah-section-head .separator.is-visible {
  animation: ah-underline-grow 0.55s 0.3s ease both;
}

/* ── Stat numbers — pop when revealed ── */
.ah-stat-item.is-visible .ah-stat-number {
  animation: ah-number-pop 0.5s 0.2s ease both;
}

/* ── Image shimmer loading placeholder ── */
.car-item .car-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--ah-surface-2) 0%,
    var(--ah-surface-3) 40%,
    var(--ah-surface-2) 80%
  );
  background-size: 600px 100%;
  animation: ah-shimmer 1.6s linear infinite;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* Hide shimmer once image loads (handled via JS .img-loaded class) */
.car-item .car-image.img-loaded::before {
  opacity: 0;
  pointer-events: none;
}

/* ── Floating back-to-top button ── */
.car-top {
  animation: ah-float-btn 3.5s ease-in-out infinite;
}
.car-top:hover {
  animation: none !important;
}

/* ── Button press feedback ── */
.button:active {
  transform: translateY(0) scale(0.96) !important;
  transition-duration: 0.08s !important;
}

/* ── Card entrance shimmer on first hover ── */
.car-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.car-item:hover::after {
  opacity: 1;
  animation: ah-shimmer 0.8s ease;
}

/* ── Inner intro heading slide-in ── */
.inner-intro h1 {
  animation: ah-fade-left 0.65s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
ul.page-breadcrumb {
  animation: ah-fade-right 0.65s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Footer columns stagger ── */
.ah-footer-grid > [class*="col-"]:nth-child(1) .ah-reveal { transition-delay: 0s; }
.ah-footer-grid > [class*="col-"]:nth-child(2) .ah-reveal { transition-delay: 0.14s; }
.ah-footer-grid > [class*="col-"]:nth-child(3) .ah-reveal { transition-delay: 0.28s; }

/* ── Form fields focus animation ── */
.form-control {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.18s ease !important;
}
.form-control:focus {
  transform: translateY(-1px);
}

/* ── Search card slide up (desktop) ── */
@media (min-width: 992px) {
  .home-search-bar .search-block-wrapper.ah-search-card {
    animation: ah-fade-up 0.75s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

/* ── Page section headings animate when revealed ── */
.section-title-new.is-visible .main-title,
.ah-section-head.is-visible .main-title {
  animation: ah-fade-up 0.6s ease both;
}
.section-title-new.is-visible .ah-section-eyebrow,
.ah-section-head.is-visible .ah-section-eyebrow {
  animation: ah-fade-up 0.5s 0.08s ease both;
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PREMIUM DASHBOARD — Metric cards
   ============================================================ */
.ah-metric-card {
  background: var(--ah-card);
  border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-lg) !important;
  padding: 1.5rem 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--ah-t), box-shadow var(--ah-t-lg);
  box-shadow: var(--ah-shadow-card) !important;
  height: 100%;
}
.ah-metric-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ah-shadow-hover) !important;
}
.ah-metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--ah-radius-lg) var(--ah-radius-lg) 0 0;
}
.ah-metric-card--teal::before  { background: linear-gradient(90deg, var(--ah-primary), var(--ah-primary-light)); }
.ah-metric-card--green::before { background: linear-gradient(90deg, #10B981, #34D399); }
.ah-metric-card--amber::before { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.ah-metric-card--red::before   { background: linear-gradient(90deg, #EF4444, #F87171); }
.ah-metric-card--blue::before  { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.ah-metric-card--purple::before{ background: linear-gradient(90deg, #8B5CF6, #A78BFA); }
.ah-metric-card--navy::before  { background: linear-gradient(90deg, var(--ah-navy), #334155); }

.ah-metric-card-bg {
  position: absolute;
  right: -20px; bottom: -20px;
  font-size: 5.5rem;
  opacity: 0.045;
  pointer-events: none;
  color: var(--ah-secondary);
  line-height: 1;
}

.ah-metric-icon {
  width: 46px; height: 46px;
  border-radius: var(--ah-radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.ah-metric-icon--teal   { background: var(--ah-primary-soft);          color: var(--ah-primary); }
.ah-metric-icon--green  { background: rgba(16, 185, 129, 0.10);         color: #10B981; }
.ah-metric-icon--amber  { background: rgba(245, 158, 11, 0.12);         color: #D97706; }
.ah-metric-icon--red    { background: rgba(239, 68, 68, 0.10);          color: #DC2626; }
.ah-metric-icon--blue   { background: rgba(59, 130, 246, 0.10);         color: #2563EB; }
.ah-metric-icon--purple { background: rgba(139, 92, 246, 0.10);         color: #7C3AED; }
.ah-metric-icon--navy   { background: rgba(30, 41, 59, 0.08);           color: var(--ah-navy); }

.ah-metric-number {
  font-family: var(--ah-font-display) !important;
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  color: var(--ah-secondary) !important;
  line-height: 1.08;
  letter-spacing: -0.045em;
  display: block;
}
.ah-metric-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: var(--ah-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-top: 4px;
  display: block;
}
.ah-metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: var(--ah-radius-pill);
}
.ah-metric-trend--up   { background: rgba(16,185,129,0.12); color: #059669; }
.ah-metric-trend--down { background: rgba(239,68,68,0.10);  color: #DC2626; }
.ah-metric-trend--flat { background: var(--ah-surface);     color: var(--ah-text-muted); }

/* ── Dashboard welcome banner ── */
.ah-dash-welcome {
  background: linear-gradient(135deg, var(--ah-dark) 0%, var(--ah-dark-3) 100%);
  border-radius: var(--ah-radius-xl) !important;
  padding: 2rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border: none !important;
  box-shadow: var(--ah-shadow-md) !important;
}
.ah-dash-welcome::before {
  content: '';
  position: absolute;
  top: -70px; right: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(13,148,136,0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ah-dash-welcome::after {
  content: '';
  position: absolute;
  bottom: -50px; left: 25%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ah-dash-welcome-title {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.035em;
  margin-bottom: 4px !important;
  position: relative; z-index: 1;
}
.ah-dash-welcome-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  position: relative; z-index: 1;
  margin-bottom: 0;
}

/* ── Dashboard section heading ── */
.ah-dash-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--ah-border);
}
.ah-dash-section-title {
  font-family: var(--ah-font-display) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--ah-secondary) !important;
  margin: 0;
}

/* ── Car thumbnail in table ── */
.ah-car-thumb {
  width: 78px; height: 55px;
  border-radius: var(--ah-radius-sm);
  object-fit: cover;
  border: 1px solid var(--ah-border);
  display: block;
}

/* ── Compact action buttons ── */
.ah-action-group { display: flex; gap: 5px; }
.ah-action-btn {
  width: 30px; height: 30px;
  border-radius: var(--ah-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px;
  cursor: pointer;
  transition: all var(--ah-t);
  border: none;
  text-decoration: none !important;
  flex-shrink: 0;
}
.ah-action-btn--edit   { background: rgba(59,130,246,0.10);  color: #2563EB; }
.ah-action-btn--edit:hover   { background: #3B82F6; color: #fff; transform: translateY(-1px); }
.ah-action-btn--view   { background: var(--ah-primary-soft); color: var(--ah-primary); }
.ah-action-btn--view:hover   { background: var(--ah-primary); color: #fff; transform: translateY(-1px); }
.ah-action-btn--delete { background: rgba(239,68,68,0.10);   color: #DC2626; }
.ah-action-btn--delete:hover { background: #EF4444; color: #fff; transform: translateY(-1px); }
.ah-action-btn--ghost  { background: var(--ah-surface-2); color: var(--ah-text-light); cursor: default; }

/* ── Dashboard empty state ── */
.ah-empty-state { text-align: center; padding: 3.5rem 1.5rem; }
.ah-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--ah-surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  color: var(--ah-text-light);
  margin-bottom: 1.25rem;
}
.ah-empty-state h5 { font-weight: 700 !important; color: var(--ah-secondary) !important; }
.ah-empty-state p  { color: var(--ah-text-muted) !important; font-size: 0.9rem; }

/* ── Interests feed ── */
.ah-interest-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--ah-surface-2);
  transition: background var(--ah-t);
}
.ah-interest-item:last-child { border-bottom: none; }
.ah-interest-item:hover { background: var(--ah-surface); }
.ah-interest-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ah-primary-soft), var(--ah-primary-medium));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--ah-primary);
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--ah-font-display);
}
.ah-interest-name  { font-weight: 700; font-size: 13.5px; color: var(--ah-secondary); }
.ah-interest-car   { font-size: 12.5px; color: var(--ah-text-muted); }
.ah-interest-msg   { font-size: 12px; color: var(--ah-text-muted); font-style: italic; margin-top: 2px; }

/* ============================================================
   AUTH PAGES — Split-panel card
   ============================================================ */
.ah-auth-wrap {
  background: var(--ah-surface);
  min-height: calc(100vh - var(--ah-header-h));
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}
.ah-auth-card {
  background: var(--ah-card);
  border-radius: var(--ah-radius-2xl) !important;
  box-shadow: var(--ah-shadow-lg) !important;
  border: 1px solid var(--ah-border) !important;
  overflow: hidden;
  display: flex;
  width: 100%;
}

/* Left panel (brand) */
.ah-auth-panel {
  background: linear-gradient(160deg, var(--ah-dark) 0%, var(--ah-dark-3) 100%);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
  width: 340px;
  flex-shrink: 0;
}
.ah-auth-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(13,148,136,0.42) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ah-auth-panel::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.ah-auth-panel-inner { position: relative; z-index: 1; }
.ah-auth-panel-logo  { height: 72px; width: auto; margin-bottom: 2.5rem; }
.ah-auth-panel-head  {
  font-family: var(--ah-font-display) !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.22;
  margin-bottom: 0.75rem !important;
}
.ah-auth-panel-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.68;
  margin-bottom: 0;
}
.ah-auth-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  position: relative; z-index: 1;
}
.ah-auth-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.9rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.70);
}
.ah-auth-features li i {
  color: var(--ah-primary-light);
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}
.ah-auth-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(13,148,136,0.20);
  border: 1px solid rgba(13,148,136,0.35);
  border-radius: var(--ah-radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #5EEAD4;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

/* Right form area */
.ah-auth-form-area {
  flex: 1;
  padding: 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ah-auth-form-head {
  font-family: var(--ah-font-display) !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: var(--ah-secondary) !important;
  letter-spacing: -0.035em;
  margin-bottom: 4px !important;
}
.ah-auth-form-sub {
  font-size: 0.875rem;
  color: var(--ah-text-muted);
  margin-bottom: 1.75rem;
}
.ah-auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}
.ah-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--ah-border);
}
.ah-auth-divider span {
  position: relative;
  background: var(--ah-card);
  padding: 0 14px;
  font-size: 11.5px;
  color: var(--ah-text-muted);
  font-weight: 600;
}

/* Input with icon */
.ah-input-group { position: relative; }
.ah-input-group .ah-input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ah-text-light);
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}
.ah-input-group .form-control { padding-left: 40px !important; }

/* Mobile: stack auth card */
@media (max-width: 820px) {
  .ah-auth-panel {
    width: 100%;
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  .ah-auth-features { display: none; }
  .ah-auth-card { flex-direction: column; }
  .ah-auth-form-area { padding: 2rem 1.5rem; }
}
@media (max-width: 575px) {
  .ah-auth-form-area { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   MOBILE NAVBAR — Hamburger menu
   ============================================================ */
.ah-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  cursor: pointer;
  border: 1px solid var(--ah-border);
  background: transparent;
  border-radius: var(--ah-radius-sm);
  transition: background var(--ah-t), border-color var(--ah-t);
  flex-shrink: 0;
  padding: 0;
}
.ah-hamburger:hover { background: var(--ah-surface); border-color: var(--ah-primary); }
.ah-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ah-secondary);
  border-radius: 2px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.ah-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ah-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ah-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile side drawer */
.ah-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ah-mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
body.ah-mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

.ah-mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  max-width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--ah-border);
  box-shadow: 8px 0 40px rgba(15, 23, 42, 0.14);
  z-index: 1002;
  padding: 0;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
}
.ah-mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}
.ah-mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 1rem 0 1.25rem;
  min-height: var(--ah-header-h, 72px);
  border-bottom: 1px solid var(--ah-border);
  flex-shrink: 0;
}
.ah-mobile-nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ah-navy);
}
.ah-mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--ah-radius);
  background: transparent;
  color: var(--ah-navy);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--ah-t);
}
.ah-mobile-nav-close:hover {
  background: var(--ah-surface);
}
.ah-mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.25rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}
.ah-mobile-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ah-muted, #64748B);
  margin: 1rem 0 0.35rem;
  padding-left: 14px;
}
.ah-mobile-nav-label:first-child {
  margin-top: 0;
}
.ah-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--ah-radius);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ah-navy) !important;
  text-decoration: none !important;
  transition: background var(--ah-t), color var(--ah-t);
  margin-bottom: 2px;
}
.ah-mobile-nav-link:hover,
.ah-mobile-nav-link.active-link {
  background: var(--ah-primary-soft);
  color: var(--ah-primary) !important;
}
.ah-mobile-nav-sep {
  height: 1px;
  background: var(--ah-border);
  margin: 0.75rem 0;
}
.ah-mobile-nav-ctas { display: flex; flex-direction: column; gap: 8px; margin-top: 0.75rem; }
.ah-mobile-nav-ctas .button { justify-content: center !important; }

@media (max-width: 991px) {
  .ah-hamburger { display: flex; }
  .mega-menu .menu-links  { display: none !important; }
  .ah-nav-cta-group       { display: none !important; }
  /* Higher-specificity override: a legacy ID-scoped rule (and the global
     a.button display rule) would otherwise beat the two hide rules above
     and keep "Sell a Car" / "My Account" / "Logout" visible on mobile.
     These buttons live in the drawer's bottom CTAs instead. */
  #header.defualt .menu.header-navbar-v2 .header-inner .header-button.ah-nav-cta-group {
    display: none !important;
  }
  html.ah-pwa-mode .ah-hamburger { display: flex !important; }
}
@media (min-width: 992px) {
  .ah-mobile-nav,
  .ah-mobile-nav-backdrop {
    display: none !important;
  }
}

/* ============================================================
   INNER INTRO — Refined page headers
   ============================================================ */
.inner-intro {
  background-attachment: scroll !important;
}
@media (min-width: 992px) {
  .inner-intro {
    background-attachment: fixed !important;
  }
}
.inner-intro h1 {
  font-size: clamp(1.55rem, 4vw, 2.4rem) !important;
}

/* ============================================================
   GLOBAL PAGE SECTION ENHANCEMENTS
   ============================================================ */
.page-section-ptb { background: var(--ah-surface) !important; }

/* Ensure nested cards on surface don't double up bg */
.page-section-ptb .card { background: var(--ah-card) !important; }

/* Better responsive table scroll hint */
.table-responsive { border-radius: var(--ah-radius-lg); overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Smooth badge pill for status */
.badge { border-radius: var(--ah-radius-sm) !important; }

/* ============================================================
   INTEREST BADGE COLORS (dashboard)
   ============================================================ */
.badge-interest-pending   { background: rgba(245,158,11,0.15) !important; color: #92400E !important; }
.badge-interest-contacted { background: rgba(59,130,246,0.12) !important; color: #1D4ED8 !important; }
.badge-interest-viewed    { background: rgba(16,185,129,0.12) !important; color: #065F46 !important; }
.badge-interest-other     { background: var(--ah-surface-2) !important; color: var(--ah-text-muted) !important; }


/* ====================================================================
   GHJ AUTO HUB — Animation & Design Enhancement Layer v2
   "Precision motion · Cinematic depth · Effortless polish"
   ==================================================================== */

/* ──────────────────────────────────────────────────────────────────────
   KEYFRAME LIBRARY
   ────────────────────────────────────────────────────────────────────── */
@keyframes ah-fade-up    { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
@keyframes ah-fade-down  { from{opacity:0;transform:translateY(-24px)} to{opacity:1;transform:translateY(0)} }
@keyframes ah-fade-left  { from{opacity:0;transform:translateX(-32px)} to{opacity:1;transform:translateX(0)} }
@keyframes ah-fade-right { from{opacity:0;transform:translateX(32px)} to{opacity:1;transform:translateX(0)} }
@keyframes ah-scale-in   { from{opacity:0;transform:scale(0.88)} to{opacity:1;transform:scale(1)} }
@keyframes ah-fade-in    { from{opacity:0} to{opacity:1} }

@keyframes ah-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes ah-gradient-flow {
  0%,100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ah-float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-9px); }
}
@keyframes ah-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes ah-ripple-out {
  from { transform:scale(0); opacity:0.55; }
  to   { transform:scale(4.5); opacity:0; }
}
@keyframes ah-pulse-soft {
  0%,100% { box-shadow: 0 0 0 0 rgba(13,148,136,0); }
  50%      { box-shadow: 0 0 0 8px rgba(13,148,136,0.15); }
}
@keyframes ah-bar-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes ah-count-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  70%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* ──────────────────────────────────────────────────────────────────────
   SMOOTH SCROLL + FOCUS
   ────────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
:focus-visible {
  outline: 2px solid var(--ah-primary) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

/* ──────────────────────────────────────────────────────────────────────
   PAGE LOADER — spin ring
   ────────────────────────────────────────────────────────────────────── */
#loading.ah-loading {
  background: var(--ah-dark) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
#loading.ah-loading #loading-center { position: relative; }
#loading.ah-loading #loading-center img { display: none; }
#loading.ah-loading #loading-center::before {
  content: '';
  display: block;
  width: 52px; height: 52px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--ah-primary);
  border-right-color: var(--ah-accent);
  border-radius: 50%;
  animation: ah-spin 0.75s linear infinite;
}

/* ──────────────────────────────────────────────────────────────────────
   SCROLL-REVEAL SYSTEM
   ────────────────────────────────────────────────────────────────────── */
.ah-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.58s var(--ah-ease-out), transform 0.58s var(--ah-ease-out);
}
.ah-reveal.is-visible { opacity:1; transform:none; }

.ah-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s var(--ah-ease-out), transform 0.6s var(--ah-ease-out);
}
.ah-reveal-left.is-visible { opacity:1; transform:none; }

.ah-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s var(--ah-ease-out), transform 0.6s var(--ah-ease-out);
}
.ah-reveal-right.is-visible { opacity:1; transform:none; }

.ah-reveal-scale {
  opacity: 0;
  transform: scale(0.90);
  transition: opacity 0.52s var(--ah-ease-out), transform 0.52s var(--ah-ease-spring);
}
.ah-reveal-scale.is-visible { opacity:1; transform:scale(1); }

/* ──────────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ────────────────────────────────────────────────────────────────────── */

/* Gradient text */
.ah-gradient-text {
  background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: ah-gradient-flow 5s ease infinite;
}

/* Glass card surface */
.ah-glass {
  background: rgba(255,255,255,0.75) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
}

/* Float animation helper */
.ah-float { animation: ah-float 4s ease-in-out infinite; }

/* ──────────────────────────────────────────────────────────────────────
   BUTTONS — Ripple + Micro-lift
   ────────────────────────────────────────────────────────────────────── */
.button { position:relative; overflow:hidden; }

/* The ripple element is injected by JS */
.ah-ripple-wave {
  position: absolute;
  width: 6px; height: 6px;
  margin-left: -3px; margin-top: -3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  pointer-events: none;
  animation: ah-ripple-out 0.6s ease-out forwards;
  will-change: transform, opacity;
}
.button.border .ah-ripple-wave { background: rgba(13,148,136,0.28); }

/* Active press micro-dip */
.button:active { transform: translateY(1px) !important; }

/* ──────────────────────────────────────────────────────────────────────
   HERO SECTION — Cinematic entrance
   ────────────────────────────────────────────────────────────────────── */
.ah-hero-slide {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}
.ah-hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(3,14,28,0.62) 0%,
    rgba(3,14,28,0.72) 45%,
    rgba(3,14,28,0.42) 100%
  );
}
.ah-hero-slide .container { position: relative; z-index: 1; }

/* Eyebrow pill */
.ah-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--ah-radius-pill);
  padding: 6px 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: ah-fade-down 0.65s ease both;
  margin-bottom: 1.4rem;
}
.ah-hero-eyebrow i { font-size: 9px; color: var(--ah-accent); }

/* Staggered content entrance */
.ah-hero-content h1    { animation: ah-fade-up 0.72s 0.12s ease both; }
.ah-hero-content h5    { animation: ah-fade-up 0.72s 0.26s ease both; }
.ah-hero-content .d-flex{ animation: ah-fade-up 0.72s 0.40s ease both; }

/* Hero search bar (if present) */
.home-banner-tagline { animation: ah-fade-up 0.72s 0.32s ease both; }

/* ──────────────────────────────────────────────────────────────────────
   INNER PAGE HEADERS
   ────────────────────────────────────────────────────────────────────── */
.inner-intro {
  min-height: 140px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
}
.inner-intro::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3,14,28,0.84) 0%, rgba(13,148,136,0.38) 100%);
  z-index: 0;
}
.inner-intro > .container {
  position: relative;
  z-index: 1;
}
.inner-intro .intro-title h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  animation: ah-fade-left 0.6s ease both;
}
.inner-intro .page-breadcrumb { animation: ah-fade-right 0.6s 0.1s ease both; }
.inner-intro .page-breadcrumb li a {
  color: rgba(255,255,255,0.68) !important;
  transition: color 0.2s;
}
.inner-intro .page-breadcrumb li a:hover { color: var(--ah-accent) !important; }
.inner-intro .page-breadcrumb li span   { color: var(--ah-accent-light) !important; }

/* ──────────────────────────────────────────────────────────────────────
   SECTION HEADERS — Accent line + gradient sub-title
   ────────────────────────────────────────────────────────────────────── */
.section-title-new .section-sub-title,
.ah-section-head .section-sub-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: var(--ah-primary) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.6rem !important;
}
.section-title-new .section-sub-title::before,
.ah-section-head .section-sub-title::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2.5px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--ah-primary), var(--ah-accent));
  border-radius: 2px;
}
.section-title-new h2,
.ah-section-head h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.3rem) !important;
  letter-spacing: -0.04em !important;
}

/* Animated underline for headings marked .ah-heading-line */
.ah-heading-line { position: relative; display: inline-block; }
.ah-heading-line::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--ah-primary), var(--ah-accent));
  border-radius: 2px;
  transition: width 0.7s var(--ah-ease-spring);
}
.ah-heading-line.is-visible::after { width: 100%; }

/* ──────────────────────────────────────────────────────────────────────
   CAR CARDS — Enhanced hover
   ────────────────────────────────────────────────────────────────────── */
.car-item {
  transition: transform 0.30s var(--ah-ease-spring), box-shadow 0.30s var(--ah-ease) !important;
  border-radius: var(--ah-radius-lg) !important;
  overflow: hidden;
  will-change: transform;
}
.car-item:hover {
  transform: translateY(-9px) !important;
  box-shadow: 0 24px 56px rgba(15,23,42,0.14), 0 8px 20px rgba(15,23,42,0.07) !important;
}

/* Image zoom */
.car-item .car-image { overflow: hidden; position: relative; }
.car-item .car-image img {
  transition: transform 0.60s var(--ah-ease) !important;
  will-change: transform;
  display: block; width: 100%;
  object-fit: cover;
}
.car-item:hover .car-image img { transform: scale(1.07) !important; }

/* Shimmer placeholder while image loads */
.car-image:not(.img-loaded)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--ah-surface-2) 25%,
    var(--ah-surface-3) 50%,
    var(--ah-surface-2) 75%);
  background-size: 200% 100%;
  animation: ah-shimmer 1.5s infinite;
  z-index: 2;
}
.car-image.img-loaded::after { display: none; }

/* Price highlight */
.car-item .car-price .price {
  font-family: var(--ah-font-display) !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  color: var(--ah-primary) !important;
}

/* Status badges on cards */
.car-item .label {
  border-radius: var(--ah-radius-pill) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  padding: 3px 11px !important;
  letter-spacing: 0.04em;
}
.car-item .label-success {
  background: linear-gradient(135deg, var(--ah-primary), var(--ah-primary-dark)) !important;
  color: #fff !important;
}
.car-item .label-danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  color: #fff !important;
}

/* ──────────────────────────────────────────────────────────────────────
   FILTER SIDEBAR — Glass panel
   ────────────────────────────────────────────────────────────────────── */
.listing-sidebar .widget {
  background: rgba(255,255,255,0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--ah-border) !important;
  border-radius: var(--ah-radius-lg) !important;
  box-shadow: var(--ah-shadow-card) !important;
  padding: 1.5rem !important;
  transition: box-shadow 0.25s ease !important;
}
.listing-sidebar .widget:hover {
  box-shadow: var(--ah-shadow-md) !important;
}
.listing-sidebar .widget h5 {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: var(--ah-secondary) !important;
  margin-bottom: 1.1rem !important;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ah-border);
}

/* ──────────────────────────────────────────────────────────────────────
   FORM INPUTS — Polished focus states
   ────────────────────────────────────────────────────────────────────── */
.form-control {
  border-radius: var(--ah-radius) !important;
  border: 1.5px solid var(--ah-border) !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  font-family: var(--ah-font) !important;
  color: var(--ah-text) !important;
  background: var(--ah-card) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.form-control:focus {
  border-color: var(--ah-primary) !important;
  box-shadow: 0 0 0 3.5px var(--ah-primary-soft) !important;
  outline: none !important;
}

/* Custom select arrow */
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 5L10 1' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 38px !important;
  cursor: pointer;
}

/* ──────────────────────────────────────────────────────────────────────
   CAR DETAIL — Hero + Gallery
   ────────────────────────────────────────────────────────────────────── */
.car-detail-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem) !important;
  text-shadow: 0 2px 24px rgba(0,0,0,0.42);
  animation: ah-fade-up 0.65s 0.08s ease both;
}
.car-detail-hero-meta  { animation: ah-fade-up 0.65s 0.20s ease both; }
.car-detail-hero-price { animation: ah-fade-up 0.65s 0.30s ease both; }

.car-detail-hero-price .price-value {
  font-family: var(--ah-font-display) !important;
  font-size: 2rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.03em;
}
.car-detail-hero-price .price-old {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  text-decoration: line-through;
  margin-left: 0.6rem;
}

/* Gallery */
.cdg-main-link { transition: none; }
.cdg-main-img {
  transition: transform 0.5s var(--ah-ease) !important;
  will-change: transform;
}
.cdg-main-link:hover .cdg-main-img { transform: scale(1.025); }

.cdg-thumb {
  transition: transform 0.22s var(--ah-ease-spring), box-shadow 0.22s ease !important;
  border-radius: var(--ah-radius) !important;
  overflow: hidden;
}
.cdg-thumb:hover {
  transform: scale(1.06);
  box-shadow: var(--ah-shadow-md) !important;
  z-index: 2;
}

/* Spec pill badge */
.car-detail-spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ah-surface);
  border: 1.5px solid var(--ah-border);
  border-radius: var(--ah-radius);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ah-secondary);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ah-ease-spring);
  cursor: default;
}
.car-detail-spec-badge:hover {
  background: var(--ah-primary-soft);
  border-color: var(--ah-primary);
  color: var(--ah-primary);
  transform: translateY(-2px);
}
.car-detail-spec-badge i { color: var(--ah-primary); width: 14px; text-align: center; }

/* ──────────────────────────────────────────────────────────────────────
   STATS / COUNTERS — Gradient numbers
   ────────────────────────────────────────────────────────────────────── */
.ah-stat-item .count-number,
.ah-stat-item .ah-stat-number {
  background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--ah-font-display) !important;
  font-weight: 800 !important;
}
/* When counter just finished, add a subtle bounce */
.ah-stat-item.counted .count-number { animation: ah-count-bounce 0.4s ease; }

/* ──────────────────────────────────────────────────────────────────────
   FOOTER — Animated glow line + social hover
   ────────────────────────────────────────────────────────────────────── */
.ah-footer-glow {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ah-primary) 30%,
    var(--ah-accent) 60%,
    transparent 100%
  );
  background-size: 250% 100%;
  animation: ah-gradient-flow 4s ease infinite;
}

.ah-footer-social-link {
  transition: background 0.22s ease, color 0.22s ease,
              transform 0.22s var(--ah-ease-spring) !important;
}
.ah-footer-social-link:hover {
  transform: translateY(-4px) scale(1.08) !important;
}

.ah-footer-links a {
  position: relative;
  display: inline-block;
}
.ah-footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--ah-primary);
  transition: width 0.3s var(--ah-ease-spring);
}
.ah-footer-links a:hover::after { width: 100%; }

/* ──────────────────────────────────────────────────────────────────────
   DASHBOARD METRIC CARDS
   ────────────────────────────────────────────────────────────────────── */
.ah-metric-card {
  transition: transform 0.28s var(--ah-ease-spring), box-shadow 0.28s ease !important;
}
.ah-metric-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--ah-shadow-md) !important;
}
/* Pulse on the icon of a metric card */
.ah-metric-card .ah-metric-icon {
  animation: ah-pulse-soft 3s ease-in-out infinite;
}

/* ──────────────────────────────────────────────────────────────────────
   BACK-TO-TOP — Spring bounce
   ────────────────────────────────────────────────────────────────────── */
.car-top {
  transition: background var(--ah-t), transform 0.3s var(--ah-ease-spring),
              box-shadow var(--ah-t) !important;
}
.car-top:hover {
  transform: translateY(-6px) !important;
}

/* ──────────────────────────────────────────────────────────────────────
   DEALER / PROFILE CARDS — Hover lift
   ────────────────────────────────────────────────────────────────────── */
.dealer-profile-hero,
.service-mechanic-card,
.blog-post-card {
  transition: transform 0.28s var(--ah-ease-spring), box-shadow 0.28s ease;
}
.service-mechanic-card:hover,
.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ah-shadow-hover);
}

/* ──────────────────────────────────────────────────────────────────────
   CONTACT PAGE — Form card
   ────────────────────────────────────────────────────────────────────── */
.contact-form,
.gray-form {
  border-radius: var(--ah-radius-xl) !important;
  box-shadow: var(--ah-shadow-card) !important;
  transition: box-shadow 0.28s ease;
}
.contact-form:hover,
.gray-form:hover {
  box-shadow: var(--ah-shadow-md) !important;
}

/* ──────────────────────────────────────────────────────────────────────
   PROGRESS BARS (if used)
   ────────────────────────────────────────────────────────────────────── */
.ah-progress-bar {
  height: 5px;
  background: var(--ah-border);
  border-radius: var(--ah-radius-pill);
  overflow: hidden;
}
.ah-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ah-primary), var(--ah-accent));
  border-radius: var(--ah-radius-pill);
  transform-origin: left center;
  transform: scaleX(0);
}
.ah-progress-bar-fill.is-visible {
  animation: ah-bar-fill 1s var(--ah-ease-out) 0.3s both;
}

/* ──────────────────────────────────────────────────────────────────────
   TOOLTIPS (title attr enhancement via data-tip)
   ────────────────────────────────────────────────────────────────────── */
[data-tip] { position: relative; }
[data-tip]::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ah-secondary);
  color: #fff;
  padding: 5px 11px;
  border-radius: var(--ah-radius);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}
[data-tip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ──────────────────────────────────────────────────────────────────────
   APPLY DEALER / MECHANIC — Step cards
   ────────────────────────────────────────────────────────────────────── */
.apply-step-card {
  border-radius: var(--ah-radius-lg) !important;
  border: 1.5px solid var(--ah-border) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s var(--ah-ease-spring) !important;
}
.apply-step-card:hover {
  border-color: var(--ah-primary) !important;
  box-shadow: var(--ah-shadow-md) !important;
  transform: translateY(-3px) !important;
}

/* ──────────────────────────────────────────────────────────────────────
   COMING SOON — Animated countdown
   ────────────────────────────────────────────────────────────────────── */
.ah-countdown-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ah-radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  animation: ah-scale-in 0.5s ease both;
  transition: transform 0.25s var(--ah-ease-spring), background 0.25s ease;
}
.ah-countdown-box:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-3px);
}

/* ──────────────────────────────────────────────────────────────────────
   MOBILE — Touch-optimised tap states
   ────────────────────────────────────────────────────────────────────── */
@media (hover: none) {
  .car-item:hover { transform: none !important; }
  .car-item:active { transform: scale(0.98) !important; }
  .button:active   { transform: scale(0.97) !important; }
}

/* ──────────────────────────────────────────────────────────────────────
   REDUCED MOTION — Accessibility first
   ────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ah-reveal, .ah-reveal-left, .ah-reveal-right, .ah-reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────
   PRINT — strip all motion
   ────────────────────────────────────────────────────────────────────── */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ah-reveal, .ah-reveal-left, .ah-reveal-right, .ah-reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   PERFORMANCE & SLEEK POLISH — Added for faster paint + premium feel
   ══════════════════════════════════════════════════════════════════════ */

/* ── Navbar ─────────────────────────────────────────────────────────── */
#header:not(.ah-site-header),
.navbar,
.ah-navbar {
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  background-color: rgba(255,255,255,0.88) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: background-color 0.28s ease, box-shadow 0.28s ease;
}
#header.ah-scrolled,
.ah-navbar.ah-scrolled {
  background-color: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.10);
}

/* ── Car cards ──────────────────────────────────────────────────────── */
.car-item {
  border-radius: var(--ah-radius-lg) !important;
  overflow: hidden;
  box-shadow: var(--ah-shadow-card);
  transition:
    transform 0.28s var(--ah-ease-spring),
    box-shadow 0.28s var(--ah-ease);
}
.car-item:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: var(--ah-shadow-hover);
}

/* image zoom on hover */
.car-item .car-image {
  overflow: hidden;
}
.car-item .car-image img {
  transition: transform 0.45s var(--ah-ease);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.car-item:hover .car-image img {
  transform: scale(1.07);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.button,
.btn,
button[type="submit"] {
  transition:
    transform 0.18s var(--ah-ease-spring),
    box-shadow 0.22s var(--ah-ease),
    background-color 0.22s ease,
    color 0.18s ease !important;
}
.button:hover,
.btn-primary:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,.30);
}
.button:active,
.btn:active {
  transform: translateY(0) scale(0.97);
}

/* ── Form inputs ────────────────────────────────────────────────────── */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease !important;
  border-radius: var(--ah-radius-sm) !important;
}
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ah-primary) !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.14) !important;
  outline: none !important;
}

/* ── Cards ──────────────────────────────────────────────────────────── */
.card {
  border: none !important;
  border-radius: var(--ah-radius-lg) !important;
  box-shadow: var(--ah-shadow-card);
  transition:
    transform 0.24s var(--ah-ease-spring),
    box-shadow 0.24s var(--ah-ease);
}
.card:hover {
  box-shadow: var(--ah-shadow-md);
}

/* ── Section backgrounds ────────────────────────────────────────────── */
.page-section-ptb,
.section-ptb {
  /* add subtle background variation to alternate sections */
}
.page-section-ptb:nth-of-type(even) {
  background: #fff;
}

/* ── Inner-intro / page banners ─────────────────────────────────────── */
.inner-intro {
  padding: 48px 0 18px;
  position: relative;
  overflow: hidden;
}
.inner-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  letter-spacing: -0.04em;
}

/* ── Typography scale ───────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.4rem) !important; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem) !important; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.8rem) !important; }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem) !important; }

/* ── Links ──────────────────────────────────────────────────────────── */
a {
  transition: color 0.18s ease, opacity 0.18s ease;
}

/* ── Skeleton / image shimmer ───────────────────────────────────────── */
.car-image:not(.img-loaded) img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: ah-skeleton 1.4s ease infinite;
}
@keyframes ah-skeleton {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* ── Focus-visible ring (keyboard accessibility) ────────────────────── */
:focus-visible {
  outline: 2px solid #c0392b;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Selection colour ───────────────────────────────────────────────── */
::selection {
  background: rgba(192,57,43,.18);
  color: #c0392b;
}

/* ── Smooth scroll anchor offset (sticky header compensation) ───────── */
[id] { scroll-margin-top: calc(var(--ah-header-h) + 16px); }

/* ── Fade-in utility (applied via JS after first render) ────────────── */
body.ah-ready .ah-site-content { animation: ah-body-in 0.38s ease both; }
@keyframes ah-body-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ── Mobile: tighten spacing ────────────────────────────────────────── */
@media (max-width: 767px) {
  .page-section-ptb { padding: 48px 0 !important; }
  .car-item:hover { transform: translateY(-3px) scale(1.005); }
  .button:hover   { transform: translateY(-1px); }
  h1 { letter-spacing: -0.03em; }
}

/* ── Reduced-motion override ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .car-item:hover,
  .card:hover,
  .button:hover { transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   Notification Bell — Navbar widget
   ══════════════════════════════════════════════════════════════════════ */

.ah-notif-wrap { position: relative; }

/* Bell button */
.ah-notif-bell {
  position: relative;
  background: rgba(0,0,0,.05);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #374151;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.ah-notif-bell:hover { background: rgba(192,57,43,.10); color: #c0392b; transform: scale(1.08); }
.ah-notif-bell.active { background: rgba(192,57,43,.12); color: #c0392b; }

/* Badge */
.ah-notif-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #c0392b; color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  animation: ah-badge-pop 0.35s var(--ah-ease-spring) both;
}
@keyframes ah-badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Dropdown panel */
.ah-notif-panel {
  position: absolute; top: calc(100% + 12px); right: -8px;
  width: 340px; max-width: min(340px, calc(100vw - 24px));
  max-height: 460px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden; display: flex; flex-direction: column;
  z-index: 9999;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  pointer-events: none;
  box-sizing: border-box;
}
.ah-notif-panel.open {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  pointer-events: all;
}
/* Arrow */
.ah-notif-panel::before {
  content: '';
  position: absolute; top: -6px; right: 18px;
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid rgba(0,0,0,.06); border-top: 1px solid rgba(0,0,0,.06);
  transform: rotate(45deg);
}

/* Panel head */
.ah-notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ah-notif-panel-head .fw-bold { font-size: .9rem; color: #111827; }

.ah-notif-mark-all {
  background: none; border: none;
  font-size: .75rem; color: #c0392b; font-weight: 600; cursor: pointer;
  padding: 0; transition: opacity .15s ease;
}
.ah-notif-mark-all:hover { opacity: .75; }

/* List */
.ah-notif-list { overflow-y: auto; flex: 1; }
.ah-notif-loading { padding: 28px; text-align: center; color: #9ca3af; font-size: 1.2rem; }

/* Individual item */
.ah-notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 18px;
  border-bottom: 1px solid #f9fafb;
  cursor: default;
  transition: background .14s ease;
  position: relative;
}
.ah-notif-item:last-child { border-bottom: none; }
.ah-notif-item.unread { background: #fdf5f5; }
.ah-notif-item:hover { background: #f9fafb; }

.ah-notif-item-icon {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff;
}
.ah-notif-item-body { flex: 1; min-width: 0; }
.ah-notif-item-title { font-weight: 700; font-size: .82rem; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-notif-item-msg   { font-size: .77rem; color: #6b7280; margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ah-notif-item-time  { font-size: .72rem; color: #9ca3af; }
.ah-notif-item-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #c0392b;
  flex-shrink: 0; margin-top: 5px;
}
.ah-notif-item-dot.read { background: transparent; }

/* Empty state */
.ah-notif-empty { padding: 36px 18px; text-align: center; color: #9ca3af; }
.ah-notif-empty i { font-size: 2rem; display: block; margin-bottom: 8px; }
.ah-notif-empty p { font-size: .82rem; margin: 0; }

/* Footer link */
.ah-notif-see-all {
  display: block; text-align: center;
  padding: 12px; font-size: .8rem; font-weight: 600; color: #c0392b;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  transition: background .14s ease;
}
.ah-notif-see-all:hover { background: #fdf5f5; color: #c0392b !important; }

/* Mobile / PWA: full-screen portal above PWA update overlay (z-index 100000) */
.ah-notif-portal {
  position: fixed;
  inset: 0;
  z-index: 101000;
  pointer-events: none;
  display: none;
}
.ah-notif-portal.ah-notif-portal--open {
  display: block;
  pointer-events: auto;
}
@media (max-width: 767px) {
  .ah-notif-portal .ah-notif-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, 0.45);
    -webkit-tap-highlight-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
  }
  .ah-notif-portal .ah-notif-backdrop[hidden] {
    display: none !important;
  }
  .ah-notif-portal .ah-notif-panel {
    position: fixed !important;
    top: calc(var(--ah-header-h, 64px) + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: min(70vh, 480px) !important;
    border-radius: 14px;
    z-index: 1 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
  }
  .ah-notif-portal .ah-notif-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
  }
  .ah-notif-portal .ah-notif-panel::before {
    display: none;
  }
  body.ah-notif-open {
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  /* Legacy: panel still in header before JS mount (first paint) */
  .ah-notif-wrap .ah-notif-panel {
    position: fixed !important;
    top: calc(var(--ah-header-h, 64px) + 8px) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    max-height: min(70vh, 480px) !important;
    border-radius: 14px;
    z-index: 101001 !important;
    transform: translateY(-6px);
  }
  .ah-notif-wrap .ah-notif-panel.open {
    transform: translateY(0);
  }
  .ah-notif-wrap .ah-notif-panel::before {
    display: none;
  }
}

/* Legacy narrow breakpoint — fixed sheet rules live in the 767px query above */

/* ── Inbox icon in navbar ─────────────────────────────────────────────────── */
.ah-inbox-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #374151; text-decoration: none;
  transition: background .18s, transform .18s;
}
.ah-inbox-btn:hover { background: rgba(192,57,43,.10); color: #c0392b; transform: scale(1.08); }
.ah-inbox-btn.is-active { background: var(--ah-primary-soft); color: var(--ah-primary); }

/* ============================================================
   ACCOUNT SETTINGS — profile & security
   ============================================================ */
.ah-ac-container { max-width: 1080px; }

/* Alerts (reuse global .alert, just add slide-in) */
.ah-ac-alerts { margin-bottom: 1.5rem; }
.ah-ac-alerts .alert { animation: ah-ac-slide-in .3s ease; }
@keyframes ah-ac-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Profile hero — extends the site's .ah-dash-welcome pattern ── */
.ah-ac-hero {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem;
}
.ah-ac-hero-left { display: flex; align-items: center; gap: 1.1rem; position: relative; z-index: 1; }
.ah-ac-avatar {
  width: 64px; height: 64px; border-radius: var(--ah-radius-lg);
  background: linear-gradient(135deg, var(--ah-primary-light), var(--ah-primary-dark));
  color: #fff; font-size: 26px; font-weight: 800;
  font-family: var(--ah-font-display);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.45);
  border: 2px solid rgba(255,255,255,.15);
}
.ah-ac-hero-name {
  font-size: 1.3rem !important; font-weight: 800 !important;
  color: #fff !important; margin: 0 0 4px !important;
  letter-spacing: -0.03em; line-height: 1.2;
}
.ah-ac-hero-email {
  margin: 0 0 10px; font-size: 13.5px; color: rgba(255,255,255,.62);
}
.ah-ac-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-ac-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: var(--ah-radius-pill);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.14);
}
.ah-ac-chip--role {
  background: rgba(94, 234, 212, 0.18);
  border-color: rgba(94, 234, 212, 0.35);
  color: #99f6e4;
}
.ah-ac-hero-actions { position: relative; z-index: 1; display: flex; gap: 10px; }

/* ── Quick links — small utility row, not metric cards ── */
.ah-ac-quicklinks {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 1.75rem;
}
.ah-ac-quicklink {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: var(--ah-radius-lg) !important;
  background: var(--ah-card); text-decoration: none !important;
  border: 1px solid var(--ah-border);
  box-shadow: var(--ah-shadow-card);
  transition: transform var(--ah-t), box-shadow var(--ah-t-lg), border-color var(--ah-t);
}
.ah-ac-quicklink:hover {
  transform: translateY(-3px);
  box-shadow: var(--ah-shadow-hover);
  border-color: var(--ah-primary-medium);
}
.ah-ac-quicklink-icon {
  width: 38px; height: 38px; border-radius: var(--ah-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.ah-ac-quicklink-icon--teal   { background: var(--ah-primary-soft); color: var(--ah-primary); }
.ah-ac-quicklink-icon--amber  { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.ah-ac-quicklink-icon--blue   { background: rgba(59, 130, 246, 0.10); color: #2563EB; }
.ah-ac-quicklink-icon--purple { background: rgba(139, 92, 246, 0.10); color: #7C3AED; }
.ah-ac-quicklink-label {
  font-size: 13px; font-weight: 700; color: var(--ah-secondary);
  line-height: 1.15;
}
.ah-ac-quicklink-sub {
  font-size: 11px; color: var(--ah-text-light); font-weight: 500;
}

/* ── Layout ── */
.ah-ac-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 1.5rem; align-items: start;
}
.ah-ac-sidebar { position: sticky; top: calc(var(--ah-header-h) + 16px); }
.ah-ac-sidenav {
  list-style: none; margin: 0; padding: 6px;
  background: var(--ah-card); border: 1px solid var(--ah-border);
  border-radius: var(--ah-radius-lg) !important;
  box-shadow: var(--ah-shadow-card);
}
.ah-ac-sidenav li { list-style: none !important; }
.ah-ac-sidenav li + li { margin-top: 2px; }
.ah-ac-sidenav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--ah-radius);
  font-size: 13px; font-weight: 600; color: var(--ah-text-muted) !important;
  text-decoration: none !important;
  transition: background var(--ah-t), color var(--ah-t);
}
.ah-ac-sidenav a i { width: 16px; text-align: center; font-size: 13px; }
.ah-ac-sidenav a:hover { background: var(--ah-surface); color: var(--ah-secondary) !important; }
.ah-ac-sidenav a.is-active {
  background: var(--ah-primary-soft); color: var(--ah-primary-dark) !important;
}
.ah-ac-sidenav-divider { height: 1px; background: var(--ah-border); margin: 6px 8px; }

/* ── Settings cards (reuse .card + .ah-dash-section-head) ── */
.ah-ac-card { margin-bottom: 1.5rem; scroll-margin-top: calc(var(--ah-header-h) + 16px); overflow: hidden; }
.ah-ac-card:last-child { margin-bottom: 0; }
.ah-ac-card-body { padding: 1.5rem; }
.ah-ac-card-icon {
  width: 34px; height: 34px; border-radius: var(--ah-radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ah-primary-soft); color: var(--ah-primary);
  font-size: 14px; margin-right: 10px;
}

.ah-ac-fieldset { margin-bottom: 1.75rem; }
.ah-ac-fieldset:last-of-type { margin-bottom: 0; }
.ah-ac-fieldset-title {
  font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--ah-text-light) !important;
  margin: 0 0 14px !important;
}
.ah-ac-readonly-field .form-control {
  background: var(--ah-surface) !important;
  color: var(--ah-text-muted) !important;
  cursor: default;
}
.ah-ac-form textarea.form-control { resize: vertical; min-height: 78px; }

.ah-ac-actions {
  display: flex; align-items: center; gap: 12px;
  padding-top: 0.25rem;
}

/* ── Password fields ── */
.ah-ac-pw-group { position: relative; }
.ah-ac-pw-group .form-control { padding-right: 42px !important; }
.ah-ac-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; border-radius: var(--ah-radius-sm);
  background: transparent; color: var(--ah-text-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color var(--ah-t), background var(--ah-t);
}
.ah-ac-pw-toggle:hover { background: var(--ah-surface); color: var(--ah-primary); }
.ah-ac-strength { display: flex; gap: 4px; margin-top: 10px; }
.ah-ac-strength-bar { flex: 1; height: 4px; border-radius: var(--ah-radius-pill); background: var(--ah-border); transition: background .25s; }
.ah-ac-strength-bar.is-weak   { background: #EF4444; }
.ah-ac-strength-bar.is-mid    { background: #F59E0B; }
.ah-ac-strength-bar.is-strong { background: #10B981; }
.ah-ac-hint { margin: 8px 0 0; font-size: 12px; font-weight: 700; min-height: 16px; }
.ah-ac-hint.is-ok  { color: #059669; }
.ah-ac-hint.is-bad { color: #DC2626; }

.ah-ac-tip {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--ah-radius);
  background: var(--ah-primary-soft);
  border: 1px solid var(--ah-primary-medium);
  margin-bottom: 1.5rem;
}
.ah-ac-tip i { font-size: 16px; color: var(--ah-primary); margin-top: 2px; flex-shrink: 0; }
.ah-ac-tip p { margin: 0; font-size: 12.5px; color: var(--ah-navy); line-height: 1.5; }

.ah-ac-forgot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--ah-border);
  font-size: 13px; color: var(--ah-text-muted);
}
.ah-ac-forgot a { font-weight: 700; color: var(--ah-primary); text-decoration: none; }
.ah-ac-forgot a:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .ah-ac-layout { grid-template-columns: 1fr; }
  .ah-ac-sidebar { position: static; }
  .ah-ac-sidenav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .ah-ac-sidenav li { flex: 1 1 auto; }
  .ah-ac-sidenav li + li { margin-top: 0; }
  .ah-ac-sidenav-divider { display: none; }
  .ah-ac-sidenav a { justify-content: center; white-space: nowrap; }
}
@media (max-width: 767px) {
  .ah-ac-hero { text-align: left; padding: 1.5rem 1.5rem; margin-bottom: 1.25rem; }
  .ah-ac-hero-actions { width: 100%; }
  .ah-ac-hero-actions .button { flex: 1; }
  .ah-ac-quicklinks { grid-template-columns: repeat(2, 1fr); margin-bottom: 1.25rem; }
  .ah-ac-card-body { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .ah-ac-hero { padding: 1.25rem 1.1rem; }
  .ah-ac-hero-left { width: 100%; }
  .ah-ac-avatar { width: 54px; height: 54px; font-size: 22px; }
  .ah-ac-hero-chips { gap: 6px; }
  .ah-ac-quicklink { padding: 11px 12px; }
}

.ah-inbox-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #2563eb; color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  animation: ah-pulse .8s ease-in-out 2;
}

/* ============================================================
   MOBILE RESPONSIVENESS — site-wide touch & layout fixes
   ============================================================ */
img, video, iframe { max-width: 100%; height: auto; }

@media (max-width: 991px) {
  .ah-nav-actions { gap: 0.5rem !important; }
  .ah-nav-logo-img { max-height: 42px; width: auto; }
}

@media (max-width: 767px) {
  .ah-action-btn {
    width: 44px; height: 44px;
    font-size: 14px;
  }
  .ah-action-group { gap: 8px; }
  .ah-inbox-btn,
  .ah-notif-bell {
    width: 44px; height: 44px;
  }
  .page-section-ptb { padding-top: 40px !important; padding-bottom: 40px !important; }
  .inner-intro h1 { font-size: clamp(1.25rem, 5vw, 1.75rem) !important; }
}

@media (max-width: 480px) {
  .ah-nav-actions { gap: 0.35rem !important; }
  .ah-inbox-btn,
  .ah-notif-bell {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

/* ── Featured Vehicles (home.html) — 2 cards per row on phones ── */
@media (max-width: 767px) {
  .ah-featured-section .row.g-4 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  .car-item.vehicle-showcase-6 .car-content { padding: 0.9rem !important; }
  .car-item.vehicle-showcase-6 .item-title a {
    font-size: 0.875rem !important;
    min-height: auto !important;
    -webkit-line-clamp: 2 !important;
  }
  .car-item .car-attribute-subtitle { font-size: 9.5px !important; margin-bottom: 4px !important; }
  .car-item .car-description { display: none !important; }
  .car-item .car-list { padding: 8px 10px !important; }
  .car-item .car-list li { font-size: 11px !important; padding: 0 6px !important; }
  .car-item .price.car-price {
    padding: 4px 10px !important;
    bottom: 8px !important;
    right: 8px !important;
    left: auto !important;
    background: rgba(15, 23, 42, 0.48) !important;
  }
  .car-item .price.car-price .new-price,
  .car-item .price.car-price bdi.new-price { font-size: 0.82rem !important; }
}

/* ── Home page marketplace sections — 2 cards per row on phones ── */
@media (max-width: 767px) {
  .ah-home-market-section .row.g-4 { --bs-gutter-x: 0.75rem; --bs-gutter-y: 0.75rem; }
  .ah-home-market-section .ah-market-card .card-body { padding: 0.9rem !important; }
  .ah-home-market-section .ah-market-card .card-title { font-size: 0.875rem !important; margin-bottom: 4px !important; }
  .ah-home-market-section .ah-market-card .card-text,
  .ah-home-market-section .ah-market-card p { font-size: 0.78rem !important; }
}

/* PWA / installed app — no hamburger menu, keep quick actions in header */
html.ah-pwa-mode .ah-inbox-btn,
html.ah-pwa-mode .ah-notif-wrap {
  display: flex !important;
}
html.ah-pwa-mode .ah-nav-actions {
  gap: 0.35rem !important;
}

/* ============================================================
   AI CHAT ASSISTANT — floating widget
   ============================================================ */
.ah-ai-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9998;
  font-family: var(--ah-font, 'DM Sans', sans-serif);
}

.ah-ai-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 14px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ah-ai-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(192, 57, 43, 0.5); }
.ah-ai-fab-icon { font-size: 1.15rem; }
.ah-ai-fab-close { display: none; font-size: 1.1rem; }
.ah-ai-fab.is-open .ah-ai-fab-icon { display: none; }
.ah-ai-fab.is-open .ah-ai-fab-close { display: block; }
.ah-ai-fab.is-open .ah-ai-fab-label { display: none; }
.ah-ai-fab-label { font-size: 0.88rem; font-weight: 700; white-space: nowrap; }

.ah-ai-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  pointer-events: none;
}
.ah-ai-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ah-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  flex-shrink: 0;
}
.ah-ai-panel-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ah-ai-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(192, 57, 43, 0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ah-ai-panel-title { display: block; font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.ah-ai-panel-sub { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 2px; }
.ah-ai-close {
  width: 36px; height: 36px; border: none; border-radius: 10px;
  background: rgba(255,255,255,0.1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ah-ai-close:hover { background: rgba(255,255,255,0.2); }

.ah-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  background: #f8fafc;
  min-height: 200px;
  max-height: 320px;
  scroll-behavior: smooth;
}
.ah-ai-msg { margin-bottom: 12px; display: flex; flex-direction: column; }
.ah-ai-msg-user { align-items: flex-end; }
.ah-ai-msg-bot { align-items: flex-start; }
.ah-ai-msg-bubble {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}
.ah-ai-msg-user .ah-ai-msg-bubble {
  background: #c0392b;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ah-ai-msg-bot .ah-ai-msg-bubble {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.ah-ai-msg-bubble a { color: #c0392b; font-weight: 600; }
.ah-ai-msg-user .ah-ai-msg-bubble a { color: #fff; text-decoration: underline; }

.ah-ai-car-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 92%; }
.ah-ai-car-card {
  display: block;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ah-ai-car-card:hover { border-color: #c0392b; box-shadow: 0 2px 10px rgba(192,57,43,0.12); }
.ah-ai-car-title { display: block; font-size: 0.8rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.ah-ai-car-meta { display: block; font-size: 0.72rem; color: #64748b; margin-top: 2px; }

.ah-ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.ah-ai-chip {
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.ah-ai-chip:hover { border-color: #c0392b; color: #c0392b; background: #fff8f8; }

.ah-ai-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.ah-ai-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: #0f172a;
  resize: none;
  outline: none;
  font-family: inherit;
  max-height: 120px;
  line-height: 1.4;
}
.ah-ai-input:focus { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.ah-ai-send {
  width: 44px; height: 44px;
  border: none; border-radius: 12px;
  background: #c0392b; color: #fff;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.15s;
}
.ah-ai-send:hover:not(:disabled) { background: #a93226; }
.ah-ai-send:disabled { opacity: 0.55; cursor: not-allowed; }

.ah-ai-typing .ah-ai-msg-bubble { color: #64748b; font-style: italic; }

/* Stack back-to-top above AI fab when both are bottom-right */
body:has(.ah-ai-chat) .car-top {
  bottom: 92px !important;
}

@media (max-width: 576px) {
  .ah-ai-chat {
    bottom: 16px;
    right: 16px;
    left: auto;
  }
  .ah-ai-panel {
    width: min(380px, calc(100vw - 32px));
    right: 0;
    left: auto;
    max-height: calc(100vh - 100px);
  }
  .ah-ai-messages { max-height: 45vh; }
  /* Collapse to an icon-only circle so the fab can't blanket page content
     (cards, quick links) that happens to sit in its fixed-position zone. */
  .ah-ai-fab {
    width: 52px;
    height: 52px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .ah-ai-fab-label { display: none; }
  body:has(.ah-ai-chat) .car-top { bottom: 80px !important; }
}

/* ============================================================
   PWA — Install banner + installed app shell
   ============================================================ */

/* Install popup (home, mobile browser) */
.ah-pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 9997;
  pointer-events: none;
  animation: ah-pwa-install-in 0.45s var(--ah-ease-out) both;
}
html.ah-pwa-mode .ah-pwa-install,
html.ah-mobile-shell .ah-pwa-install {
  bottom: calc(12px + var(--ah-tab-bar-h, 62px));
  z-index: 10004;
}
.ah-pwa-install.is-visible {
  display: block !important;
  pointer-events: all;
}
.ah-pwa-install[hidden] { display: none !important; }

.ah-pwa-install-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--ah-border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.ah-pwa-install-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: var(--ah-surface);
  color: var(--ah-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.ah-pwa-install-close:hover { background: var(--ah-surface-2); color: var(--ah-text); }

.ah-pwa-install-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}
.ah-pwa-install-icon {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.22);
  flex-shrink: 0;
}
.ah-pwa-install-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ah-pwa-install-copy strong {
  font-size: 0.92rem;
  color: var(--ah-secondary);
  line-height: 1.25;
}
.ah-pwa-install-copy span {
  font-size: 0.78rem;
  color: var(--ah-text-muted);
  line-height: 1.35;
}

.ah-pwa-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-primary-dark) 100%);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--ah-shadow-teal);
  transition: transform 0.18s var(--ah-ease-spring), box-shadow 0.18s ease;
}
.ah-pwa-install-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35); }

@keyframes ah-pwa-install-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* iOS install instructions sheet */
.ah-pwa-ios-sheet[hidden] { display: none !important; }
.ah-pwa-ios-sheet {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ah-pwa-ios-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 14, 28, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ah-pwa-ios-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  animation: ah-pwa-sheet-up 0.32s var(--ah-ease-out) both;
}
.ah-pwa-ios-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--ah-border);
  margin: 0 auto 14px;
}
.ah-pwa-ios-panel h3 {
  font-size: 1.05rem !important;
  margin-bottom: 14px !important;
  text-align: center;
}
.ah-pwa-ios-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ah-pwa-ios-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--ah-surface);
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--ah-text);
}
.ah-pwa-ios-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ah-primary-soft);
  color: var(--ah-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@keyframes ah-pwa-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* Bottom tab bar — installed PWA only */
.ah-app-tabbar {
  display: none;
}

html.ah-pwa-mode {
  --ah-header-h: 56px;
  --ah-tab-bar-h: calc(62px + env(safe-area-inset-bottom, 0px));
}

html.ah-mobile-shell {
  --ah-header-h: 56px;
  --ah-tab-bar-h: calc(62px + env(safe-area-inset-bottom, 0px));
}

html.ah-pwa-mode body.ah-site,
html.ah-mobile-shell body.ah-site {
  padding-bottom: var(--ah-tab-bar-h);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  background: var(--ah-surface);
}

html.ah-pwa-mode .ah-app-tabbar,
html.ah-mobile-shell .ah-app-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10005;
  height: var(--ah-tab-bar-h);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--ah-border);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  overflow: visible;
  align-items: flex-end;
}

.ah-app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 4px 2px;
  border-radius: 12px;
  text-decoration: none !important;
  color: var(--ah-text-muted) !important;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, background 0.18s ease;
}
.ah-app-tab i { font-size: 1.15rem; line-height: 1; }
.ah-app-tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ah-app-tab:not(.is-active) {
  color: var(--ah-text-muted) !important;
  background: transparent !important;
}
.ah-app-tab.is-active {
  color: var(--ah-primary) !important;
  background: var(--ah-primary-soft);
}
.ah-app-tab.is-active i { color: var(--ah-primary) !important; }
.ah-app-tab:not(.is-active) i { color: var(--ah-text-muted) !important; }
.ah-app-tab:focus { outline: none; }
.ah-app-tab:focus-visible {
  outline: 2px solid var(--ah-primary);
  outline-offset: 2px;
}
.ah-app-tab-center {
  position: relative;
  z-index: 2;
  flex: 1.12;
  min-height: 48px;
  padding-top: 22px;
  overflow: visible;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ah-app-tab-fab {
  width: 50px;
  height: 50px;
  margin-top: -26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-primary-dark) 100%);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.45);
  border: 3px solid #fff;
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.ah-app-tab-fab i,
.ah-app-tab-fab .fa {
  color: #fff !important;
  font-size: 1.4rem !important;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}
.ah-app-tab-center:not(.is-active) .ah-app-tab-fab i,
.ah-app-tab-center.is-active .ah-app-tab-fab i {
  color: #fff !important;
}
.ah-app-tab-center .ah-app-tab-label {
  pointer-events: none;
  position: relative;
  z-index: 1;
}
/* Extended tap target — FAB sits above the bar; clicks must hit the <a> */
.ah-app-tab-center::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  z-index: 0;
}
.ah-app-tab-center.is-active .ah-app-tab-fab {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.48);
}

/* Instant tap feedback (Flutter-like) */
html.ah-pwa-mode .ah-app-tab,
html.ah-mobile-shell .ah-app-tab {
  transition: transform 0.12s ease, color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
html.ah-pwa-mode .ah-app-tab:active,
html.ah-mobile-shell .ah-app-tab:active,
html.ah-pwa-mode .ah-app-tab.ah-tap-active,
html.ah-mobile-shell .ah-app-tab.ah-tap-active {
  transform: scale(0.9);
}
html.ah-pwa-mode .ah-app-tab-center:active .ah-app-tab-fab,
html.ah-mobile-shell .ah-app-tab-center:active .ah-app-tab-fab,
html.ah-pwa-mode .ah-app-tab-center.ah-tap-active .ah-app-tab-fab,
html.ah-mobile-shell .ah-app-tab-center.ah-tap-active .ah-app-tab-fab {
  transform: scale(0.94);
}

html.ah-pwa-mode a.ah-tap-active,
html.ah-mobile-shell a.ah-tap-active {
  opacity: 0.72;
  transition: opacity 0.08s ease;
}

/* Top navigation progress bar */
.ah-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 100010;
  background: linear-gradient(90deg, var(--ah-primary), var(--ah-primary-light));
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.55);
  pointer-events: none;
  transition: width 0.35s ease, opacity 0.25s ease;
}
.ah-nav-progress.is-active {
  width: 72%;
  opacity: 1;
  animation: ah-nav-progress-pulse 1.1s ease-in-out infinite;
}
.ah-nav-progress.is-slow {
  width: 88%;
}
.ah-nav-progress.is-complete {
  width: 100% !important;
  opacity: 0;
  animation: none;
}
@keyframes ah-nav-progress-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

html.ah-nav-pending body.ah-site > :not(.ah-app-tabbar):not(#ahNavProgress):not(#header):not(script):not(style) {
  transition: opacity 0.12s ease;
}
html.ah-nav-pending .clp,
html.ah-nav-pending .page-section-ptb,
html.ah-nav-pending #content,
html.ah-nav-pending main {
  opacity: 0.55;
  pointer-events: none;
}
html.ah-nav-pending .ah-app-tabbar,
html.ah-nav-pending #header {
  opacity: 1;
  pointer-events: auto;
}

/* Faster first paint in app shell — skip long white fullscreen after first visit */
html.ah-pwa-mode #loading.ah-loaded,
html.ah-mobile-shell #loading.ah-loaded {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
html.ah-pwa-mode body,
html.ah-mobile-shell body {
  transition: opacity 0.22s ease;
}

/* Compact app header in standalone mode */
html.ah-pwa-mode #header.ah-site-header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--ah-border) !important;
  box-shadow: none !important;
}
html.ah-pwa-mode .ah-nav-logo-img { max-height: 38px !important; }
@media (min-width: 992px) {
  html.ah-pwa-mode .ah-hamburger { display: none !important; }
}
html.ah-pwa-mode .mega-menu .menu-links { display: none !important; }
html.ah-pwa-mode .ah-nav-cta-group { display: none !important; }
html.ah-pwa-mode .ah-nav-inner {
  min-height: var(--ah-header-h) !important;
  justify-content: center !important;
}
html.ah-pwa-mode .header-left {
  width: 100%;
  justify-content: center !important;
}
html.ah-pwa-mode .header-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
html.ah-pwa-mode .car-top { display: none !important; }
html.ah-mobile-shell .car-top { display: none !important; }

html.ah-pwa-mode .ah-ai-chat {
  bottom: calc(var(--ah-tab-bar-h) + 12px);
  right: 16px;
  left: auto;
}
html.ah-mobile-shell .ah-ai-chat {
  bottom: calc(var(--ah-tab-bar-h) + 12px);
  right: 16px;
  left: auto;
  z-index: 10003;
}
html.ah-pwa-mode .ah-ai-panel {
  max-height: calc(100vh - var(--ah-tab-bar-h) - var(--ah-header-h) - 40px);
}
html.ah-mobile-shell .ah-ai-panel {
  max-height: calc(100vh - var(--ah-tab-bar-h) - var(--ah-header-h) - 40px);
}

/* Card-style sections in app mode */
html.ah-pwa-mode .page-section-ptb {
  padding-top: 28px !important;
  padding-bottom: 28px !important;
}
html.ah-pwa-mode .car-item,
html.ah-pwa-mode .card {
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}
html.ah-pwa-mode .inner-intro {
  min-height: 100px;
  padding: 18px 0 !important;
}
html.ah-pwa-mode .container,
html.ah-pwa-mode .ah-nav-container {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

/* Hide install banner when already in app mode */
html.ah-pwa-mode .ah-pwa-install { display: none !important; }

@media (min-width: 768px) {
  .ah-pwa-install { display: none !important; }
}

@media (max-width: 767px) {
  /* Plain mobile browser (no bottom tab bar) — anchor to the screen edge. */
  html:not(.ah-pwa-mode):not(.ah-mobile-shell) .ah-pwa-install.is-visible {
    display: block !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
  }
  /* Mobile-shell (bottom tab bar present) — keep it lifted above the tab bar
     so the tab bar (z-index 10005) doesn't hide the banner/its button. */
  html.ah-mobile-shell .ah-pwa-install.is-visible {
    display: block !important;
    bottom: calc(12px + var(--ah-tab-bar-h, 62px));
    z-index: 10004;
  }
}

/* PWA forced update overlay */
html.ah-pwa-update-lock,
body.ah-pwa-update-lock {
  overflow: hidden !important;
  touch-action: none;
}
.ah-pwa-update {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ah-pwa-update[hidden] { display: none !important; }
.ah-pwa-update:not([hidden]) { display: flex !important; }
.ah-pwa-update-card {
  width: min(100%, 380px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
}
.ah-pwa-update-icon img {
  border-radius: 14px;
  margin-bottom: 14px;
}
.ah-pwa-update-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
}
.ah-pwa-update-text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 12px;
}
.ah-pwa-update-subtext {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: -6px 0 12px;
}
.ah-pwa-update-countdown {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 16px;
}
.ah-pwa-update-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0D9488 0%, #0f766e 100%);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}
.ah-pwa-update-btn:hover { filter: brightness(0.96); }

/* ============================================================
   Marketplace — spare parts, rentals, verified badge
   ============================================================ */
.ah-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669 !important;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
  white-space: nowrap;
}
.ah-verified-badge i { color: #10b981; font-size: 0.85rem; }

.ah-market-card {
  border: none;
  border-radius: var(--ah-radius-lg);
  overflow: hidden;
  box-shadow: var(--ah-shadow-card);
  transition: transform 0.22s var(--ah-ease-spring), box-shadow 0.22s ease;
}
.ah-market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ah-shadow-md);
}
.ah-market-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ah-market-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-surface-2);
  color: var(--ah-text-light);
  aspect-ratio: 4 / 3;
}

/* Rentals list — smaller card titles (e.g. "Toyota Land Cruiser V8") */
.ah-rentals-list .ah-rental-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Home page marketplace sections (rentals, spare parts, mechanics) ── */
.ah-home-market-section--alt { background: var(--ah-surface-1, #F4F7FB); }
.ah-home-market-section .mechanic-card.ah-market-card .card-body { display: flex; flex-direction: column; }
.ah-home-market-section .mechanic-card.ah-market-card .button.btn-sm { margin-top: auto; align-self: flex-start; }
.ah-detail-main-img { width: 100%; max-height: 420px; object-fit: cover; }
.ah-detail-thumb { width: 72px; height: 72px; object-fit: cover; }

/* ── Spare part detail (product page) ── */
.spd {
  background: linear-gradient(180deg, var(--ah-surface-1, #F4F7FB) 0%, #fff 220px);
  padding: 1.25rem 0 3rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
}
html.ah-pwa-mode .spd {
  padding-bottom: calc(var(--ah-tab-bar-h, 56px) + 4.5rem);
}
.spd-container {
  max-width: 1180px;
}

/* Heading scale — overrides global h1–h4 !important rules on this page */
.spd h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  letter-spacing: -0.02em !important;
  color: var(--ah-navy) !important;
  margin: 0 0 1rem;
}
.spd h2 {
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
  color: var(--ah-navy) !important;
  margin: 0 0 0.85rem;
}
.spd h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--ah-navy) !important;
  margin: 0 0 0.35rem;
}
.spd h4 {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--ah-navy) !important;
}
.spd h5 {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: var(--ah-navy) !important;
}
.spd h6 {
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: var(--ah-text-light, #64748B) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em !important;
}
.spd-desc-body h1 { font-size: 1.25rem !important; margin: 1rem 0 0.5rem; }
.spd-desc-body h2 { font-size: 1.125rem !important; margin: 1rem 0 0.5rem; }
.spd-desc-body h3 { font-size: 1rem !important; margin: 0.85rem 0 0.4rem; }
.spd-desc-body h4 { font-size: 0.9375rem !important; margin: 0.75rem 0 0.35rem; }
.spd-desc-body h5 { font-size: 0.875rem !important; margin: 0.65rem 0 0.35rem; }
.spd-desc-body h6 { font-size: 0.8125rem !important; margin: 0.65rem 0 0.35rem; }

.spd-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  color: var(--ah-text-light, #64748B);
}
.spd-breadcrumb a {
  color: var(--ah-primary, #0D9488);
  text-decoration: none;
  font-weight: 600;
}
.spd-breadcrumb a:hover { text-decoration: underline; }
.spd-bc-sep { opacity: 0.45; user-select: none; }
.spd-bc-current {
  color: var(--ah-navy, #0F172A);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spd-gallery {
  background: #fff;
  border-radius: var(--ah-radius-lg, 16px);
  border: 1px solid var(--ah-border, #E2E8F0);
  box-shadow: var(--ah-shadow-card, 0 4px 24px rgba(15, 23, 42, 0.06));
  overflow: hidden;
}
.spd-gallery-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ah-surface-2, #EEF2F7);
}
.spd-gallery-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}
.spd-gallery-hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.spd-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  color: var(--ah-text-light);
  font-weight: 600;
}
.spd-gallery-empty i { font-size: 2.5rem; opacity: 0.35; }
.spd-gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  color: var(--ah-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.spd-gal-nav:hover { transform: translateY(-50%) scale(1.05); background: #fff; }
.spd-gal-prev { left: 12px; }
.spd-gal-next { right: 12px; }
.spd-gal-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.spd-thumbstrip {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--ah-border);
}
.spd-thumb {
  flex: 0 0 72px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ah-surface-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.spd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spd-thumb-active {
  border-color: var(--ah-primary, #0D9488);
  box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.25);
}

.spd-panel {
  position: sticky;
  top: calc(var(--ah-header-h, 72px) + 16px);
  background: #fff;
  border-radius: var(--ah-radius-lg, 16px);
  border: 1px solid var(--ah-border);
  box-shadow: var(--ah-shadow-card);
  padding: 1.35rem 1.5rem 1.5rem;
}
.spd-panel-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.85rem;
}
.spd-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.spd-pill-category {
  background: rgba(37, 99, 235, 0.1);
  color: #1D4ED8;
}
.spd-pill-condition--new { background: rgba(16, 185, 129, 0.12); color: #047857; }
.spd-pill-condition--used { background: rgba(245, 158, 11, 0.14); color: #B45309; }
.spd-pill-condition--refurbished { background: rgba(139, 92, 246, 0.12); color: #6D28D9; }

.spd-title {
  /* sizes from .spd h1 */
  margin: 0 0 1rem;
}
.spd-price-block {
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(13, 148, 136, 0.02) 100%);
  border: 1px solid rgba(13, 148, 136, 0.15);
}
.spd-price-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ah-text-light);
  margin-bottom: 0.25rem;
}
.spd-price {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ah-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.spd-price-currency {
  font-size: 0.55em;
  font-weight: 700;
  margin-right: 0.15em;
  opacity: 0.85;
}

.spd-specs {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--ah-border);
  border-radius: 12px;
  overflow: hidden;
}
.spd-specs li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--ah-border);
}
.spd-specs li:last-child { border-bottom: none; }
.spd-spec-k { color: var(--ah-text-light); font-weight: 600; flex-shrink: 0; }
.spd-spec-v { color: var(--ah-navy); font-weight: 600; text-align: right; }
.spd-spec-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; }
.spd-spec-icon { margin-right: 4px; opacity: 0.7; }

.spd-seller {
  padding: 1rem;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  background: var(--ah-surface-1, #F8FAFC);
  border: 1px solid var(--ah-border);
}
.spd-seller-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.spd-seller-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ah-border);
}
.spd-seller-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ah-primary);
  font-size: 1.1rem;
}
.spd-seller-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ah-text-light);
  margin-bottom: 2px;
}
.spd-seller-name a {
  color: var(--ah-navy);
  font-weight: 700;
  text-decoration: none;
}
.spd-seller-name a:hover { color: var(--ah-primary); }
.spd-seller-more {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ah-primary, #0D9488);
  text-decoration: none;
  margin-top: 4px;
}
.spd-seller-more:hover { text-decoration: underline; }
.spd-seller-meta .ah-verified-badge { margin-top: 6px; }
.spd-seller-loc { margin-top: 0.65rem !important; }

.spd-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.spd-btn:active { transform: scale(0.98); }
.spd-btn-primary {
  background: var(--ah-primary, #0D9488);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.28);
}
.spd-btn-primary:hover { filter: brightness(1.05); color: #fff !important; }
.spd-btn-whatsapp {
  background: #25D366;
  color: #fff !important;
}
.spd-btn-whatsapp:hover { filter: brightness(1.04); color: #fff !important; }
.spd-btn-outline {
  background: #fff;
  color: var(--ah-navy) !important;
  border: 1px solid var(--ah-border);
}
.spd-btn-outline:hover { border-color: var(--ah-primary); color: var(--ah-primary) !important; }
.spd-btn-ghost {
  background: transparent;
  color: var(--ah-text-light) !important;
  border: 1px dashed var(--ah-border);
}
.spd-btn-ghost:hover { border-color: var(--ah-primary); color: var(--ah-primary) !important; }

.spd-trust-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--ah-border);
  font-size: 0.8125rem;
  color: var(--ah-text-light);
  line-height: 1.45;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.spd-trust-note i { color: var(--ah-primary); margin-top: 2px; }

.spd-section-title {
  /* sizes from .spd h2 */
  margin-bottom: 0.85rem;
}
.spd-section-title.mb-0 {
  margin-bottom: 0 !important;
}
.spd-desc-card {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border-radius: var(--ah-radius-lg);
  border: 1px solid var(--ah-border);
  box-shadow: var(--ah-shadow-card);
}
.spd-desc-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ah-text, #334155);
}
.spd-desc-body p:last-child { margin-bottom: 0; }

.spd-related {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ah-border);
}
.spd-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
}
.spd-related-all {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ah-primary);
  text-decoration: none;
}
.spd-related-all:hover { text-decoration: underline; }
.spd-related-card {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--ah-border);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.spd-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ah-shadow-md);
}
.spd-related-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.spd-related-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-surface-2);
  color: var(--ah-text-light);
  font-size: 1.5rem;
}
.spd-related-body { padding: 0.75rem 0.85rem 1rem; }
.spd-related-title {
  /* sizes from .spd h3 */
  line-height: 1.3;
}
.spd-related-price {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ah-primary);
}

.spd-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 997;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ah-border);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
}
html.ah-pwa-mode .spd-mobile-bar {
  bottom: var(--ah-tab-bar-h, 56px);
}
.spd-mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none !important;
}
.spd-mobile-bar-btn--call {
  background: var(--ah-primary);
  color: #fff !important;
}
.spd-mobile-bar-btn--wa {
  background: #25D366;
  color: #fff !important;
}
.spd-mobile-bar-btn--msg {
  background: var(--ah-navy);
  color: #fff !important;
  border: none;
}

@media (max-width: 991px) {
  .spd-panel { position: static; }
  .spd { padding-top: 0.75rem; }
}
@media (max-width: 575px) {
  .spd-panel { padding: 1.15rem; }
  .spd-gal-nav { width: 36px; height: 36px; }
}

/* ── Rental detail (product page) — mirrors spd with rental accent ── */
.rtd {
  --rtd-accent: #B91C1C;
  --rtd-accent-soft: rgba(185, 28, 28, 0.1);
  --rtd-accent-border: rgba(185, 28, 28, 0.18);
  background: linear-gradient(180deg, var(--ah-surface-1, #F4F7FB) 0%, #fff 220px);
  padding: 1.25rem 0 3rem;
  padding-bottom: max(3rem, env(safe-area-inset-bottom));
}
html.ah-pwa-mode .rtd {
  padding-bottom: calc(var(--ah-tab-bar-h, 56px) + 4.5rem);
}
.rtd-container { max-width: 1180px; }

.rtd h1 { font-size: clamp(1.25rem, 2.2vw, 1.5rem) !important; font-weight: 800 !important; line-height: 1.28 !important; color: var(--ah-navy) !important; margin: 0 0 0.35rem; }
.rtd h2 { font-size: 1.125rem !important; font-weight: 800 !important; color: var(--ah-navy) !important; margin: 0 0 0.85rem; }
.rtd h3 { font-size: 1rem !important; font-weight: 700 !important; color: var(--ah-navy) !important; margin: 0 0 0.35rem; }

.rtd-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem;
  font-size: 0.8125rem; margin-bottom: 1.25rem; color: var(--ah-text-light, #64748B);
}
.rtd-breadcrumb a { color: var(--rtd-accent); font-weight: 600; text-decoration: none; }
.rtd-breadcrumb a:hover { text-decoration: underline; }
.rtd-bc-sep { opacity: 0.45; }
.rtd-bc-current { font-weight: 600; color: var(--ah-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.rtd-gallery {
  background: #fff; border-radius: var(--ah-radius-lg, 16px);
  border: 1px solid var(--ah-border); box-shadow: var(--ah-shadow-card); overflow: hidden;
}
.rtd-gallery-stage { position: relative; aspect-ratio: 16 / 10; background: var(--ah-surface-2); }
.rtd-gallery-zoom { display: block; width: 100%; height: 100%; padding: 0; border: none; background: transparent; cursor: zoom-in; }
.rtd-gallery-hero { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.rtd-gallery-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 0.75rem; color: var(--ah-text-light); font-weight: 600; }
.rtd-gallery-empty i { font-size: 2.5rem; opacity: 0.35; }
.rtd-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.92); box-shadow: 0 4px 16px rgba(15,23,42,0.12);
  color: var(--ah-navy); cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center;
}
.rtd-gal-prev { left: 12px; }
.rtd-gal-next { right: 12px; }
.rtd-gal-counter {
  position: absolute; bottom: 12px; right: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(15,23,42,0.65); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.rtd-thumbstrip { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--ah-border); }
.rtd-thumb {
  flex: 0 0 72px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: var(--ah-surface-2);
}
.rtd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rtd-thumb-active { border-color: var(--rtd-accent); box-shadow: 0 0 0 1px var(--rtd-accent-border); }

.rtd-panel {
  position: sticky; top: calc(var(--ah-header-h, 72px) + 16px);
  background: #fff; border-radius: var(--ah-radius-lg); border: 1px solid var(--ah-border);
  box-shadow: var(--ah-shadow-card); padding: 1.35rem 1.5rem 1.5rem;
}
.rtd-panel-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.85rem; }
.rtd-pill {
  display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  background: var(--rtd-accent-soft); color: var(--rtd-accent);
}
.rtd-pill-muted { background: var(--ah-surface-1); color: var(--ah-text-light); }
.rtd-vehicle-line { font-size: 0.9375rem; color: var(--ah-text-light); margin: 0 0 1rem; font-weight: 600; }
.rtd-price-block {
  padding: 1rem 1.1rem; margin-bottom: 1.15rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--rtd-accent-soft) 0%, rgba(255,255,255,0.5) 100%);
  border: 1px solid var(--rtd-accent-border);
}
.rtd-price-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ah-text-light); margin-bottom: 0.25rem; }
.rtd-price { margin: 0; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; color: var(--rtd-accent); line-height: 1.1; }
.rtd-price-currency { font-size: 0.55em; font-weight: 700; margin-right: 0.15em; }
.rtd-price-period { font-size: 0.45em; font-weight: 600; color: var(--ah-text-light); }
.rtd-price-alt { font-size: 0.875rem; color: var(--ah-text); margin-top: 0.5rem !important; }

.rtd-specs { list-style: none; margin: 0 0 1.25rem; padding: 0; border: 1px solid var(--ah-border); border-radius: 12px; overflow: hidden; }
.rtd-specs li { display: flex; justify-content: space-between; gap: 12px; padding: 0.65rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--ah-border); }
.rtd-specs li:last-child { border-bottom: none; }
.rtd-spec-k { color: var(--ah-text-light); font-weight: 600; flex-shrink: 0; }
.rtd-spec-v { color: var(--ah-navy); font-weight: 600; text-align: right; }
.rtd-spec-icon { margin-right: 4px; opacity: 0.7; }

.rtd-owner { padding: 1rem; margin-bottom: 1.15rem; border-radius: 12px; background: var(--ah-surface-1); border: 1px solid var(--ah-border); }
.rtd-owner-head { display: flex; align-items: center; gap: 12px; color: inherit; }
.rtd-owner-logo {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ah-border); color: var(--rtd-accent); font-size: 1.1rem;
}
.rtd-owner-label { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ah-text-light); }
.rtd-owner-name { font-weight: 700; color: var(--ah-navy); }
.rtd-owner-more { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ah-primary, #0D9488); margin-top: 2px; }

.rtd-actions { display: flex; flex-direction: column; gap: 8px; }
.rtd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9375rem; font-weight: 700;
  text-decoration: none !important; border: none; cursor: pointer; transition: filter 0.18s ease;
}
.rtd-btn-primary { background: var(--rtd-accent); color: #fff !important; box-shadow: 0 6px 20px rgba(185, 28, 28, 0.25); }
.rtd-btn-primary:hover { filter: brightness(1.05); color: #fff !important; }
.rtd-btn-whatsapp { background: #25D366; color: #fff !important; }
.rtd-btn-outline { background: #fff; color: var(--ah-navy) !important; border: 1px solid var(--ah-border); }
.rtd-btn-outline:hover { border-color: var(--rtd-accent); color: var(--rtd-accent) !important; }
.rtd-btn-ghost { background: transparent; color: var(--ah-text-light) !important; border: 1px dashed var(--ah-border); }

.rtd-trust-note {
  margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ah-border);
  font-size: 0.8125rem; color: var(--ah-text-light); display: flex; gap: 8px; align-items: flex-start;
}
.rtd-trust-note i { color: var(--rtd-accent); margin-top: 2px; }

.rtd-section-title { margin-bottom: 0.85rem; }
.rtd-desc-card {
  margin-top: 1.5rem; padding: 1.35rem 1.5rem; background: #fff; border-radius: var(--ah-radius-lg);
  border: 1px solid var(--ah-border); box-shadow: var(--ah-shadow-card);
}
.rtd-desc-body { font-size: 0.9375rem; line-height: 1.65; color: var(--ah-text); }

.rtd-related { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ah-border); }
.rtd-related-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 1.25rem; }
.rtd-related-all { font-size: 0.875rem; font-weight: 700; color: var(--rtd-accent); text-decoration: none; }
.rtd-related-card {
  display: block; height: 100%; background: #fff; border-radius: 14px; border: 1px solid var(--ah-border);
  overflow: hidden; text-decoration: none !important; transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.rtd-related-card:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-md); }
.rtd-related-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.rtd-related-img--empty { display: flex; align-items: center; justify-content: center; background: var(--ah-surface-2); color: var(--ah-text-light); font-size: 1.5rem; }
.rtd-related-body { padding: 0.75rem 0.85rem 1rem; }
.rtd-related-title { line-height: 1.3; }
.rtd-related-price { margin: 0; font-size: 0.9375rem; font-weight: 800; color: var(--rtd-accent); }
.rtd-related-price span { font-size: 0.75em; font-weight: 600; color: var(--ah-text-light); }

.rtd-mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 997; display: flex; gap: 8px;
  padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--ah-border);
}
html.ah-pwa-mode .rtd-mobile-bar { bottom: var(--ah-tab-bar-h, 56px); }
.rtd-mobile-bar-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.85rem; border-radius: 12px; font-weight: 700; font-size: 0.9375rem; text-decoration: none !important;
}
.rtd-mobile-bar-btn--call { background: var(--rtd-accent); color: #fff !important; }
.rtd-mobile-bar-btn--wa { background: #25D366; color: #fff !important; }
.rtd-mobile-bar-btn--msg { background: var(--ah-navy); color: #fff !important; border: none; }

@media (max-width: 991px) {
  .rtd-panel { position: static; }
  .rtd { padding-top: 0.75rem; }
}
@media (max-width: 575px) {
  .rtd-panel { padding: 1.15rem; }
  .rtd-gal-nav { width: 36px; height: 36px; }
}

/* ── Mechanic apply — location map preview ── */
.mech-geo-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--ah-border, #E2E8F0);
  background: var(--ah-surface-1, #F8FAFC);
}
.mech-geo-panel[hidden] { display: none !important; }
.mech-geo-panel--confirmed {
  border-color: rgba(13, 148, 136, 0.35);
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.06) 0%, #fff 100%);
}
.mech-geo-hint {
  font-size: 0.875rem;
  color: var(--ah-text-light, #64748B);
  margin: 0;
}
.mech-geo-map {
  height: 280px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ah-border, #E2E8F0);
  background: #e2e8f0;
  z-index: 0;
}
@media (min-width: 768px) {
  .mech-geo-map { height: 320px; }
}
.mech-geo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 1rem;
}
.mech-geo-marker-wrap {
  background: transparent;
  border: none;
}
.mech-geo-marker-pin {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  background: var(--ah-teal, #0D9488);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.mech-geo-panel .leaflet-control-zoom a {
  color: var(--ah-navy, #0F172A);
}

/* ── Protected listing photos (discourage casual download; watermark on file) ── */
.ah-protected-media {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
.ah-protected-media__img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}
.ah-protected-media a,
.ah-protected-media button {
  pointer-events: auto;
}
.ah-protected-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
}
.ah-protected-lightbox[hidden] { display: none !important; }
body.ah-protected-lightbox-open { overflow: hidden; }
.ah-protected-lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.ah-protected-lightbox-inner {
  max-width: min(960px, 100%);
  max-height: min(72vh, 720px);
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.ah-protected-lightbox-img {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  display: block;
  background: #0f172a;
}
.ah-protected-lightbox-note {
  margin: 1rem 0 0;
  max-width: 420px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Admin panel shell ── */
.ah-admin-shell {
  display: flex;
  min-height: calc(100vh - var(--ah-header-h));
  background: var(--ah-surface-1, #F4F7FB);
}
.ah-admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--ah-dark-3, #0C1A35) 0%, var(--ah-dark-4, #111F3D) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--ah-header-h);
  left: 0;
  bottom: 0;
  height: auto;
  margin-top: 2%;
  z-index: 900;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ah-admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ah-admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.ah-admin-sidebar-brand i { color: var(--ah-primary, #0D9488); font-size: 1.1rem; }
.ah-admin-sidebar-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  padding: 0.25rem 0.5rem;
}
.ah-admin-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1rem;
}
.ah-admin-nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.38);
  margin: 1rem 0.5rem 0.35rem;
  font-weight: 600;
}
.ah-admin-nav-label:first-child { margin-top: 0.25rem; }
.ah-admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0.75rem;
  border-radius: var(--ah-radius-md, 10px);
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.18s ease, color 0.18s ease;
  margin-bottom: 2px;
}
.ah-admin-nav-link i:first-child { width: 1.1rem; text-align: center; opacity: 0.85; }
.ah-admin-nav-link:hover,
.ah-admin-nav-link.active {
  background: rgba(13,148,136,0.18);
  color: #fff;
}
.ah-admin-nav-link.active { font-weight: 600; }
.ah-admin-nav-external .ah-admin-nav-ext-icon {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.55;
}
.ah-admin-nav-badge {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
}
.ah-admin-sidebar-foot {
  flex-shrink: 0;
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.12);
}
.ah-admin-foot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--ah-radius-md, 10px);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.ah-admin-foot-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}
.ah-admin-foot-btn--primary {
  background: rgba(13, 148, 136, 0.35);
  border-color: rgba(13, 148, 136, 0.5);
  color: #fff !important;
}
.ah-admin-foot-btn--primary:hover {
  background: rgba(13, 148, 136, 0.5);
  color: #fff !important;
}
.ah-admin-shell .ah-admin-sidebar a:hover {
  color: #fff !important;
}
.ah-admin-main {
  flex: 1;
  min-width: 0;
  margin-left: 260px;
  margin-top: 2%;
  width: calc(100% - 260px);
}
.ah-admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--ah-border, #E2E8F0);
  position: sticky;
  top: var(--ah-header-h);
  z-index: 90;
}
.ah-admin-topbar--desktop {
  justify-content: flex-end;
  padding: 0.5rem 1.25rem;
  background: #fff;
}
.ah-admin-topbar-title {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ah-admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.ah-admin-topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ah-surface-1, #F4F7FB);
  border: 1px solid var(--ah-border, #E2E8F0);
  color: var(--ah-navy, #0F172A) !important;
  text-decoration: none !important;
  font-size: 1rem;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ah-admin-topbar-icon-btn:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--ah-primary, #0D9488) !important;
}
.ah-admin-head-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ah-admin-head-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  background: var(--ah-primary, #0D9488);
  color: #fff !important;
  border: 1px solid transparent;
  transition: filter 0.18s ease, background 0.18s ease;
}
.ah-admin-head-btn:hover {
  filter: brightness(1.06);
  color: #fff !important;
}
.ah-admin-head-btn--ghost {
  background: #fff;
  color: var(--ah-navy, #0F172A) !important;
  border-color: var(--ah-border, #E2E8F0);
}
.ah-admin-head-btn--ghost:hover {
  background: var(--ah-surface-1, #F4F7FB);
  color: var(--ah-primary, #0D9488) !important;
  filter: none;
}
.ah-admin-page-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.ah-admin-welcome-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-radius: var(--ah-radius-lg, 14px);
  background: linear-gradient(135deg, var(--ah-dark-3, #0C1A35) 0%, #152a52 100%);
  color: #fff;
  box-shadow: var(--ah-shadow-card);
}
.ah-admin-welcome-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.ah-admin-welcome-text i {
  color: var(--ah-primary, #0D9488);
  font-size: 1.1rem;
}
.ah-admin-welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ah-admin-welcome-btn {
  background: var(--ah-primary, #0D9488) !important;
  border-color: var(--ah-primary, #0D9488) !important;
  color: #fff !important;
}
.ah-admin-welcome-actions .btn-outline-secondary {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: transparent !important;
}
.ah-admin-welcome-actions .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.ah-admin-stat-card--link {
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ah-admin-stat-card--link:hover {
  transform: translateY(-2px);
  box-shadow: var(--ah-shadow-md, 0 8px 24px rgba(15, 23, 42, 0.1));
  color: inherit !important;
}
.ah-admin-quick-link i {
  color: var(--ah-primary, #0D9488);
  width: 1.1rem;
  text-align: center;
}
.ah-admin-menu-toggle {
  background: var(--ah-surface-2, #E8EEF5);
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ah-admin-page {
  padding: 1.5rem clamp(1rem, 2vw, 2rem) 2.5rem;
  max-width: none;
  width: 100%;
}
.ah-admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.ah-admin-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  color: var(--ah-text, #0F172A);
}
.ah-admin-page-subtitle {
  color: var(--ah-text-muted, #64748B);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}
.ah-admin-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: var(--ah-radius-lg, 14px);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--ah-shadow-card, 0 1px 3px rgba(15,23,42,0.08));
  height: 100%;
}
.ah-admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.ah-admin-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ah-text-muted, #64748B);
  margin: 0 0 0.15rem;
}
.ah-admin-stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}
.ah-admin-stat-meta {
  font-size: 0.8rem;
  color: var(--ah-text-muted, #64748B);
  margin: 0.25rem 0 0;
}
.ah-admin-card { border-radius: var(--ah-radius-lg, 14px) !important; }
.ah-admin-card-dark {
  background: linear-gradient(135deg, var(--ah-dark-3, #0C1A35) 0%, var(--ah-dark-4, #111F3D) 100%);
  border: none;
}
.ah-admin-card-dark-sub { color: rgba(255,255,255,0.52); }
.ah-admin-quick-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--ah-radius-md, 10px);
  background: var(--ah-surface-1, #F4F7FB);
  color: var(--ah-text, #0F172A);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.ah-admin-quick-link:hover {
  background: var(--ah-surface-2, #E8EEF5);
  color: var(--ah-primary, #0D9488);
  transform: translateX(2px);
}
.ah-admin-quick-link .badge { margin-left: auto; }
.ah-admin-glance-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ah-admin-glance-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ah-border, #E2E8F0);
  font-size: 0.92rem;
}
.ah-admin-glance-list li:last-child { border-bottom: none; }
.ah-admin-glance-list span { color: var(--ah-text-muted, #64748B); }
.ah-admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 1040;
}
.ah-admin-sidebar-backdrop.is-visible { display: block; }
body.ah-admin-sidebar-open { overflow: hidden; }

@media (max-width: 991.98px) {
  .ah-admin-shell {
    min-height: auto;
    padding-top: var(--ah-header-h);
  }
  .ah-admin-main {
    margin-left: 0;
    width: 100%;
  }
  .ah-admin-sidebar {
    top: var(--ah-header-h);
    height: calc(100vh - var(--ah-header-h));
    height: calc(100dvh - var(--ah-header-h));
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 1050;
  }
  .ah-admin-sidebar.is-open { transform: translateX(0); }
  .ah-admin-topbar { top: var(--ah-header-h); }
}

/* ── Admin analytics ── */
.ah-analytics-toolbar .btn-group .btn.active {
  background: var(--ah-primary, #0D9488);
  border-color: var(--ah-primary, #0D9488);
  color: #fff;
}
.ah-analytics-staff-toggle {
  font-size: 0.85rem;
  color: var(--ah-text-muted, #64748B);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ah-analytics-map-card { overflow: hidden; }
.ah-visitor-map {
  height: 420px;
  width: 100%;
  background: #0f172a;
  border-radius: 0 0 var(--ah-radius-lg, 12px) var(--ah-radius-lg, 12px);
}
.ah-analytics-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
.ah-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: ah-pulse 2s infinite;
}
@keyframes ah-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.ah-map-marker-icon {
  background: transparent !important;
  border: none !important;
}
.ah-map-pin {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ah-map-pin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.25);
  animation: ah-pin-pulse 2.4s ease-out infinite;
}
.ah-map-pin--guest .ah-map-pin-ring { background: rgba(59, 130, 246, 0.25); }
.ah-map-pin-core {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.ah-map-pin--guest .ah-map-pin-core {
  background: linear-gradient(135deg, #3B82F6, #6366F1);
}
@keyframes ah-pin-pulse {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.ah-map-popup strong { display: block; margin-bottom: 0.15rem; }
.ah-top-pages { display: flex; flex-direction: column; gap: 0.85rem; }
.ah-top-page-row { display: flex; flex-direction: column; gap: 0.35rem; }
.ah-top-page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}
.ah-top-page-path {
  font-size: 0.82rem;
  background: var(--ah-surface-1, #F4F7FB);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.ah-top-page-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.ah-top-page-bar {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ah-primary, #0D9488), #14B8A6);
  min-width: 4%;
  transition: width 0.4s ease;
}
.ah-top-page-count {
  font-weight: 700;
  font-size: 0.88rem;
  min-width: 2.5rem;
  text-align: right;
}
.ah-analytics-recent-table code {
  font-size: 0.75rem;
  background: transparent;
  padding: 0;
}
@media (max-width: 767.98px) {
  .ah-visitor-map { height: 320px; }
}

/* ── Admin database models browser ── */
.ah-db-model-card {
  border: 1px solid var(--ah-border, #E2E8F0);
  border-radius: var(--ah-radius-md, 10px);
  padding: 1rem 1.1rem;
  height: 100%;
  background: var(--ah-card, #fff);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ah-db-model-card:hover {
  border-color: var(--ah-primary, #0D9488);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.08);
}
.ah-db-model-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.ah-db-model-name {
  display: block;
  font-size: 0.72rem;
  color: var(--ah-text-muted, #64748B);
  margin-bottom: 0.85rem;
}
.ah-db-model-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ah-db-records-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ah-text-muted, #64748B);
  white-space: nowrap;
}
.ah-db-records-table td {
  vertical-align: middle;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Admin manage data (CRUD) ── */
.ah-manage-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}
.ah-manage-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--ah-radius-pill, 999px);
  border: 1px solid var(--ah-border, #E2E8F0);
  background: var(--ah-card, #fff);
  color: var(--ah-text-muted, #64748B);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.ah-manage-tab em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--ah-surface-1, #F4F7FB);
  color: var(--ah-text, #0F172A);
}
.ah-manage-tab:hover {
  border-color: #CBD5E1;
  color: var(--ah-text, #0F172A);
}
.ah-manage-tab.is-active {
  background: var(--tab-accent, var(--ah-primary, #0D9488));
  border-color: var(--tab-accent, var(--ah-primary, #0D9488));
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22);
}
.ah-manage-tab.is-active em {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.ah-manage-tab--hub.is-active {
  --tab-accent: #475569;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.18);
}
.ah-manage-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
}
.ah-manage-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--ah-radius-lg, 14px);
  border: 1px solid var(--ah-border, #E2E8F0);
  background: var(--ah-card, #fff);
  height: 100%;
}
.ah-manage-stat-card--tip {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FDE68A;
}
.ah-manage-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.ah-manage-tip-icon {
  font-size: 1.35rem;
  color: #D97706;
  margin-top: 0.15rem;
}
.ah-manage-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ah-text-muted, #64748B);
  margin-bottom: 0.15rem;
}
.ah-manage-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  color: var(--ah-text, #0F172A);
}
.ah-manage-tip-text {
  font-size: 0.84rem;
  color: #92400E;
  line-height: 1.45;
}
.ah-manage-resource-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  border-radius: var(--ah-radius-lg, 14px);
  border: 1px solid var(--card-border, var(--ah-border, #E2E8F0));
  background: linear-gradient(160deg, #fff 0%, var(--card-bg, #F8FAFC) 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ah-manage-resource-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-accent, var(--ah-primary, #0D9488));
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: inherit;
}
.ah-manage-resource-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ah-manage-resource-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, rgba(13,148,136,0.12));
  color: var(--card-accent, #0D9488);
  font-size: 1.1rem;
}
.ah-manage-resource-count {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--ah-surface-1, #F4F7FB);
  color: var(--ah-text-muted, #64748B);
}
.ah-manage-resource-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--ah-text, #0F172A);
}
.ah-manage-resource-desc {
  font-size: 0.84rem;
  color: var(--ah-text-muted, #64748B);
  margin: 0 0 1rem;
  flex: 1;
}
.ah-manage-resource-cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--card-accent, var(--ah-primary, #0D9488));
}
.ah-manage-resource-cta i {
  font-size: 0.72rem;
  margin-left: 0.25rem;
  transition: transform 0.18s ease;
}
.ah-manage-resource-card:hover .ah-manage-resource-cta i {
  transform: translateX(3px);
}
.ah-manage-toolbar {
  margin-bottom: 1rem;
}
.ah-manage-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 520px;
  padding: 0.45rem 0.55rem 0.45rem 0.9rem;
  border: 1px solid var(--ah-border, #E2E8F0);
  border-radius: var(--ah-radius-lg, 14px);
  background: var(--ah-card, #fff);
}
.ah-manage-search > i {
  color: var(--ah-text-muted, #94A3B8);
  font-size: 0.9rem;
}
.ah-manage-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.92rem;
  min-width: 0;
}
.ah-manage-search-btn {
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  background: var(--ah-surface-1, #F4F7FB);
  color: var(--ah-text, #0F172A);
  font-size: 0.82rem;
  font-weight: 600;
}
.ah-manage-search-clear {
  font-size: 0.82rem;
  color: var(--ah-text-muted, #64748B);
  text-decoration: none;
  padding-right: 0.35rem;
}
.ah-manage-table-card {
  border: 1px solid var(--ah-border, #E2E8F0);
  border-radius: var(--ah-radius-lg, 14px);
  background: var(--ah-card, #fff);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.ah-manage-table thead {
  background: var(--ah-surface-1, #F8FAFC);
}
.ah-manage-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ah-text-muted, #64748B);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ah-border, #E2E8F0);
  white-space: nowrap;
}
.ah-manage-table td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--ah-border, #E2E8F0);
  font-size: 0.88rem;
}
.ah-manage-table tbody tr:last-child td { border-bottom: none; }
.ah-manage-table tbody tr:hover { background: rgba(248, 250, 252, 0.85); }
.ah-manage-th-id { width: 72px; }
.ah-manage-th-actions { width: 130px; }
.ah-manage-id {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ah-text-muted, #64748B);
}
.ah-manage-primary-cell strong {
  display: block;
  color: var(--ah-text, #0F172A);
  font-size: 0.92rem;
}
.ah-manage-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--ah-text-muted, #64748B);
  margin-top: 0.12rem;
}
.ah-manage-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ah-manage-badge--success { background: #DCFCE7; color: #166534; }
.ah-manage-badge--warning { background: #FEF3C7; color: #92400E; }
.ah-manage-badge--danger { background: #FEE2E2; color: #991B1B; }
.ah-manage-badge--info { background: #DBEAFE; color: #1D4ED8; }
.ah-manage-badge--dark { background: #E2E8F0; color: #0F172A; }
.ah-manage-badge--muted { background: #F1F5F9; color: #64748B; }
.ah-manage-badge--price {
  background: rgba(13, 148, 136, 0.1);
  color: #0F766E;
  font-weight: 800;
}
.ah-manage-row-actions {
  display: inline-flex;
  gap: 0.3rem;
}
.ah-manage-action {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--ah-border, #E2E8F0);
  background: #fff;
  color: var(--ah-text-muted, #64748B);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ah-manage-action:hover {
  color: var(--ah-text, #0F172A);
  border-color: #CBD5E1;
}
.ah-manage-action--edit:hover { background: #EFF6FF; color: #2563EB; border-color: #BFDBFE; }
.ah-manage-action--view:hover { background: #F8FAFC; color: #475569; }
.ah-manage-action--delete:hover { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
.ah-manage-action--feature:hover { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
.ah-manage-action--featured { background: #FFFBEB; color: #D97706; border-color: #FDE68A; }
.ah-manage-action--featured:hover { background: #FEF3C7; color: #B45309; }
.ah-manage-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.ah-manage-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.ah-manage-empty h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.ah-manage-empty p {
  color: var(--ah-text-muted, #64748B);
  margin-bottom: 1rem;
}
.ah-manage-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.ah-manage-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--ah-border, #E2E8F0);
  background: #fff;
  color: var(--ah-text, #0F172A);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}
.ah-manage-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.ah-manage-page-info {
  font-size: 0.84rem;
  color: var(--ah-text-muted, #64748B);
}
.ah-manage-btn-primary {
  color: #fff !important;
  font-weight: 600;
}
.ah-manage-btn-primary:hover {
  filter: brightness(0.94);
  color: #fff !important;
}
.ah-manage-form-card,
.ah-manage-form-sidebar {
  border: 1px solid var(--ah-border, #E2E8F0);
  border-radius: var(--ah-radius-lg, 14px);
  background: var(--ah-card, #fff);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.ah-manage-form-sidebar { overflow: hidden; }
.ah-manage-form-sidebar-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--ah-border, #E2E8F0);
}
.ah-manage-form-sidebar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: 1rem;
}
.ah-manage-form-meta {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.1rem;
}
.ah-manage-form-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--ah-border, #E2E8F0);
  font-size: 0.84rem;
}
.ah-manage-form-meta li:last-child { border-bottom: none; }
.ah-manage-form-meta span { color: var(--ah-text-muted, #64748B); }
.ah-manage-sidebar-link {
  display: block;
  margin: 0 1.1rem 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--ah-surface-1, #F4F7FB);
  color: var(--ah-text, #0F172A);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}
.ah-manage-form-card { padding: 1.35rem; }
.ah-manage-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.ah-manage-field--full { grid-column: 1 / -1; }
.ah-manage-field .form-label { font-size: 0.84rem; margin-bottom: 0.35rem; }
.ah-manage-field .form-control,
.ah-manage-field .form-select {
  border-radius: 10px;
  border-color: var(--ah-border, #E2E8F0);
  font-size: 0.9rem;
}
.ah-manage-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
.ah-manage-check-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ah-border, #E2E8F0);
  border-radius: 10px;
  background: var(--ah-surface-1, #F8FAFC);
  margin: 0;
  cursor: pointer;
}
.ah-manage-check-card input { margin: 0; }
.ah-manage-check-help {
  display: block;
  width: 100%;
  margin: 0.15rem 0 0 1.55rem;
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 400;
}
.ah-manage-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ah-border, #E2E8F0);
}
.ah-manage-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
}
@media (max-width: 991.98px) {
  .ah-manage-form-grid { grid-template-columns: 1fr; }
  .ah-manage-danger-zone { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767.98px) {
  .ah-manage-tabs { margin-left: -0.25rem; margin-right: -0.25rem; padding-left: 0.25rem; padding-right: 0.25rem; }
}

/* ── Admin wide layout — shared panel cards & data tables ── */
.ah-admin-panel-card,
.super-admin-listings-card,
.super-admin-dealers-card,
.super-admin-users-card,
.ah-analytics-map-card,
.ah-analytics-side-card,
.ah-analytics-panel-card,
.ah-manage-table-card,
.ah-admin-page .card.ah-admin-panel-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  overflow: hidden;
  background: #fff;
}

.ah-admin-panel-toolbar,
.super-admin-listings-toolbar,
.super-admin-users-toolbar,
.ah-analytics-map-header,
.super-admin-listings-card > .card-header,
.super-admin-dealers-card > .card-header,
.super-admin-users-card > .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: #0b3a78 !important;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
}

.ah-admin-panel-toolbar-title,
.super-admin-listings-toolbar-title,
.super-admin-users-toolbar-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ah-admin-panel-toolbar-title h4,
.super-admin-listings-toolbar-title h4,
.super-admin-users-toolbar-title h4,
.ah-admin-panel-card > .card-header h4,
.super-admin-listings-card > .card-header h4,
.super-admin-dealers-card > .card-header h4 {
  color: #fff !important;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0;
}

.ah-admin-panel-count,
.super-admin-listings-count,
.super-admin-users-count {
  font-size: 0.8125rem;
  color: #64748b;
  background: #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.ah-admin-panel-filters,
.super-admin-listings-filters,
.super-admin-users-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.ah-admin-panel-search,
.super-admin-listings-search,
.super-admin-users-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 320px;
}

.ah-admin-panel-search i,
.super-admin-listings-search i,
.super-admin-users-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.8125rem;
  pointer-events: none;
}

.ah-admin-panel-search .form-control,
.super-admin-listings-search .form-control,
.super-admin-users-search .form-control {
  padding-left: 2.1rem;
  border-radius: 8px;
  border-color: #e2e8f0;
}

.ah-admin-data-table,
.super-admin-listings-table,
.super-admin-dealers-table,
.super-admin-users-table,
.super-admin-media-table,
.ah-manage-table,
.ah-admin-page .table.ah-admin-data-table {
  font-size: 0.9375rem;
  width: 100%;
  margin-bottom: 0;
}

.ah-admin-data-table thead th,
.super-admin-listings-table thead th,
.super-admin-dealers-table thead th,
.super-admin-users-table thead th,
.super-admin-media-table thead th,
.ah-manage-table thead th {
  background: #0f172a !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.875rem 1rem !important;
  border: none !important;
  white-space: nowrap;
}

.ah-admin-data-table thead th:first-child,
.super-admin-listings-table thead th:first-child,
.super-admin-dealers-table thead th:first-child,
.super-admin-users-table thead th:first-child,
.super-admin-media-table thead th:first-child,
.ah-manage-table thead th:first-child {
  padding-left: 1.5rem !important;
}

.ah-admin-data-table thead th:last-child,
.super-admin-listings-table thead th:last-child,
.super-admin-dealers-table thead th:last-child,
.super-admin-users-table thead th:last-child,
.super-admin-media-table thead th:last-child,
.ah-manage-table thead th:last-child {
  padding-right: 1.5rem !important;
}

.ah-admin-data-table tbody td,
.super-admin-listings-table tbody td,
.super-admin-dealers-table tbody td,
.super-admin-users-table tbody td,
.super-admin-media-table tbody td,
.ah-manage-table tbody td {
  padding: 0.85rem 1rem !important;
  vertical-align: middle !important;
  border-color: #e2e8f0 !important;
}

.ah-admin-data-table tbody tr,
.super-admin-listings-table tbody tr,
.super-admin-dealers-table tbody tr,
.super-admin-users-table tbody tr,
.super-admin-media-table tbody tr,
.ah-manage-table tbody tr {
  transition: background 0.15s ease;
}

.ah-admin-data-table tbody tr:hover,
.super-admin-listings-table tbody tr:hover,
.super-admin-dealers-table tbody tr:hover,
.super-admin-users-table tbody tr:hover,
.super-admin-media-table tbody tr:hover,
.ah-manage-table tbody tr:hover {
  background: #f8fafc !important;
}

.ah-admin-data-table tbody tr:not(:last-child) td,
.super-admin-listings-table tbody tr:not(:last-child) td,
.super-admin-dealers-table tbody tr:not(:last-child) td,
.super-admin-users-table tbody tr:not(:last-child) td,
.super-admin-media-table tbody tr:not(:last-child) td,
.ah-manage-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #e2e8f0 !important;
}

.super-admin-badge,
.ah-admin-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
}

.super-admin-badge-success, .ah-admin-badge-success { background: #dcfce7 !important; color: #166534 !important; }
.super-admin-badge-warning, .ah-admin-badge-warning { background: #fef3c7 !important; color: #92400e !important; }
.super-admin-badge-danger, .ah-admin-badge-danger { background: #fee2e2 !important; color: #991b1b !important; }
.super-admin-badge-dark, .ah-admin-badge-dark { background: #f1f5f9 !important; color: #475569 !important; }
.super-admin-badge-info, .ah-admin-badge-info { background: #dbeafe !important; color: #1d4ed8 !important; }
.super-admin-badge-neutral, .ah-admin-badge-neutral { background: #f1f5f9 !important; color: #475569 !important; }

.super-admin-footer,
.ah-admin-panel-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0;
  padding: 0.875rem 1.5rem;
}

.super-admin-pagination .page-link,
.ah-admin-pagination .page-link {
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: #475569;
  border-color: #e2e8f0;
}

.super-admin-pagination .page-link:hover,
.ah-admin-pagination .page-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0ea5e9;
}

.super-admin-empty,
.ah-admin-empty {
  font-size: 0.9375rem;
  color: #64748b !important;
}

.ah-admin-data-table .btn,
.super-admin-listings-table .btn,
.super-admin-dealers-table .btn,
.super-admin-users-table .btn {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-weight: 500;
}

.admin-switch,
.suspend-switch {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.admin-switch-input,
.suspend-switch-input { opacity: 0; width: 0; height: 0; }

.admin-switch-slider,
.suspend-switch-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 24px;
  transition: background 0.2s, box-shadow 0.2s;
}

.admin-switch-slider::before,
.suspend-switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.admin-switch-input:checked + .admin-switch-slider,
.suspend-switch-input:checked + .suspend-switch-slider { background: #16a34a; }

.suspend-switch-input:checked + .suspend-switch-slider { background: #dc2626; }

.admin-switch-input:checked + .admin-switch-slider::before,
.suspend-switch-input:checked + .suspend-switch-slider::before { transform: translateX(20px); }

.admin-switch-highlight .admin-switch-input:checked + .admin-switch-slider { background: #0ea5e9; }

.sa-modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.sa-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 18px;
  position: relative;
}

.sa-modal-header--approve { background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%); border-bottom: 1px solid #bbf7d0; }
.sa-modal-header--reject { background: linear-gradient(135deg,#fff1f2 0%,#fee2e2 100%); border-bottom: 1px solid #fecaca; }

.sa-modal-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.sa-modal-icon--approve { background: #16a34a; color: #fff; }
.sa-modal-icon--reject { background: #dc2626; color: #fff; }

.sa-modal-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.sa-modal-subtitle { margin: 2px 0 0; font-size: 0.82rem; color: #64748b; }

.sa-modal-close {
  position: absolute; top: 16px; right: 18px;
  background: rgba(0,0,0,.06); border: none; border-radius: 8px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: #475569; cursor: pointer;
}

.sa-modal-body { padding: 20px 24px; }

.ah-admin-page .card:not(.ah-admin-card-dark) {
  border-radius: 12px;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}

.ah-admin-page .card > .card-header {
  background: #0b3a78 !important;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.35rem;
}

.ah-admin-page .card > .card-header h4,
.ah-admin-page .card > .card-header h5 {
  font-weight: 700;
  color: #fff !important;
}

@media (max-width: 767px) {
  .super-admin-listings-filters,
  .super-admin-users-filters,
  .ah-admin-panel-filters { justify-content: stretch; }
  .super-admin-listings-search,
  .super-admin-users-search,
  .ah-admin-panel-search { max-width: none; flex: 1 1 100%; }
}

/* Listing table cell helpers */
.super-admin-listing-thumb {
  display: block;
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.super-admin-listing-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1rem;
}
.super-admin-car-title { display: block; font-weight: 600; color: #0f172a; margin-bottom: 0.15rem; line-height: 1.3; }
.super-admin-car-meta { display: block; font-size: 0.8125rem; color: #64748b; }
.super-admin-dealer-name { display: block; color: #334155; font-size: 0.875rem; margin-bottom: 0.1rem; }
.super-admin-dealer-link { font-size: 0.8125rem; color: #0ea5e9; text-decoration: none; }
.super-admin-dealer-link:hover { text-decoration: underline; }
.super-admin-price { display: block; font-weight: 700; color: #0f172a; white-space: nowrap; }
.super-admin-car-loc { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.15rem; }
.super-admin-actions-group { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.super-admin-dealer-name { display: block; font-weight: 600; color: #0f172a; margin-bottom: 0.2rem; }
.super-admin-dealer-loc { font-size: 0.8125rem; color: #64748b; }
.super-admin-user-name { display: block; color: #334155; margin-bottom: 0.2rem; }
.super-admin-user-email { font-size: 0.8125rem; color: #64748b; }
.super-admin-users-username { display: block; font-weight: 600; color: #0f172a; margin-bottom: 0.15rem; }
.super-admin-users-name { display: block; font-size: 0.8125rem; color: #64748b; }
.super-admin-users-email { color: #334155; text-decoration: none; word-break: break-all; }
.super-admin-users-email:hover { color: #0ea5e9; text-decoration: underline; }
.super-admin-users-unverified { font-size: 0.8125rem; color: #94a3b8; }
.super-admin-contact-phone { display: block; color: #334155; }
.super-admin-contact-email { display: block; font-size: 0.8125rem; color: #64748b; margin-top: 0.2rem; }
.super-admin-rating-stars { display: block; color: #f59e0b; font-weight: 600; }
.super-admin-rating-count { font-size: 0.8125rem; color: #64748b; }
.super-admin-btn-group { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.sa-modal-header--reject { background: linear-gradient(135deg,#fff1f2 0%,#fee2e2 100%); border-bottom: 1px solid #fecaca; }
.sa-modal-icon--reject { background: #dc2626; color: #fff; }
.sa-modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; background: #f8fafc; border-top: 1px solid #e2e8f0;
}
.sa-dealer-info-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 16px; font-size: 0.875rem; color: #334155;
}
.sa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 10px; font-size: 0.875rem;
  font-weight: 600; cursor: pointer; border: none;
}
.sa-btn-cancel { background: #f1f5f9; color: #475569; }
.sa-btn-approve { background: #16a34a; color: #fff; }
.sa-btn-reject { background: #dc2626; color: #fff; }
.sa-btn-reply { background: #0D9488; color: #fff; }
.sa-btn-reply:hover { background: #0b7d73; color: #fff; }

.sa-modal-header--view { background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%); border-bottom: 1px solid #bfdbfe; }
.sa-modal-icon--view { background: #0D9488; color: #fff; }

.cm-msg-preview { color: #64748b; font-size: 0.85rem; }
.cm-message-box { margin-bottom: 1rem; }
.cm-message-meta { margin: 0 0 8px; font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.03em; }
.cm-message-text { margin: 0; color: #1e293b; font-size: 0.95rem; line-height: 1.6; white-space: pre-wrap; }
.cm-reply-history {
  background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px;
  padding: 12px 16px; margin-bottom: 0.5rem;
}
.cm-reply-history-label { margin: 0 0 6px; font-size: 0.78rem; font-weight: 700; color: #0f766e; }
.cm-reply-history-text { margin: 0; color: #134e4a; font-size: 0.875rem; line-height: 1.5; white-space: pre-wrap; }

.cm-error-pre {
  background: #0f172a; color: #e2e8f0; border-radius: 10px;
  padding: 14px 16px; font-size: 0.8rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  max-height: 260px; overflow-y: auto; margin: 0;
  font-family: 'SFMono-Regular', Consolas, Monaco, monospace;
}
.cm-error-traceback { max-height: 340px; color: #fca5a5; }

/* ── Public storefront (dealer / rental owner / spare-parts seller) ── */
.dsp { background: #f0f2f5; padding: 24px 0 4rem; margin-top: 3%; }
.dsp-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #6b7280; flex-wrap: wrap; }
.dsp-breadcrumb a { color: #6b7280; text-decoration: none; }
.dsp-breadcrumb a:hover { color: #c0392b; }
.dsp-bc-sep { color: #cbd5e1; }
.dsp-bc-current { color: #111827; font-weight: 500; }
.dsp-sidebar { position: sticky; top: calc(var(--ah-header-h, 72px) + 16px); }
.dsp-side-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 18px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.dsp-seller-top { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.dsp-seller-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  display: flex; align-items: center; justify-content: center;
}
.dsp-seller-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dsp-seller-init { font-size: 1.6rem; font-weight: 800; color: #fff; }
.dsp-seller-name { font-size: 1.1rem; font-weight: 700; color: #111827; margin: 0 0 4px; }
.dsp-seller-badges { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; color: #6b7280; }
.dsp-seller-desc { font-size: 0.85rem; color: #6b7280; line-height: 1.55; margin: 0 0 14px; }
.dsp-seller-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 14px; padding: 12px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9;
}
.dsp-stat { text-align: center; }
.dsp-stat-val { display: block; font-size: 1rem; font-weight: 800; color: #111827; }
.dsp-stat-lbl { font-size: 0.68rem; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; }
.dsp-seller-contact { display: flex; flex-direction: column; gap: 8px; }
.dsp-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 6px; font-size: 0.88rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; transition: all .2s;
}
.dsp-cta-contact { background: #00b53f; color: #fff; }
.dsp-cta-contact:hover { background: #009a37; color: #fff !important; }
.dsp-cta-whatsapp { background: #25d366; color: #fff; }
.dsp-cta-whatsapp:hover { background: #1db954; color: #fff !important; }
.dsp-cta-outline { background: #fff; color: #374151; border: 1.5px solid #d1d5db; }
.dsp-cta-outline:hover { border-color: #c0392b; color: #c0392b !important; }
.dsp-side-title { font-size: 0.9rem; font-weight: 700; color: #111827; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.dsp-side-title i { color: #c0392b; }
.dsp-location-text { font-size: 0.85rem; color: #6b7280; margin: 0; line-height: 1.55; }
.dsp-safety-list { margin: 0; padding-left: 18px; font-size: 0.8rem; color: #6b7280; line-height: 1.6; }
.dsp-listings-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 18px 20px;
}
.dsp-page-title { font-size: 1.35rem; font-weight: 700; color: #111827; margin: 0 0 4px; }
.dsp-page-sub { font-size: 0.85rem; color: #6b7280; margin: 0; }
.dsp-manage-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px;
  background: #c0392b; color: #fff; border-radius: 6px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.dsp-manage-btn:hover { background: #a93226; color: #fff !important; }
.dsp-listings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px;
}
.dsp-listing-card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
  text-decoration: none; color: inherit; display: block; transition: box-shadow .2s, border-color .2s;
}
.dsp-listing-card:hover { border-color: #c0392b; box-shadow: 0 8px 24px rgba(192,57,43,.1); }
.dsp-listing-img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f3f4f6; }
.dsp-listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.dsp-listing-card:hover .dsp-listing-img img { transform: scale(1.04); }
.dsp-listing-img-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 1.8rem;
}
.dsp-listing-price {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(17,24,39,.88); color: #fff; font-weight: 700;
  font-size: 0.78rem; padding: 4px 10px; border-radius: 6px;
}
.dsp-listing-badge {
  position: absolute; top: 8px; left: 8px; background: #fef3c7; color: #92400e;
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
}
.dsp-listing-body { padding: 12px 14px; }
.dsp-listing-title { font-size: 0.92rem; font-weight: 700; color: #111827; margin: 0 0 4px; line-height: 1.35; }
.dsp-listing-meta { font-size: 0.78rem; color: #6b7280; margin: 0; }
.dsp-listing-loc { font-size: 0.75rem; color: #9ca3af; margin: 6px 0 0; }
.dsp-pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 28px; padding: 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
}
.dsp-page-link {
  font-size: 0.85rem; font-weight: 600; color: #c0392b; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.dsp-empty {
  text-align: center; padding: 48px 24px; background: #fff;
  border: 1px dashed #d1d5db; border-radius: 8px; margin-bottom: 24px;
}
.dsp-empty i { font-size: 2.5rem; color: #d1d5db; margin-bottom: 12px; display: block; }
@media (max-width: 991px) {
  .dsp { margin-top: 0; padding-top: 16px; }
  .dsp-sidebar { position: static; }
  .dsp-listings-head { flex-direction: column; }
}
@media (max-width: 767px) {
  .dsp-listings-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .dsp-listings-grid { grid-template-columns: 1fr; }
}

/* ── Rental / spare-parts public stores ── */
.ah-store {
  --store-accent: var(--ah-primary);
  --store-accent-dark: var(--ah-primary-dark);
  background: var(--ah-surface);
  padding-bottom: 4rem;
}
.ah-store--parts { --store-accent: #2563eb; --store-accent-dark: #1d4ed8; }
.ah-store-hero {
  position: relative;
  min-height: 240px;
  margin-bottom: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ah-dark) 0%, var(--ah-dark-3) 55%, #0b3d3a 100%);
}
.ah-store--parts .ah-store-hero {
  background: linear-gradient(135deg, var(--ah-dark) 0%, #0b1a3a 55%, #1e3a8a 100%);
}
.ah-store-hero-cover { position: absolute; inset: 0; }
.ah-store-hero-cover img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) brightness(0.72);
}
.ah-store-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,14,28,.35) 0%, rgba(3,14,28,.78) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(13,148,136,.28), transparent 55%);
  pointer-events: none;
}
.ah-store--parts .ah-store-hero-overlay {
  background:
    linear-gradient(180deg, rgba(3,14,28,.35) 0%, rgba(3,14,28,.8) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(37,99,235,.32), transparent 55%);
}
.ah-store-hero-inner {
  position: relative; z-index: 1;
  padding-top: 22px; padding-bottom: 28px;
}
.ah-store-bc {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.8rem; color: rgba(255,255,255,.55); margin-bottom: 22px;
}
.ah-store-bc a { color: rgba(255,255,255,.7); text-decoration: none; }
.ah-store-bc a:hover { color: #fff; }
.ah-store-bc-now { color: #fff; font-weight: 600; }
.ah-store-identity {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
.ah-store-avatar {
  width: 92px; height: 92px; border-radius: 22px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(145deg, var(--store-accent), var(--store-accent-dark));
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
}
.ah-store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ah-store-avatar span { font-size: 2rem; font-weight: 800; color: #fff; }
.ah-store-id-text { flex: 1; min-width: 200px; padding-bottom: 4px; }
.ah-store-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.ah-store-name {
  font-size: clamp(1.45rem, 2.4vw, 2rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 8px; line-height: 1.15; letter-spacing: -0.02em;
}
.ah-store-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  color: rgba(255,255,255,.78); font-size: 0.82rem;
}
.ah-store-meta .ah-verified-badge {
  background: rgba(16,185,129,.18); color: #d1fae5; border: 1px solid rgba(16,185,129,.35);
  padding: 2px 8px; border-radius: 999px;
}
.ah-store-meta .ah-verified-badge i { color: #34d399; }
.ah-store-meta-item i { margin-right: 5px; opacity: .8; }
.ah-store-manage {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; margin-bottom: 4px;
  background: #fff; color: var(--ah-dark); font-size: 0.85rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; box-shadow: var(--ah-shadow-sm);
}
.ah-store-manage:hover { background: var(--store-accent); color: #fff !important; }
.ah-store-body { padding-top: 4px; }
.ah-store-toolbar { margin-bottom: 16px; }
.ah-store-section-title { font-size: 1.2rem; font-weight: 800; color: var(--ah-text); margin: 0 0 2px; }
.ah-store-section-sub { font-size: 0.88rem; color: var(--ah-text-muted); margin: 0; }
.ah-store-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 22px;
}
.ah-store-card {
  background: #fff; border: 1px solid var(--ah-border); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  box-shadow: var(--ah-shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ah-store-card:hover {
  transform: translateY(-3px);
  border-color: var(--store-accent);
  box-shadow: 0 14px 32px rgba(13,148,136,.14);
  color: inherit;
}
.ah-store--parts .ah-store-card:hover { box-shadow: 0 14px 32px rgba(37,99,235,.14); }
.ah-store-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden; background: #e8eef5;
}
.ah-store-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ah-store-card:hover .ah-store-card-img img { transform: scale(1.05); }
.ah-store-card-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 2rem;
  background: repeating-linear-gradient(-45deg, #eef2f7, #eef2f7 8px, #e4ebf3 8px, #e4ebf3 16px);
}
.ah-store-price {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(3,14,28,.9); color: #fff; font-weight: 800;
  font-size: 0.88rem; padding: 6px 11px; border-radius: 9px;
  backdrop-filter: blur(6px);
}
.ah-store-price small { font-weight: 600; opacity: .8; margin-left: 2px; font-size: 0.72rem; }
.ah-store-feat {
  position: absolute; top: 10px; left: 10px;
  background: #fef3c7; color: #92400e; font-size: 0.68rem; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .02em; text-transform: uppercase;
}
.ah-store-cond {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.68rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  background: #e2e8f0; color: #334155;
}
.ah-store-cond-new { background: #dcfce7; color: #166534; }
.ah-store-cond-refurbished { background: #fef3c7; color: #92400e; }
.ah-store-card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ah-store-card-title {
  font-size: 0.98rem; font-weight: 800; color: var(--ah-text); margin: 0;
  line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ah-store-card-line { font-size: 0.8rem; color: var(--ah-text-muted); margin: 0; }
.ah-store-sku { font-size: 0.72rem; color: #94a3b8; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ah-store-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ah-store-chips span {
  font-size: 0.68rem; font-weight: 700; color: var(--store-accent-dark);
  background: rgba(13,148,136,.1); padding: 3px 8px; border-radius: 999px;
}
.ah-store--parts .ah-store-chips span { color: #1d4ed8; background: rgba(37,99,235,.1); }
.ah-store-card-loc { font-size: 0.75rem; color: #94a3b8; margin: 6px 0 0; }
.ah-store-card-loc i { margin-right: 4px; }
.ah-store-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: #fff; border: 1px solid var(--ah-border); border-radius: 12px;
}
.ah-store-page-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.84rem; font-weight: 700; color: var(--store-accent); text-decoration: none;
}
.ah-store-page-btn.is-disabled { color: #cbd5e1; pointer-events: none; }
.ah-store-page-info { font-size: 0.82rem; color: var(--ah-text-muted); }
.ah-store-empty {
  text-align: center; padding: 56px 24px; background: #fff;
  border: 1px dashed var(--ah-border); border-radius: 16px;
}
.ah-store-empty i { font-size: 2.4rem; color: #cbd5e1; margin-bottom: 12px; display: block; }
.ah-store-empty h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; }
.ah-store-empty p { color: var(--ah-text-muted); margin: 0; }
.ah-store-side { position: sticky; top: calc(var(--ah-header-h, 72px) + 16px); }
.ah-store-panel {
  background: #fff; border: 1px solid var(--ah-border); border-radius: 16px;
  padding: 18px; margin-bottom: 14px; box-shadow: var(--ah-shadow-xs);
}
.ah-store-panel-title {
  font-size: 0.92rem; font-weight: 800; color: var(--ah-text); margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.ah-store-panel-title i { color: var(--store-accent); }
.ah-store-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ah-border);
}
.ah-store-stats div { text-align: center; }
.ah-store-stats strong { display: block; font-size: 1.02rem; font-weight: 800; color: var(--ah-text); }
.ah-store-stats span { font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.ah-store-bio { font-size: 0.85rem; color: var(--ah-text-muted); line-height: 1.55; margin: 0 0 14px; }
.ah-store-actions { display: flex; flex-direction: column; gap: 8px; }
.ah-store-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 700;
  text-decoration: none; border: none; transition: transform .15s, background .15s;
}
.ah-store-cta:hover { transform: translateY(-1px); color: #fff !important; }
.ah-store-cta-call { background: #00b53f; color: #fff; }
.ah-store-cta-call:hover { background: #009a37; }
.ah-store-cta-wa { background: #25d366; color: #fff; }
.ah-store-cta-wa:hover { background: #1db954; }
.ah-store-cta-ghost {
  background: #fff; color: var(--ah-text); border: 1.5px solid var(--ah-border);
}
.ah-store-cta-ghost:hover { border-color: var(--store-accent); color: var(--store-accent) !important; transform: none; }
.ah-store-no-phone { font-size: 0.82rem; color: var(--ah-text-muted); margin: 0; }
.ah-store-loc { font-size: 0.88rem; color: var(--ah-text-muted); margin: 0; line-height: 1.55; }
.ah-store-tips ul { margin: 0; padding-left: 18px; font-size: 0.8rem; color: var(--ah-text-muted); line-height: 1.65; }
@media (max-width: 991px) {
  .ah-store-hero { min-height: 0; margin-bottom: 20px; }
  .ah-store-side { position: static; }
  .ah-store-identity { align-items: center; }
  .ah-store-manage { width: 100%; justify-content: center; }
}
@media (max-width: 767px) {
  .ah-store-grid { gap: 12px; }
  .ah-store-avatar { width: 72px; height: 72px; border-radius: 18px; }
  .ah-store-name { font-size: 1.35rem; }
  .ah-store-card-title { font-size: 0.88rem; }
}
@media (max-width: 480px) {
  .ah-store-grid { grid-template-columns: 1fr; }
  .ah-store-hero-inner { padding-top: 16px; padding-bottom: 20px; }
}

/* ── In-app enquiry modal ── */
.ah-enq-modal { border: none; border-radius: 16px; overflow: hidden; }
.ah-enq-header {
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  border-bottom: 1px solid #ccfbf1;
}
.ah-enq-header-inner { display: flex; align-items: center; gap: 12px; }
.ah-enq-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ah-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ah-enq-title { font-weight: 700; color: #0f172a; }
.ah-enq-sub { color: #64748b; }
.ah-enq-ref {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px;
}
.ah-enq-ref img { width: 56px; height: 44px; object-fit: cover; border-radius: 8px; }
.ah-enq-ref-title { font-size: .9rem; font-weight: 600; color: #0f172a; }
.ah-enq-ref-price { font-size: .8rem; color: #64748b; }
.ah-enq-footer { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.ah-enq-submit {
  min-width: 140px; background: var(--ah-primary); color: #fff; font-weight: 700; border-radius: 10px;
}
.ah-enq-submit:hover { background: var(--ah-primary-dark); color: #fff; }

/* ── Admin site performance ── */
.ah-perf-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.ah-perf-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.ah-perf-section p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.ah-perf-section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ah-primary, #0D9488);
  text-decoration: none;
  white-space: nowrap;
}
.ah-perf-section-link:hover { text-decoration: underline; color: var(--ah-primary-dark, #0f766e); }
.ah-perf-bar {
  height: 6px;
  border-radius: 99px;
  background: #e2e8f0;
  overflow: hidden;
}
.ah-perf-bar > span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--ah-primary, #0D9488);
}
.ah-perf-platform-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,148,136,0.12);
  color: var(--ah-primary, #0D9488);
  flex-shrink: 0;
}
.ah-perf-table td, .ah-perf-table th { vertical-align: middle; }
.ah-perf-user {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.85rem;
}
