/***************************************************
 * GLOBAL THEME — HOT WHEELS RED / BLACK / WHITE
 ***************************************************/
:root {
  --bg: #f7f7f7;
  --text: #111;
  --card: #ffffff;
  --border: rgba(0,0,0,0.15);

  --accent: #FF2D2D;               /* Hot Wheels Red */
  --glow: rgba(255,45,45,0.55);    /* Soft red glow */

  --sidebar-width: 220px;
}

.dark {
  --bg: #0d0d0d;
  --text: #ffffff;
  --card: #1a1a1a;
  --border: rgba(255,255,255,0.12);

  --accent: #FF2D2D;
  --glow: rgba(255,45,45,0.75);
}

* { box-sizing: border-box; }

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

/***************************************************
 * SIDEBAR (glass, title top, menu centered)
 ***************************************************/
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0; 
  left: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 18px 12px;
  border-right: 1px solid rgba(255, 0, 0, 0.12);

  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  /* 🔴 Light mode — extremely soft tint */
  background: rgba(255, 50, 50, 0.04);

  box-shadow: 0 0 12px rgba(255, 40, 40, 0.10);
  z-index: 50;
}

.dark .sidebar {
  /* 🔴 Dark mode — cooler, subtle tint */
  background: rgba(255, 40, 40, 0.03);
  border-right: 1px solid rgba(255, 40, 40, 0.10);
  box-shadow: 0 0 10px rgba(255, 30, 30, 0.08);
}



.sidebar-top {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 20px 0;
}

.sidebar-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.menu-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
  display: flex;
  align-items: center;
  width: 100%;
}

.menu-item:hover {
  background: rgba(255,45,45,0.18);
}

.menu-item.active {
  background: rgba(255,45,45,0.90);
  color: #fff;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.admin-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.admin-link:hover { opacity: 1; }
.admin-link-icon { font-size: 20px; }
.admin-link-label { font-size: 12px; color: var(--text); }

/* wrapper for icon + label */
.theme-toggle-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.theme-toggle {
  font-size: 26px;
  padding: 10px;
  cursor: pointer;
}

.theme-label {
  font-size: 12px;
  opacity: 0.8;
}

/***************************************************
 * CONTENT AREA
 ***************************************************/
.content {
  margin-left: calc(var(--sidebar-width) + 20px);
  padding: 20px;
  min-height: calc(100vh - 80px);
}

/***************************************************
 * HOME PAGE
 ***************************************************/
#view-home {
  min-height: calc(100vh - 80px);
  padding-bottom: 80px;
}

#grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  width: clamp(150px, 20vw, 200px);
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .25s;
  position: relative;
}
.card:hover {
  transform: scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--glow);
}

/* default card image style (home) */
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card-title {
  padding: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* TH logo overlay */
.card .th-logo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

/***************************************************
 * FULL CARS PAGE (3×3 grid)
 ***************************************************/
#view-all {
  padding-bottom: 80px;
}

.cars-page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* smaller 3×3 grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.cars-grid .card {
  width: 100%;
}

.cars-grid .card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/***************************************************
 * FILTER PANEL
 ***************************************************/
.filters-panel {
  width: 300px;
  border-left: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: var(--card);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.filters-top {
  max-height: calc(100vh - 200px);
  overflow: auto;
}

.filters-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, select {
  padding: 10px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
}

.small-btn {
  padding: 10px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/***************************************************
 * PAGINATION (inside filter panel)
 ***************************************************/
.filters-bottom {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.pagination-mini {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.pagination-summary {
  font-weight: 700;
}

.ghost-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/***************************************************
 * ADMIN PANEL
 ***************************************************/
.admin-uploader {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
}
.pending-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.pending-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.file-drop {
  border: 2px dashed var(--border);
  padding: 14px;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
}

/***************************************************
 * MODAL
 ***************************************************/
.overlay {
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 200;
}

/* restored modal look */
.details-box {
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 0 14px rgba(255,80,20,0.10);
  animation: fadeUp .28s ease;
  position: relative;
  animation: pulseGlow 3s ease-in-out infinite; 
}

.details-box p,
.details-box .description,
.details-box .details-description {
  text-align: justify;
  line-height: 1.55;
}

/* Close button */
.close-btn {
  position: absolute !important;
  top: 16px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--accent);
  z-index: 9999 !important; /* stays above everything */
}
.close-btn:hover {
  background: rgba(255,255,255,0.1);
}


/* Layout: Left = image, Right = details */
.details-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.details-left {
  flex: 1 1 55%;
}

.details-right {
  flex: 1 1 40%;
}

/*************** CAROUSEL ***************/
.carousel {
  position: relative;
  width: 100%;
  height: 40vh;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  border-radius: 18px;
  padding: 8px;

  /* soft red frame + subtle background */
  background: radial-gradient(
    circle at top,
    rgba(255, 45, 45, 0.18),
    rgba(0, 0, 0, 0.8)
  );
  border: 1px solid rgba(255, 45, 45, 0.55);
  box-shadow: 0 0 18px rgba(255, 45, 45, 0.55);
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  border-radius: 14px;
  transition: opacity .25s ease;
}

/* Carousel buttons */
.carousel .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: .2s;
}
.carousel .btn:hover {
  background: rgba(0,0,0,0.45);
  transform: translateY(-50%) scale(1.07);
}

.carousel .left { left: 12px; }
.carousel .right { right: 12px; }

/*************** DOTS ***************/
.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

/*************** TAGS (glow restored) ***************/
.tag {
  display: inline-block;
  background: var(--card);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: 0 0 8px var(--glow);
  transition: box-shadow .25s ease, transform .25s ease;
}

.tag.copies {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.25);
  font-weight: 500;
  opacity: 0.9;
  padding: 6px 10px;
  white-space: nowrap;
}


.tag:hover {
  box-shadow: 0 0 14px var(--glow);
  transform: translateY(-1px);
}

/*************** DESCRIPTION ***************/
.description {
  margin-top: 12px;
  opacity: .9;
  line-height: 1.4;
}

/*************** TRANSITION ANIMATION ***************/
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/***************************************************
 * LOGO
 ***************************************************/
.sidebar-header {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0 20px 0;
}

.sidebar-logo {
  width: 140px;
  height: auto;
  display: block;
  opacity: 0.95;
}

.dark .sidebar-logo {
  filter: drop-shadow(0 0 6px var(--glow));
}

/***************************************************
 * HOME REVAMP — HERO + STATS + BRANDS + RECENT
 ***************************************************/
.home-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Generic glass panel used for sections */
.glass-panel {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 16px;
}

/* ------------ HERO SECTION ------------ */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.home-hero-image,
.home-hero-right,
.home-hero-left {
  animation: fadeUp .35s ease;
}

.home-hero-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.home-hero-title {
  margin: 0 0 10px 0;
  font-size: 1.5rem;
}

.home-hero-tags {
  margin-bottom: 10px;
}

.home-hero-desc {
  margin-top: 4px;
  margin-bottom: 12px;
  opacity: 0.9;
  line-height: 1.4;
    text-align: justify;
  line-height: 1.55;
}

/* Hero image */
.home-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-hero-image-wrap {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.home-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ------------ STATS ROW ------------ */
.home-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.home-stat-card {
  text-align: center;
}

.home-stat-label {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-stat-value {
  font-size: 1.4rem;
  font-weight: 800;
}

/* ------------ BRANDS SECTION ------------ */
.home-brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.home-section-header h3 {
  margin: 0;
}

.home-section-sub {
  font-size: 12px;
  opacity: 0.8;
}

.home-brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.home-brand-item {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-brand-name {
  font-weight: 600;
}

.home-brand-count {
  font-size: 13px;
  opacity: 0.8;
  margin-right: auto;
}

/* ------------ RECENTLY ADDED ------------ */
.home-recent {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px;
}

.home-recent-card {
  width: 100%;
}

.home-recent-image-wrap {
  position: relative;
}

.home-recent-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* Use existing th-logo style */
.home-recent-image-wrap .th-logo {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
}

/***************************************************
 * RESPONSIVE FOR HOME
 ***************************************************/
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

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

  .home-recent-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 600px) {
  .home-recent-grid {
    grid-template-columns: 1fr;
  }
}

/***************************************************
 * BACKGROUND IMAGE
 ***************************************************/
.bg-container {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.corner-img {
  position: fixed;
  right: -10px;
  bottom: -10px;
  width: 350px;
  opacity: 0.9;
}
.light-img { display: block; }
.dark-img { display: none; }
.dark .light-img { display:none; }
.dark .dark-img { display:block; }

/* Glow for background images */
.light-img {
  filter: drop-shadow(0 0 6px var(--glow));
}

.dark .dark-img {
  filter: drop-shadow(0 0 6px var(--glow));
}

/***************************************************
 * FOOTER
 ***************************************************/
.site-footer {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: 40px;

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

  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(5px);
}

/* Footer MUST visually block content behind it */
.site-footer {
  background: var(--card);           /* solid, theme-aware */
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 20px rgba(0,0,0,0.35);
  z-index: 100;                      /* above cards */
}


.dark .site-footer {
  background: rgba(255,255,255,0.08);
}

/* Mobile: footer full width */
@media (max-width: 780px) {
  .site-footer {
    left: 0;
    width: 100%;
  }
}

/* Brand logos (non-breaking) */
.brand-logo {
  width: 101px;
  height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px auto;
  opacity: 0.95;
}

.dark .brand-logo {
  filter: drop-shadow(0 0 6px var(--glow));
}

/* Horizontal layout for brand item */
.home-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 10px;
}

/* Logo small and aligned */
.brand-logo {
  width: 101px;
  height: auto;
  object-fit: contain;
}

/* Count beside logo */
.home-brand-count {
  font-size: 30px;
  font-weight: 700;
}

/* TEMPORARY: hide admin UI */
#menu-admin,
#view-admin {
  display: none !important;
}

.about-container {
  max-width: 850px;
  line-height: 1.6;
  font-size: 1rem;
  padding-bottom: 120px;
}

.about-container h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

.about-container h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.about-intro {
  opacity: 0.85;
  margin-bottom: 16px;
}

.about-container ul {
  margin-top: 6px;
  padding-left: 20px;
}

.about-end {
  margin-top: 30px;
  font-weight: 600;
  opacity: 0.9;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 24px;
  align-items: start;
}

.about-brand-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
  align-items: center;
}

.about-brand-logo {
  width: 110px;
  height: auto;
  object-fit: contain;
  opacity: 0.95;
  transition: 0.2s ease;
}

.about-brand-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Mobile: stack logos below */
@media (max-width: 780px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .about-brand-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-brand-logo {
    width: 80px;
  }
}

/***************************************************
 * ABOUT PAGE LAYOUT
 ***************************************************/
.about-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding-bottom: 80px;
}

.about-content {
  line-height: 1.6;
  font-size: 15px;
}

/***************************************************
 * ABOUT PAGE — TIMELINE
 ***************************************************/
.about-timeline {
  padding: 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
}

.timeline-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  font-size: 1.2rem;
}

/* vertical timeline container */
.timeline {
  position: relative;
  padding-left: 35px;
}

/* the vertical line (only between dots) */
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: var(--border);
  border-radius: 4px;
}

/* each item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  text-align: left;
}

/* the dots */
.timeline-dot {
  position: absolute;
  left: -3px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--card);
  box-shadow: 0 0 6px var(--glow);
}

/* logo bigger */
.timeline-icon {
  width: 100px;
  height: auto;
  display: block;
  margin-left: 25px;
  margin-top: 4px;
  margin-bottom: 8px;
  opacity: 0.95;
}

/* text below the logo */
.timeline-content {
  margin-left: 25px;
}

.timeline-year {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-text {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.35;
}

/***************************************************
 * NO RESULTS (All Cars Page)
 ***************************************************/
.nores-center {
  width: 100%;
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nores-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeUp .35s ease;
}

/* Icon styling */
.nores-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 22px var(--glow));
}

/* Light/Dark auto-switch */
.nores-light { display: block; }
.nores-dark  { display: none; }

.dark .nores-light { display: none; }
.dark .nores-dark  { display: block; }

/* Title */
.nores-title {
  margin: 0 0 10px 0;
  font-size: 1.35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 14px var(--glow);
}

/* Subtext */
.nores-text {
  opacity: 0.9;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 0 0 8px var(--glow);
}

/* Optional: small responsive tweak */
@media (max-width: 600px) {
  .nores-icon {
    width: 160px;
    height: 160px;
  }
}
/* When no results exist, the container becomes a full-height flex center */
.nores-container {
  display: flex !important;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* fills the right panel */
}

/***************************************************
 * ⭐ TOP GIFTERS — HOME SECTION (FINAL VERSION)
 ***************************************************/

/* Wrapper section */
.home-gifters {
  margin-top: 28px;
}

/* ── Series Tracker ─────────────────────────────────────────── */
.home-series {
  margin-top: 28px;
}

.series-tracker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding: 10px 0 4px;
}

.series-card {
  padding: 14px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.series-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.3;
}

.series-count {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--accent);
}

.series-total {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.5;
  color: var(--text);
}

.series-bar-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 2px;
}

.series-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.series-pct {
  font-size: 0.7rem;
  opacity: 0.45;
  font-family: var(--font-display);
  font-weight: 600;
}

/* 
   GRID LAYOUT 
   -------------------------------------
   • Equal spacing
   • Centers 1, 2, or 3 gifters
   • Matches theme spacing
*/
.gifters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  justify-items: center;
  gap: 32px;                 /* bigger gap (you requested original feel) */
  width: 100%;
  padding: 10px 0 20px 0;
}

/* 
   GIFTER CARD 
   -------------------------------------
   • Glow
   • Card feel matches Home Stats + Brands
*/
.gifter-card {
  width: 170px;
  padding: 10px 0;
  background: transparent;     /* ← No card box */
  border: none;                /* ← Remove border */
  box-shadow: none;            /* ← Remove glow box */
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
}

.gifter-card:hover {
  transform: scale(1.05);
}

.gifter-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 10px var(--glow)); /* glow ONLY */
}

/* Name */
.gifter-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

/* Count (bolder + accent) */
.gifter-count {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 6px;
}

/***************************************************
 * ⭐ GIFTER MODAL + TABLE (for clicking gifter)
 ***************************************************/

#gifterOverlay {
  display: none;
  z-index: 10000;
}

.gifter-box {
  width: 90vw;
  max-width: 760px;
  max-height: 85vh;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  padding: 20px 20px 16px;
}

#gifterModalContent {
  overflow-y: auto;
  flex: 1;
}

.gifter-box-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--card);
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.85;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: opacity 0.2s, background 0.2s;
  z-index: 10;
}
.gifter-box-close:hover {
  opacity: 1;
  background: rgba(255,45,45,0.1);
  color: var(--accent);
}

.gifter-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-right: 32px;
}

.gifter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.gifter-table th,
.gifter-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.gifter-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(180, 180, 180, 0.7);
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 1;
}
.gifter-table tr:hover td {
  background: rgba(255,45,45,0.04);
}

.gifter-thumb {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

/* ── Gifter cards on home page ──────────────────────────────── */
.gifter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.gifter-card:hover {
  background: rgba(255,45,45,0.06);
  border-color: rgba(255,45,45,0.2);
}
.gifter-card-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.gifter-card-count {
  font-size: 0.75rem;
  opacity: 0.5;
  font-family: var(--font-display);
}

/* HERO IMAGE WRAPPER — REMOVE DARK BG, ADD SOFT GLOW */
.home-hero-image-wrap {
  background: transparent !important;   /* remove any dark square */
  box-shadow: none !important;
  padding: 0 !important;

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

/* HERO IMAGE SOFT GLOW */
.home-hero-image {
  max-width: 100%;
  height: auto;

  /* SOFT glow similar to logo glow */
  filter:
    drop-shadow(0 0 6px rgba(255, 70, 70, 0.35))
    drop-shadow(0 0 12px rgba(255, 70, 70, 0.2));
}

/* Dark mode adjustment — slightly stronger glow */
.dark .home-hero-image {
 filter:
  drop-shadow(0 0 8px rgba(255,255,255,0.25))
  drop-shadow(0 0 14px rgba(255,255,255,0.15));
}

.glass-desc {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;

  /* softer border + glow */
  border: 1px solid rgba(255, 45, 45, 0.45);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 14px rgba(255, 45, 45, 0.45);

  font-size: 0.96rem;
  line-height: 1.6;
}

.dark .glass-desc {
  background: rgba(0, 0, 0, 0.55);
}


/* Premium 2-column Spec Table */
.spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 25px;
  margin-top: 18px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.spec-label {
  font-weight: 600;
  opacity: .85;
}

.spec-value {
  opacity: .9;
  text-align: right;
}

/* Glow Box for description */
.details-desc-box {
  background: var(--card);
  border: 1px solid var(--glow);
  padding: 14px 16px;
  border-radius: 14px;
  margin-top: 18px;
  box-shadow: 0 0 8px var(--glow);
}

.details-desc {
  text-align: justify;
  font-size: .95rem;
  line-height: 1.5;
}

/* --- Layout wrapper (you already have basic .details-layout/.left/.right) --- */
.details-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.details-left {
  flex: 1 1 52%;
}

.details-right {
  flex: 1 1 40%;
}

/* --- Header: title + serial pill --- */
.details-header {
  display: flex;
  flex-direction: column;      /* ⬅ title on top, pill below */
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.details-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
}

.details-serial-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 18px var(--glow);
  white-space: nowrap;
}

.dark .details-serial-pill {
  background: rgba(0, 0, 0, 0.65);
}

.details-serial-pill .pill-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.details-serial-pill .pill-value {
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- Specs grid --- */
.details-specs-grid {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
}

.details-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.details-row-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.details-row-icon {
  font-size: 1rem;
}

.details-row-title {
  font-weight: 600;
}

.details-row-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- Description box under image --- */
.glass-desc {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 45, 45, 0.65);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 22px var(--glow);
  font-size: 0.96rem;
  line-height: 1.6;
}

.dark .glass-desc {
  background: rgba(0, 0, 0, 0.55);
}

.glass-desc-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  margin-bottom: 6px;
}

.glass-desc-text {
  margin: 0;
  text-align: justify;
}

/* Glow around image */
.image-glow {
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 0 20px rgba(255, 100, 20, 0.25);
  background: rgba(0,0,0,0.3);
}

/* Title + Serial */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.serial-badge {
  background: rgba(255, 80, 50, 0.15);
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 60, 0, 0.35);
}

/* Large centered brand logo */
.brand-logo-large {
  margin: 8px 0 18px 0;
  text-align: center;
}
.brand-logo-large img {
  height: 55px;
  object-fit: contain;
  opacity: 0.9;
}

/* Meta rows */
.details-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 18px;
  margin-top: 10px;
}

.meta-item {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.95rem;
}

.meta-brand img.meta-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Description block */
.glass-desc {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(0,0,0,0.45);
  box-shadow: 0 0 18px rgba(255, 80, 30, 0.25);
}

.desc-title {
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.desc-text {
  line-height: 1.55;
}

/***************************************************
 * MODAL — THEMED (FULL LIGHT/DARK SUPPORT)
 ***************************************************/
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.details-box {
  background: var(--card);
  border-radius: 20px;
  padding: 0;
  width: 88%;
  max-width: 1150px;
  max-height: 88vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: 0 0 28px var(--glow);
  position: relative;
  color: var(--text);
}

/* X Button (updated & clean) */
.close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  z-index: 30;
}
.close-btn:hover {
  background: rgba(255,255,255,0.06);
}

/***************************************************
 * PREMIUM DETAILS LAYOUT
 ***************************************************/
.dp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 72vh;
  min-height: 480px;
  max-height: 800px;
}

/* ── Image column ─────────────────────────────── */
.dp-image-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dp-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-carousel img#detailsMainImg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity .22s ease;
}

.dp-carousel img.fade-out { opacity: 0; }

.dp-no-img {
  opacity: 0.4;
  font-size: 0.9rem;
}

/* Brand watermark */
.dp-brand-watermark {
  position: absolute;
  bottom: 14px;
  right: 14px;
  height: 36px;
  width: auto;
  opacity: 0.55;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  pointer-events: none;
  z-index: 5;
}

/* Treasure Hunt badge */
.dp-th-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,200,0,0.18);
  color: #ffd700;
  border: 1px solid rgba(255,200,0,0.4);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  z-index: 5;
  backdrop-filter: blur(6px);
}

/* Image counter */
.dp-img-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  z-index: 5;
}

/* Nav buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  padding: 6px 10px;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 50%;
  z-index: 12;
  transition: background 0.2s;
}
.nav-btn:hover { background: rgba(255,45,45,0.5); }
.nav-btn.left { left: 12px; }
.nav-btn.right { right: 12px; }

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0 10px;
}
.dot {
  height: 7px;
  width: 7px;
  background: var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── Info column ──────────────────────────────── */
.dp-info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 30px 24px;
  overflow-y: auto;
  height: 100%;
}

/* Variant pills */
.dp-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.dp-variant-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.dp-variant-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Title row */
.dp-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.dp-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  flex: 1;
}
.dp-copies-badge {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255,45,45,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,45,45,0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Divider */
.dp-rule {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
  opacity: 0.6;
}

/* Spec grid */
.dp-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.dp-spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dp-spec-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  color: var(--text);
}
.dp-spec-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* Description */
.dp-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dp-desc-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
  color: var(--text);
}
.dp-desc-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: none;
}
.dp-desc-text.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.dp-read-more {
  margin-top: 5px;
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.03em;
}

/* Actions */
.dp-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dp-share-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.dp-share-btn:hover {
  border-color: var(--accent);
  background: rgba(255,45,45,0.08);
}
.dp-share-btn--copied {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
}
.dp-qr-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.dp-qr-toggle-btn:hover,
.dp-qr-toggle-btn.active {
  border-color: var(--accent);
  background: rgba(255,45,45,0.08);
  color: var(--accent);
}

/* QR panel — hidden by default, slides open */
.dp-qr-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s;
  margin-top: 0;
}
.dp-qr-panel.open {
  max-height: 160px;
  opacity: 1;
  margin-top: 12px;
}

/* Tags (kept for other pages) */
.tag-wrap {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  background: var(--card);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 0 8px var(--glow);
  font-size: 0.82rem;
  white-space: nowrap;
}
.tag strong { color: var(--text); }
.tag-th {
  background: rgba(255, 200, 0, 0.15);
  color: #ffdd55;
  border-color: rgba(255,200,0,0.35);
}

@keyframes pulseGlow {
  0%   { box-shadow: 0 0 14px rgba(255,80,20,0.10); }
  50%  { box-shadow: 0 0 18px rgba(255,80,20,0.18); }
  100% { box-shadow: 0 0 14px rgba(255,80,20,0.10); }
}

.brand-logo-row {
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
}

.brand-logo-large {
  height: 55px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}


/***************************************************
 * ⭐ FINAL MOBILE FIX (ALL IN ONE CLEAN BLOCK)
 ***************************************************/
@media (max-width: 800px) {

  /***************************
   * 1. BOTTOM NAVBAR FIX
   ***************************/
  .sidebar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;

    height: 70px !important;
    width: 100% !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;

    border-right: none !important;
    border-top: 1px solid var(--border) !important;
    background: rgba(255, 50, 50, 0.04);
    backdrop-filter: blur(10px);
  }

  .sidebar-top,
  .sidebar-bottom {
    display: none !important;
  }

  /***************************
   * 2. MOBILE MENU — STACKED ITEMS
   ***************************/
  .menu-wrapper {
    width: 100%;
    height: 100%;
  }

  .menu {
    display: flex !important;
    flex-direction: column !important; /* STACKED */
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    width: auto !important;
  }


  @media (max-width: 800px) {
  .menu {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .menu-item:last-child {
    margin-bottom: 10px !important;
  }
}


  .menu-item {
    width: 100%;
    padding: 5px 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }

  .menu-item.active {
    background: rgba(255,45,45,0.9) !important;
    color: white !important;
  }

  /***************************
   * 3. CONTENT PADDING FIX
   ***************************/
  .content {
    margin-left: 0 !important;
    padding: 15px !important;
    padding-bottom: 100px !important; /* space above bottom nav */
  }

  /***************************
   * 4. BRAND OVERLAP FIX
   ***************************/
  .home-brands-list {
    display: flex !important;
    overflow-x: auto !important;
    gap: 18px !important;
    padding-bottom: 8px !important;
  }

  .home-brand-item {
    min-width: 100px !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .home-brand-item .brand-logo {
    width: 70px !important;
    height: 45px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .home-brand-count {
    font-size: 1rem !important;
    text-align: center !important;
    margin: 0 !important;
  }

  /***************************
   * 5. HERO STABILIZATION
   ***************************/
  .home-hero {
    display: flex !important;
    flex-direction: column !important;
    text-align: center !important;
    min-height: 420px !important;
  }

  .home-hero-left,
  .home-hero-right {
    width: 100% !important;
  }

  .home-hero-image-wrap {
    max-width: 350px !important;
    margin: 0 auto !important;
    position: relative !important;
  }

  /* Fade only opacity so layout doesn't jump */
  .hero-fade-container {
    transition: opacity 0.25s ease !important;
  }
  .hero-fade-container.hero-fade {
    opacity: 0 !important;
  }

  /***************************
   * 6. MOBILE HERO ARROWS
   ***************************/
  .hero-mobile-left,
  .hero-mobile-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 900;

    background: rgba(0,0,0,0.45);
    color: var(--accent);

    padding: 10px 14px;
    border-radius: 8px;

    z-index: 20;
    user-select: none;
  }

  .hero-mobile-left {
    left: 10px;
  }

  .hero-mobile-right {
    right: 10px;
  }
}


/********************************************
 * MOBILE HERO ARROWS — INSIDE IMAGE
 ********************************************/
@media (max-width: 800px) {

  /* ensure hero image wrapper can position arrows */
  .home-hero-image-wrap {
    position: relative;
  }

  .hero-mobile-left,
  .hero-mobile-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 900;

    /* red semi-transparent pill */
    background: rgba(0,0,0,0.45);
    color: var(--accent);

    padding: 10px 14px;
    border-radius: 8px;

    z-index: 20;
    user-select: none;
  }

  .hero-mobile-left {
    left: 10px;
  }

  .hero-mobile-right {
    right: 10px;
  }
}

/***************************************************
 * ⭐ MOBILE — FORCE FILTER ON TOP, GRID BELOW
 ***************************************************/
@media (max-width: 800px) {

  /* Ensure parent is vertical */
  .cars-page {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
  }

  /* FORCE FILTER FIRST */
  .filters-panel {
    order: -1 !important;     /* THIS guarantees it goes to the top */
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    padding: 16px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  }

  /* FORCE GRID SECOND */
  .cars-grid {
    order: 10 !important;      /* ANY positive value keeps it below */
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    gap: 16px !important;
  }

  /* smaller phones: 1 column */
  @media (max-width: 520px) {
    .cars-grid {
      grid-template-columns: 1fr !important;
    }
  }
}


/***************************************************
 * ⭐ FINAL WORKING FIX — PERFECT CENTER, MOBILE ONLY
 ***************************************************/
@media (max-width: 800px) {

  /* No results container becomes absolute */
  .nores-container {
    position: absolute !important;
    top: 250px !important;       /* height of filter panel (adjust if needed) */
    left: 0;
    width: 100%;
    height: calc(100vh - 240px) !important; /* header+footer space */
    
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 5;
    pointer-events: none;        /* so user can still scroll page */
  }

  /* internal wrapper stays centered */
  .nores-wrapper {
    text-align: center !important;
  }
}

/***************************************************
 * ⭐ HISTORY PAGE — MOBILE RESPONSIVE FIXES
 ***************************************************/
@media (max-width: 800px) {

  /* Layout becomes vertical */
  .about-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    padding-bottom: 90px !important; /* protect from bottom nav */
  }

  /* Left panel (history text) */
  .about-content {
    width: 100% !important;
    padding: 16px !important;
  }

  /* Right panel (timeline) */
  .about-timeline {
    width: 100% !important;
    padding: 16px !important;
  }

  /* Timeline layout adjustments */
  .timeline {
    padding-left: 28px !important;
  }

  .timeline::before {
    left: 8px !important;
    top: 18px !important;
    bottom: 18px !important;
  }

  .timeline-dot {
    left: -4px !important;
  }

  /* Timeline items larger spacing */
  .timeline-item {
    margin-bottom: 34px !important;
  }

  /* Smaller icons on mobile */
  .timeline-icon {
    width: 70px !important;
    margin-left: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
    opacity: 0.95;
  }

  /* Year & text better readability */
  .timeline-year {
    font-size: 0.95rem !important;
  }
  .timeline-text {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  /* History paragraphs more readable */
  .about-content p {
    text-align: justify !important;
    line-height: 1.55 !important;
    opacity: 0.9 !important;
  }

  .about-content ul li {
    line-height: 1.45 !important;
    margin-bottom: 4px;
  }
}

.aboutme-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  text-align: center;
}

.aboutme-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 14px rgba(255,45,45,0.45);
  border: 3px solid rgba(255,45,45,0.35);
}

.aboutme-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.aboutme-text {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.65;
  font-size: 1rem;
  opacity: 0.92;
  text-align: justify;
  padding: 0 10px;
}

.aboutme-section {
  margin-top: 40px;
}

.aboutme-socials {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.aboutme-socials a {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,45,45,0.15);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255,45,45,0.25);
  transition: 0.2s;
}

.aboutme-socials a:hover {
  background: rgba(255,45,45,0.35);
}


/* FIX: allow 4 menu items to fit on mobile */
@media (max-width: 800px) {
  .sidebar {
    height: 120px !important;      /* slightly taller than 70px */
    padding: 15px 0 !important;
  }
}

/********************************************
 * TREASURE HUNT SECTION (FINAL — RESPONSIVE)
 ********************************************/
.home-treasure {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 18px;
}

/* ---------- DEFAULT (mobile first) ---------- */
/* Mobile: normal scroll, no stretching */
.th-scroll {
  display: flex;
  gap: 18px;
  padding: 12px 4px 10px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  justify-content: flex-start; /* FIX: stop pushing cards out */
}

.th-scroll::-webkit-scrollbar {
  height: 6px;
}
.th-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

/* ---------- DESKTOP FIX ---------- */
/* Desktop: stretch items evenly */
@media (min-width: 700px) {
  .th-scroll {
    justify-content: space-between;
  }
}

/* Bigger card */
.th-item {
  min-width: 200px;
  max-width: 200px;
  background: var(--card);
  border-radius: 14px;
  padding: 12px;
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;

  box-shadow:
    0 0 7px rgba(255, 215, 0, 0.22),
    0 5px 12px rgba(0,0,0,0.20);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.th-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.45),
    0 6px 16px rgba(0,0,0,0.28);
}

/* Bigger image */
.th-img-wrap {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.th-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Flame icon */
.th-logo-small {
  position: absolute;
  width: 32px;
  height: 32px;
  bottom: 8px;
  right: 8px;
  opacity: 0.9;
  filter: drop-shadow(0 0 3px rgba(255,165,0,0.8));
}

.th-name {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.empty-note {
  opacity: 0.6;
  font-size: 0.9rem;
  padding: 12px 0;
  text-align: center;
}

/***************************************************
 * INNER WRAPPER — Must match modal padding
 ***************************************************/
.details-inner {
  width: 100%;
  box-sizing: border-box;
}

/***************************************************
 * RELATED CARS — FINAL MERGED VERSION
 ***************************************************/
.related-section {
  width: 100%;
  margin-top: 1px;
  box-sizing: border-box;
  padding: 0 32px 24px;
}

.related-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 16px;
  color: var(--text);
  opacity: 0.95;
}

/***************************************************
 * HORIZONTAL RAIL
 ***************************************************/
/***************************************************
 * RELATED RAIL — FIX SCROLL + Z-INDEX + OVERFLOW
 ***************************************************/
.related-rail {
  display: flex;
  flex-wrap: nowrap;

  overflow-x: auto;           /* scrolling */
  overflow-y: visible !important;  /* zoom allowed */

  gap: 16px;
  padding: 6px 16px 12px 32px; /* top, right, bottom, left */

  scroll-behavior: smooth;
  scrollbar-width: none;

  position: relative;         /* required for z-index layering */
  z-index: 1;
}

.related-rail::-webkit-scrollbar {
  display: none;
}

/***************************************************
 * RELATED CARD
 ***************************************************/
.related-item {
  min-width: 150px;
  max-width: 150px;
  flex-shrink: 0;

  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px;
  box-sizing: border-box;

  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;       /* needed for z-index */
  z-index: 2;

  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/***************************************************
 * RELATED CARD (BIGGER)
 ***************************************************/
.related-item {
  min-width: 150px;
  max-width: 150px;
  flex-shrink: 0;

  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 10px;
  box-sizing: border-box;

  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;

  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-item:hover {
  transform: scale(1.08);
  z-index: 9999 !important;
  box-shadow: 0 0 14px rgba(255,50,50,0.35);
}


/***************************************************
 * THUMBNAIL
 ***************************************************/
.related-item img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
}

/***************************************************
 * 2-LINE TITLE (No overlap ever)
 ***************************************************/
/***************************************************
 * RELATED RAIL — HARD FIX
 ***************************************************/
.related-rail {
  display: flex;
  flex-wrap: nowrap;

  overflow-x: auto;
  overflow-y: hidden;              /* 🔒 important */

  gap: 16px;
  padding: 6px 16px 12px;

  scroll-behavior: smooth;
  scrollbar-width: none;
}

/***************************************************
 * RELATED ITEM — LOCK LAYOUT
 ***************************************************/
.related-item {
  min-width: 150px;
  max-width: 150px;
  height: 200px;                   /* 🔒 FIXED CARD HEIGHT */

  flex-shrink: 0;

  display: flex;                   /* 🔒 column layout */
  flex-direction: column;
  align-items: center;

  position: relative;
  z-index: 1;

  overflow: hidden;                /* 🔒 critical */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/***************************************************
 * RELATED ITEM IMAGE — FIX HEIGHT
 ***************************************************/
.related-item img {
  width: 100%;
  height: 120px;                   /* 🔒 FIXED IMAGE HEIGHT */
  object-fit: cover;
  border-radius: 12px;
}

/***************************************************
 * RELATED CARD TITLE — NO OVERFLOW POSSIBLE
 ***************************************************/
.related-name {
  margin-top: 8px;
  padding: 0 6px;

  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--text);

  /* ✅ 2-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  /* ✅ THIS IS THE KEY PART */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;

  word-break: break-word;        /* breaks long words */
  overflow-wrap: anywhere;       /* handles CUSTOM/PERSONNALISE */

  max-height: 2.5em;             /* exactly 2 lines */
}

.related-item:hover {
  transform: scale(1.05);
  z-index: 50;                    /* <— pop above container */
  box-shadow: 0 0 14px rgba(255,50,50,0.35);
}


.exchange-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 0 6px var(--glow);
}

/* Exchange page spacing */
.exchange-header {
  margin-bottom: 20px; /* space before cards */
}

.exchange-header {
  margin-bottom: 24px;
}

/* Exchange page card tuning */
#view-exchange .card {
  padding: 20px;              /* was larger */
  border-radius: 14px;
}

#view-exchange .card img {
  height: 220px;              /* smaller image */
  object-fit: contain;
}

#view-exchange .card-title {
  font-size: 0.9rem;          /* slightly smaller text */
  margin-top: 6px;
}

/* Exchange badge tuning */
#view-exchange .exchange-badge {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 8px;
}

/* * {
  outline: 1px solid red !important; Testing purpose - added by pixel_kiddo
}  */

/* ABOUT ME – SOCIAL ICON GRID */
.aboutme-socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 16px;
  max-width: 320px;
}

.aboutme-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.aboutme-socials a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
}

.aboutme-socials img {
  width: 28px;
  height: 28px;
  transition: filter 0.2s ease;
}

/* 🌙 DARK THEME → WHITE ICONS */
body.dark .aboutme-socials img {
  filter: invert(1);
}

/* ☀️ LIGHT THEME → DARK ICONS */
body:not(.dark) .aboutme-socials img {
  filter: invert(0);
}

.aboutme-socials {
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

/* ===============================
   CARBON FIBER BACKGROUND (FIXED)
   =============================== */

/* Dark theme – carbon fiber */
body.dark {
  background-color: #0e0e0e;
  background-image:
    linear-gradient(45deg,
      rgba(255,255,255,0.04) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255,255,255,0.04) 50%,
      rgba(255,255,255,0.04) 75%,
      transparent 75%,
      transparent
    ),
    linear-gradient(45deg,
      rgba(0,0,0,0.6) 25%,
      transparent 25%,
      transparent 50%,
      rgba(0,0,0,0.6) 50%,
      rgba(0,0,0,0.6) 75%,
      transparent 75%,
      transparent
    );
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;

  /* 🔒 FIX: lock background */
  background-attachment: fixed;
}

/* Light theme – subtle woven texture */
body:not(.dark) {
  background-color: #f4f4f4;
  background-image:
    linear-gradient(45deg,
      rgba(0,0,0,0.03) 25%,
      transparent 25%,
      transparent 50%,
      rgba(0,0,0,0.03) 50%,
      rgba(0,0,0,0.03) 75%,
      transparent 75%,
      transparent
    ),
    linear-gradient(45deg,
      rgba(255,255,255,0.6) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255,255,255,0.6) 50%,
      rgba(255,255,255,0.6) 75%,
      transparent 75%,
      transparent
    );
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;

  /* 🔒 FIX: lock background */
  background-attachment: fixed;
}





/* Ensure all cards share the same stacking context */
.cars-grid,
#exchangeGrid {
  position: relative;
}

/* Base card layer */
.card {
  position: relative;
  z-index: 1;
}

/* Hovered card always rises above siblings */
.card:hover {
  z-index: 10;
}

/* Remove artificial gap before footer on All Cars page */
#view-all .cars-grid-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

/***************************************************
 * HERO — HARD HEIGHT LOCK (NO LAYOUT CHANGE)
 * Fixes jump without altering grid / spacing
 ***************************************************/

/* Reserve vertical space for hero */
.home-hero {
  min-height: 420px;          /* desktop stable height */
}

/* Image wrapper defines visual height */
.home-hero-image-wrap {
  height: 260px;              /* controls hero visual balance */
}

/* Image never affects layout */
.home-hero-image {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Mobile — slightly smaller but still locked */
@media (max-width: 800px) {
  .home-hero {
    min-height: 440px;        /* mobile text wraps more */
  }

  .home-hero-image-wrap {
    height: 240px;
  }
}

/***************************************************
 * HERO — REDUCED HEIGHT (NO LAYOUT CHANGE)
 ***************************************************/

/* Desktop */
.home-hero {
  min-height: 300px;          /* ⬅ was ~420 */
}

.home-hero-image-wrap {
  height: 260px;              /* ⬅ was ~260 */
}

/* Mobile */
@media (max-width: 800px) {
  .home-hero {
    min-height: 380px;        /* ⬅ was ~440 */
  }

  .home-hero-image-wrap {
    height: 210px;            /* ⬅ was ~240 */
  }
}

/***************************************************
 * HOME — GLASS TRANSPARENCY ONLY (NO OTHER CHANGES)
 ***************************************************/

/* Light theme glass */
body:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* Dark theme glass */
body.dark .glass-panel {
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

/***************************************************
 * EXCHANGE — GLASS CARDS ONLY (NO OTHER CHANGES)
 ***************************************************/

/* Light theme */
body:not(.dark) #view-exchange .card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

/* Dark theme */
body.dark #view-exchange .card {
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

/***************************************************
 * 📱 MOBILE OTT NAV — ICONS ONLY, ULTRA COMPACT
 ***************************************************/
@media (max-width: 800px) {

  /* ===============================
     BOTTOM BAR
     =============================== */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;

    width: 100%;
    height: 44px;                 /* ⬅ only icon height */

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

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);

    z-index: 1000;
  }

  /* Hide logo + theme toggle */
  .sidebar-top,
  .sidebar-bottom {
    display: none;
  }

  /* ===============================
     MENU ROW
     =============================== */
  .menu {
    display: flex !important;
    flex-direction: row !important;

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

    width: 100%;
    height: 100%;
    padding: 0 6px;
  }

  /* ===============================
     ICONS ONLY
     =============================== */
  .menu-item {
    flex: 1;

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

    padding: 0;
    margin: 0;

    font-size: 1.25rem;           /* icon size */
    line-height: 1;

    background: none;
    border-radius: 0;

    opacity: 0.7;
  }

  /* Remove any text labels */
  .menu-item span,
  .menu-item .tab-label {
    display: none !important;
  }

  .menu-item.active {
    opacity: 1;
    color: var(--accent);
  }

  /* ===============================
     CONTENT SAFE AREA
     =============================== */
  .content {
    margin-left: 0;
    padding: 12px;
    padding-bottom: 72px;         /* space for bar */
  }

  .site-footer {
    bottom: 44px;
    font-size: 0.7rem;
  }
}

/***************************************************
 * 📱 TRUE MOBILE APP DOCK (DESKTOP SAFE)
 ***************************************************/
.mobile-dock {
  display: none;
}

@media (max-width:800px) {

  .mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 58px;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 9999;
  }

  .dock-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: .55;
  }

  .dock-item img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .dock-item.active {
    opacity: 1;
  }

  .dock-item.active img {
    filter: drop-shadow(0 0 10px var(--glow));
    transform: scale(1.15);
  }

  /* make room */
  .content { padding-bottom: 100px !important; }
  .site-footer { bottom: 58px; }
}

/* Hide old sidebar menu on mobile – use dock only */
@media (max-width:800px){
  .sidebar { display:none !important; }
}

/* Mobile app mode – hide footer */
@media (max-width:800px){
  .site-footer { display:none !important; }
}

/***************************************************
 * 📱 MOBILE THEME FAB
 ***************************************************/
#mobileThemeFab { display:none; }

@media (max-width:800px){
  #mobileThemeFab {
    display:flex;
    position:fixed;
    right:14px;
    bottom:72px;         /* sits above dock */
    width:46px;
    height:46px;
    border-radius:50%;
    align-items:center;
    justify-content:center;
    background: rgba(255,45,45,.9);
    color:#fff;
    font-size:22px;
    box-shadow:0 0 14px var(--glow);
    z-index:9999;
    cursor:pointer;
  }
}

/***************************************************
 * 🌗 THEME MORPH ANIMATION
 ***************************************************/
body {
  transition:
    background-color .45s ease,
    color .35s ease,
    filter .35s ease;
}

/* animate all glass panels */
.glass-panel,
.sidebar,
.details-box,
.site-footer,
.mobile-dock {
  transition:
    background .45s ease,
    backdrop-filter .45s ease,
    box-shadow .45s ease;
}

/* soft fade while switching */
body.theme-morph {
  filter: brightness(.95) contrast(.95);
}

/***************************************************
 * 🖥️ DESKTOP SIDEBAR ICON MENU
 ***************************************************/
.side-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 12px;
}

/* align icon + text */
.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* glow on active */
.menu-item.active .side-icon {
  filter: drop-shadow(0 0 8px var(--glow));
  transform: scale(1.1);
}

/* hide labels on mobile (dock used instead) */
@media (max-width:800px){
  .side-label { display:none; }
}

/* Lock UI during theme morph to prevent repaint blink */
body.theme-morph .sidebar,
body.theme-morph .mobile-dock {
  pointer-events: none;
  opacity: 0.85;
  transition: opacity .15s ease;
}

/* Hide ONLY CookieYes floating revisit badge */
.cky-btn-revisit-wrapper {
  display: none !important;
}

/* Theme-aware mobile dock (diecast site) */
@media (max-width:800px){
  .mobile-dock{
    background: var(--card) !important;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
}


/***************************************************
 * 📱 MOBILE APP UI — FINAL RESTORED VERSION
 ***************************************************/
@media (max-width:800px){

/* ===== Bottom App Dock ===== */
.mobile-dock{
  display:flex !important;
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:64px;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(14px);
  border-top:1px solid var(--border);
  z-index:9999;
}

.dock-item{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.55;
}

.dock-item.active{opacity:1;}
.dock-item img{width:28px;height:28px;object-fit:contain;}
.dock-item.active img{
  filter:drop-shadow(0 0 12px var(--glow));
  transform:scale(1.15);
}

/* ===== Content Safe Area ===== */
.content{padding-bottom:110px !important;}
.site-footer{display:none !important;}
.sidebar{display:none !important;}



.details-inner{
  height:100%;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding-bottom:120px !important;
}

/* ===== Image Full Width ===== */
.carousel{height:56vh !important;border-radius:0 !important;}
}

/***************************************************
 * 📱 MOBILE — RELATED SECTION SIDE PADDING FIX
 ***************************************************/
@media (max-width:800px){

  .related-section{
    padding-left:16px !important;
    padding-right:16px !important;
    box-sizing:border-box;
  }

  .related-title{
    padding-left:2px;   /* optical alignment */
  }
}
/***************************************************
 * MODAL BACK BAR (mobile breadcrumb) + CLOSE BTN
 ***************************************************/

/* Back bar — mobile only */
.modal-back-bar {
  display: none;
}

/* Close X — desktop only by default */
#details .close-btn {
  display: flex;
}

@media (max-width: 800px) {
  /* Hide the X on mobile */
  #details .close-btn {
    display: none !important;
  }

  /* Show the back bar, fixed at very top of viewport */
  .modal-back-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    padding: 12px 18px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    user-select: none;
  }

  .modal-back-arrow {
    font-size: 1.1rem;
    line-height: 1;
  }

  /* Push the details content down so it's not under the back bar */
  #details .details-inner {
    padding-top: calc(env(safe-area-inset-top, 0px) + 52px) !important;
  }
}

/***************************************************
 * 📱 ALL CARS — MOBILE DENSE DESKTOP-STYLE LAYOUT
 ***************************************************/
@media (max-width: 800px) {

  /* keep desktop structure */
  .cars-page {
    display: grid !important;
    grid-template-columns: 1fr 200px !important;   /* grid + filter */
    gap: 14px !important;
  }

  /* tighter right filter panel */
  .filters-panel {
    width: 200px !important;
    padding: 10px !important;
  }

  .filters-top {
    max-height: calc(100vh - 160px) !important;
  }

  /* much denser gallery */
  .cars-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  /* compact cards */
  .cars-grid .card {
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .cars-grid .card img {
    height: 90px !important;
    object-fit: contain !important;
    background: #000;
  }

  .cars-grid .card-title {
    font-size: 0.72rem !important;
    padding: 4px 6px !important;
    line-height: 1.2 !important;
  }
}

/* very small phones → 2 columns */
@media (max-width: 520px) {
  .cars-page {
    grid-template-columns: 1fr 170px !important;
  }

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

/***************************************************
 * 📱 ALL CARS — MOBILE FILTER PANEL NORMALIZATION
 ***************************************************/
@media (max-width: 800px) {

  /* stop desktop sizing rules from leaking */
  .filters-panel {
    min-width: 0 !important;
    max-width: 200px !important;
    width: 200px !important;
    padding: 8px !important;
    box-shadow: none !important;
  }

  /* tighter internal spacing */
  .filters-stack {
    gap: 8px !important;
  }

  .filters-panel input,
  .filters-panel select {
    font-size: 0.75rem !important;
    padding: 6px !important;
  }

  .filters-panel label {
    font-size: 0.7rem !important;
  }

  /* pagination compact */
  .filters-bottom {
    padding-top: 6px !important;
    margin-top: 6px !important;
  }
}

/* tiny phones */
@media (max-width: 520px) {
  .filters-panel {
    width: 160px !important;
  }
}

/***************************************************
 * 📱 ALL CARS — MOBILE FILTER AS UTILITY RAIL
 ***************************************************/
@media (max-width:800px){

  .cars-page{
    grid-template-columns: 1fr 150px !important;
    gap: 12px !important;
  }

  .filters-panel{
    width: 150px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }

  .filters-panel input,
  .filters-panel select{
    font-size: 0.7rem !important;
    padding: 6px 8px !important;
  }

  .filters-panel button{
    font-size: 0.75rem !important;
    padding: 8px !important;
  }

  /* pagination compact */
  .pagination-summary{
    font-size: 0.7rem !important;
  }
}

@media (max-width:800px){
  .filters-panel{
    opacity: 0.92;
  }
}

/***************************************************
 * 🖼️ CARD IMAGE LOADING PLACEHOLDER — RESTORED
 ***************************************************/

/* Card image container must always have a backdrop */
.card img{
  background:
    radial-gradient(circle at 30% 30%, rgba(255,60,60,.35), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  background-size: cover;
}

/* shimmer animation while loading */
.card img:not([src]),
.card img[src=""],
.card img.loading{
  filter: brightness(.85) contrast(.9);
  animation: cardShimmer 1.4s infinite linear;
}

@keyframes cardShimmer{
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ============================================
   LOADING SKELETON — FINAL CLEAN VERSION
============================================ */

body.loading {
  overflow: hidden;
}

/* Hide real UI while loading */
body.loading .sidebar,
body.loading main,
body.loading .mobile-dock,
body.loading .site-footer {
  visibility: hidden;
}

/* --------------------------------------------
   MAIN PAGE SKELETON
-------------------------------------------- */
.home-skeleton {
  position: fixed;
  inset: 0;
  left: var(--sidebar-width);
  padding: 100px 32px 140px;
  display: grid;
  gap: 26px;
  z-index: 999;
  background: var(--bg);
}

/* Mobile safe area */
@media (max-width:800px){
  .home-skeleton{
    left:0;
    padding:70px 16px 110px;
  }
}

/* --------------------------------------------
   SIDEBAR / DOCK SKELETON
-------------------------------------------- */
.sidebar-skeleton{
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1000;
  background: var(--bg);
}

@media (max-width:800px){
  .sidebar-skeleton{
    inset:auto 0 0 0;
    height:64px;
    width:100%;
    flex-direction:row;
    align-items:center;
    padding:0 16px;
  }
}

/* --------------------------------------------
   SHIMMER EFFECT
-------------------------------------------- */
.sk-hero,
.sk-row,
.sk-grid div,
.sk-stats div,
.sk-logo,
.sk-menu div,
.sk-toggle {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.08) 25%,
    rgba(255,255,255,.16) 37%,
    rgba(255,255,255,.08) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 14px;
}

@keyframes shimmer {
  to { background-position: -400% 0; }
}

/* --------------------------------------------
   SHAPES
-------------------------------------------- */
.sk-hero{height:240px}
.sk-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px
}
.sk-stats div{height:90px}
.sk-row{height:100px}
.sk-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}
.sk-grid div{height:150px}

/* Sidebar */
.sk-logo{height:52px}
.sk-menu{display:grid;gap:12px}
.sk-menu div{height:40px}
.sk-toggle{height:44px}

#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}


.details-premium{
  background:none !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
}

/* =================================================
   CANONICAL MODAL ARCHITECTURE (SINGLE SOURCE)
================================================= */

#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

#details{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.details-box{
  width:90vw;
  max-width:1150px;
  max-height:88vh;
  border-radius:22px;
  background:rgba(14,14,14,.82);
  border:1px solid rgba(255,45,45,.45);
  box-shadow:0 0 28px var(--glow);
  backdrop-filter:blur(14px) saturate(140%);
  color:var(--text);
  position:relative;
  overflow-y:auto;
}

.details-inner{
  padding: 0;
}

/* =================================================
   DETAILS MODAL — CARBON FIBER GLASS BACKGROUND ONLY
   ================================================= */

/* DARK MODE — carbon fiber */
body.dark .details-box{
  background-color: rgba(14,14,14,0.88);
  background-image:
    linear-gradient(45deg,
      rgba(255,255,255,0.045) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255,255,255,0.045) 50%,
      rgba(255,255,255,0.045) 75%,
      transparent 75%,
      transparent
    ),
    linear-gradient(45deg,
      rgba(0,0,0,0.55) 25%,
      transparent 25%,
      transparent 50%,
      rgba(0,0,0,0.55) 50%,
      rgba(0,0,0,0.55) 75%,
      transparent 75%,
      transparent
    );
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* LIGHT MODE — woven carbon glass */
body:not(.dark) .details-box{
  background-color: rgba(255,255,255,0.82);
  background-image:
    linear-gradient(45deg,
      rgba(0,0,0,0.035) 25%,
      transparent 25%,
      transparent 50%,
      rgba(0,0,0,0.035) 50%,
      rgba(0,0,0,0.035) 75%,
      transparent 75%,
      transparent
    ),
    linear-gradient(45deg,
      rgba(255,255,255,0.60) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255,255,255,0.60) 50%,
      rgba(255,255,255,0.60) 75%,
      transparent 75%,
      transparent
    );
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}


/* =========================================================
   MOBILE DETAILS MODAL — TRUE APP LAYOUT
   ========================================================= */
@media (max-width:800px){

  /* Mobile: stack image above info */
  #details .dp-layout {
    grid-template-columns: 1fr !important;
    height: auto !important;
    max-height: unset !important;
  }

  #details .dp-carousel {
    height: 56vw !important;
    min-height: 220px !important;
    max-height: 50vh !important;
  }

  #details .dp-info-col {
    height: auto !important;
    padding: 20px 18px 24px !important;
  }

  #details .dp-title {
    font-size: 1.3rem !important;
  }

  #details .dp-specs-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Related rail spacing */
  #details .related-section {
    padding: 0 18px 16px !important;
  }
}

/* ── QR code (in panel) ─────────────────────────────────────── */
.qr-code {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.qr-label {
  font-size: 0.72rem;
  opacity: 0.5;
  letter-spacing: 0.04em;
  font-family: var(--font-display);
}

/* ============================================
   DETAILS BADGES — REMOVE RED GLOW ONLY
   ============================================ */

#details .tag,
#details .serial-tag,
#details .details-serial-pill,
#details .tag:hover,
#details .serial-tag:hover,
#details .details-serial-pill:hover{
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

#details .colour-pill {
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.28) !important;
  padding: 2px 8px !important;
  font-size: 0.78rem !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
}

@media (max-width:800px){

  /* Make details behave like a real page */
  #details .details-box{
    width:100vw !important;
    max-height:100vh !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }

  #details .details-inner{
    padding:14px 14px 96px !important;   /* bottom room for dock */
  }

  /* Header row: title + logo on ONE LINE */
  #details .right-column > div:first-child{
    flex-direction:row !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:nowrap !important;
  }

  #details .car-title{
    font-size:1.35rem !important;
    line-height:1.35 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    max-width:70vw !important;
  }

  /* Smaller brand logo */
  #details .brand-logo-under{
    height:36px !important;
    max-width:80px !important;
    object-fit:contain !important;
    flex-shrink:0 !important;
  }

  /* Image area not oversized */
  #details .carousel{
    height:45vh !important;
  }
}

@media (max-width:800px){
  #details .brand-logo-under{
    height:42px !important;      /* was 36 */
    max-width:96px !important;   /* was 80 */
  }
}
.hero-dots{
  display:flex;
  flex-direction:row;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin-top:12px;
  z-index:5;
}

/* ALL dots same size */
.hero-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  cursor:pointer;

  border:1.5px solid var(--accent);
  background: rgba(255,45,45,0.12);
  box-shadow: 0 0 4px rgba(255,45,45,0.18);

  transition: all .22s ease;
}

/* active = glow only */
.hero-dot.active{
  background: var(--accent);
  box-shadow:
    0 0 12px var(--glow),
    0 0 18px var(--glow);
}

/* Lock page scroll when gifter modal is open */
body.gifter-lock {
  overflow: hidden !important;
  height: 100vh;
}

/***************************************************
 * 🚀 FINAL MOBILE FIX — ALL CARS + MODAL (SAFE PATCH)
 ***************************************************/
@media (max-width: 800px) {

  /***************************
   * FIX 1 — STACK LAYOUT (CRITICAL)
   ***************************/
  .cars-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .filters-panel {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
  }

  /***************************
   * FIX 2 — GRID RESPONSIVE
   ***************************/
  .cars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /***************************
   * FIX 3 — SMALL DEVICES
   ***************************/
}
@media (max-width: 500px) {
  .cars-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 800px) {

  /***************************
   * FIX 4 — CARD IMPROVEMENT
   ***************************/
  .card {
    border-radius: 14px !important;
  }

  .card-title {
    font-size: 1rem !important;
    padding: 10px !important;
  }

  /***************************
   * FIX 5 — IMAGE STABILITY
   ***************************/
  .card img {
    aspect-ratio: 16 / 9 !important;
    background: #111 !important;
  }

  /***************************
   * FIX 6 — MODAL HEIGHT FIX
   ***************************/
  .carousel {
    height: 38vh !important;
  }

  /***************************
   * FIX 7 — EXTRA BOTTOM SPACE (NAV SAFE)
   ***************************/
  .content {
    padding-bottom: 120px !important;
  }
}

/* =============================================================
   NEON SHOWROOM REDESIGN — v2.0
   Hot Wheels Red + Cyan + Gold | Rajdhani headers | Icon rail
   ============================================================= */

/* ── Typography ─────────────────────────────────────────────── */
:root {
  --cyan: #FF2D2D; /* remapped to red */
  --gold: #FFD700;
  --font-display: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --sidebar-width: 220px;
}

h1, h2, h3,
.home-hero-title,
.home-stat-value,
.car-title,
.details-title,
.aboutme-title,
.timeline-year,
.home-section-header h3,
.nores-title {
  font-family: var(--font-display);
}

/* ── Sidebar — full expanded (icon + label) ─────────────────── */
.sidebar {
  width: var(--sidebar-width) !important;
  padding: 16px 12px !important;
  align-items: stretch !important;
  overflow: hidden !important;
}

.sidebar-logo {
  width: 120px !important;
  height: auto !important;
}

.side-label {
  display: inline !important;
}

.menu {
  gap: 6px !important;
}

.menu-item {
  width: 100% !important;
  height: auto !important;
  justify-content: flex-start !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
}

.side-icon {
  margin-right: 12px !important;
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
}

/* ── Stats — huge typographic numbers ──────────────────────── */
.home-stat-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 12px 8px !important;
}

.home-stat-value {
  font-size: 3rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  background: linear-gradient(135deg, var(--accent) 30%, #FF6B6B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.home-stat-label {
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  opacity: 0.7 !important;
}

/* ── Hero — dramatic diagonal + enlarged title ──────────────── */
.home-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 300px !important;
}

/* Diagonal speed-line accent — desktop only */
@media (min-width: 801px) {
  .home-hero::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 42%;
    width: 2px;
    height: calc(100% + 40px);
    background: linear-gradient(to bottom, transparent, rgba(255, 45, 45, 0.5), transparent);
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 0;
  }
}

.home-hero > * {
  position: relative;
  z-index: 1;
}

.home-hero-title {
  font-size: 2.1rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.03em !important;
}

.home-hero-label {
  color: var(--accent) !important;
  letter-spacing: 0.16em !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
}

/* View details button — pill + gradient */
.hero-btn {
  background: linear-gradient(135deg, var(--accent), #ff6535) !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 10px 24px !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px var(--glow) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  border: none !important;
}

.hero-btn:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 8px 28px var(--glow) !important;
}

/* ── Cards — 3D tilt on hover (pointer devices only) ────────── */
.card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease !important;
}

@media (hover: hover) and (min-width: 801px) {
  .card {
    transform-style: preserve-3d;
    will-change: transform;
  }

  .card:hover {
    transform: scale(1.04) perspective(700px) rotateY(-5deg) translateZ(4px) !important;
    border-color: var(--accent) !important;
    box-shadow: 8px 0 28px var(--glow), 0 10px 32px rgba(0, 0, 0, 0.35) !important;
    z-index: 10 !important;
  }
}

/* ── Section headers — red left-border accent ───────────────── */
.home-section-header h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  padding-left: 14px !important;
  position: relative !important;
}

.home-section-header h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 75%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--glow);
}

/* ── Treasure Hunt marquee (desktop) / scroll (mobile) ──────── */
.th-scroll-inner {
  display: flex;
  gap: 18px;
  width: max-content;
}

@media (min-width: 801px) {
  .th-scroll {
    overflow: hidden !important;
    padding: 12px 0 10px !important;
    position: relative;
  }

  .th-scroll-inner {
    animation: th-marquee 28s linear infinite;
    will-change: transform; /* compositor layer — avoids main-thread repaints */
  }

  .th-scroll:hover .th-scroll-inner {
    animation-play-state: paused;
  }
}

@media (max-width: 800px) {
  .th-scroll {
    overflow-x: auto !important;
    padding: 12px 4px 10px !important;
    justify-content: flex-start !important;
  }
}

@keyframes th-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* TH cards gold accent */
.th-item {
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.th-item:hover {
  border-color: rgba(255, 215, 0, 0.55) !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

/* TH Treasure Hunt tag — gold */
.tag-th {
  background: rgba(255, 215, 0, 0.15) !important;
  color: #ffd700 !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25) !important;
}

/* ── Tags — Rajdhani font ───────────────────────────────────── */
.tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ── Glass panels — deeper blur ─────────────────────────────── */
body:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.62) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255, 45, 45, 0.1) !important;
}

body.dark .glass-panel {
  background: rgba(12, 12, 12, 0.62) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
  border: 1px solid rgba(255, 45, 45, 0.12) !important;
}

/* ── Hero dots — cyan active ────────────────────────────────── */
.hero-dot.active {
  background: var(--cyan) !important;
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.7), 0 0 18px rgba(255, 45, 45, 0.4) !important;
  border-color: var(--cyan) !important;
}

/* ── About Me — enhanced profile ───────────────────────────── */
.aboutme-pic {
  border: 3px solid var(--accent) !important;
  box-shadow: 0 0 28px var(--glow), 0 0 60px rgba(255, 45, 45, 0.12) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aboutme-pic:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px var(--glow), 0 0 80px rgba(255, 45, 45, 0.2) !important;
}

.aboutme-title {
  font-size: 2.4rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

/* ── Timeline — cyan dots on active ────────────────────────── */
.timeline-year {
  color: var(--accent);
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* ── View fade-in transitions ───────────────────────────────── */
/* NOTE: no transform — transform on a parent creates a containing block
   for position:fixed children, breaking the filter bottom sheet width */
.view {
  animation: ns-view-in 0.3s ease;
}

@keyframes ns-view-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Mobile dock — floating pill ───────────────────────────── */
@media (max-width: 800px) {

  .mobile-dock {
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
    gap: 4px !important;
    height: 60px !important;
    border: 1px solid rgba(255, 45, 45, 0.28) !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.55),
      0 0 20px rgba(255, 45, 45, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  }

  .dock-item {
    padding: 0 10px !important;
  }

  .content {
    padding-bottom: 120px !important;
  }

  #mobileThemeFab {
    bottom: 90px !important;
  }
}

/* ── Brand logos — subtle lift on hover ────────────────────── */
.home-brand-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px;
  cursor: pointer;
}

.home-brand-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 45, 45, 0.18);
}

.home-brand-item:active {
  transform: translateY(0);
}

/* ── No-results heading ─────────────────────────────────────── */
.nores-title {
  font-size: 1.5rem !important;
  letter-spacing: 0.06em !important;
}

/* ── Filters panel headings ─────────────────────────────────── */
.filters-panel select,
.filters-panel input {
  font-family: var(--font-display);
  font-size: 0.9rem;
}

/* ── Social links — red hover glow ─────────────────────────── */
.aboutme-socials a:hover {
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.25) !important;
  background: rgba(255, 45, 45, 0.08) !important;
}

/* ── Carousel nav buttons — red ────────────────────────────── */
.nav-btn {
  color: var(--accent) !important;
  border: 1px solid rgba(255, 45, 45, 0.25) !important;
}

.nav-btn:hover {
  background: rgba(255, 45, 45, 0.12) !important;
}


/* =============================================================
   GARAGE — TOPBAR + BOTTOM-SHEET FILTER
   ============================================================= */

/* ── Garage topbar (search + filter pill) ───────────────────── */
.garage-topbar {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.garage-topbar #searchBarALL {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.garage-topbar #searchBarALL:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.12);
}

/* Filter pill — hidden on desktop (filters live in sidebar) */
.garage-filter-pill {
  display: none;
}

/* Redesign cars-page grid to include topbar row */
@media (min-width: 801px) {
  .cars-page {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    grid-template-rows: auto 1fr !important;
    gap: 16px 28px !important;
    align-items: start !important;
  }

  .garage-topbar {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cars-grid-container {
    grid-column: 1;
    grid-row: 2;
  }

  .filters-panel {
    grid-column: 2;
    grid-row: 2;
  }

  /* Hide sheet handle on desktop */
  .sheet-handle {
    display: none;
  }

  /* Hide overlay on desktop */
  #filterSheetOverlay {
    display: none !important;
  }
}

/* ── MOBILE GARAGE ──────────────────────────────────────────── */
@media (max-width: 800px) {

  /* Full-width single column */
  .cars-page {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .cars-grid-container {
    width: 100% !important;
  }

  /* 2-column card grid */
  .cars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Card compact on mobile */
  .cars-grid .card img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  .cars-grid .card-title {
    font-size: 0.78rem !important;
    padding: 6px 8px !important;
    line-height: 1.25 !important;
  }

  /* ── Sticky search topbar ──────────────────────────────────── */
  .garage-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    padding: 10px 0 10px;
    margin-bottom: 10px;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .garage-topbar #searchBarALL {
    flex: 1;
    border-radius: 999px !important;
    padding: 11px 18px !important;
    font-size: 0.9rem !important;
  }

  /* ── Filter pill button ───────────────────────────────────── */
  .garage-filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
  }

  .garage-filter-pill:active {
    transform: scale(0.96);
  }

  /* Active filter count badge */
  .filter-badge {
    display: none;
    background: #fff;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .filter-badge.visible {
    display: inline-flex;
  }

  /* ── Bottom sheet overlay ──────────────────────────────────── */
  #filterSheetOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 498;
  }

  body.mobile-filter-open #filterSheetOverlay {
    display: block;
  }

  /* ── Filters panel → bottom sheet ─────────────────────────── */
  .filters-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 78vh !important;
    border-radius: 22px 22px 0 0 !important;
    z-index: 499 !important;
    transform: translateY(100%) !important;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    padding: 0 20px 100px 20px !important;
    background: var(--card) !important;
    border-left: none !important;
    border-top: 1px solid rgba(255, 45, 45, 0.2) !important;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45) !important;
  }

  body.mobile-filter-open .filters-panel {
    transform: translateY(0) !important;
  }

  /* ── Sheet drag handle ─────────────────────────────────────── */
  .sheet-handle {
    width: 44px;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    margin: 14px auto 20px auto;
    flex-shrink: 0;
  }

  /* Filter title inside sheet */
  .filters-top::before {
    content: 'Filters';
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    color: var(--text);
  }

  .filters-stack {
    gap: 14px !important;
  }

  .filters-panel input,
  .filters-panel select {
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
  }

  /* Pagination inside sheet */
  .filters-bottom {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--border) !important;
  }

  .pagination-mini {
    gap: 16px !important;
  }

  .ghost-btn {
    padding: 10px 18px !important;
    font-size: 1rem !important;
  }
}


/* =============================================================
   MOBILE BUG FIXES — ROUND 2
   ============================================================= */

/* ── Fix 1: Filter sheet above dock + FAB ───────────────────── */
@media (max-width: 800px) {
  #filterSheetOverlay {
    z-index: 10001 !important;
  }

  .filters-panel {
    z-index: 10002 !important;
    /* Safe area inset for iPhone home indicator */
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Hide FAB behind overlay when filter is open */
  body.mobile-filter-open #mobileThemeFab {
    z-index: 10000 !important;
    pointer-events: none;
  }
}

/* ── Fix 2: Scope 4:3 aspect-ratio to garage only ───────────── */
@media (max-width: 800px) {
  /* Remove the broad override */
  .cars-grid .card img {
    aspect-ratio: unset !important;
  }

  /* Apply only to garage grid */
  #view-all .cars-grid .card img {
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
  }

  /* Restore exchange card images */
  #view-exchange .card img {
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
    background: #111 !important;
  }
}

/* ── Fix 3: Stat numbers — fallback color + smaller on mobile── */
.home-stat-value {
  color: var(--accent); /* fallback for browsers without background-clip */
}

@media (max-width: 600px) {
  .home-stat-value {
    font-size: 2.2rem !important;
  }
}

/* ── Fix 4: Search input focus on mobile (prevent zoom) ─────── */
@media (max-width: 800px) {
  .garage-topbar #searchBarALL,
  .filters-panel input,
  .filters-panel select {
    font-size: 16px !important; /* prevents iOS auto-zoom on focus */
  }
}

/* ── Fix 5: Ensure garage topbar is not clipped by overflow ─── */
#view-all {
  overflow: visible;
}

/* ── Fix 6: REPLACED by v3.0 redesign below — rule kept for reference */


/* =============================================================
   GARAGE PAGE — PREMIUM REDESIGN v3.0
   Filter panel is body-level; no containing-block issues.
   ============================================================= */

/* ── Garage wrapper ─────────────────────────────────────────── */
.garage-wrap {
  padding: 0;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.garage-topbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 10px 0 12px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: var(--bg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 14px !important;
  overflow: visible !important;
}

.gtb-search-wrap {
  flex: 1 1 140px;
  min-width: 120px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.gtb-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gtb-pagination .ghost-btn {
  padding: 6px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
  height: 36px;
  display: flex;
  align-items: center;
}

.gtb-pagination .ghost-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 45, 0.06);
  color: var(--accent);
}

.gtb-pagination .pagination-summary {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 60px;
  text-align: center;
  color: var(--text);
}

.gtb-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #888;
  pointer-events: none;
  flex-shrink: 0;
}

.gtb-search-wrap #searchBarALL {
  flex: 1 !important;
  min-width: 0 !important;         /* critical: allows input to shrink */
  width: 0 !important;             /* start at 0, let flex grow it */
  padding: 11px 14px 11px 42px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 999px !important;
  background: var(--card) !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.gtb-search-wrap #searchBarALL:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.12);
}

.gtb-search-wrap #searchBarALL::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
  border-radius: 50%;
  margin-right: 4px;
}

.gtb-filter-btn {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  color: var(--text);
  flex-shrink: 0 !important;
}

.gtb-filter-btn:hover {
  border-color: var(--accent);
  background: rgba(255, 45, 45, 0.06);
  color: var(--accent);
}

.gtb-filter-btn .gtb-icon {
  position: static;
  width: 20px;
  height: 20px;
}

.gtb-filter-btn .filter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

.gtb-filter-btn .filter-badge.visible {
  display: flex;
}

/* ── Garage card grid ───────────────────────────────────────── */
#allCarsContainer.garage-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
}

@media (min-width: 540px) {
  #allCarsContainer.garage-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 900px) {
  #allCarsContainer.garage-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1300px) {
  #allCarsContainer.garage-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* ── Premium car card ───────────────────────────────────────── */
.gc-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gc-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.gc-img.img-loaded {
  opacity: 1;
}

.gc-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 10px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
  pointer-events: none;
}

.gc-name {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (hover: hover) {
  .gc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 0 1.5px var(--accent);
  }
  .gc-card:hover .gc-img {
    transform: scale(1.05);
  }
}

/* ── Filter overlay (body-level) ────────────────────────────── */
#filterSheetOverlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 10001 !important;
}

body.mobile-filter-open #filterSheetOverlay {
  display: block !important;
}

/* ── Filter panel base (body-level) ─────────────────────────── */
.filters-panel {
  background: var(--card) !important;
  overflow-y: auto !important;
  will-change: transform; /* promotes panel to compositor layer for smooth slide */
}

/* Mobile: slides up from bottom */
@media (max-width: 800px) {
  .filters-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;   /* vw bypasses any containing-block width */
    max-width: 100vw !important;
    max-height: 82vh !important;
    border-radius: 22px 22px 0 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10002 !important;
    padding: 0 20px calc(96px + env(safe-area-inset-bottom, 0px)) 20px !important;
    border-top: 1px solid rgba(255, 45, 45, 0.18) !important;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.45) !important;
  }

  body.mobile-filter-open .filters-panel {
    transform: translateY(0) !important;
  }
}

/* Desktop: slides in from the right */
@media (min-width: 801px) {
  .filters-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 340px !important;
    max-height: 100vh !important;
    transform: translateX(110%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10002 !important;
    padding: 28px 24px 48px !important;
    box-shadow: -8px 0 48px rgba(0, 0, 0, 0.22) !important;
    border-left: 1px solid var(--border) !important;
    border-radius: 0 !important;
    border-top: none !important;
  }

  body.mobile-filter-open .filters-panel {
    transform: translateX(0) !important;
  }
}

/* ── Sheet drag handle (mobile only) ───────────────────────── */
.sheet-handle {
  width: 44px;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 14px auto 20px auto;
  flex-shrink: 0;
}

@media (min-width: 801px) {
  .sheet-handle {
    display: none !important;
  }
}

/* ── Filter panel header ─────────────────────────────────────── */
.gfp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gfp-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.gfp-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

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

/* Kill the old pseudo-element "Filters" heading — replaced by .gfp-header */
.filters-top::before {
  display: none !important;
  content: none !important;
}

/* ── Filter groups with labels ──────────────────────────────── */
.filters-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.gfp-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gfp-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}

.filters-panel select {
  width: 100% !important;
  padding: 11px 36px 11px 14px !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-display) !important;
  font-size: 0.9rem !important;
  transition: border-color 0.2s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  cursor: pointer !important;
}

.filters-panel select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
}

/* iOS font-size fix */
@media (max-width: 800px) {
  .filters-panel select,
  .gtb-search-wrap #searchBarALL {
    font-size: 16px !important;
  }
}

/* ── Action row ─────────────────────────────────────────────── */
.gfp-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 4px;
}

.gfp-clear-btn {
  flex: 1;
  padding: 11px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

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

.gfp-apply-btn {
  flex: 2;
  padding: 11px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--glow);
  transition: filter 0.15s, transform 0.15s;
}

.gfp-apply-btn:hover {
  filter: brightness(1.1);
}

.gfp-apply-btn:active {
  transform: scale(0.97);
}

/* ── Pagination inside panel ────────────────────────────────── */
.filters-bottom {
  margin-top: 22px !important;
  padding-top: 16px !important;
  border-top: 1px solid var(--border) !important;
}

.pagination-mini {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

/* ── No-results container — ID selector needed to beat #allCarsContainer.garage-grid */
#allCarsContainer.nores-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 60vh !important;
  grid-template-columns: unset !important;
}

/* ── FAB behind overlay when filter open ───────────────────── */
body.mobile-filter-open #mobileThemeFab {
  z-index: 10000 !important;
  pointer-events: none !important;
}

