/*
 * H&S Auto — Design System & Global Styles
 * ==========================================
 * Premium dark-theme car dealership frontend
 *
 * CDN Dependencies:
 *   - Google Fonts: Poppins + Inter
 *   - GSAP 3.12 + ScrollTrigger
 *   - Swiper.js 11
 *   - Font Awesome 6.4
 *   - Fuse.js 7.0 (inventory search)
 *
 * Color Palette:
 *   --bg:          #0f1114
 *   --surface:     #1a1d20
 *   --surface-alt: #232629
 *   --accent:      #ff0000
 *   --accent-light:#ff0000
 *   --text:        #e6eef3
 *   --text-muted:  #b4bec6
 */

/* ============================================
   0. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Palette */
  --bg: #0f1114;
  --surface: #1a1d20;
  --surface-alt: #232629;
  --accent: #ff0000;
  --accent-light: #ff0000;
  --accent-dark: #ff0000;
  --accent-rgb: 255, 0, 0;
  --text: #e6eef3;
  --text-muted: #b4bec6;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --glass: rgba(26, 29, 32, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --overlay: rgba(15, 17, 20, 0.85);
  --success: #22c55e;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'K2D', system-ui, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  /* Spacing */
  /* spacing in rem so it scales with root font-size */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-accent: 0 4px 20px rgba(var(--accent-rgb), 0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
  --duration-slow: 0.5s;

  /* Layout */
  --container-max: 1280px;
  --container-wide: 1440px;
  --nav-height: 4.5rem;
  /* 72px */
}

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

html {
  scroll-behavior: smooth;
  /* fluid base font size for responsive typography */
  font-size: clamp(0.875rem, 1.2vw + 0.5rem, 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================
   2. UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, var(--sp-6));
  /* fluid horizontal gutter */
}

.container--wide {
  max-width: var(--container-wide);
}

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

.text-accent {
  color: var(--accent);
}

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

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--sp-1);
}

.mt-2 {
  margin-top: var(--sp-2);
}

.mt-4 {
  margin-top: var(--sp-4);
}

.mt-6 {
  margin-top: var(--sp-6);
}

.mt-8 {
  margin-top: var(--sp-8);
}

.mb-4 {
  margin-bottom: var(--sp-4);
}

.mb-6 {
  margin-bottom: var(--sp-6);
}

.mb-8 {
  margin-bottom: var(--sp-8);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   3. NAVIGATION — Premium Redesign
   ============================================ */

/* ---- Nav Shell ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(12, 14, 17, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.5);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(12, 14, 17, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.nav.scrolled::after {
  opacity: 1;
}

/* ---- Desktop 3-column inner grid ---- */
.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
  gap: 16px;
}

/* ---- Logo (left column) ---- */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.nav__logo:hover {
  opacity: 0.85;
}

.nav__logo span {
  color: var(--accent);
}

.nav__logo-icon {
  max-width: 6.8rem;
  height: auto;
  flex-shrink: 0;
}

/* ---- Desktop Nav Links (center column) ---- */
.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 36px);
}

.nav__link {
  position: relative;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 500;
  color: rgba(230, 238, 243, 0.7);
  letter-spacing: 0.01em;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav__link:hover {
  color: #fff;
}

.nav__link:hover::before {
  width: 100%;
}

.nav__link.active {
  color: #fff;
  font-weight: 600;
}

.nav__link.active::before {
  width: 100%;
}

/* ---- Right column: CTA + Mobile actions ---- */
.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ---- Sell Your Car CTA button ---- */
.nav__sell-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.nav__sell-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.5);
  filter: brightness(1.08);
}

.nav__sell-btn:active {
  transform: translateY(0);
}

.nav__sell-btn i {
  font-size: 0.8rem;
}

/* ---- Hamburger Button ---- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5.5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav__hamburger:hover {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.25s var(--ease),
    width 0.3s var(--ease);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Mobile Drawer (slides from right) ---- */
.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #0e1114;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
}

.nav__drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.nav__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(var(--accent-rgb), 0.04);
  flex-shrink: 0;
}

.nav__drawer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav__drawer-logo span {
  color: var(--accent);
}

.nav__drawer-logo-icon {
  max-width: 5rem;
  height: auto;
}

.nav__drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s, color 0.2s;
}

.nav__drawer-close:hover {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

/* Footer logo smaller than header */
.footer .nav__logo-icon {
  max-width: 6.25rem;
  height: auto;
}

/* Drawer Nav Links */
.nav__drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}

/* Unique separator: each link separated by a decorative line */
.nav__drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(230, 238, 243, 0.72);
  text-decoration: none;
  position: relative;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), padding-left 0.22s var(--ease);
  border-left: 3px solid transparent;
}

/* Unique gradient separator line between items */
.nav__drawer-link+.nav__drawer-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.25);
}

.nav__drawer-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.22s, transform 0.22s var(--ease);
}

.nav__drawer-link:hover {
  color: #fff;
  background: rgba(var(--accent-rgb), 0.07);
  padding-left: 30px;
  border-left-color: var(--accent);
}

.nav__drawer-link:hover i {
  opacity: 1;
  transform: translateX(2px);
}

.nav__drawer-link.active {
  color: #fff;
  font-weight: 600;
  border-left-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.09);
}

.nav__drawer-link.active i {
  opacity: 1;
}

/* Drawer Footer */
.nav__drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.nav__drawer-footer .nav__sell-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.95rem;
}

.nav__drawer-tag {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(180, 190, 198, 0.4);
  letter-spacing: 0.05em;
}

/* Drawer Backdrop */
.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.nav__backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ---- Responsive breakpoints ---- */
/* Tablet / smaller desktop: hide links, tighten gap if shown */
@media (max-width: 1100px) {
  .nav__links {
    display: none !important;
    gap: clamp(12px, 1.8vw, 24px);
  }
}

/* Hide desktop links, show hamburger on mobile */
@media (max-width: 860px) {
  .nav__inner {
    /* On mobile: 2-column — logo left, right group flush right */
    grid-template-columns: auto 1fr;
  }

  .nav__links {
    display: none !important;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Right group: push everything to the far right */
  .nav__right {
    justify-content: flex-end;
    gap: 10px;
  }

  /* Mobile: show full Sell Your Car text */
  .nav__sell-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .nav__sell-btn .nav__sell-btn-text {
    display: inline;
    /* show text on mobile */
  }
}

@media (max-width: 480px) {
  .nav__sell-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
    gap: 5px;
  }

  .nav__sell-btn .nav__sell-btn-text {
    display: inline;
    /* always show */
  }

  .nav__hamburger {
    width: 38px;
    height: 38px;
  }
}

/* Very small screens: hide sell text, show icon only */
@media (max-width: 340px) {
  .nav__sell-btn .nav__sell-btn-text {
    display: none;
  }

  .nav__sell-btn {
    padding: 8px 10px;
  }
}

/* Legacy compat: hide old mobile nav if present */
.nav__mobile {
  display: none !important;
}

.nav__toggle {
  display: none !important;
}

/* ============================================
   4. BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-accent);
}

.btn--secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent);
  color: #fff;
}

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--fs-base);
  border-radius: var(--radius-md);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
}

.btn--pill {
  border-radius: var(--radius-full);
}

.btn--block {
  width: 100%;
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
}

.btn--whatsapp:hover {
  background: #1da851;
}

.btn--whatsapp-red {
  background: var(--accent);
  color: #fff;
}

.btn--whatsapp-red:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-accent);
}

.btn--whatsapp-red i {
  font-size: 1rem;
  line-height: 1;
}

.card__footer-actions .btn--whatsapp-red {
  margin-left: auto;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
}

.btn--icon.lg {
  width: 48px;
  height: 48px;
}

/* ============================================
   5. CARDS
   ============================================ */
.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

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

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

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

.card:hover .card__image img {
  transform: scale(1.05);
}

.card__badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
  z-index: 2;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.card__badge--accent {
  background: rgba(var(--accent-rgb), 0.9);
  color: #fff;
}

.card__badge--dark {
  background: rgba(15, 17, 20, 0.8);
  color: var(--text);
}

.card__badge--success {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.card__actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-4);
  background: linear-gradient(transparent, rgba(15, 17, 20, 0.9));
  display: flex;
  gap: var(--sp-2);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
}

.card:hover .card__actions-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card__body {
  padding: var(--sp-5);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.card__specs {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3);
}

.card__spec {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.card__spec i {
  color: var(--accent);
  width: 14px;
}

.card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
}

.card__price small {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 400;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border);
}

.card__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--sp-2);
  width: 100%;
}

/* ============================================
   6. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  /* reserve viewport minus nav so CTA + title are above fold */
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--sp-4)) 0 var(--sp-12);
  overflow: hidden;
}


.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* stronger overlay so text & CTAs always readable */
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

/* ===== decorative blur circles overlay ===== */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__overlay .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
  filter: blur(160px);
  transform: translate(-50%, -50%);
}

/* default circle positions & sizes */
.hero__overlay .c1 { width: 500px; height: 500px; top: 25%; left: 20%; }
.hero__overlay .c2 { width: 400px; height: 400px; top: 60%; left: 80%; }
.hero__overlay .c3 { width: 300px; height: 300px; top: 80%; left: 40%; }

/* scale back for smaller viewports */
@media (max-width: 768px) {
  .hero__overlay .circle { filter: blur(120px); }
  .hero__overlay .c1 { width: 300px; height: 300px; top: 20%; left: 15%; }
  .hero__overlay .c2 { width: 250px; height: 250px; top: 65%; left: 85%; }
  .hero__overlay .c3 { width: 200px; height: 200px; top: 85%; left: 35%; }
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* keep focal point centered */
}

.hero__content {
  position: relative;
  /* layer above gradient and circles */
  z-index: 3;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  text-align: center;
  align-items: center;
}

.hero__main {
  max-width: 720px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(var(--accent-rgb), 0.15);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  color: var(--accent-light);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-6);
}

.hero__title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: var(--sp-5);
  line-height: 1.1;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

.hero__desc {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
  /* always above overlay and background */
  margin-top: var(--sp-5);
}

/* make sure hero CTAs are never stuck invisible */
.hero__ctas .btn {
  opacity: 1 !important;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  justify-content: center;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

.hero__stats>div {
  position: relative;
  background: rgba(15, 17, 20, 0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-2) var(--sp-3);
  flex: 1 1 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1025px) {
  .hero__content {
    max-width: 100%;
  }

  .hero__main {
    max-width: 780px;
  }

  .hero__stats {
    flex-wrap: nowrap;
    gap: var(--sp-4);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stats>div {
    min-width: 0;
    flex: 0 0 230px;
  }
}

.hero__carousel {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  z-index: 1;
}

@media (max-width: 1024px) {
  .hero__carousel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin-top: var(--sp-8);
  }

  .hero {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height));
    padding: calc(var(--nav-height) + var(--sp-3)) 0 var(--sp-10);
  }

  .hero__stats {
    gap: var(--sp-6);
    justify-content: center;
  }

  .hero__title {
    font-size: clamp(2rem, 6vw, var(--fs-5xl));
  }

  .hero__desc {
    font-size: var(--fs-base);
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--nav-height) + var(--sp-3));
    min-height: auto;
    padding-bottom: var(--sp-8);
  }

  .hero__tag {
    margin-bottom: var(--sp-4);
    font-size: var(--fs-xs);
    padding: var(--sp-2) var(--sp-3);
  }

  .hero__content {
    top: auto;
    transform: none;
    padding-top: var(--sp-3);
    text-align: center;
    align-items: center;
  }

  .hero__main {
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, var(--fs-4xl));
    margin-bottom: var(--sp-3);
  }

  .hero__desc {
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-4);
    max-width: 100%;
  }

  .hero__ctas {
    flex-direction: column;
    gap: var(--sp-3);
    width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .hero__stats {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: var(--sp-3);
    margin-top: var(--sp-4);
  }

  .hero__stats>div {
    /* override desktop sizing so exactly 2 per row fit */
    min-width: 0;
    flex: 0 0 calc(50% - var(--sp-3));
  }

  .hero__ctas .btn {
    width: 100%;
    flex: none;
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-base);
  }
}

@media (max-width: 480px) {

  /* slightly adjust background crop on very small screens */
  .hero__bg-img {
    object-position: center 30%;
  }

  /* extra-tight layout so both CTAs fit nicely even around 340px width */
  .hero__ctas {
    flex-direction: column;
    gap: var(--sp-3);
    align-items: stretch;
  }

  .hero__ctas .btn {
    /* buttons full-width on very small screens for better tap targets */
    width: 100%;
    flex: none;
    padding: var(--sp-4) var(--sp-5);
    font-size: var(--fs-base);
  }
}

/* ============================================
   7. SECTIONS
   ============================================ */
.section {
  padding: var(--sp-20) 0;
}

.section--alt {
  background: var(--surface);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: auto;
}

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}

.section__title {
  font-size: clamp(1.75rem, 3vw, var(--fs-3xl));
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.section__desc {
  font-size: var(--fs-md);
  color: var(--text-muted);
}

/* ============================================
   8. GRID LAYOUTS
   ============================================ */
.grid {
  display: grid;
  gap: var(--sp-6);
}

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

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

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

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   9. FEATURES / WHAT WE DO
   ============================================ */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--duration) var(--ease);
  text-align: center;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-5);
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  color: var(--accent);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover .feature-card__icon {
  background: var(--accent);
  color: #fff;
}

.feature-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

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

/* ============================================
   10. COUNTERS / TRUST
   ============================================ */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.counter-item {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.counter-item__num {
  font-family: var(--font-heading);
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.counter-item__label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-item {
    padding: var(--sp-6) var(--sp-3);
  }

  .counter-item__num {
    font-size: var(--fs-2xl);
  }
}

/* ============================================
   11. TESTIMONIALS
   ============================================ */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
}

.testimonial-card__quote {
  font-size: var(--fs-5xl);
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-6);
}

.testimonial-card__text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-6);
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.testimonial-card__stars {
  color: var(--warning);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}

/* ============================================
   12. FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.form-label span.required {
  color: var(--accent);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--fs-base);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--accent);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-top: var(--sp-1);
  display: none;
}

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

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23b4bec6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--fs-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Range slider */
.range-slider {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #ff0000;
  outline: none;
}

.range-slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: #ff0000;
}

.range-slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #ff0000;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}

/* ============================================
   13. MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: overlayFadeIn 0.25s ease forwards;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: #1a1d20;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - var(--sp-8));
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  margin: auto;
}

.modal--lg {
  max-width: 800px;
}

.modal--xl {
  max-width: 1000px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__title {
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.modal__title i {
  color: var(--accent);
}

.modal__close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.modal__close:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: rgba(var(--accent-rgb), 0.3);
  color: var(--accent);
}

.modal__body {
  padding: var(--sp-5) var(--sp-6);
}

.modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #1E2124;
  position: sticky;
  bottom: 0;
}
/* Mobile modal fixes */
@media (max-width: 640px) {
  .modal-overlay {
    padding: var(--sp-3);
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    max-height: 92dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    margin-top: auto;
  }

  .modal__header {
    padding: var(--sp-4) var(--sp-5);
  }

  .modal__body {
    padding: var(--sp-4) var(--sp-5);
  }

  .modal__footer {
    padding: var(--sp-3) var(--sp-5);
    flex-wrap: wrap;
  }

  .modal__footer .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ---- Premium Success Panel ---- */
.success-panel {
  text-align: center;
  padding: var(--sp-10) var(--sp-6) var(--sp-8);
}

/* Animated checkmark ring */
.success-panel__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto var(--sp-6);
}

.success-panel__icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--success);
  opacity: 0;
  animation: successRingPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
}

@keyframes successRingPop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }

  70% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-panel__icon-bg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: successBgPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes successBgPop {
  from {
    transform: scale(0);
    opacity: 0;
  }

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

.success-panel__icon {
  font-size: 2rem;
  color: var(--success);
  animation: successIconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s both;
}

@keyframes successIconPop {
  from {
    transform: scale(0) rotate(-30deg);
    opacity: 0;
  }

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

.success-panel__title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
  animation: fadeUp 0.5s ease 0.3s both;
}

@keyframes fadeUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }

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

.success-panel__text {
  max-width: 400px;
  margin: 0 auto var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  animation: fadeUp 0.5s ease 0.38s both;
}

.success-panel__meta {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-5) var(--sp-6);
  display: inline-block;
  margin-bottom: var(--sp-6);
  font-size: var(--fs-sm);
  text-align: left;
  line-height: 1.9;
  max-width: 360px;
  width: 100%;
  animation: fadeUp 0.5s ease 0.44s both;
}

.success-panel__meta strong {
  color: var(--text);
  font-weight: 600;
}

.success-panel__ref {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  font-family: monospace;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-5);
  animation: fadeUp 0.5s ease 0.3s both;
}

/* Sell page standalone success panel */
#sellSuccess.success-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
}

@media (max-width: 640px) {
  .success-panel {
    padding: var(--sp-8) var(--sp-4);
  }

  .success-panel__title {
    font-size: var(--fs-xl);
  }

  .success-panel__meta {
    padding: var(--sp-4);
    font-size: var(--fs-xs);
  }
}

/* ============================================
   14. TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--sp-4));
  right: var(--sp-5);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: #1e2125;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: all;
  border-left: 4px solid transparent;
}

.toast--success {
  background: #162219;
  border-color: rgba(34, 197, 94, 0.25);
  border-left-color: var(--success);
}

.toast--error {
  background: #1f1214;
  border-color: rgba(255, 0, 0, 0.2);
  border-left-color: var(--accent);
}

.toast--info {
  background: #111a2b;
  border-color: rgba(59, 130, 246, 0.2);
  border-left-color: var(--info);
}

.toast--warning {
  background: #1e1a0e;
  border-color: rgba(245, 158, 11, 0.2);
  border-left-color: var(--warning);
}

.toast__icon {
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.toast--success .toast__icon {
  color: var(--success);
}

.toast--error .toast__icon {
  color: var(--accent);
}

.toast--info .toast__icon {
  color: var(--info);
}

.toast--warning .toast__icon {
  color: var(--warning);
}

.toast__message {
  font-size: var(--fs-sm);
  flex: 1;
  color: var(--text);
  line-height: 1.5;
}

.toast__close {
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--sp-1);
  flex-shrink: 0;
  transition: color 0.2s;
}

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

@media (max-width: 640px) {
  .toast-container {
    right: var(--sp-3);
    left: var(--sp-3);
    top: calc(var(--nav-height) + var(--sp-3));
  }

  .toast {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: var(--sp-3) var(--sp-4);
  }
}

/* ============================================
   15. FOOTER
   ============================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(1.75rem, 3vw, 2.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(150px, 1fr));
  column-gap: clamp(var(--sp-6), 3vw, var(--sp-12));
  row-gap: clamp(var(--sp-5), 2.2vw, var(--sp-8));
  margin-bottom: clamp(var(--sp-8), 4vw, var(--sp-12));
}

.footer__grid>div {
  min-width: 0;
}

.footer__brand {
  max-width: 28rem;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.footer__brand-logo span {
  color: var(--accent);
}

.footer__brand-desc {
  font-size: clamp(0.875rem, 0.15vw + 0.82rem, 0.95rem);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-5);
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer__social a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__heading {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
  color: var(--text);
}

.footer__links li+li {
  margin-top: var(--sp-3);
}

.footer__links a {
  display: inline-block;
  font-size: clamp(0.875rem, 0.15vw + 0.82rem, 0.95rem);
  color: var(--text-muted);
  line-height: 1.5;
  transition: color var(--duration) var(--ease);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__contact li {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  align-items: start;
  column-gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  font-size: clamp(0.875rem, 0.15vw + 0.82rem, 0.95rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.footer__contact i {
  color: var(--accent);
  margin-top: 0.2rem;
  width: 1rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: var(--sp-2);
  column-gap: var(--sp-6);
  padding-top: clamp(var(--sp-5), 2.5vw, var(--sp-8));
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .footer {
    padding-top: var(--sp-12);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .footer .btn--whatsapp {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   16. INVENTORY PAGE
   ============================================ */
.inventory-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: flex-start;
}

.inventory-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-4));
}

.inventory-filters {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.inventory-filters-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--sp-2);
}

.inventory-filters .form-group {
  margin-bottom: 0;
  width: 100%;
}

.inventory-main {
  min-width: 0;
}

.inventory-filters-toggle {
  display: none;
}

.inventory-range-row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.inventory-range-row .form-select,
.inventory-range-row .form-input {
  flex: 1;
}

.inventory-range-separator {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inventory-price-row {
  margin-bottom: var(--sp-2);
}

.inventory-price-input {
  position: relative;
  flex: 1;
}

.inventory-price-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.inventory-price-input .form-input {
  padding-left: 26px;
}

.inventory-budget-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.inventory-budget-summary {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.inventory-filter-actions {
  margin-top: var(--sp-2);
}

.inventory-export-toggle {
  display: inline-flex;
  width: 100%;
  padding: 3px;
  border-radius: var(--radius-full);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  gap: 4px;
}

.inventory-export-pill {
  flex: 1;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  background: transparent;
  transition: all var(--duration) var(--ease);
}

.inventory-export-pill.active {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.inventory-toolbar__count {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.inventory-toolbar__count strong {
  color: var(--text);
}

.inventory-toolbar__reset {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.inventory-toolbar__reset:hover {
  color: var(--accent);
}

.inventory-toolbar__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.view-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-toggle button {
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.view-toggle button.active {
  background: var(--accent);
  color: #fff;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.inventory-grid.list-view {
  grid-template-columns: 1fr;
}

.inventory-grid.list-view .card {
  display: grid;
  grid-template-columns: 300px 1fr;
}

.inventory-grid.list-view .card__image {
  aspect-ratio: 4/3;
}

@media (max-width: 1024px) {
  .inventory-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .inventory-sidebar {
    position: static;
  }
}

@media (max-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .inventory-layout {
    display: block;
  }

  .inventory-sidebar {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform var(--duration) var(--ease);
    z-index: 950;
  }

  .inventory-sidebar.is-open {
    transform: translateY(0);
  }

  .inventory-filters {
    height: 100%;
    overflow-y: auto;
  }

  .inventory-filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
    z-index: 940;
  }

  .inventory-filters-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .inventory-filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm);
  }

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

  .inventory-grid.list-view .card {
    grid-template-columns: 1fr;
  }
}

/* Load more */
.load-more {
  text-align: center;
  margin-top: var(--sp-12);
}

/* ============================================
   17. VEHICLE DETAIL
   ============================================ */
.vehicle-layout {
  display: block;
  gap: var(--sp-8);
}

.vehicle-layout__right {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

@media (min-width: 1025px) {
  .vehicle-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: flex-start;
  }

  .vehicle-layout__right {
    margin-top: 0;
  }

  .vehicle-media {
    position: sticky;
    top: calc(var(--nav-height) + var(--sp-6));
    align-self: flex-start;
  }
}

.vehicle-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.vehicle-gallery .swiper-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.vehicle-thumbs {
  margin-bottom: var(--sp-8);
}

.vehicle-thumbs .swiper-slide {
  opacity: 0.5;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  transition: opacity var(--duration) var(--ease);
  outline: none;
  border: 2px solid transparent;
}

.vehicle-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent);
  outline: none;
}

.vehicle-thumbs .swiper-slide img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.vehicle-info {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
}

.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.vehicle-spec {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vehicle-spec i {
  color: var(--accent);
  font-size: var(--fs-lg);
  width: 24px;
  text-align: center;
}

.vehicle-spec__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.vehicle-spec__value {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.vehicle-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}

.vehicle-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.vehicle-price-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.vehicle-price-card .btn {
  margin-bottom: var(--sp-3);
}

@media (max-width: 1024px) {
  .vehicle-info {
    grid-template-columns: 1fr;
  }

  .vehicle-sidebar {
    position: static;
  }
}

/* Export estimator widget */
.export-estimator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
}

.export-estimator__result {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  background: rgba(var(--accent-rgb), 0.1);
  border-radius: var(--radius);
  text-align: center;
  display: none;
}

.export-estimator__result.visible {
  display: block;
}

.export-estimator__result .price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
}

/* ============================================
   18. MULTI-STEP FORM
   ============================================ */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-8);
}

.step-progress__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.step-progress__num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--duration) var(--ease);
}

.step-progress__item.active .step-progress__num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step-progress__item.completed .step-progress__num {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-progress__line {
  width: 60px;
  height: 2px;
  background: var(--border);
  margin: 0 var(--sp-2);
}

.step-progress__item.completed+.step-progress__line {
  background: var(--success);
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

/* Image upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.upload-area__icon {
  font-size: var(--fs-3xl);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.upload-area__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.upload-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.upload-preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
}

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

.upload-preview__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* ============================================
   19. EXPORT PAGE
   ============================================ */
.timeline {
  position: relative;
  padding-left: var(--sp-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-8);
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--sp-12) + 8px);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: var(--radius-full);
  border: 3px solid var(--bg);
}

.timeline__title {
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.timeline__desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Destination cards */
.destination-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all var(--duration) var(--ease);
  overflow: hidden;
  height: 250px; /* Increased height for better desktop look */
}

.destination-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.destination-card__flag {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}

.destination-card__flag-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  z-index: 0;
}

.destination-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.destination-card__content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.uae-card {
  position: relative;
  overflow: hidden;
}

.uae-card .destination-card__flag-bg {
  background-image: url('/assets/images/UAE-Flag.jpg'); /* Using UAE flag */
}

.africa-card {
  position: relative;
  overflow: hidden;
}

.africa-card .destination-card__flag-bg {
  background-image: url('/assets/images/africa.png'); /* Using Nigeria flag as example for Africa */
}

.destination-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: white;
}

.destination-card__info {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.9);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .destination-card {
    height: 200px;
  }
  .destination-card__name {
    font-size: var(--fs-lg);
  }
  .destination-card__info {
    font-size: var(--fs-sm);
  }
}

/* Home About section */
.home-about-grid {
  align-items: center;
  gap: var(--sp-12);
}

.home-about-text .feature-card__title {
  margin-bottom: var(--sp-3);
}

.home-about-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-about-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.home-about-list i {
  color: var(--accent);
  margin-top: 2px;
}

.home-about-image-wrap {
  max-width: 520px;
  margin-left: auto;
}

.home-about-image .card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 640px) {
  .home-about-grid {
    gap: var(--sp-8);
  }

  .home-about-image-wrap {
    margin-left: 0;
  }
}

/* Home Export section refinements */
.home-export-grid {
  gap: var(--sp-6);
}

.home-export-card {
  text-align: left;
}

.home-export-list {
  list-style: none;
  margin-top: var(--sp-4);
  padding: 0;
}

.home-export-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.home-export-list i {
  color: var(--accent);
}

/* ============================================
   20. ABOUT PAGE
   ============================================ */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.team-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-alt);
}

.team-card__body {
  padding: var(--sp-6);
}

.team-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-1);
}

.team-card__role {
  font-size: var(--fs-sm);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

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

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-badge i {
  color: var(--accent);
  font-size: var(--fs-xl);
}

.trust-badge__text {
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ============================================
   21. CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--duration) var(--ease);
}

.contact-info-card:hover {
  border-color: var(--accent);
}

.contact-info-card i {
  font-size: var(--fs-2xl);
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.contact-info-card__title {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

.contact-info-card__value {
  font-weight: 600;
  font-size: var(--fs-sm);
}

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

/* Map embed */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   22. ADMIN STYLES
   ============================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-height);
  /* keep the entire admin interface from stretching too wide */
  max-width: 1440px;
  margin: 0 auto;
}

.admin-sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: var(--sp-6) 0;
  position: fixed;
  top: var(--nav-height);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}

.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.1);
  border-right: 3px solid var(--accent);
}

.admin-sidebar__link i {
  width: 20px;
  text-align: center;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: var(--sp-8);
}

.admin-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--sp-8);
  flex-direction: column;
}

.admin-header__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.admin-stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  flex-shrink: 0;
}

.admin-stat-card__icon--red {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.admin-stat-card__icon--blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.admin-stat-card__icon--green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.admin-stat-card__icon--yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.admin-stat-card__num {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.admin-stat-card__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Admin data table */
.data-table-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.data-table {
  min-width: 100%;
  overflow-x: scroll;
  border-collapse: collapse;
}

.data-table th {
  padding: var(--sp-4) var(--sp-6);
  text-align: left;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.data-table th:hover {
  color: var(--text);
}

.data-table td {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

/* make vehicle thumbnails a bit bigger and responsive */
.data-table td img {
  width: 80px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table__actions {
  display: flex;
  gap: var(--sp-2);
}

/* Login page */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-12);
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.login-card__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.login-card__logo span {
  color: var(--accent);
}

.login-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform var(--duration) var(--ease);
    z-index: 101;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
    padding: var(--sp-6);
  }

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

  .admin-header {
    flex-wrap: wrap;
    gap: var(--sp-4);
  }

  .admin-header__title {
    font-size: var(--fs-xl);
  }

  /* Remove the old full-width rule for menu-toggle */
}

@media (max-width: 640px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-actions {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    width: 100%;
  }
  /* search/filter inputs expand full width on tablet */
  #adminSearch,
  #adminFilterCondition {
    max-width: 100% !important;
  }
  .admin-header > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
  }

  .admin-header > div:last-child > button,
  .admin-header > div:last-child > a,
  .admin-header > div:last-child > label {
    flex: 0 1 auto;
    min-width: fit-content;
  }

  .admin-stat-card__num {
    font-size: var(--fs-xl);
  }

  .data-table-toolbar {
    /* keep heading and button on same line with space-between even on tablets */
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-2);
  }

  .data-table th,
  .data-table td {
    font-size: var(--fs-sm);
    padding: var(--sp-3) var(--sp-4);
    white-space: nowrap;
  }
  .modal--lg,
  .modal--xl {
    max-width: 100%;
  }
  /* collapse 2‑col grids used in forms and settings */
  .modal__body form > div,
  form > div {
    grid-template-columns: 1fr !important;
  }

  /* search and filter inputs responsive */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  .form-input,
  .form-select {
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .admin-header {
    gap: var(--sp-2);
  }
  .admin-actions {
    display: flex !important;
    gap: var(--sp-2);
    flex-wrap: nowrap;
    width: 100%;
  }
  .admin-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: var(--sp-2) !important;
    padding-right: var(--sp-2) !important;
  }
  .admin-actions .btn i {
    margin-right: var(--sp-1) !important;
  }
  .admin-actions .btn--ghost {
    flex: 0 1 auto;
  }
  /* search/filter full width on phones */
  #adminSearch,
  #adminFilterCondition {
    max-width: 100% !important;
    flex: 1 1 100%;
  }
  .admin-header > div:last-child {
    flex-wrap: nowrap;
  }

  .admin-header > div:last-child {
    width: 100%;
    display: flex;
    gap: var(--sp-2);
  }

  .admin-header > div:last-child > button,
  .admin-header > div:last-child > a {
    width: 100%;
  }

  .admin-header__title {
    font-size: var(--fs-lg);
  }

  .data-table th,
  .data-table td {
    font-size: var(--fs-sm);
    padding: var(--sp-2) var(--sp-3);
  }

  .data-table td img {
    width: 60px;
  }

  /* login page tweaks */
  .login-card {
    padding: var(--sp-6);
    max-width: 100%;
    margin: 0 var(--sp-4);
  }

  .login-card__logo {
    font-size: var(--fs-xl);
  }

  /* form inputs on mobile – 16px prevents iOS zoom */
  .form-input,
  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  textarea {
    max-width: 100% !important;
    font-size: 16px !important;
  }

  /* button sizing on mobile */
  .btn--sm {
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-xs);
  }

  .data-table__actions {
    gap: var(--sp-1);
  }
}


/* ============================================
   23. TAGS & BADGES
   ============================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.tag--red {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.tag--green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.tag--blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.tag--yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.tag--neutral {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ============================================
   24. WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: none;
  z-index: 90;
  /* below drawer (999) and backdrop (998) */
  transition: transform var(--duration) var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ============================================
   25. TRADE PAGE
   ============================================ */
.sell-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: var(--sp-10);
  align-items: flex-start;
}

.sell-main {
  min-width: 0;
  max-width: 780px;
  width: 100%;
}

.sell-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}

.sell-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
}

.sell-sidebar__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.sell-sidebar__list {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.sell-sidebar__list li {
  display: flex;
  gap: var(--sp-3);
}

.sell-sidebar__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.sell-sidebar__item-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

.sell-sidebar__list p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.sell-sidebar__cta {
  margin-top: var(--sp-4);
}

@media (max-width: 1200px) {
  .sell-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: var(--sp-8);
  }

  .sell-sidebar-card {
    padding: var(--sp-5);
  }
}

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

  .sell-sidebar {
    position: static;
    margin-top: var(--sp-6);
  }
}

@media (max-width: 768px) {
  .sell-layout {
    gap: var(--sp-6);
  }

  .sell-sidebar-card {
    box-shadow: var(--shadow);
  }

  .step-progress {
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .step-progress__item,
  .step-progress__line {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .step-progress {
    gap: var(--sp-1);
  }

  .step-progress__num {
    width: 26px;
    height: 26px;
    font-size: var(--fs-xs);
  }

  .step-progress__item {
    gap: var(--sp-1);
    font-size: var(--fs-xs);
  }

  .step-progress__line {
    width: 32px;
    margin: 0 var(--sp-1);
  }
}

@media (max-width: 640px) {
  .sell-sidebar-card {
    padding: var(--sp-5);
  }

  .sell-sidebar__list li {
    align-items: flex-start;
  }
}

.calculator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}

.calculator-result {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius);
  text-align: center;
  display: none;
}

.calculator-result.visible {
  display: block;
}

.calculator-result__value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent);
}

/* Trade comparison */
.comparison-module {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-6);
  align-items: center;
}

.comparison-module__vs {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-sm);
}

@media (max-width: 768px) {
  .comparison-module {
    grid-template-columns: 1fr;
  }

  .comparison-module__vs {
    margin: 0 auto;
  }
}

/* Sell review grid mobile tweak */
@media (max-width: 640px) {
  #reviewContent>div {
    grid-template-columns: 1fr !important;
    row-gap: var(--sp-3);
  }
}

/* ============================================
   26. PAGE TRANSITION
   ============================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

/* ============================================
   27. SWIPER OVERRIDES
   ============================================ */
.swiper-pagination-bullet {
  background: var(--text-muted) !important;
  opacity: 0.4 !important;
}

.swiper-pagination-bullet-active {
  background: var(--accent) !important;
  opacity: 1 !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--accent) !important;
  background: rgba(15, 17, 20, 0.8);
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--radius-full);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px !important;
}

/* Featured vehicles custom arrow row (no overlap) */
.featured-swiper-header-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.featured-swiper-header-row__controls {
  display: inline-flex;
  gap: var(--sp-3);
}

.featured-swiper-prev,
.featured-swiper-next {
  position: static;
  width: 40px !important;
  height: 40px !important;
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.4);
}

.featured-swiper-prev::after,
.featured-swiper-next::after {
  font-size: 14px !important;
  color: #ffffff;
}

@media (max-width: 768px) {
  .featured-swiper-header-row {
    justify-content: flex-end;
    margin-bottom: var(--sp-3);
  }
  
  .featured-swiper-prev,
  .featured-swiper-next {
    width: 36px !important;
    height: 36px !important;
  }
  
  .featured-swiper-prev::after,
  .featured-swiper-next::after {
    font-size: 12px !important;
  }
}

@media (max-width: 640px) {
  .featured-swiper-header-row {
    justify-content: flex-end;
    gap: var(--sp-2);
  }
  
  .featured-swiper-header-row__controls {
    gap: var(--sp-2);
  }
  
  .featured-swiper-prev,
  .featured-swiper-next {
    width: 32px !important;
    height: 32px !important;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.3);
  }
  
  .featured-swiper-prev::after,
  .featured-swiper-next::after {
    font-size: 10px !important;
  }
}

/* Featured inventory — empty state (no vehicles) */
.featured-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: var(--sp-10) var(--sp-6);
  margin: 0 auto;
  max-width: 520px;
}
.featured-empty-state__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.75rem;
  margin-bottom: var(--sp-5);
}
.featured-empty-state__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 var(--sp-2) 0;
  color: var(--text);
}
.featured-empty-state__text {
  font-size: var(--fs-base);
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 400px;
}

/* ============================================
   28. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-alt);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================
   29. LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-alt) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   30. REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   31. DATA TABLE OVERFLOW
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile table container - prevents page horizontal scroll */
@media (max-width: 768px) {
  .table-responsive {
    max-width: 90vw;
    margin: 0 auto;
  }

  /* Ensure table content doesn't wrap */
  .table-responsive .data-table th,
  .table-responsive .data-table td {
    white-space: nowrap;
    min-width: fit-content;
  }

  /* Prevent body horizontal scroll on mobile */
  body {
    overflow-x: hidden;
  }
}

/* ============================================
   32. ADMIN MOBILE TOGGLE
   ============================================ */
.admin-menu-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

@media (max-width: 1024px) {
  .admin-menu-toggle {
    display: inline-flex;
  }
  /* when placed in nav, push it right by using margin-left:auto and remove bottom margin */
  .nav__inner > .admin-menu-toggle {
    margin-left: auto;
    margin-bottom: 0;
    /* make it look like a simple icon button when in nav */
    background: transparent;
    border: none;
    padding: var(--sp-2);
    font-size: var(--fs-lg);
    color: var(--text);
  }
}

/* quick actions horizontal scroll */
.quick-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  overflow-x: scroll;
  max-width: 90vw;
  -webkit-overflow-scrolling: touch;
}
.quick-actions > div > * {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .quick-actions > div {
    flex-wrap: nowrap;
    /* Hide scrollbar on mobile */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .quick-actions > div::-webkit-scrollbar {
    display: none;
  }
}

/* ============================================
   33. PRINT STYLES
   ============================================ */
@media print {

  .nav,
  .footer,
  .whatsapp-float,
  .toast-container {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================
   34. EXTRA MOBILE RESPONSIVENESS
   ============================================ */

/* Vehicle detail page — mobile */
@media (max-width: 640px) {
  .vehicle-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
  }

  .vehicle-spec {
    padding: var(--sp-3);
  }

  .vehicle-price-card {
    padding: var(--sp-5);
  }

  .vehicle-price-card__price {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-4);
  }

  .vehicle-price-card .btn {
    font-size: var(--fs-sm);
    padding: var(--sp-3) var(--sp-5);
  }

  .export-estimator {
    padding: var(--sp-4);
  }
}

/* Form grids — force single column on very small screens */
@media (max-width: 480px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

/* Sell page step panels on mobile */
@media (max-width: 480px) {
  .step-panel>div {
    padding: var(--sp-5) !important;
  }

  .step-progress__line {
    width: 24px;
  }
}

/* Success panel buttons on mobile */
@media (max-width: 480px) {
  .success-panel>div[style*="flex"] {
    flex-direction: column;
    align-items: stretch;
  }

  .success-panel>div[style*="flex"] .btn {
    width: 100%;
    justify-content: center;
  }
}
