:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5d6b85;
  --border: #e3e9f2;

  --blue: #0a66c2;
  --blue-2: #0b4f93;
  --search-light: #dff0ff;
  --search-dark: #0b4f93;

  --green: #0f7a3f;
  --green-bg: #e5f6ee;

  --shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* =========================
   TOP BAR (NOT sticky)
========================= */
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f3ff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.brand-text {
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 14px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-link {
  text-decoration: none;
  color: #2b3b55;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topnav-link:hover {
  background: #f2f6fb;
}

.topnav-link.active {
  background: #e8f3ff;
  color: #114a84;
}

.icon {
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  color: #0d2b55;
  padding: 8px 10px;
  border-radius: 999px;
}

.acc-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #0d2b55;
  padding: 6px 8px;
  border-radius: 999px;
}

.icon-btn:hover {
  background: #f2f6fb;
}

.acc-icon-btn:hover {
  background: #f2f6fb;
}



.menu-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.user-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  /* background: #f0f4fb; */
  display: inline-block;
}

.menu-lines {
  width: 18px;
  height: 10px;
  display: inline-block;
  background: linear-gradient(to bottom,
      #2b3b55 0 2px,
      transparent 2px 4px,
      #2b3b55 4px 6px,
      transparent 6px 8px,
      #2b3b55 8px 10px);
}

/* Cart button */
.cart-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

.cart-btn:hover {
  border-color: #cfe0ff;
  background: #f3f7ff;
}

/* =========================
   LAYOUT
========================= */
.layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  padding: 18px 18px 60px;
  align-items: start;
}

/* =========================
   SIDEBAR (sticky)
========================= */
.sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  overflow: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: #20314c;
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding: 10px 6px;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: #20314c;
  padding: 8px 6px;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.chev {
  color: #7a8aa6;
  font-size: 14px;
}

.group-body {
  padding: 10px 6px 6px;
  display: grid;
  gap: 10px;
}

.group-body.two {
  grid-template-columns: 1fr 1fr;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 800;
}

.field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}

.field input:focus {
  border-color: #9cc8ff;
  box-shadow: 0 0 0 4px rgba(156, 200, 255, 0.35);
}

.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: #243957;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  color: #274062;
}

.chip:hover {
  background: #f3f7ff;
  border-color: #cfe0ff;
}

/* switch */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #d6deea;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.switch input:checked+.slider {
  background: #89c2ff;
}

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

/* =========================
   MAIN
========================= */
.main {
  min-width: 0;
}

.page-title {
  font-weight: 900;
  color: #1f3352;
  margin: 6px 2px 10px;
}

/* =========================
   STICKY SEARCH (stays at top)
========================= */
.search-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 0 12px;
  background: transparent;

}

.search-wrap {
  border-radius: 10px;
  background: var(--search-light);
  padding: 18px 18px;
  border: 1px solid #cfe4ff;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;

  width: 75%;
}



.search-box {
  background: #fff;
  border: 1px solid #99b5d9;
  border-radius: 10px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  max-width: 920px;
  position: relative;
  z-index: 60;
}

.search-ico {
  color: #375a86;
  font-size: 16px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  background: transparent;
  color: #152845;
}

.search-box input::placeholder {
  color: #7c8dad;
  font-weight: 600;
}

.search-box:focus-within {
  border-color: #5aa9ff;
  box-shadow: 0 0 0 4px rgba(90, 169, 255, 0.22);
}

/* =========================
   META ROW
========================= */
.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 2px 14px;
  color: var(--muted);
  font-weight: 800;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.zip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #36557f;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  color: var(--muted);
}

.sort select {
  border: none;
  background: transparent;
  font-weight: 900;
  color: var(--blue);
  cursor: pointer;
  outline: none;
}

.save-search {
  border: none;
  background: transparent;
  font-weight: 900;
  color: #7a8aa6;
  cursor: pointer;
}

.save-search .heart {
  color: #0d2b55;
}

/* =========================
   GRID + CAR CARD
========================= */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* hover highlight */
.car-card {
  background: var(--card);
  border: 1px solid #e6edf5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    border 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  cursor: pointer;
}

.car-card:hover {
  border: 1.5px solid #0a5fd8;
  box-shadow: 0 10px 28px rgba(10, 95, 216, 0.15);
  transform: translateY(-2px);
}

.media {
  position: relative;
  background: #f1f4f8;
}

.media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.fav {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 18px;
  color: #0d2b55;
  z-index: 5;
}

.fav:hover {
  background: rgba(255, 255, 255, 1);
}

.dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
}

.dot.active {
  background: #0d2b55;
}

.body {
  padding: 12px 14px 14px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.badge {
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.badge-blue {
  background: #0b4f93;
  color: #fff;
}

.badge-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #bfead2;
}

.body h3 {
  margin: 0;
  font-size: 18px;
  color: #122543;
  letter-spacing: -0.01em;
}

.sub {
  margin-top: 6px;
  font-weight: 800;
  color: #6a7b98;
  font-size: 13px;
}

.price-row {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price {
  font-weight: 900;
  font-size: 26px;
  color: #0f1f39;
}

.price-green {
  color: var(--green);
}

.down {
  font-size: 14px;
  margin-right: 6px;
}

.was {
  font-weight: 900;
  color: #7a8aa6;
  font-size: 13px;
  text-decoration: line-through;
}

/* line under price */
.divider {
  margin-top: 12px;
  height: 1px;
  background: #e8eef7;
  width: 100%;
}

.ship {
  margin-top: 12px;
  font-weight: 900;
  color: var(--green);
  font-size: 14px;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: grid;
  gap: 10px;
}

.toast {
  background: #0b4f93;
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(-10px);
  animation: toastIn 0.3s forwards;
}

.toast.success {
  background: #0f7a3f;
}

.toast.info {
  background: #0a5fd8;
}

.toast.warn {
  background: #8a5a00;
}

/* Make sure the menu-pill is clickable */
.menu-pill {
  cursor: pointer;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Auth Modal ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  place-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-overlay.show {
  opacity: 1;
  display: grid;
}

.auth-modal {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 320px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.auth-modal h3 {
  margin: 0 0 10px;
}

.auth-modal input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #dbe4f2;
}

.auth-primary {
  width: 100%;
  background: #0a5fd8;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.auth-secondary {
  width: 100%;
  margin-top: 8px;
  background: #f2f6fb;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* ===== Image Click Zones ===== */
.media {
  position: relative;
}

.media::before,
.media::after {
  content: "";
  position: absolute;
  top: 0;
  width: 35%;
  height: 100%;
  z-index: 3;
}

.media::before {
  left: 0;
}

.media::after {
  right: 0;
  cursor: pointer;
}

/* =========================
   CART UI
========================= */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
}

.cart-overlay.show {
  display: block;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 10000;
  border-left: 1px solid #e3e9f2;
  padding: 16px;
  overflow: auto;
  transition: right 0.25s ease;
}

.cart-panel.show {
  right: 0;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-head h3 {
  margin: 0;
}

.cart-close {
  border: none;
  background: #f2f6fb;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-item {
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
}

.cart-item img {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  background: #f1f4f8;
}

.cart-item-title {
  font-weight: 900;
  color: #122543;
  font-size: 13px;
}

.cart-item-price {
  margin-top: 4px;
  font-weight: 900;
  color: #0f1f39;
}

.remove-btn {
  margin-top: 8px;
  border: none;
  background: #f2f6fb;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.remove-btn:hover {
  background: #eaf1ff;
}

.cart-footer {
  margin-top: 14px;
  border-top: 1px solid #e8eef7;
  padding-top: 12px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  color: #122543;
}

.checkout-btn,
.paystack-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.checkout-btn {
  background: #0a5fd8;
  color: #fff;
}

.checkout-btn:hover {
  background: #084fb3;
}

.paystack-btn {
  background: #00c46a;
  color: #052113;
}

.paystack-btn:hover {
  background: #00a85b;
}

.cart-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #5d6b85;
}

/* =========================
   SCROLLBARS (optional polish)
========================= */
.sidebar::-webkit-scrollbar,
.cart-panel::-webkit-scrollbar {
  width: 10px;
}

.sidebar::-webkit-scrollbar-track,
.cart-panel::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.cart-panel::-webkit-scrollbar-thumb {
  background: #d7e0ee;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 270px 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .topbar {
    padding: 0 14px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    height: 50px;
  }

  .media img {
    height: 175px;
  }

  .price {
    font-size: 24px;
  }

  .meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.car-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
}

.img-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.img-prev {
  left: 10px;
}

.img-next {
  right: 10px;
}

/* =========================
   SELL / TRADE PAGE
========================= */
.sell-page .layout {
  display: none;
}

/* you don't want sidebar/grid on sell page */

.sell-hero {
  background: linear-gradient(180deg, #0b4f93 0%, #0a3e75 100%);
  padding: 44px 18px 54px;
}

.sell-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
  align-items: start;
}

.sell-hero-left h1 {
  margin: 0;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(38px, 4.4vw, 62px);
}

.sell-hero-sub {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.offer-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.offer-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e6edf5;
}

.img .offer-tab {
  border: none;
  background: #fff;
  padding: 16px 14px;
  font-weight: 900;
  cursor: pointer;
  color: #35527b;
  border-bottom: 3px solid transparent;
}

.offer-tab.active {
  color: #0b4f93;
  border-bottom-color: #0b4f93;
}

.offer-form {
  padding: 18px;
}

.offer-fields {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  margin-bottom: 14px;
}

.offer-fields.hidden {
  display: none;
}

.offer-input,
.offer-select {
  width: 100%;
  border: 1px solid #d8e2f0;
  border-radius: 10px;
  padding: 12px 12px;
  font-weight: 800;
  outline: none;
  background: #fff;
  color: #122543;
}

.offer-input:focus,
.offer-select:focus {
  border-color: #9cc8ff;
  box-shadow: 0 0 0 4px rgba(156, 200, 255, 0.35);
}

.offer-help {
  grid-column: 1 / -1;
  color: #5d6b85;
  font-weight: 700;
  font-size: 12px;
  margin-top: -4px;
}

.offer-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 950;
  cursor: pointer;
  background: #0a5fd8;
  color: #fff;
}

.offer-btn:hover {
  background: #084fb3;
}

.offer-fineprint {
  margin-top: 12px;
  color: #6a7b98;
  font-size: 12px;
  font-weight: 700;
}

/* Value card */
.sell-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px;
}

.value-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.value-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  color: #1f3352;
}

.value-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  color: #0b4f93;
  font-weight: 950;
}

.value-title {
  margin-top: 8px;
  font-weight: 950;
  color: #122543;
  font-size: 20px;
}

.value-sub {
  margin-top: 6px;
  color: #5d6b85;
  font-weight: 700;
  font-size: 13px;
}

.value-link {
  color: #0a5fd8;
  text-decoration: none;
  font-weight: 900;
}

.value-btn {
  border: 2px solid #0b4f93;
  background: #fff;
  color: #0b4f93;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.value-btn:hover {
  background: #f3f7ff;
}

/* How it works */
.sell-h2 {
  margin: 0;
  font-weight: 950;
  color: #122543;
  font-size: 28px;
}

.sell-p {
  margin: 10px 0 0;
  color: #5d6b85;
  font-weight: 700;
}

.how-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how-item {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.how-ico {
  font-size: 26px;
  margin-bottom: 10px;
}

.how-item h3 {
  margin: 0;
  font-weight: 950;
  color: #122543;
}

.how-item p {
  margin: 10px 0 0;
  color: #5d6b85;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .sell-hero-inner {
    grid-template-columns: 1fr;
  }

  .offer-fields {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .value-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   FINANCING PAGE
========================= */
.finance-page .layout {
  display: none;
}

/* hide search page layout on this page */

.finance-hero {
  background: linear-gradient(135deg, #0b4f93 0%, #0a3e75 55%, #0b2f57 100%);
  padding: 34px 18px 24px;
}

.finance-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
}

.finance-left {
  position: relative;
  min-height: 320px;
}

.finance-car-wrap {
  width: 100%;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.finance-car {
  width: min(520px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.25));
}

.finance-car-fallback {
  width: min(520px, 100%);
  height: 240px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
}

.finance-car-fallback small {
  opacity: 0.85;
  font-weight: 700;
}

.payment-bubble {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-10%);
  background: rgba(12, 58, 107, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  min-width: 240px;
}

.pay-top {
  font-weight: 900;
  opacity: 0.95;
  margin-bottom: 8px;
}

.pay-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 950;
}

.pay-amount .money {
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pay-amount .per {
  font-size: 18px;
  opacity: 0.95;
  font-weight: 900;
}

.pay-amount .lock {
  font-size: 18px;
  opacity: 0.95;
}

.finance-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 12px;
}

.finance-right {
  display: grid;
  justify-items: end;
}

.finance-card {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.finance-card h1 {
  margin: 0;
  font-weight: 950;
  color: #0b1220;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3vw, 40px);
}

.finance-card p {
  margin: 10px 0 18px;
  color: #2b3b55;
  font-weight: 750;
  line-height: 1.5;
}

.finance-cta {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 950;
  cursor: pointer;
  background: #0a5fd8;
  color: #fff;
}

.finance-cta:hover {
  background: #084fb3;
}

.finance-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 18px 60px;
  text-align: center;
}

.finance-h2 {
  margin: 0;
  font-weight: 950;
  color: #122543;
  font-size: clamp(26px, 3.4vw, 44px);
  letter-spacing: -0.02em;
}

.finance-sub {
  margin: 10px auto 0;
  max-width: 760px;
  color: #5d6b85;
  font-weight: 750;
  line-height: 1.6;
}

.finance-cards {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.finance-mini {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.mini-ico {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #0a5fd8;
  color: #0a5fd8;
  display: grid;
  place-items: center;
  font-weight: 950;
  margin-bottom: 12px;
}

.finance-mini h3 {
  margin: 0;
  font-weight: 950;
  color: #122543;
}

.finance-mini p {
  margin: 10px 0 0;
  color: #5d6b85;
  font-weight: 750;
  line-height: 1.6;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .finance-hero-inner {
    grid-template-columns: 1fr;
  }

  .finance-right {
    justify-items: stretch;
  }

  .payment-bubble {
    position: static;
    transform: none;
    margin: 12px 0 0;
  }

  .finance-cards {
    grid-template-columns: 1fr;
  }

  .finance-left {
    min-height: auto;
  }
}

.auth-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6edf5;
}

.profile-avatar,
.profile-avatar-fallback {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f2f6fb;
  border: 1px solid #e3e9f2;
}

.profile-avatar {
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #274062;
}

.auth-profile-meta {
  display: grid;
  gap: 4px;
}

.auth-who {
  font-weight: 950;
  color: #122543;
}

.auth-mini {
  font-size: 12px;
  font-weight: 800;
  color: #5d6b85;
}

.auth-logout {
  margin-top: 6px;
  width: fit-content;
  border: none;
  background: #f2f6fb;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
}

.auth-logout:hover {
  background: #eaf1ff;
}

.fav-btn {
  position: relative;
}

.fav-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff3b3b;
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* ===== Car fav button state ===== */
.fav.is-fav {
  background: rgba(255, 255, 255, 1);
  color: #0a5fd8;
  box-shadow: 0 10px 20px rgba(10, 95, 216, 0.12);
}

/* ===== Empty-state ===== */
.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed #cfe0ff;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  color: #5d6b85;
  font-weight: 900;
}

.use-location {
  margin-left: 10px;
  border: 1px solid #cfe0ff;
  background: #f3f7ff;
  color: #0a5fd8;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}

.use-location:hover {
  background: #eaf1ff;
  border-color: #bcd6ff;
}

.use-location:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.use-location.secondary {
  background: #fff;
  border-color: #e3e9f2;
  color: #2b3b55;
}

.use-location.secondary:hover {
  background: #f2f6fb;
}

/* Inline ZIP form */
.zip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.zip-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.zip-inline-form input {
  width: 200px;
  max-width: 60vw;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  padding: 8px 10px;
  outline: none;
  font-weight: 700;
}

.zip-inline-form input:focus {
  border-color: #9cc8ff;
  box-shadow: 0 0 0 4px rgba(156, 200, 255, 0.25);
}

/* =========================
   ✅ SIDEBAR FIXES / POLISH (ADD AT BOTTOM)
========================= */

/* 1) ✅ Selected chip state (your JS toggles .selected) */
.chip.selected {
  background: #e8f3ff;
  border-color: #89c2ff;
  color: #114a84;
  box-shadow: 0 8px 18px rgba(10, 95, 216, 0.1);
}

/* Optional: keyboard focus for chips */
.chip:focus {
  outline: none;
  border-color: #9cc8ff;
  box-shadow: 0 0 0 4px rgba(156, 200, 255, 0.35);
}

/* 2) ✅ Style <select> fields same as inputs (APR + Term) */
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  font-weight: 800;
  color: #152845;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Nice dropdown arrow */
.field {
  position: relative;
}

.field select {
  padding-right: 36px;
}

.field::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 34px;
  /* aligns under the label */
  color: #7a8aa6;
  pointer-events: none;
  font-weight: 900;
}

.field select:focus {
  border-color: #9cc8ff;
  box-shadow: 0 0 0 4px rgba(156, 200, 255, 0.35);
}

/* 3) ✅ Make checkbox taps nicer */
.check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0a5fd8;
}

/* 4) ✅ Ensure your image click-zones DO NOT block nav buttons */
.media::before,
.media::after {
  pointer-events: none;
  /* zones won't steal clicks */
}

/* But allow the image itself + nav buttons to work */
.media img,
.img-nav,
.fav {
  pointer-events: auto;
}

/* 5) ✅ Small improvement: sidebar scrollbar area on mobile */
@media (max-width: 900px) {
  .sidebar {
    padding-right: 0;
  }
}

/* .gallery-title {
  font-weight: 950;
  color: #122543;
} */



.gallery-tab {
  border: 1px solid #e3e9f2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 950;
  cursor: pointer;
  color: #274062;
}

.gallery-tab.active {
  background: #f3f7ff;
  border-color: #cfe0ff;
  color: #0a5fd8;
}

.gallery-close {
  border: none;
  background: #f2f6fb;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 950;
}

.gallery-close:hover {
  background: #eaf1ff;
}

.gallery-stage {
  position: relative;
  background: #0b1220;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.gallery-hint {
  padding: 10px 14px 14px;
  font-size: 12px;
  color: #5d6b85;
  font-weight: 800;
  background: #fff;
}

.spin-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.spin-label {
  font-weight: 950;
}

.spin-controls input[type="range"] {
  width: 100%;
}

/* =========================
   CARD OVERLAY BUTTONS
========================= */
.media-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(11, 18, 32, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 950;
  cursor: pointer;
  z-index: 6;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.media-pill:hover {
  background: rgba(11, 18, 32, 0.7);
}

.media-pill.two {
  left: auto;
  right: 12px;
  bottom: 12px;
}


/* Meta row under image
#galleryOverlay .gallery-meta {
  padding: 30px;
  border-top: 1px solid #eef3fb;
  background: #fff;
  max-height: 55vh;
  /* ✅ ensures it shows */
/* overflow: auto;
/* } */

/* Thumbs */
/* #galleryOverlay .gallery-thumbs {
  display: flex;
  gap: 5px;
  padding-top: 0px;
  overflow: auto;
  border-top: 1px solid #eef3fb;
  background: #fff;
} */


/* Mobile: make grid 1 column */
@media (max-width: 720px) {
  .g-meta-grid {
    grid-template-columns: 1fr;
  }
}



.paystack-btn.is-loading {
  opacity: 0.75;
  cursor: not-allowed;
}

/* Stripe-like checkout button */
.checkout-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
  cursor: pointer;

  color: #fff;
  background: #635bff;
  /* Stripe-ish purple */
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease;
}

.checkout-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.checkout-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  filter: brightness(0.98);
}

.checkout-btn:focus-visible {
  outline: 3px solid rgba(99, 91, 255, 0.35);
  outline-offset: 3px;
}

/* Loading state (optional) */
.checkout-btn.is-loading {
  opacity: 0.85;
  cursor: progress;
}

/* Disabled state */
.checkout-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Right-side dropdown panel (Carvana-style) ===== */
.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* panel container */
.user-dropdown {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.15);
  padding: 22px;
  z-index: 9999;

  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

/* show state */
.user-dropdown.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* menu items */
.user-dd-item {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: #243957;
  font-weight: 600;
}

.user-dd-item:hover {
  background: #f3f6fb;
}

/* hamburger button */
.hamburger-btn {
  font-size: 20px;
  line-height: 1;
}

/* =========================
   ✅ PRETTY RIGHT SIDE MENU
========================= */

.user-dropdown.user-dropdown--pretty {
  width: 380px;
  max-width: 92vw;
  padding: 18px;
  border-left: 1px solid #e6edf5;
  background: #fff;
}

/* Top bar */
.dd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef3fb;
}

.dd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dd-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  color: #0b4f93;
  font-weight: 950;
}

.dd-title {
  font-weight: 950;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #122543;
}

.dd-subtitle {
  margin-top: 2px;
  font-weight: 800;
  font-size: 12px;
  color: #5d6b85;
}

.dd-close {
  border: 1px solid #e3e9f2;
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 950;
}

.dd-close:hover {
  background: #f3f7ff;
  border-color: #cfe0ff;
}

/* Profile mini-card */
.dd-profile {
  margin-top: 14px;
  background: #f6f8fb;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #0a5fd8;

}

.dd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid #e3e9f2;
  font-size: 18px;
}

.dd-profile-meta {
  display: grid;
  gap: 3px;

}

.dd-who {
  font-weight: 950;
  color: #fff;
}

.dd-mini {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}



/* Links */
.dd-links {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.dd-link {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #e6edf5;
  background: #fff;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.dd-link:hover {
  border-color: #cfe0ff;
  background: #f7fbff;
  box-shadow: 0 10px 22px rgba(10, 95, 216, 0.1);
  transform: translateY(-1px);
}

.dd-link--logout .dd-ico {
  background: #fff1f1;
  color: #b42318;
}

.dd-link--logout:hover {
  border-color: #f0b7b7;
  background: #fff8f8;
}

.dd-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  color: #0b4f93;
  font-size: 16px;
}

.dd-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.dd-main {
  font-weight: 950;
  color: #122543;
  line-height: 1.1;
}

.dd-desc {
  font-size: 12px;
  font-weight: 800;
  color: #5d6b85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.dd-arrow {
  margin-left: auto;
  font-size: 22px;
  color: #7a8aa6;
  font-weight: 900;
}

/* Footer */
.dd-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eef3fb;
  display: grid;
  gap: 10px;
}

.dd-cta {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 950;
  background: #0a5fd8;
  color: #fff;
}

.dd-cta:hover {
  background: #084fb3;
}

.dd-fine {
  font-size: 12px;
  font-weight: 800;
  color: #5d6b85;
  text-align: center;
}

/* ✅ Make divider + shipping line up across all cards */
.car-card .price-row {
  min-height: 36px;
  /* enough for one line */
  align-items: center;
}

/* Price-drop cards have 2 items -> reserve more height */
.car-card .price-row:has(.was) {
  min-height: 44px;
  /* adjust 40–48px to taste */
}

/* ===== Auth Modal (Upgrade for Login + Signup + Status) ===== */
.auth-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.auth-status {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e6edf5;
  font-weight: 850;
  font-size: 13px;
  color: #122543;
}

.auth-status.success {
  background: rgba(15, 122, 63, 0.1);
  border-color: rgba(15, 122, 63, 0.25);
}

.auth-status.warn {
  background: rgba(138, 90, 0, 0.1);
  border-color: rgba(138, 90, 0, 0.25);
}

.auth-status.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Two primary actions side-by-side */
.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* Let your existing .auth-primary/.auth-secondary still apply */
.auth-actions .auth-primary,
.auth-actions .auth-secondary {
  width: 100%;
  margin-top: 0;
}

/* Guest button as a clean outline */
.auth-ghost {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1px solid #dbe4f2;
  padding: 10px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
  color: #243957;
}

.auth-ghost:hover {
  background: #f2f6fb;
}

/* Mobile: stack buttons */
@media (max-width: 420px) {
  .auth-actions {
    flex-direction: column;
  }
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin: 8px 0 12px;
}

.auth-tab {
  flex: 1;
  border: 1px solid #e3e9f2;
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 950;
  cursor: pointer;
  color: #274062;
}

.auth-tab.active {
  background: #e8f3ff;
  border-color: #89c2ff;
  color: #114a84;
}

.auth-status {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e3e9f2;
  background: #f6f8fb;
  font-weight: 850;
  font-size: 13px;
}

.auth-status.success {
  border-color: #bfead2;
  background: #e5f6ee;
  color: #0f7a3f;
}

.auth-status.warn {
  border-color: #ffd79a;
  background: #fff5e5;
  color: #8a5a00;
}

.auth-status.error {
  border-color: #ffc7c7;
  background: #ffecec;
  color: #b42318;
}

.badge.verified {
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #1b1b1b;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* =========================
   PREMIUM SELLER PROFILE CARD
========================= */

#sellerProfileCard {
  position: relative;
  background: linear-gradient(145deg, #0f172a, #111827);
  border-radius: 18px;
  padding: 32px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* subtle glow border */
#sellerProfileCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(59, 130, 246, 0.4),
      rgba(99, 102, 241, 0.3),
      rgba(168, 85, 247, 0.3));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Title */
#sellerProfileCard h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* Subtext */
#sellerProfileCard .muted {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 26px;
}

/* Form grid */
#sellerProfileCard .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

/* Labels */
#sellerProfileCard label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  gap: 8px;
}

/* Inputs */
#sellerProfileCard input,
#sellerProfileCard select {
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #f1f5f9;
  outline: none;
  transition: all 0.25s ease;
}

/* Focus effect */
#sellerProfileCard input:focus,
#sellerProfileCard select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: #0f172a;
}

/* Disabled look */
#sellerProfileCard select:disabled,
#sellerProfileCard input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Verified checkbox row */
#sellerProfileCard label.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Verified badge effect when active */
#sellerVerifiedActive:checked+span,
#sellerVerifiedActive:checked {
  accent-color: #22c55e;
}

/* Actions row */
#sellerProfileCard .actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Save button premium */
#saveSellerProfileBtn {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.4);
}

#saveSellerProfileBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

#saveSellerProfileBtn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Status message */
#sellerProfileStatus {
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 500;
}

/* Premium hover glow */
#sellerProfileCard:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.plan-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-badge.premium {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111827;
}

/* =========================
   ✅ ONE-LINE ELASTIC TOPBAR (Mobile)
   Keeps: Brand + Search/Sell/Finance + Back button on ONE LINE
========================= */

.topbar {
  min-width: 0;
}

.topbar-left,
.topbar-right,
.brand,
.topnav {
  min-width: 0;
}

/* Make left side take remaining width so it can shrink */
.topbar-left {
  flex: 1 1 auto;
}

/* Prevent wrapping (must stay one line) */
.topbar {
  flex-wrap: nowrap;
}

/* Allow brand text to shrink with ellipsis */
.brand-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Allow nav to shrink instead of pushing out */
.topnav {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

/* Links must be allowed to shrink */
.topnav-link {
  min-width: 0;
  white-space: nowrap;
}

/* Right side should not stretch */
.topbar-right {
  flex: 0 0 auto;
}

/* ===== Mobile compression ===== */
@media (max-width: 700px) {
  .topbar {
    padding: 0 10px;
    /* ✅ shrink side padding */
    height: 64px;
    /* ✅ slightly smaller */
    gap: 8px;
  }

  .topbar-left {
    gap: 10px;
    /* ✅ shrink gaps */
  }

  .brand {
    gap: 8px;
  }

  .brand-badge {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  /* Brand becomes shorter automatically */
  .brand-text {
    font-size: 12px;
    letter-spacing: 0.14em;
    max-width: 120px;
    /* ✅ key: limits brand width */
  }

  .topnav {
    gap: 6px;
  }

  .topnav-link {
    padding: 8px 8px;
    /* ✅ shrink link padding */
    font-size: 12px;
    /* ✅ shrink text */
    gap: 6px;
  }

  .icon {
    font-size: 12px;
  }

  /* Back button also shrinks */
  .cart-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Ultra small phones: hide the icon in links to save space */
@media (max-width: 420px) {
  .topnav-link .icon {
    display: none;
  }

  .brand-text {
    max-width: 90px;
  }

  .topnav-link {
    padding: 7px 7px;
    font-size: 11.5px;
  }

  .cart-btn {
    padding: 7px 9px;
    font-size: 11.5px;
  }
}

/* @media (max-width: 700px) {
  .cart-btn {
    padding: 8px 10px;
  }
  .cart-btn::after {
    content: "";
  }
  .cart-btn {
    font-size: 0; /* hides text */
/* } */
/* .cart-btn::before { */
/* content: "🏠"; */
/* font-size: 14px; */
/* } */
/* }  */

@media (max-width: 700px) {

  .dash-page .cart-btn,
  .sell-page .cart-btn,
  .finance-page .cart-btn {
    padding: 8px 10px;
    font-size: 0;
    /* hides text */
  }

  .dash-page .cart-btn::before,
  .sell-page .cart-btn::before,
  .finance-page .cart-btn::before {
    content: "🏠";
    font-size: 14px;
  }

  .dash-page .cart-btn::after,
  .sell-page .cart-btn::after,
  .finance-page .cart-btn::after {
    content: "";
  }
}

@media (max-width: 700px) {
  .index-page .topbar-right {
    gap: 6px;
  }

  .index-page .icon-btn {
    padding: 6px 7px;
    font-size: 16px;
  }

  .index-page .acc-icon-btn {
    padding: 6px 7px;
    font-size: 16px;
  }

  .index-page .profile-avatar {
    width: 28px;
    height: 28px;
  }

  .index-page .profile-avatar-fallback {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .index-page .fav-count {
    transform: scale(0.85);
    top: -4px;
    right: -4px;
  }

  .index-page .hamburger-btn {
    font-size: 18px;
  }
}

/* =========================
   MOBILE NAV TEXT SHORTEN (SEARCH PAGE HEADER)
========================= */
@media (max-width: 700px) {

  /* Hide original long text */
  .topnav-link {
    font-size: 0;
  }

  /* Search Cars → Search */
  .topnav-link[href*="index"]::after {
    content: "Search";
    font-size: 13px;
    font-weight: 700;
  }

  /* Sell/Trade → Sell */
  .topnav-link[href*="sell"]::after {
    content: "Sell";
    font-size: 13px;
    font-weight: 700;
  }

  /* Financing → Finance */
  .topnav-link[href*="financing"]::after {
    content: "Finance";
    font-size: 13px;
    font-weight: 700;
  }
}

/* =========================
   MOBILE NAV: keep pill background correct
========================= */
@media (max-width: 700px) {

  /* only index page */
  .index-page .topnav-link .nav-label {
    display: none;
    /* remove original labels so no duplicates */
  }

  .index-page .topnav-link {
    padding: 8px 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .index-page .topnav-link::after {
    font-weight: 800;
    font-size: 13px;
    color: #2b3b55;
  }

  .index-page .topnav-link.active::after {
    color: #114a84;
  }

  .index-page .topnav-link[href*="index"]::after {
    content: "Search";
  }

  .index-page .topnav-link[href*="sell-trade"]::after {
    content: "Sell";
  }

  .index-page .topnav-link[href*="financing"]::after {
    content: "Finance";
  }
}

/* 
.auth-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
} */

/* space between inputs and buttons inside auth modal */
.auth-modal input {
  margin-bottom: 12px;
}

#forgotPwBtn {
  margin: 8px 0 12px;
  width: 100%;
}

#loginBtn {
  margin-top: 6px;
}

.auth-primary,
.auth-secondary {
  margin-top: 10px;
}

.car-card .media {
  position: relative;
}

.car-card .img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;

  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.car-card .img-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

.car-card .img-prev {
  left: 10px;
}

.car-card .img-next {
  right: 10px;
}

/* ===== Testimonial Ticker ===== */

/* ===========================
   Premium Testimonials Ticker
   =========================== */

.tma-ticker {
  position: relative;
  margin: 14px 0 0;
  padding: 10px 0;
  overflow: hidden;
  border-top: 1px solid rgba(15, 23, 42, 0.08);

  /* Glassy background */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tma-ticker__viewport {
  overflow: hidden;
}

.tma-ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: tmaTickerScroll 26s linear infinite;
}

/* Pause on hover (premium feel) */
.tma-ticker:hover .tma-ticker__track {
  animation-play-state: paused;
}

/* Each row holds chips; 2 rows exist for seamless loop */
.tma-ticker__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}

/* Chip / pill style */
.tma-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;

  background: rgba(11, 95, 255, 0.06);
  border: 1px solid rgba(11, 95, 255, 0.12);
  /* border: 1px solid rgba(15, 23, 42, 0.08); */
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);

  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

/* Nice micro-interaction */
.tma-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.12);
}

/* Gradient fade edges */
.tma-ticker__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  z-index: 2;
}

.tma-ticker__fade--left {
  left: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0));
}

.tma-ticker__fade--right {
  right: 0;
  background: linear-gradient(to left,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0));
}

/* Smooth infinite scroll */
@keyframes tmaTickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Move by half, because we duplicated the row */
    transform: translateX(-50%);
  }
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .tma-ticker__track {
    animation: none;
  }
}

/* Ensure flex/grid children can shrink correctly */
.layout,
.main {
  min-width: 0;
}

/* If you ever use a 2-column mode, it must be explicit via a class */
.main-shell {
  display: block;
}

/* Two-column mode (only when class is present) */
.main-shell.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

/* Right panel hidden by default */
#sidePanel {
  display: none;
}

/* Show right panel only in two-col mode */
.main-shell.two-col #sidePanel {
  display: block;
}

.car-card {
  transition: opacity .25s ease, transform .5s ease;
}

.car-card[style*="opacity: 0"] {
  transform: scale(.96);
}

.badge.featured {
  background: #FFD700;
  color: #000;
  font-weight: 600;
}

.badge.urgent {
  background: #ff3b3b;
  color: #fff;
  font-weight: 600;
}

.badge.negotiable {
  background: #2e7d32;
  color: #fff;
  font-weight: 600;
}

.badge.negotiable {
  background: #10b981;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge.featured {
  background: #f59e0b;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge.urgent {
  background: #ef4444;
  color: white;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}

/* image promotion badges */
.media {
  position: relative;
}

.promo-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.promo-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  color: white;
  backdrop-filter: blur(2px);
}

.promo-featured {
  background: linear-gradient(135deg, #ffd700, #f5b800);
  color: #000;
}

.promo-urgent {
  background: #ff3b30;
}

.car-card[data-featured="1"] {
  box-shadow: 0 0 0 2px #ffd70033, 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* .share-btn{
position:absolute;
top:10px;
right:50px;
width:34px;
height:34px;
border-radius:50%;
border:1px solid #e2e8f0;
background:#fff;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.share-btn svg{
fill:#111;
} */

/* .share-btn{
position:absolute;
top:10px;
right:10px;
background:white;
border-radius:50%;
width:36px;
height:36px;
display:flex;
align-items:center;
justify-content:center;
border:none;
cursor:pointer;
box-shadow:0 2px 6px rgba(0,0,0,.25);
z-index:3;
}

.share-btn svg{
fill:#333;
width:18px;
height:18px;
} */

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.share-btn {
  background: #f1f3f6;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  z-index: 10;
  position: relative;

}

.share-btn svg {
  fill: #444;
  width: 18px;
  height: 18px;
}

.share-btn:hover {
  background: #0a5fd8;
  transform: scale(1.05);
}

.share-btn:hover svg {
  fill: white;
}

.g-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.g-share-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.g-share-btn svg {
  fill: #0a5fd8;
}

.g-share-btn:hover svg {
  fill: #000;
}

.g-share-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wa-status-btn {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.wa-status-btn:hover {
  background: #1ebe5d;
}



.share-btn {
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.share-btn:hover {
  background: #e5e7eb;
}

.wa-status-btn {
  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.g-share-section {
  margin-top: 18px;
}

.g-share-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.g-share-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  background: #f1f5f9;
  border: none;
  border-radius: 8px;

  cursor: pointer;
  font-size: 18px;
}

.share-btn:hover {
  background: #e2e8f0;
}

.wa-status-btn {
  flex: 1;

  background: #25D366;
  color: white;

  border: none;
  border-radius: 8px;

  padding: 12px;
  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}

.g-contact {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.g-contact-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.g-contact-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}

.g-contact-row .k {
  color: #6b7280;
}

.g-contact-row .v {
  font-weight: 500;
}

.g-share-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  width: 100%;
}

.share-btn {
  flex: 0 0 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;
  border: none;
  border-radius: 10px;

  cursor: pointer;
  font-size: 18px;
}

.share-btn:hover {
  background: #e2e8f0;
}

.wa-status-btn {
  flex: 1;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;

  border: none;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}

.share-btn svg {
  fill: #0a5fd8;
}

.g-share-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.share-btn {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

.wa-status-btn {
  flex: 1;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;
  border: none;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.g-share-section {
  margin-top: 16px;
}

.g-share-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.g-share-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.share-btn {
  flex: 0 0 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1f5f9;
  border: none;
  border-radius: 10px;

  cursor: pointer;
}

.share-btn svg {
  fill: #2563eb;
}

.wa-status-btn {
  flex: 1;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;

  border: none;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
}

/* MOBILE FILTER DRAWER
@media (max-width:768px){

.filters{
position:fixed;
top:0;
left:-100%;

width:85%;
max-width:320px;
height:100vh;

background:#fff;
z-index:9999;

overflow-y:auto;
padding:20px;

transition:left .3s ease;
}

.filters.open{
left:0;
}

.filter-overlay{
position:fixed;
inset:0;
background:rgba(0,0,0,.4);

z-index:9998;
display:none;
}

.filter-overlay.show{
display:block;
}

.mobile-filter-btn{
display:flex;
align-items:center;
gap:6px;

background:#0a5fd8;
color:#fff;

border:none;
border-radius:8px;

padding:10px 12px;
margin-right:10px;

font-size:14px;
cursor:pointer;
}

.search-bar{
display:flex;
align-items:center;
}

.search-bar input{
flex:1;
}

.filters-header{
display:flex;
align-items:center;
justify-content:space-between;

margin-bottom:16px;

font-size:18px;
font-weight:600;
}

.filters-close{
background:#f1f5f9;
border:none;
border-radius:8px;

width:34px;
height:34px;

cursor:pointer;
font-size:18px;
}

} */
/* =========================================================

/* MOBILE FILTER DRAWER */
@media (max-width: 768px) {

  .filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
  }

  .filters.open {
    left: 0;
  }

  .filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .filter-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* filter button near search */
  #mobileFilterBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #1a5cff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }

  /* close button */
  #closeFiltersBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
  }
}

/* ================= MOBILE CARD GRID ================= */

@media (max-width: 768px) {

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px;
  }

  /* each card */
  .car-card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform .15s ease;
  }

  /* subtle tap feedback */
  .car-card:active {
    transform: scale(.98);
  }

}

.car-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f6fb;
}

.car-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-card .body {
  padding: 12px;
}

.car-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.car-card .sub {
  font-size: 12px;
  color: #667085;
  margin-bottom: 4px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 6px;
}

.share-btn {
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}

.share-btn:hover {
  background: #e2e8f0;
}

.promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ffcc00;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
}

.badges {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.badge-blue {
  background: #1a5cff;
  color: #fff;
}

.badge.verified {
  background: #facc15;
  color: #111;
}

.ship {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 6px;
}

/* DESKTOP */
@media (min-width: 769px) {

  #mobileFilterBtn {
    display: none;
  }

  #closeFiltersBtn {
    display: none;
  }

}

/* MOBILE */
@media (max-width: 768px) {

  .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .search-input {
    flex: 1;
  }

  #mobileFilterBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #1a5cff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

}

#closeFiltersBtn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  border: none;
  background: none;
  cursor: pointer;
}

.filters-header,
.filters-title {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #101828;
  margin-left: 10px;
}

/* MOBILE FILTER PANEL SIZE */
@media (max-width: 768px) {

  .filters {
    width: 79%;
    max-width: 340px;
    height: 100%;
    position: fixed;
    left: -100%;
    top: 0;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  }

  .filters.open {
    left: 0;
  }

}

#filterOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

#filterOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

.listing-status {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.pending {
  background: #fff4d6;
  color: #b07b00;
}

.approved {
  background: #e7f9ed;
  color: #008a2e;
}

.rejected {
  background: #ffe6e6;
  color: #cc0000;
}

.listing-status-wrap {
  margin-top: 6px;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .car-grid {
    grid-template-columns: 1fr;
  }
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  content-visibility: auto;
}

/* Share button */
.share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

.share-btn:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

/* Tooltip */
.tooltip-text {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* tooltip arrow */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

/* show tooltip */
.share-btn:hover .tooltip-text {
  opacity: 1;
}

/* SHARE BUTTON */

.share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

/* TOOLTIP TEXT */

.tooltip-text {
  position: absolute;
  bottom: 120%;
  left: 20%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* Tooltip arrow */

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
}

/* SHOW TOOLTIP ON HOVER */

.share-btn:hover .tooltip-text {
  opacity: 1;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  padding-right: 45px;
  /* space for icon */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  opacity: 0.6;
  transition: 0.2s;
}

.toggle-password:hover {
  opacity: 1;
}

/* ================= MOBILE ONLY ================= */

.reveal-phone {
  padding: 9px 16px;
  border-radius: 8px;

  border: none;
  cursor: pointer;

  font-size: 13px;
  font-weight: 600;

  color: white;
  background: linear-gradient(135deg, #0a5fd8, #1e90ff);

  box-shadow: 0 6px 18px rgba(10, 95, 216, 0.25);
  transition: all 0.2s ease;
}

.reveal-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(10, 95, 216, 0.35);
}

.reveal-phone:active {
  transform: scale(0.95);
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 700px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 18px 20px;
  z-index: 99999;
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 40px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  color: #333;
}

.cookie-text a {
  color: #0a5fd8;
  font-weight: 600;
  text-decoration: none;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-btn.primary {
  background: linear-gradient(135deg, #0a2a66, #1e4fbf);
  color: #fff;
}

.cookie-btn.secondary {
  background: #eee;
  color: #333;
}


/* .gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: none;
} */

/* .gallery-modal {
  background: white;
  width: 95%;
  max-width: 1400px;
  margin: 40px auto;
  border-radius: 16px;
  padding: 15px;
  position: relative;
} */

.gallery-saas {
  display: flex;
  gap: 30px;
}

.g-left {
  flex: 1.6;
}

.g-main img {
  width: 100%;
  border-radius: 12px;
}

.g-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.g-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.g-thumbs img.active {
  border: 2px solid #0b5fff;
}

.g-right {
  flex: 1;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.g-top h2 {
  font-size: 20px;
  margin: 0;
}

.g-price {
  font-size: 26px;
  font-weight: 700;
  color: #0b5fff;
  margin-top: 5px;
}

.g-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.g-badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.verified {
  background: #e8f5e9;
  color: #2e7d32;
}

.ai {
  background: #e3f2fd;
  color: #1565c0;
}

.g-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.g-spec {
  background: #f7f9fc;
  padding: 12px;
  border-radius: 10px;
}

.g-spec label {
  font-size: 12px;
  color: #777;
  display: block;
}

.g-divider {
  height: 1px;
  background: #eee;
  margin: 20px 0;
}

.g-actions {
  display: flex;
  gap: 10px;
}



.g-trust {
  margin-top: 15px;
  font-size: 13px;
  color: #666;
}

.g-close {
  position: absolute;
  right: 15px;
  top: 15px;
  background: #eee;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
}

/* ================= PREMIUM GALLERY ================= */

/* .gallery-meta {
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
} */

.g-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.g-price {
  font-size: 22px;
  font-weight: 800;
  color: #0a66c2;
}

.g-actions {
  display: flex;
  gap: 10px;
}

.g-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  font-size: 18px;
}

.g-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.g-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
}

.g-item .k {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.g-item .v {
  font-weight: 450;
  color: grey;
}



.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.seller-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0a66c2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.seller-name {
  font-weight: 700;
}

.seller-badge {
  font-size: 12px;
  color: #16a34a;
}

.seller-chat {
  margin-left: auto;
  background: #16a34a;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}

/* ===== PREMIUM SPLIT GALLERY ===== */

/* .gallery-modal {
  display: flex;
  gap: 20px;
  align-items: stretch;
} */



/* .gallery-meta {
  flex: 0 0 35%;
  max-width: 35%;
  overflow: auto;
  padding: 20px;
  background: white;
  border-left: 1px solid #e5e7eb;
} */

/* image wrapper */
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* responsive */
/* @media (max-width: 1200px) {

  .gallery-modal {
    flex-direction: column;
  }

  .gallery-main
   {
    max-width: 100%;
    flex: 1;
  }

} */

/* responsive */
/* @media (max-width: 900px) {

  .gallery-modal {
    flex-direction: column;
  }

  .gallery-main
   {
    max-width: 100%;
    flex: 1;
  }

} */



.gallery-meta h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.g-price {
  font-size: 24px;
  font-weight: 900;
  color: #0a66c2;
  margin-bottom: 16px;
}

.g-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.g-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 10px;
}

.gallery-content {
  display: flex;
  gap: 10px;
  /* height: 65vh; */
}


/* .gallery-meta {
  flex: 0 0 35%;
  max-width: 35%;
  overflow: auto;
} */


/* .gallery-main {
  flex: 0 0 65%;
  max-width: 65%;
  height: 100%;
  display: flex;
} */

/* .gallery-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
} */

/* .gallery-meta {
  flex: 0 0 35%;
  max-width: 35%;
  height: 55vh;
  /* IMPORTANT */
/* overflow-y: auto;
  display: flex;
  flex-direction: column;
} */

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


.g-seller {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: white;
  border-radius: 5px;
  /* padding-top: 12px; */
}

/* AI BADGE */
.g-ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
  z-index: 5;
}

/* SAVE HEART */
.g-icon.active {
  color: #ef4444;
  transform: scale(1.2);
  transition: .2s ease;
}

/* IMAGE TOUCH */
.gallery-image {
  touch-action: none;
}

/* swipe cursor */
/* .gallery-image-wrap {
  cursor: grab;
}

.gallery-image-wrap:active {
  cursor: grabbing;
} */

/* .gallery-main {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 20px;

} */

.gallery-left {
  display: flex;
  flex-direction: column;
}

/* .gallery-meta {
  overflow: auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
} */

/* .gallery-image-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f6fb;
  border-radius: 12px;
} */

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* .gallery-modal {
  width: 95vw;
  height: 90vh;
  max-width: 1400px;

  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 14px;
  overflow: hidden;
} */


.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.seller-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.seller-dp {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  flex-shrink: 0;
}

.badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badges {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;

}

.seller-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.seller-dp {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: auto;
  flex-shrink: 0;
}

/* .about-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.6);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
} */

/* .about-modal.show{
display:flex;
} */

/* .about-box{
background:#fff;
width:520px;
max-width:95%;
border-radius:12px;
padding:20px;
position:relative;
max-height:80vh;
overflow:auto;
} */

/* .about-close{
position:absolute;
right:10px;
top:10px;
border:none;
background:#eee;
width:32px;
height:32px;
border-radius:8px;
cursor:pointer;
} */

.about-content {
  font-size: 12px;
  line-height: 1.2;
}

.about-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-top: 2px solid #0a66ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.about-content h3 {
  margin-top: 13px;
  margin-bottom: 6px;
  font-size: 14px;
  color: #0a66ff;
}

.about-content ul {
  padding-left: 18px;
  margin: 6px 0;
}

.about-content li {
  margin-bottom: 4px;
}


#aboutCarBtn {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  /* font-size:12px; */
  font-weight: 900;
  cursor: pointer;
  margin-left: 6px;
  transition: .2s;
}

#aboutCarBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}

/* #aboutCarBtn{
border:1px solid #d0d7e2;
background:#f8fafc;
padding:6px 12px;
border-radius:8px;
font-size:13px;
cursor:pointer;
display:flex;
align-items:center;
gap:6px;
}

#aboutCarBtn:hover{
background:#eef3ff;
border-color:#0a66ff;
color:#0a66ff;
}

#gAiInsights{
background:linear-gradient(135deg,#6366f1,#2563eb);
color:#fff;
padding:4px 10px;
border-radius:999px;
font-size:12px;
font-weight:600;
cursor:pointer;
margin-left:6px;
}

#gAiInsights:hover{
transform:translateY(-1px);
box-shadow:0 4px 10px rgba(0,0,0,.15);
} */

#aboutCarModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, .5);
  /* max-height: 350vh; */
  display: none;
  align-items: center;
  justify-content: center;
}

#aboutCarModal.show {
  display: flex;
}

.ai-about {
  line-height: 1.2;
  font-size: 12px;
  color: #222;
}

.ai-about h2 {
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 8px;
  color: #0b5cff;
}

.ai-about h3 {
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.ai-about ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.ai-about li {
  margin-bottom: 6px;
}

.ai-about p {
  margin-bottom: 8px;
}

/* .about-modal{
  
  overflow-y:auto;
} */

/* .about-content{
  /* max-height:60vh; */
/* overflow-y:auto;
  padding-right:8px;
} */

/* .about-box{
  width:520px;
  max-width:95%;
  background:white;
  border-radius:12px;
  padding:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.15);
} */

/* .about-close{
  position:absolute;
  right:15px;
  top:15px;
  border:none;
  background:#eee;
  width:30px;
  height:30px;
  border-radius:6px;
  cursor:pointer;
} */

.ai-insights-badge {
  background: linear-gradient(135deg, #0057ff, #00a8ff);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.about-loading {
  text-align: center;
  padding: 20px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #eee;
  border-top: 3px solid #0b5cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

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

/* .about-modal{
  position:fixed;
  inset:0;
  display:none;

  align-items:center;
  justify-content:center;

  background:rgba(0,0,0,.45);

  z-index:999999;   /* IMPORTANT */


/* .about-modal.show{
  display:flex;
} */

/* .about-box{
  position:relative;
  width:560px;
  max-width:92%;
  max-height:100vh;
  overflow:hidden;
} */

/* .about-content{
  /* max-height:65vh; */
/* overflow-y:auto;
  padding-right:8px;
} */

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar-text {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: #111;
  color: #fff;
}

.social-login {
  margin: 12px 0;
  display: flex;
  justify-content: center;
}

.auth-divider {
  text-align: center;
  margin: 10px 0;
  color: #999;
  font-size: 13px;
}

/* auth modal */

/* ===== PREMIUM AUTH MODAL ===== */
.auth-modal {
  width: 420px;
  max-width: 95%;
  padding: 28px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 2px 10px rgba(0, 0, 0, 0.08);

  border: 1px solid rgba(255, 255, 255, 0.3);

  animation: modalFade 0.35s ease;
}

@keyframes modalFade {
  from {
    transform: translateY(20px) scale(0.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* overlay darker = premium */
.auth-overlay {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

.social-login {
  margin: 16px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

#googleBtn {
  width: 100%;
}

#googleBtn>div {
  width: 100% !important;
}


#googleBtn div {
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

#googleBtn div:hover {
  transform: translateY(-2px);
}

#googleBtn>div {
  border-radius: 10px !important;
}

.auth-modal input {
  width: 100%;
  padding: 14px 16px;
  margin: 10px 0;

  border-radius: 12px;
  border: 1px solid #e5e7eb;

  background: rgba(255, 255, 255, 0.9);

  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-modal input:focus {
  border-color: #0b5fff;
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
  outline: none;
}

.auth-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #0b5fff, #0040ff);
  color: white;
  font-weight: 600;

  box-shadow: 0 6px 18px rgba(11, 95, 255, 0.3);

  transition: all 0.2s ease;
}

.auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(11, 95, 255, 0.4);
}

.auth-secondary {
  background: #f3f4f6;
  border-radius: 12px;
}

.auth-ghost {
  color: #6b7280;
}

.auth-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #0b5fff;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 14px;
}

/* Divider */
.auth-divider {
  text-align: center;
  margin: 16px 0;
  color: #9ca3af;
  font-size: 13px;
}

.auth-trust {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 10px;
}

/* =========================
   🔥 TABLET + MOBILE FILTER UX (PREMIUM)
========================= */

@media (max-width: 900px) {
  #mobileFilterBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: #1a5cff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }
}

/* MOBILE FILTER DRAWER */
@media (max-width: 900px) {

  .filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 65%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
  }

  .filters.open {
    left: 0;
  }

  .filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .filter-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* filter button near search */
  #mobileFilterBtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #1a5cff;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
  }

  /* close button */
  #closeFiltersBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
  }
}

.seo-links {
  display: flex;
  gap: 16px;
  padding: 6px 12px;
  font-size: 13px;
}

.seo-links a {
  color: #0b5fff;
  text-decoration: none;
  font-weight: 500;
}

.seo-links a:hover {
  text-decoration: underline;
}


/* GALLERY MODAL FINAL */

.gallery-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);

}

.gallery-modal {
  height: 90%;
  width: 90%;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  border-radius: 16px;
  overflow: auto;
}

/* Top bar */
#galleryOverlay .gallery-top {
  display: flex;
  flex-direction: column;

  /* ✅ valid */
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #eef3fb;
  padding-right: 70px;
  backdrop-filter: blur(12px);
}

.gallery-title {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 950;
  color: #122543;
}

.gallery-actions {
  display: grid;
  /* align-items: center; */
  gap: 8px;
  overflow-x: auto;
}

.g-btn {

  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.g-btn.primary {
  background: #00c853;
  color: white;
}

.g-btn.secondary {
  background: #f1f3f5;
}

#galleryOverlay .g-btn {
  border: 1px solid #e3e9f2;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  cursor: pointer;
}

#galleryOverlay .g-btn:hover {
  background: #f3f7ff;
  border-color: #cfe0ff;
}

#galleryOverlay .g-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 10px;
  padding: 8px 10px;
}

#galleryOverlay .gallery-meta {
  padding: 30px;
  border-top: 1px solid #eef3fb;
  background: #fff;
  max-height: 55vh;
  overflow: auto;
  max-width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
  border-radius: 16px;
  border-left: 1px solid #e5e7eb;
}

.gallery-content {
  display: grid;
  gap: 10px;

}

/* Thumbs */
#galleryOverlay .gallery-thumbs {
  display: flex;
  gap: 5px;
  padding-top: 0px;
  overflow: auto;
  border-top: 1px solid #eef3fb;
  background: #fff;
}

.gallery-main {
  max-width: 100%;
}

/* ===================== FULLSCREEN GALLERY (CLEAN + FIXED) ===================== */
#galleryOverlay.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  place-items: center;
  z-index: 99999;
  padding: 10px;
}

#galleryOverlay.gallery-overlay.show {
  display: flex;
}

/* Modal almost full screen */
/* #galleryOverlay .gallery-modal {
  width: min(1400px, 98vw);
  background: #fff;
  border-radius: 16px;
  /* box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); */
/* border: 1px solid rgba(227, 233, 242, 1);
  overflow: hidden;
  position: relative; */

/* display: grid;
  grid-template-rows: auto 1fr auto auto;
  /* top, image, meta, thumbs */
/* min-height: 0;
} */



#galleryOverlay .gallery-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}



/* Image row */
#galleryOverlay .gallery-main {
  display: grid;
  grid-template-columns: 1fr;
  /* 🔥 remove side columns */
  position: relative;
  /* 🔥 allows arrows overlay */
  padding: 0;
  /* cleaner mobile look */
  background: #f6f8fb;
}

/* The frame (taller) */
#galleryOverlay .gallery-image-wrap {
  position: relative;
  max-width: 100%;
  height: 55vh;
  /* 🔥 better height */
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  /* 🔥 remove black */
  border: 1px solid #e3e9f2;
  overflow: hidden;

}

/* ✅ IMPORTANT: show FULL car, no crop */
#galleryOverlay #galleryImage.gallery-image {
  max-width: 100%;
  height: 55vh;
  object-fit: contain;
  /* 🔥 fill nicely */
  object-position: center;
  background: #fff;
  /* 🔥 no dark */
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

/* Optional zoom (still works with contain) */
#galleryOverlay .gallery-image-wrap.zoomed #galleryImage {
  object-fit: contain;
  /* 🔥 full image on zoom */
  background: #0b1220;
  /* only show dark when zoomed */
  transform: scale(2.2);
  cursor: zoom-out;
}

#galleryOverlay .zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 233, 242, 1);
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
  color: #2b3b55;
  display: none;
}

#galleryOverlay .gallery-image-wrap.zoomed .zoom-hint {
  display: block;
}

#galleryOverlay .g-prev {
  left: 10px;
}

#galleryOverlay .g-next {
  right: 10px;
}


/* Nav buttons */
#galleryOverlay .g-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  width: 42px;
  height: 42px;

  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


#galleryOverlay .g-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}

#galleryOverlay .g-thumb {
  width: 92px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #f1f4f8;
  overflow: hidden;
  cursor: pointer;
  flex: 0 0 auto;
}

#galleryOverlay .g-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#galleryOverlay .g-thumb.active {
  border-color: #0a5fd8;
}

/* ===================== 360 overlay ===================== */
.viewer360-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  place-items: center;
  z-index: 100000;
}

.viewer360-overlay.show {
  display: grid;
}

.viewer360-modal {
  width: min(1100px, 94vw);
  height: min(720px, 90vh);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e3e9f2;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.viewer360-modal iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Gallery Meta (Better UI) ===== */
/* .gallery-meta {
  padding: 18px 18px 20px;
  border-top: 1px solid #eef3fb;
  background: #fff;
  overflow: auto;
  max-height: 30vh;
} */

.g-meta-wrap {
  display: grid;
  gap: 10px;
}

.g-meta-title {
  font-weight: 950;
  color: #122543;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.g-meta-price {
  font-weight: 950;
  font-size: 22px;
  color: #0b1220;
}

.g-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding-top: 10px;
  border-top: 1px solid #eef3fb;
}

.g-meta-grid>div {
  background: #f6f8fb;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  padding: 10px 10px;
}

.g-meta-grid .k {
  display: block;
  font-size: 12px;
  color: #5d6b85;
  font-weight: 900;
}

.g-meta-grid .v {
  display: block;
  margin-top: 4px;
  font-weight: 950;
  color: #122543;
}

/* Description with long-text support */
.g-meta-desc {
  margin-top: 10px;
  color: #2b3b55;
  font-weight: 750;
  line-height: 1.55;
  max-height: none;
  /* collapsed */
  overflow: visible;
  padding-top: 10px;
  border-top: 1px solid #eef3fb;
}

.g-meta-desc.is-open {
  max-height: 260px;
  /* expanded */
}

/* Read more button */
.g-meta-more {
  margin-top: 8px;
  width: fit-content;
  border: 1px solid #e3e9f2;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 950;
  cursor: pointer;
  color: #0a5fd8;
}

.g-meta-more:hover {
  background: #f3f7ff;
  border-color: #cfe0ff;
}

/* ================= PREMIUM GLASS UPGRADE ================= */

/* OVERLAY (deeper + luxury blur) */
#galleryOverlay.gallery-overlay {
  background: radial-gradient(circle at center, rgba(10, 15, 25, 0.65), rgba(5, 8, 15, 0.95));
  backdrop-filter: blur(18px);
}

/* MAIN MODAL GLASS */
.gallery-modal {
  background: rgba(12, 14, 20, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* TOP BAR GLASS */
#galleryOverlay .gallery-top {
  background: rgba(20, 25, 35, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

/* BUTTON BASE (glass pill) */
#galleryOverlay .g-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e6edf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

#galleryOverlay .g-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

/* 🔥 PRIMARY CTA (CONTACT SELLER — GOLD ELITE) */
#galleryOverlay .g-buy {
  background: linear-gradient(135deg, #ffb703, #ff7b00);
  color: #111;
  border: none;
  box-shadow:
    0 8px 25px rgba(255, 140, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 900;
  padding: 10px 5px;
  border-radius: 12px;
  justify-content: center;
}

#galleryOverlay .g-buy:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(255, 140, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

#galleryoverlay .g-vin {
    background: linear-gradient(135deg, #ffb703, #ff7b00);
    color: #111;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-weight: 900;
    padding: 10px 5px;
    border-radius: 12px;
    justify-content: center;

}

#galleryOverlay .g-vin:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(255, 140, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ABOUT BUTTON */
#galleryOverlay .g-about-btn {
  background: rgba(255, 255, 255, 0.06);
}

/* NAV BUTTONS (floating glass) */
#galleryOverlay .g-nav {
  background: rgba(15, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

#galleryOverlay .g-nav:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* IMAGE FRAME (soft glass edge) */
#galleryOverlay .gallery-image-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* THUMB STRIP */
#galleryOverlay .gallery-thumbs {
  background: rgba(15, 18, 28, 0.5);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ACTIVE THUMB (gold glow) */
#galleryOverlay .g-thumb.active {
  border-color: #ffb703;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.6);
}

/* META PANEL (premium card) */
#galleryOverlay .gallery-meta {
  background: rgba(18, 22, 32, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 -10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* GRID ITEMS */
.g-meta-grid>div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* TEXT COLORS (clean premium contrast) */
.g-meta-title,
.gallery-title {
  color: #eaf1ff;
}

.g-meta-price,
.g-price {
  color: #ffb703;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

/* CLOSE BUTTON */
#galleryOverlay .g-close {
  background: rgba(20, 25, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ZOOM HINT */
#galleryOverlay .zoom-hint {
  background: rgba(15, 18, 28, 0.85);
  color: #eaf1ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* PRESS FEEDBACK (real feel) */
.g-btn,
.g-buy,
.g-nav,
.g-thumb {
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.g-btn:active,
.g-buy:active,
.g-nav:active {
  transform: scale(0.94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) inset;
}

.g-btn:hover {
  transform: translateY(-1px);
}

.g-buy:hover {
  transform: translateY(-2px) scale(1.02);
}

.gallery-image {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-image.fade-out {
  opacity: 0;
  transform: scale(0.98);
}

.gallery-image.fade-in {
  opacity: 1;
  transform: scale(1);
}

.gallery-thumbs {
  scroll-snap-type: x mandatory;
}

.g-thumb {
  scroll-snap-align: center;
}

.g-btn.active,
.g-buy.active {
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.4),
    0 0 12px rgba(255, 183, 3, 0.5);
}

.gallery-modal {
  animation: modalIn 0.35s ease;
}

@keyframes modalIn {
  from {
    transform: scale(0.96) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.gallery-image {
  cursor: zoom-in;
}

.gallery-image-wrap.zoomed .gallery-image {
  cursor: zoom-out;
}

/* ================= PREMIUM SCROLLBAR ================= */

/* Chrome, Edge, Safari */
.gallery-modal::-webkit-scrollbar,
.gallery-meta::-webkit-scrollbar,
.gallery-thumbs::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.gallery-modal::-webkit-scrollbar-track,
.gallery-meta::-webkit-scrollbar-track,
.gallery-thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-modal::-webkit-scrollbar-thumb,
.gallery-meta::-webkit-scrollbar-thumb,
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.gallery-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Firefox */
.gallery-modal,
.gallery-meta,
.gallery-thumbs {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.gallery-modal::-webkit-scrollbar-thumb {
  background: transparent;
}

.gallery-modal:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {

  /* ACTION BAR LAYOUT */
  .gallery-actions {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  /* 🔥 ZOOM (smaller but aligned) */
  #galleryZoomBtn {
    flex: 0.8;
    border-radius: 12px;
    /* less round */
  }

  /* 🔥 CHAT (MAIN CTA — stretch more) */
  #galleryBuyBtn {
    flex: 1.4;
    border-radius: 12px;
    /* reduce roundness */
    justify-content: center;
  }

  /* 🔥 ABOUT BUTTON */
  #aboutCarBtn {
    flex: 1;
    border-radius: 12px;
    /* reduce roundness */
    /* justify-content: center; */
  }

  

  /* GENERAL BUTTON FIX */
  .gallery-actions button {
    height: 44px;
    font-size: 10px;
    /* padding: 0 10px; */
  }
}

#galleryZoomBtn,
#galleryBuyBtn,
#aboutCarBtn {
  flex: 1;
}

/* ================= FIXED ABOUT BOX ================= */

/* .about-box {
  position: relative;
  width: 560px;
  max-width: 92%;

  /* allow proper height */
/* max-height: 250vh;

  /* 🔥 enable scrolling */
/* overflow-y: visible;
  overflow-x: visible;

  /* smooth scrolling feel */
/* scroll-behavior: smooth;

  /* optional premium feel */
/* padding-right: 6px;

  background: #ffffff;
  border-radius: 12px; */


/* 
#aboutContent {
  overflow: scroll;
  padding-bottom: 40px;
  max-width: 300vh;
} */

/* .about-box::-webkit-scrollbar {
  width: 6px;
}

.about-box::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2); /* darker for white bg */
/* border-radius: 10px;
}

.about-box::-webkit-scrollbar-track {
  background: transparent;
} */

/* .about-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  
} */

/* ================= ABOUT MODAL (FULL RESET) ================= */

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

/* MAIN BOX */
/* .about-box {
  width: 560px;
  max-width: 92%;
  height: auto;
  max-height: 300vh;

  background: #ffffff;
  border-radius: 14px;

  display: flex;
  flex-direction: column;

  box-shadow: 0 20px 60px rgba(0,0,0,0.3);

  /* 🔥 THIS IS THE KEY */
/* overflow:scroll;
} */

/* HEADER (FIXED) */
.about-box h3 {
  padding: 16px 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

/* CLOSE BUTTON */
.about-close {
  position: absolute;
  top: 10px;
  right: 12px;

  background: #f2f2f2;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

/* 🔥 SCROLL AREA */
.about-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;

  padding: 16px 20px 40px;

  line-height: 1.6;
  color: #222;

  scroll-behavior: smooth;
}

/* HEADINGS FROM AI */
.about-content h2 {
  margin-top: 18px;
  font-size: 14px;
  color: #0b63f6;
}

/* LIST */
.about-content ul {
  padding-left: 18px;
}

.about-content li {
  margin-bottom: 6px;
}

/* 🔥 IMAGE BLOCK */
.about-images {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.about-images img {
  width: 50%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

/* SCROLLBAR (clean) */
.about-content::-webkit-scrollbar {
  width: 6px;
}

.about-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.about-content::-webkit-scrollbar-track {
  background: transparent;
}

/* ================= FULL MODAL FIX ================= */

#aboutCarModal {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: none;
  align-items: center;
  justify-content: center;

  /* darker + premium */
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);

  /* 🔥 IMPORTANT: prevent body scroll conflict */
  overflow: visible;
}

/* SHOW STATE */
#aboutCarModal.show {
  display: flex;
}

/* ================= FIXED ABOUT BOX ================= */

.about-box {
  width: 560px;
  max-width: 92%;

  /* ❌ REMOVE HEIGHT LIMIT */
  height: auto;
  max-height: 100vh;

  background: #fff;
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  position: relative;

  /* allow full expansion */
  overflow: visible;

  /* spacing from top/bottom */
  margin: 40px 0;
}

/* ================= HEADER ================= */

#aboutTitle {
  padding: 16px 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 600;

  border-bottom: 1px solid #eee;
}

/* CLOSE BUTTON */
.about-close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 32px;
  height: 32px;

  border: none;
  border-radius: 8px;
  background: #f2f2f2;
  cursor: pointer;
}

/* ================= 🔥 SCROLL AREA (THIS FIXES EVERYTHING) ================= */

#aboutContent {
  flex: 1;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 16px 20px 50px;

  line-height: 1.6;
  color: #222;

  /* 🔥 smooth scroll */
  scroll-behavior: smooth;
}

/* ================= PREVENT CUT-OFF ================= */

#aboutContent::after {
  content: "";
  display: block;
  height: 40px;
}

/* ================= SCROLLBAR ================= */

#aboutContent::-webkit-scrollbar {
  width: 6px;
}

#aboutContent::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

#aboutContent::-webkit-scrollbar-track {
  background: transparent;
}

/* IMPROVEMENT FOR FUNDING */
.hero-investor {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 10px;
}

.hero-title {
  font-size: 38px;
  font-weight: 700;
}

.hero-title span {
  color: #f59e0b;
}

.hero-sub {
  margin-top: 10px;
  color: #cbd5f5;
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero-btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.hero-btn.primary {
  background: #f59e0b;
}

.hero-btn.secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.hero-stats {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.trust-investor,
.how-investor,
.vision-investor {
  padding: 5px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.trust-grid,
.steps {
  display: flex;
  gap: 20px;
  justify-content: center;

}

.trust-item,
.step {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  font-size: 12px;
}

.hero-search {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

.hero-search .search-box {
  /* max-width: 750px; */
  width: 100%;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: #f8fbff;
}

.hero-stats.clean {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stats.clean .stat {
  text-align: center;
}

.hero-stats.clean strong {
  font-size: 20px;
  display: block;
}

.hero-stats.clean span {
  font-size: 13px;
  opacity: 0.8;
}

/* ===== PREMIUM TEXT ===== */
.premium-text {
  background: linear-gradient(90deg, #d4af37, #f5d77a, #caa94f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== ELITE TEXT ===== */
.elite-text {
  background: linear-gradient(90deg, #9aa4ff, #6c7cff, #4c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Apply to stats */
.hero-stats .stat strong {
  font-size: 22px;
  font-weight: 700;
}

/* Sticky state */
.search-sticky-active {
  position: fixed;
  top: -20px;
  left: 60%;
  transform: translateX(-50%);

  width: 80%;
  z-index: 999;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.15); */
  border-radius: 12px;
  animation: slideDown 0.3s ease;
}

.search-sticky.scrolled .search-wrap {
  background: orange;
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-search.scrolled .search-wrap {
  background-color: #150141;
  border-color: #150141;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* #searchSticky {
  transition: all 0.25s ease;
} */

/* ===== Tablet + Mobile Layout Fix ===== */
@media (max-width: 900px) {

  /* Full width search */
  .search-box {
    max-width: 100%;
    width: 100%;
    height: 56px;
    border-radius: 12px;
  }

  .search-sticky-active {
    position: fixed;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    z-index: 999;
    /* box-shadow: 0 10px 3 rgba(0, 0, 0, 0.15); */
    border-radius: 12px;
    animation: slideDown 0.3s ease;
  }

  .search-wrap {
    padding: 14px;

    left: 50%;
    /* transform: translateX(-50%); */
    width: 75%;
    z-index: 999;
    border-radius: 12px;
  }

  .hero-search.scrolled .search-wrap {
    background-color: #150141;
    border-color: #150141;
  }


  /* .search-sticky-active {
    position: fixed;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 999;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); */
    /* border-radius: 12px;
    animation: slideDown 0.3s ease;
  } */ 

  .search-box input {
    flex: 1;
    font-size: 15px;
  }

  /* 🔥 Filter Button */
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #0a5fd8;
    color: #fff;
    border: none;
    border-radius: 12px;

    padding: 10px 16px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;

    transition: all 0.2s ease;
  }

  .mobile-filter-btn:hover {
    background: #084fb3;
  }
}

.content-section {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
}

.content-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.content-section p {
  color: #444;
  margin-bottom: 15px;
}

.content-section.alt {
  background: #f9fafc;
  border-radius: 12px;
}

.content-section ul {
  padding-left: 20px;
}

.blog-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-links a {
  color: #0b5fff;
  font-weight: 500;
  text-decoration: none;
}

.blog-links a:hover {
  text-decoration: underline;
}

.insight-wrapper {
  max-width: 1000px;
  margin: 30px auto;
  display: grid;
  gap: 20px;
  margin: 60px auto;
  
}



.insight-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  padding: 20px;
  border: 1px solid #f1f1f1;
}

.insight-card:hover {
  transform: translateY(-4px);
}

.insight-card.alt {
  background: #f9fafc;
}

.insight-card h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.insight-card ul {
  margin: 15px 0;
  padding-left: 20px;
}

.highlight {
  font-weight: 600;
  color: #0b5fff;
}

/* BLOG SECTION */

.learn-section {
  max-width: 1000px;
  margin: 30px auto;
  text-align: center;
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 25px;
  gap: 20px;
}

.learn-card {
  background: white;
  padding: 20px;
  border-radius: 14px;
  text-decoration: none;
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.learn-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.learn-card h4 {
  margin-bottom: 5px;
}

.learn-card span {
  font-size: 13px;
  color: #666;
}


/* SECTION CONTAINER */
.seo-text {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  display: flex;
  align-items: center;
  gap: 20px;

  padding: 12px 16px;
  scroll-behavior: smooth;

  /* Optional premium feel */
  background: #f8fafc;
  border-radius: 12px;
}

/* HIDE SCROLLBAR (optional clean look) */
.seo-text::-webkit-scrollbar {
  display: none;
}
.seo-text {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* TEXT STYLING */
.seo-text h2 {
  font-size: 16px; /* reduced */
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  color: #0f172a;
}

.seo-text p {
  font-size: 13px; /* reduced */
  margin: 0;
  white-space: nowrap;
  color: #475569;
}

/* OPTIONAL: AUTO SCROLL ANIMATION (RIGHT → LEFT) */
@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.seo-text.auto-scroll {
  overflow: hidden;
  position: relative;
}

.seo-text.auto-scroll h2,
.seo-text.auto-scroll p {
  display: inline-block;
  padding-right: 40px;
  animation: scrollText 15s linear infinite;
}

/* Blog CSS */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  cursor: pointer;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.blog-category {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.blog-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-link {
  color: #0a5fd8;
  font-size: 13px;
  font-weight: 500;
}

.seo-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-top: 30px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  line-height: 1.7;
}

.seo-header h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.seo-header p {
  font-size: 14px;
  color: #666;
}

.seo-section {
  margin-top: 20px;
}

.seo-section h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.seo-section p {
  font-size: 14px;
  color: #444;
}

.seo-section ul {
  padding-left: 18px;
}

.seo-section li {
  margin-bottom: 6px;
  font-size: 14px;
}

.vin-check-btn{
 background: linear-gradient(135deg, #ffb703, #ff7b00);
    color: #111;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    font-weight: 900;
    padding: 10px 5px;
    border-radius: 12px;
    justify-content: center;
}

.vin-check-btn:hover{
 transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(255, 140, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}


.vin-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.vin-modal-card{
  width:min(700px,95%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:20px;
  padding:24px;
  position:relative;
}

.vin-close-btn{
  position:absolute;
  top:10px;
  right:10px;
  border:none;
  background:#eee;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;
}

/* =========================
   ELITE INSTALL BUTTON
========================= */

.premium-hero-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.elite-install-btn{
  position:relative;
  overflow:hidden;

  display:flex;
  align-items:center;
  gap:14px;

  border:none;
  cursor:pointer;

  padding:8px 5px;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.14),
      rgba(255,255,255,.06)
    );

  backdrop-filter:blur(14px);

  border:1px solid rgba(255,255,255,.12);

  box-shadow:
    0 10px 35px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.08);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.elite-install-btn::before{
  content:"";

  position:absolute;

  inset:0;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,.14),
      transparent
    );

  transform:translateX(-100%);
  transition:transform .7s ease;
}

.elite-install-btn:hover::before{
  transform:translateX(100%);
}

.elite-install-btn:hover{
  transform:translateY(-3px);

  border-color:rgba(255,255,255,.22);

  box-shadow:
    0 18px 50px rgba(0,0,0,.35),
    0 0 30px rgba(10,95,216,.22);
}

.install-icon{
  width:40px;
  height:40px;

  border-radius:14px;

  display:grid;
  place-items:center;

  background:
    linear-gradient(
      135deg,
      #0a5fd8,
      #3b82f6
    );

  font-size:18px;

  box-shadow:
    0 10px 25px rgba(10,95,216,.35);
}

.install-copy{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.install-mini{
  color:rgba(255,255,255,.55);

  font-size:9px;

  font-weight:700;

  letter-spacing:.16em;
}

.install-main{
  color:#fff;

  font-size:14px;

  font-weight:800;

  margin-top:2px;
}

/* mobile */

@media(max-width:768px){

  .premium-hero-actions{
    flex-direction:column;
    width:90%;
  }

  .elite-install-btn{
    width:90%;
    justify-content:center;
  }

}

/* =========================
   ELITE SCROLL TO TOP
========================= */

.scroll-top-btn{

  position:fixed;

  left:18px;

  bottom:28px;

  width:62px;
  height:62px;

  border:none;

  border-radius:22px;

  cursor:pointer;

  z-index:9999;

  display:flex;
  align-items:center;
  justify-content:center;

  opacity:0;
  visibility:hidden;

  transform:
    translateY(30px)
    scale(.9);

  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease,
    box-shadow .28s ease;

  background:
    linear-gradient(
      135deg,
      rgba(10,95,216,.95),
      rgba(59,130,246,.95)
    );

  backdrop-filter:blur(14px);

  box-shadow:
    0 18px 40px rgba(10,95,216,.28),
    inset 0 1px 0 rgba(255,255,255,.12);

}

/* visible state */

.scroll-top-btn.show{

  opacity:1;

  visibility:visible;

  transform:
    translateY(0)
    scale(1);

}

/* hover */

.scroll-top-btn:hover{

  transform:
    translateY(-4px)
    scale(1.04);

  box-shadow:
    0 25px 55px rgba(10,95,216,.38);

}

/* arrow */

.scroll-arrow{

  color:#fff;

  font-size:28px;

  font-weight:900;

  line-height:1;

}

/* mobile */

@media(max-width:768px){

  .scroll-top-btn{

    width:58px;
    height:58px;

    left:14px;

    bottom:22px;

  }

}

@media(max-width:900px){

  .scroll-top-btn{

    width:58px;
    height:58px;

    left:14px;

    bottom:22px;

  }

}

