 html:not(.dark) body {
    background-color: #f5f5f5;
}
 *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { background: #0D0D0D; color: #F0EDE8; font-family: 'DM Sans', sans-serif; overflow-x: hidden; }

    /* ---------- scrollbar ---------- */
    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: #141414; }
    ::-webkit-scrollbar-thumb { background: #E8390E; border-radius: 10px; }

    /* ---------- noise grain overlay ---------- */
    body::before {
      content: '';
      position: fixed; inset: 0; z-index: 9999; pointer-events: none;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
      opacity: .35;
    }

    /* ---------- typography ---------- */
    .font-display { font-family: 'Syne', sans-serif; }

    /* ---------- hero gradient mesh ---------- */
    .hero-mesh {
      background: #0D0D0D;
    }

    /* ---------- CAROUSEL ---------- */
    .carousel-track { display: flex; transition: transform .7s cubic-bezier(.77,0,.18,1); will-change: transform; }
    .carousel-slide { flex: 0 0 100%; min-width: 100%; }

    /* Banner card: matches page content width, ~40vh height */
    .banner-card {
      width: 100%;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      height: clamp(200px, 40vh, 380px);
      box-shadow: 0 20px 60px rgba(0,0,0,.5);
    }
    @media (max-width: 900px) { .banner-card { height: clamp(180px, 38vh, 320px); border-radius: 16px; } }
    @media (max-width: 600px) { .banner-card { height: clamp(190px, 42vh, 280px); border-radius: 14px; } }

    /* Curved divider inside the banner */
    .banner-curve {
      position: absolute; top: 0; right: 0; bottom: 0;
      width: 55%;
      clip-path: ellipse(110% 130% at 95% 50%);
    }

    /* Dot indicators */
    .carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, width .3s; cursor: pointer; }
    .carousel-dot.active { background: #E8390E; width: 24px; border-radius: 4px; }

    /* Arrow buttons */
    .carousel-arrow { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, transform .2s; backdrop-filter: blur(8px); }
    .carousel-arrow:hover { background: #E8390E; transform: scale(1.08); }
    @media (max-width: 480px) { .carousel-arrow { width: 32px; height: 32px; } }

    /* ---------- card hover ---------- */
    .listing-card { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease; }
    .listing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(232,57,14,.15); }
    .listing-card .card-img img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
    .listing-card:hover .card-img img { transform: scale(1.07); }

    /* ---------- red accent line ---------- */
    .accent-line::before {
      content: '';
      display: block;
      width: 40px; height: 3px;
      background: #E8390E;
      margin-bottom: 12px;
      border-radius: 2px;
    }

    /* ---------- badge ---------- */
    .badge-sold { background: rgba(255,255,255,.08); color: #6B6B6B; }
    .badge-new { background: rgba(232,57,14,.15); color: #FF5733; }
    .badge-used { background: rgba(234,179,8,.12); color: #FACC15; }
    .badge-refurb { background: rgba(99,102,241,.12); color: #818CF8; }

    /* ---------- nav ---------- */
    .nav-link { position: relative; }
    .nav-link::after {
      content: '';
      position: absolute; left: 0; bottom: -2px;
      width: 0; height: 2px;
      background: #E8390E;
      transition: width .3s ease;
    }
    .nav-link:hover::after, .nav-link.active::after { width: 100%; }

    /* ---------- search input ---------- */
    .search-glow:focus { box-shadow: 0 0 0 2px rgba(232,57,14,.5); outline: none; }

    /* ---------- tab ---------- */
    .tab-btn.active { background: #E8390E; color: #fff; }
    .tab-btn { transition: background .2s, color .2s; }

    /* ---------- filter pill ---------- */
    .filter-pill { transition: background .15s, color .15s; cursor: pointer; user-select: none; }
    .filter-pill.active, .filter-pill:hover { background: #E8390E; color: #fff; border-color: #E8390E; }

    /* ---------- animations ---------- */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .fade-up { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
    .delay-1 { animation-delay: .1s; }
    .delay-2 { animation-delay: .2s; }
    .delay-3 { animation-delay: .3s; }
    .delay-4 { animation-delay: .4s; }
    .delay-5 { animation-delay: .55s; }
    .delay-6 { animation-delay: .7s; }

    /* ---------- stat counter ---------- */
    .stat-number { font-family: 'Syne', sans-serif; font-weight: 800; }

    /* ---------- mobile menu ---------- */
    #mobile-menu { transition: max-height .35s ease, opacity .35s ease; max-height: 0; opacity: 0; overflow: hidden; }
    #mobile-menu.open { max-height: 400px; opacity: 1; }

    /* ---------- range input ---------- */
    input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; background: #2E2E2E; border-radius: 2px; cursor: pointer; }
    input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; background: #E8390E; border-radius: 50%; border: 2px solid #0D0D0D; }

    /* ---------- modal ---------- */
    #modal-overlay { transition: opacity .25s ease; }
    #modal-box { transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease; }

    /* ---------- toast ---------- */
    #toast { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease; }
    #toast.show { transform: translateY(0); opacity: 1; }

    /* ---------- section divider ---------- */
    .section-divider { border: none; border-top: 1px solid rgba(240,237,232,.06); }

    /* ---------- gradient text ---------- */
    .text-gradient {
      background: linear-gradient(135deg, #F0EDE8 30%, #E8390E 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ---------- car card price ---------- */
    .price-tag { font-family: 'Syne', sans-serif; }

    /* ---------- hero number ticker ---------- */
    .ticker-item { display: inline-block; }

    /* ---------- carousel slide inner layout ---------- */
    .banner-card .slide-text { display: flex; flex-direction: column; justify-content: center; height: 100%; }
    @media (max-width: 480px) {
      .banner-card .relative.z-10 { padding: 1rem 1.1rem !important; width: 58% !important; }
      .banner-card .relative.z-10 p.text-xs.mt-3 { display: none; }
      .banner-card img { width: 46% !important; }
    }

    /* ---------- sticky header shadow ---------- */
    header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,.5); }

     .filter-dropdown {
      transition: opacity 0.2s ease, transform 0.15s ease;
      transform-origin: top center;
    }
    .filter-dropdown:not(.hidden) {
      display: block;
      opacity: 1;
      transform: scaleY(1);
    }
    .filter-dropdown.hidden {
      display: none;
      opacity: 0;
      transform: scaleY(0.95);
    }
    .filter-chip.active {
      border-color: #e8390e;
      background: rgba(232, 57, 14, 0.12);
      color: #e8390e;
    }
    .search-glow:focus {
      box-shadow: 0 0 0 2px rgba(232, 57, 14, 0.4);
      border-color: transparent;
    }
    .options-list::-webkit-scrollbar { width: 4px; }
    .options-list::-webkit-scrollbar-track { background: #1e1e2a; border-radius: 10px; }
    .options-list::-webkit-scrollbar-thumb { background: #e8390e; border-radius: 10px; }

    /* ────────────────────────────────────────
       GALLERY GRID
    ──────────────────────────────────────── */
    #gallery-grid { display: grid; gap: 6px; }

    /* Main image full width, thumbs row below */
    .gallery-main {
      grid-column: 1 / -1;
      position: relative; overflow: hidden; border-radius: 16px;
      cursor: zoom-in;
      background: #141414;
      aspect-ratio: 16/7;
    }
    .gallery-main img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform .6s cubic-bezier(.22,1,.36,1);
    }
    .gallery-main:hover img { transform: scale(1.04); }

    .gallery-thumb {
      position: relative; overflow: hidden; border-radius: 10px;
      cursor: zoom-in; background: #141414;
      aspect-ratio: 4/3;
    }
    .gallery-thumb img {
      width: 100%; height: 100%; object-fit: cover;
      transition: transform .5s cubic-bezier(.22,1,.36,1), filter .3s;
      filter: brightness(.85);
    }
    .gallery-thumb:hover img { transform: scale(1.08); filter: brightness(1); }

    /* "+N more" overlay on last thumb */
    .more-overlay {
      position: absolute; inset: 0;
      background: rgba(13,13,13,.72);
      display: flex; align-items: center; justify-content: center;
      color: #F0EDE8;
      backdrop-filter: blur(2px);
    }

    /* Camera icon badge on main image */
    .gallery-badge {
      position: absolute; bottom: 12px; right: 14px;
      background: rgba(13,13,13,.7); backdrop-filter: blur(8px);
      border: 1px solid rgba(240,237,232,.12);
      border-radius: 8px; padding: 5px 10px;
      font-size: 0.7rem; font-weight: 600;
      display: flex; align-items: center; gap: 5px;
      color: #F0EDE8; cursor: pointer;
      transition: background .2s;
    }
    .gallery-badge:hover { background: #E8390E; border-color: #E8390E; }

    /* ── LightGallery theme overrides ── */
    .lg-backdrop { background: rgba(5,5,5,.96) !important; }
    .lg-toolbar, .lg-actions .lg-next, .lg-actions .lg-prev { background: rgba(30,30,30,.8) !important; }
    .lg-counter { color: #F0EDE8 !important; }
    .lg-thumb-outer { background: #141414 !important; }

    /* ────────────────────────────────────────
       SPEC TABLE
    ──────────────────────────────────────── */
    .spec-row {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid rgba(240,237,232,.06);
    }
    .spec-row:last-child { border-bottom: none; }
    .spec-label { font-size: .78rem; color: #6B6B6B; text-transform: uppercase; letter-spacing: .06em; }
    .spec-value { font-family: 'Syne', sans-serif; font-weight: 600; font-size: .9rem; text-align: right; }

    /* ── Spec icon chip ── */
    .spec-icon-chip {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 6px; padding: 14px 10px;
      background: #1C1C1C; border: 1px solid rgba(240,237,232,.06);
      border-radius: 14px; text-align: center;
      transition: border-color .2s, background .2s;
    }
    .spec-icon-chip:hover { border-color: rgba(232,57,14,.3); background: rgba(232,57,14,.05); }
    .spec-icon-chip .chip-val { font-family:'Syne',sans-serif; font-weight:700; font-size:.85rem; }
    .spec-icon-chip .chip-lbl { font-size:.65rem; color:#6B6B6B; text-transform:uppercase; letter-spacing:.06em; }

    /* ── Sticky sidebar CTA ── */
    .sticky-cta { position: sticky; top: 90px; }

    /* ── Price badge ── */
    .price-badge {
      background: linear-gradient(135deg, rgba(232,57,14,.15), rgba(232,57,14,.06));
      border: 1px solid rgba(232,57,14,.25);
      border-radius: 14px; padding: 18px 20px;
    }

    /* ── Tag chips ── */
    .tag-chip {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(240,237,232,.06); border: 1px solid rgba(240,237,232,.1);
      border-radius: 999px; padding: 4px 12px;
      font-size: .72rem; font-weight: 500;
    }

    /* ── Section divider ── */
    hr.divider { border: none; border-top: 1px solid rgba(240,237,232,.06); }

    /* ── Modal ── */
    #modal-overlay { transition: opacity .25s ease; }
    #modal-box { transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease; }

    /* ── Search glow on inputs ── */
    .search-glow:focus { box-shadow: 0 0 0 2px rgba(232,57,14,.45); outline: none; }

    /* ── Toast ── */
    #toast { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease; }
    #toast.show { transform: translateY(0); opacity: 1; }

    /* ── Mobile menu ── */
    #mobile-menu { transition: max-height .35s ease, opacity .35s ease; max-height: 0; opacity: 0; overflow: hidden; }
    #mobile-menu.open { max-height: 400px; opacity: 1; }

    /* ── Breadcrumb ── */
    .breadcrumb-sep::before { content: '/'; margin: 0 6px; opacity: .3; }

    /* ── Related card hover ── */
    .rel-card { transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s; }
    .rel-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(232,57,14,.12); }
    .rel-card .rel-img img { transition: transform .5s cubic-bezier(.22,1,.36,1); }
    .rel-card:hover .rel-img img { transform: scale(1.06); }

      /* ── Tab nav ── */
      .dash-tab {
        display: flex; align-items: center; gap: 8px;
        padding: 10px 18px; border-radius: 12px; cursor: pointer;
        font-size: .82rem; font-weight: 500;
        color: rgba(240,237,232,.45);
        transition: background .15s, color .15s;
        white-space: nowrap;
      }
      .dash-tab:hover { background: rgba(240,237,232,.05); color: rgba(240,237,232,.8); }
      .dash-tab.active { background: rgba(232,57,14,.1); color: #E8390E; }
      .dash-tab.active svg { color: #E8390E; }
      .tab-panel { display: none; }
      .tab-panel.active { display: block; }

      /* ── Stat cards ── */
      .stat-card {
        background: #161616; border: 1px solid rgba(240,237,232,.06);
        border-radius: 16px; padding: 20px;
        transition: border-color .2s, transform .2s;
      }
      .stat-card:hover { border-color: rgba(232,57,14,.2); transform: translateY(-2px); }
      .stat-card.red-glow { background: linear-gradient(135deg, rgba(232,57,14,.12), rgba(232,57,14,.04)); border-color: rgba(232,57,14,.2); }

      /* ── Inquiry card ── */
      .inquiry-card {
        background: #161616; border: 1px solid rgba(240,237,232,.06);
        border-radius: 16px; overflow: hidden;
        transition: border-color .25s, transform .25s;
      }
      .inquiry-card:hover { border-color: rgba(232,57,14,.2); transform: translateY(-3px); }
      .inquiry-card .status-bar { height: 3px; width: 100%; }

      /* ── Wishlist card ── */
      .wish-card {
        background: #161616; border: 1px solid rgba(240,237,232,.06);
        border-radius: 16px; overflow: hidden;
        transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
      }
      .wish-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(232,57,14,.12); }
      .wish-card .card-img img { transition: transform .55s cubic-bezier(.22,1,.36,1); }
      .wish-card:hover .card-img img { transform: scale(1.06); }

      /* ── Badges ── */
      .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
      .badge-replied    { background: rgba(74,222,128,.1);  color: #4ade80; }
      .badge-pending    { background: rgba(250,204,21,.1);  color: #facc15; }
      .badge-resolved   { background: rgba(96,165,250,.1);  color: #60a5fa; }
      .badge-unread     { background: rgba(232,57,14,.12);  color: #FF5733; }
      .badge-available  { background: rgba(74,222,128,.1);  color: #4ade80; }
      .badge-sold       { background: rgba(255,255,255,.06); color: #6B6B6B; }
      .badge-transit    { background: rgba(250,204,21,.1);  color: #facc15; }

      /* ── Timeline dot ── */
      .timeline-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
      .timeline-line { width: 1px; background: rgba(240,237,232,.08); flex: 1; min-height: 28px; margin: 3px auto; }

      /* ── Section divider ── */
      hr.div { border: none; border-top: 1px solid rgba(240,237,232,.06); }

      /* ── Profile avatar ring ── */
      .avatar-ring {
        background: linear-gradient(135deg, #E8390E, #c02d08);
        border-radius: 50%; padding: 2px;
      }
      .avatar-inner { background: #161616; border-radius: 50%; }

      /* ── Gradient text ── */
      .text-gradient {
        background: linear-gradient(135deg, #F0EDE8 30%, #E8390E 100%);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
      }

      /* ── Form inputs ── */
      .form-input {
        width: 100%; background: #1C1C1C; border: 1px solid rgba(240,237,232,.08);
        border-radius: 10px; padding: 10px 14px; font-size: .83rem; color: #F0EDE8;
        font-family: 'DM Sans', sans-serif; outline: none; transition: border-color .2s, box-shadow .2s;
      }
      .form-input::placeholder { color: #6B6B6B; }
      .form-input:focus { border-color: rgba(232,57,14,.45); box-shadow: 0 0 0 2px rgba(232,57,14,.1); }

      /* ── Toast ── */
      #toast { transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s ease; }
      #toast.show { transform: translateY(0) !important; opacity: 1 !important; }

      /* ── Dropdown menu ── */
      #user-menu { transition: opacity .2s, transform .2s; transform-origin: top right; }

      /* ── Section label ── */
      .section-eyebrow { font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; color: #E8390E; font-weight: 700; margin-bottom: 2px; }

      /* ── Progress step ── */
      .step-done   { background: #E8390E; }
      .step-active { background: rgba(232,57,14,.3); border: 2px solid #E8390E; }
      .step-todo   { background: rgba(240,237,232,.08); }
      .step-line-done { background: #E8390E; }
      .step-line-todo { background: rgba(240,237,232,.08); }

      .filter-pill {
    transition: all 0.3s ease;
    cursor: pointer;
}
.filter-pill.active {
    background: #E8390E;
    border-color: #E8390E;
    color: white;
}
.filter-pill:not(.active):hover {
    border-color: rgba(232,57,14,0.5);
    background: rgba(232,57,14,0.1);
}
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

.badge-in-transit {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    backdrop-filter: blur(4px);
}
.badge-reserved {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    backdrop-filter: blur(4px);
}

.badge-refurbished {
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}