/* ============================================
   DirecTokunbo - Car Auction Website
   Premium Dark Theme with Gold Accents
   ============================================ */

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #121212;
  --color-bg-card: #1a1a1a;
  --color-bg-hover: #222222;

  --color-primary: #f6cb12;
  --color-primary-hover: #ffd740;
  --color-primary-dark: #d4a900;

  --color-text: #ffffff;
  --color-text-muted: #9aa0a6;
  --color-text-subtle: #6b7280;

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #f6cb12 0%, #ffd740 50%, #f6cb12 100%);
  --gradient-dark: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.95) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  --header-height: 80px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(246, 203, 18, 0.3);

  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-border-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
}

.btn-full {
  width: 100%;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger {
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: background var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  display: inline-block;
}

.hero-img-box {
  display: inline-block;
  vertical-align: middle;
  width: clamp(80px, 12vw, 160px);
  height: clamp(50px, 7vw, 100px);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0.5rem;
  background: var(--color-bg-elevated);
  position: relative;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== HERO IMAGE REVEAL ANIMATION (yllw.com effect) ===== */
.hero-img-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: clamp(40px, 6vw, 70px);
  width: 0;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 0.25rem;
  opacity: 0;
  animation: imageReveal 8s ease-in-out infinite;
}

.hero-img-reveal img {
  width: clamp(100px, 14vw, 180px);
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Staggered delays for each image */
.hero-img-reveal-1 {
  animation-delay: 0.5s;
}

.hero-img-reveal-2 {
  animation-delay: 1.2s;
}

/* The reveal keyframe animation */
@keyframes imageReveal {
  0% {
    width: 0;
    opacity: 0;
    margin: 0 0.25rem;
  }

  8% {
    width: clamp(100px, 14vw, 180px);
    opacity: 1;
    margin: 0 0.5rem;
  }

  42% {
    width: clamp(100px, 14vw, 180px);
    opacity: 1;
    margin: 0 0.5rem;
  }

  50% {
    width: 0;
    opacity: 0;
    margin: 0 0.25rem;
  }

  100% {
    width: 0;
    opacity: 0;
    margin: 0 0.25rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-img-reveal {
    height: clamp(30px, 5vw, 50px);
  }

  .hero-img-reveal img {
    width: clamp(60px, 12vw, 100px);
  }

  @keyframes imageReveal {
    0% {
      width: 0;
      opacity: 0;
      margin: 0 0.15rem;
    }

    8% {
      width: clamp(60px, 12vw, 100px);
      opacity: 1;
      margin: 0 0.35rem;
    }

    42% {
      width: clamp(60px, 12vw, 100px);
      opacity: 1;
      margin: 0 0.35rem;
    }

    50% {
      width: 0;
      opacity: 0;
      margin: 0 0.15rem;
    }

    100% {
      width: 0;
      opacity: 0;
      margin: 0 0.15rem;
    }
  }
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-footer-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  opacity: 0.8;
}

/* Search Form */
.search-form {
  width: 100%;
  max-width: 850px;
  margin-bottom: var(--space-2xl);
}

.search-bar-inner {
  background: #fff;
  border-radius: var(--radius-full);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: var(--shadow-xl);
}

.search-field {
  flex: 1;
  position: relative;
}

.search-field:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #e5e7eb;
}

.search-field select {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  font-size: var(--font-size-sm);
  color: #374151;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.search-field select:focus {
  outline: none;
}

.btn-search {
  padding: 0.75rem 2rem;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #000;
  font-weight: 700;
  transition: all var(--transition-base);
  border: none;
}

.btn-search:hover {
  background: var(--color-primary-hover);
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .search-bar-inner {
    flex-direction: column;
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--color-border);
  }

  .search-field {
    width: 100%;
  }

  .search-field:not(:last-child)::after {
    display: none;
  }

  .search-field select {
    color: var(--color-text);
  }

  .btn-search {
    width: 100%;
    margin-top: var(--space-md);
  }
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.trust-badge .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  opacity: 0.7;
}

.scroll-indicator .icon {
  width: 24px;
  height: 24px;
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(8px);
  }

  60% {
    transform: translateY(4px);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(246, 203, 18, 0.1);
  border: 1px solid rgba(246, 203, 18, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  font-weight: 700;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.section-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ===== INVENTORY SECTION ===== */
.inventory {
  background: var(--color-bg);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.tab {
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.tab.active {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
}

/* Car Carousel */
.carousel-wrapper {
  position: relative;
  margin: 0 -var(--space-md);
  padding: 0 var(--space-md);
}

.carousel-track {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Opera */
}

.car-card {
  flex: 0 0 calc(25% - (var(--space-lg) * 3 / 4));
  scroll-snap-align: start;
  min-width: 300px;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
}

@media (max-width: 1200px) {
  .car-card {
    flex: 0 0 calc(33.333% - (var(--space-lg) * 2 / 3));
  }
}

@media (max-width: 991px) {
  .car-card {
    flex: 0 0 calc(50% - (var(--space-lg) * 1 / 2));
  }
}

@media (max-width: 576px) {
  .car-card {
    flex: 0 0 85%;
  }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.carousel-btn:hover {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .carousel-btn {
    display: none;
    /* Use touch scroll on mobile */
  }
}

.car-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-xl);
}

.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.car-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-hot {
  background: var(--color-error);
  color: white;
}

.badge-new {
  background: var(--color-success);
  color: white;
}

.badge-ending {
  background: var(--color-warning);
  color: #000;
}

.card-favorite {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(var(--blur-sm));
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.card-favorite svg {
  width: 18px;
  height: 18px;
  stroke: white;
  transition: all var(--transition-fast);
}

.card-favorite:hover {
  background: var(--color-error);
}

.card-favorite:hover svg {
  fill: white;
}

.card-body {
  padding: var(--space-lg);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-specs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-specs span {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.card-price {
  margin-bottom: var(--space-md);
}

.price-current {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.price-bid {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
}

.card-actions .btn {
  flex: 1;
}

/* Bento Grid for How It Works */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.bento-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.bento-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.bento-main {
  height: 100%;
  min-height: 500px;
}

.bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
}

.bento-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.bento-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

.bento-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.bento-feature {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(246, 203, 18, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.icon-brand {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.feature-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.feature-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

  /* Inventory Page Specifics */
  .page-header {
    padding: var(--space-4xl) 0 var(--space-2xl);
    background: linear-gradient(to bottom, #000, var(--color-bg));
    text-align: center;
  }

  .page-title {
    font-size: clamp(2.5rem, 6vw, var(--font-size-5xl));
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: linear-gradient(to right, #fff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .inventory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    padding: var(--space-xl) 0 var(--space-4xl);
  }

  .filter-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: sticky;
    top: 100px;
  }

  .filter-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  .filter-group {
    margin-bottom: var(--space-xl);
  }

  .filter-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
  }

  .filter-select,
  .range-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--font-size-sm);
  }

  .range-inputs {
    display: flex;
    gap: var(--space-sm);
  }

  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    cursor: pointer;
  }

  .btn-full {
    width: 100%;
    margin-bottom: var(--space-md);
  }

  .btn-text {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    cursor: pointer;
    display: block;
    margin: 0 auto;
  }

  .btn-text:hover {
    color: var(--color-primary);
  }

  /* Inventory Content */
  .inventory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }

  .toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }

  .sort-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
  }

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

  .view-toggle {
    display: flex;
    background: var(--color-bg-elevated);
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
  }

  .view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .view-btn svg {
    width: 18px;
    height: 18px;
  }

  .view-btn.active {
    background: var(--color-primary);
    color: #000;
  }

  /* List View Layout */
  .inventory-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }

  .inventory-grid.list-view .car-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 240px;
  }

  .inventory-grid.list-view .card-image {
    height: 100%;
    aspect-ratio: auto;
  }

  .inventory-grid.list-view .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-4xl);
  }

  .page-btn,
  .page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
  }

  .page-num.active {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
  }

  .page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

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

    .inventory-sidebar {
      display: none;
      /* Mobile filter could be a drawer */
    }
  }

  @media (max-width: 768px) {
    .inventory-toolbar {
      flex-direction: column;
      gap: var(--space-md);
      align-items: flex-start;
    }

    .toolbar-actions {
      width: 100%;
      justify-content: space-between;
    }
  }

  .bento-main {
    min-height: 350px;
  }
}

@media (max-width: 576px) {
  .bento-features {
    grid-template-columns: 1fr;
  }
}

/* ===== WHY US ===== */
.why-us {
  background: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.why-content .section-badge,
.why-content .section-title,
.why-content .section-subtitle {
  text-align: left;
}

.why-content .section-subtitle {
  margin-bottom: var(--space-2xl);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  gap: var(--space-lg);
}

/* Why Us v2 Grid */
.why-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  margin-top: var(--space-3xl);
  align-items: center;
}

.why-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.why-feature-card {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.why-feature-card:hover {
  border-color: var(--color-primary);
  transform: translateX(10px);
  background: var(--color-bg-hover);
}

.feature-icon-gold {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(246, 203, 18, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-gold svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.feature-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.feature-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.why-visual-column {
  height: 100%;
}

.main-img-card {
  position: relative;
  height: 100%;
  min-height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.main-img-card:hover .visual-img {
  transform: scale(1.1);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3xl);
}

.visual-overlay h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.visual-overlay p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 400px;
}

@media (max-width: 991px) {
  .why-grid-v2 {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .main-img-card {
    min-height: 400px;
  }
}

/* ===== FAQ SECTION ===== */
.faqs {
  background: var(--color-bg-elevated);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-base);
}

.accordion-item:hover {
  border-color: var(--color-border-hover);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-align: left;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.accordion-toggle:hover {
  background: var(--color-bg-hover);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-text-muted);
  transition: transform var(--transition-base);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-item.active .accordion-panel {
  max-height: 500px;
}

.accordion-panel p {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--color-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-form-wrapper .section-badge,
.contact-form-wrapper .section-title,
.contact-form-wrapper .section-subtitle {
  text-align: left;
}

.contact-form-wrapper .section-subtitle {
  margin-bottom: var(--space-2xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(246, 203, 18, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-visual {
  position: relative;
}

.contact-image-card {
  position: relative;
  height: 100%;
  min-height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

.contact-info-float {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--space-xl);
  right: var(--space-xl);
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.info-item .icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.info-item span {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .contact-info-float {
    flex-direction: column;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    padding: var(--space-md);
  }
}

.info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 203, 18, 0.1);
  border-radius: var(--radius-sm);
}

.info-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-primary);
}

.info-text {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.info-value {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gradient-gold);
  padding: var(--space-4xl) 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: #000;
  margin-bottom: var(--space-md);
}

.cta-content p {
  font-size: var(--font-size-lg);
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.cta-banner .btn-primary {
  background: #000;
  color: var(--color-primary);
}

.cta-banner .btn-primary:hover {
  background: #222;
  box-shadow: var(--shadow-lg);
}

.cta-banner .btn-outline {
  border-color: rgba(0, 0, 0, 0.3);
  color: #000;
}

.cta-banner .btn-outline:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-bg-elevated);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo-img {
  height: 32px;
  margin-bottom: var(--space-lg);
}

.footer-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-muted);
  transition: fill var(--transition-fast);
}

.social-links a:hover svg {
  fill: #000;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-right"].animated {
  transform: translateX(0);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate="fade-left"].animated {
  transform: translateX(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.25rem;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile Nav */
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-md);
  }

  .header-actions.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-height) + 200px);
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 0 var(--space-xl) var(--space-xl);
    gap: var(--space-md);
  }

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

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

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-step:nth-child(4),
  .process-step:nth-child(5) {
    grid-column: span 1;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .why-visual {
    order: -1;
  }

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

  .contact-visual {
    margin-bottom: var(--space-4xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 70px;
    --space-4xl: 4rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .trust-badges {
    flex-direction: column;
    gap: var(--space-md);
  }

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

  .tabs {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    flex-shrink: 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
  }

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

  .contact-info-cards {
    position: static;
    margin-top: var(--space-lg);
  }
}

/* Large Screens */
@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
  }
}

/* =========================================
   PHASE 4: CRITICAL UI REFINEMENTS
   ========================================= */

/* 1. Bento Grid - Why Us Section */
.why-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, minmax(280px, auto));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.bento-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--color-primary);
  box-shadow: 0 10px 40px -10px rgba(246, 203, 18, 0.15);
  z-index: 10;
}

/* Hero Card (first card) */
.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--color-bg-elevated);
  justify-content: flex-end;
  /* Align content to bottom for hero feel */
}

.bento-hero .card-bg-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(246, 203, 18, 0.08), transparent 70%);
  pointer-events: none;
}

.bento-hero .feature-icon-gold {
  margin-bottom: auto;
  /* Push icon to top */
  width: 72px;
  height: 72px;
}

.bento-hero .feature-icon-gold svg {
  width: 36px;
  height: 36px;
}

.bento-hero h3 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.bento-hero p {
  font-size: 1.125rem;
  max-width: 90%;
}

/* Responsive Bento */
@media (max-width: 1024px) {
  .why-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    /* Allow auto rows */
  }

  .bento-hero {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .why-bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .bento-hero {
    grid-column: 1 / -1;
    /* Full width */
    grid-row: auto;
  }
}

/* 2. Contact Section Fixes */
.contact-info-float {
  /* Default to flex column for safer overflow handling */
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  width: auto;
  max-width: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  /* Force break word for long emails */
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Ensure padding on the contact image card */
.contact-image-card {
  padding: var(--space-md);
}

/* On Desktop, allow row layout if space permits */
@media (min-width: 1280px) {
  .contact-info-float {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .info-item {
    flex: 1 1 auto;
    min-width: 200px;
    /* Prevent squishing */
  }
}

/* 3. New Inventory Grid & Filter Styles (Phase 4) */
.inventory-section {
  padding: var(--space-xl) 0;
}

.filter-bar-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  /* Pill shape container */
  align-items: center;
}

.filter-group-pill {
  flex: 1 1 auto;
  min-width: 140px;
  position: relative;
}

.filter-pill {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  transition: all var(--transition-base);
}

.filter-pill:hover,
.filter-pill:focus {
  border-color: var(--color-primary);
  outline: none;
  background-color: var(--color-bg-hover);
}

.filter-btn-apply {
  padding: 12px 32px;
  border-radius: 50px;
  min-width: 120px;
  font-weight: 600;
}

/* Inventory Toolbar */
.inventory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.results-count {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sort-select {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

/* Inventory Grid Overhaul */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Update Card Styles for Inventory Context */
.inventory-grid .car-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.inventory-grid .card-image {
  aspect-ratio: 16/10;
}

.inventory-grid .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.inventory-grid .card-actions {
  margin-top: auto;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
  margin-top: var(--space-xl);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .filter-bar-top {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
  }

  .filter-group-pill {
    width: 100%;
  }

  .inventory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* 4. Visual Refinements (Phase 5) */
/* Premium Card Hover Effects */
.inventory-grid .car-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.inventory-grid .car-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  /* Gold Glow */
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.15);
}

/* Typography & Price Pop */
.inventory-grid .card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.inventory-grid .price-current {
  color: var(--color-primary);
  /* Gold */
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.inventory-grid .price-bid {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Ensure Logo Constraints */
.logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

/* Filter Bar Polish */
.filter-bar-top {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.filter-pill {
  font-weight: 500;
}

/* 5. Inventory Hero Refinement (Phase 5) */
.hero-inventory {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-3xl);
  background: url('../images/hero-poster.jpg') no-repeat center center/cover;
  margin-bottom: var(--space-xl);
}

.hero-inventory::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-inventory .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inventory .page-title {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: var(--space-md);
}

.hero-inventory .page-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 6. Mobile List View Polish (Phase 5) */
@media (max-width: 768px) {
  .inventory-grid.list-view {
    grid-template-columns: 1fr;
  }

  .inventory-grid.list-view .car-card {
    flex-direction: column;
    height: auto;
  }

  .inventory-grid.list-view .card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    flex: none;
  }

  .inventory-grid.list-view .card-body {
    padding: var(--space-md);
    width: 100%;
  }
}

/* 7. Pagination Polish (Phase 5) */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-3xl);
}

.page-num.active {
  background-color: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
  font-weight: 700;
}

/* Phase 5 Bug Fixes */
@media (max-width: 768px) {

  /* Hide List View Toggle on Mobile to prevent broken layout */
  .view-toggle {
    display: none !important;
  }

  /* Ensure Grid is 1 column */
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

/* Ensure Pagination Text is Visible */
.page-num,
.page-btn {
  color: #fff;
  /* Force white text for visibility */
  border-color: rgba(255, 255, 255, 0.2);
}

.page-num:hover,
.page-btn:hover {
  border-color: var(--color-primary);
}

/* FINAL POLISH: Force Unified Pagination Style */
.pagination {
  display: flex !important;
  gap: 10px !important;
  margin-top: 3rem !important;
}

.pagination button,
.page-btn,
.page-num {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--color-bg-card) !important;
  color: #fff !important;
  font-size: 1rem !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-num.active {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #000 !important;
  font-weight: 700 !important;
}

/* RESTORED */
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bento-hero {
  position: relative !important;
  overflow: hidden !important;
}

.bento-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.bento-hero .feature-content,
.bento-hero .feature-icon-gold {
  position: relative;
  z-index: 2;
}

.bento-hero .card-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
  z-index: 1;
}