/* ========================================================
   BIG-L AUTOS - Dark Emerald Green Luxury Design System
   Exact Visual Aesthetic Inspired by Showroom Flyer
   "YOUR NEXT CAR AWAITS YOU" • WE SELL • WE BUY • WE SWAP
   SOMANYA-ROUNDABOUT • 0549255121
   Zero Icons, Clean Navigation, No Green Status Pills
   ======================================================== */

:root {
  /* Palette: Dark Forest Emerald Green, Mint, Crisp White & Black */
  --bg-deep: #041009;
  --bg-surface: #071911;
  --bg-card: #0b2217;
  --bg-card-hover: #0f2c1e;
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.2);

  --green-primary: #10b981;
  --green-dark: #059669;
  --green-deep: #047857;
  --mint: #c7ecd9;
  --mint-dark: #062b1c;

  --white: #ffffff;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-text: #9cb8aa;

  --black-deep: #030806;

  /* Typography */
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Montserrat", sans-serif;

  /* Sizing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.18);
}

/* Base Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

body.theme-dark-green {
  background-color: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   NAVIGATION BAR (Clean, Sleek, Uncluttered)
   ========================================== */
.navbar {
  background: rgba(4, 16, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-symbol {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--white);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}

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

/* Mobile Hamburger Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  background: rgba(4, 16, 9, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-dark);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  width: 100%;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.mobile-nav-links a {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-text);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
  transition: color 0.15s ease;
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  color: var(--white);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.mobile-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-size: 11px;
}

.mobile-meta-loc {
  color: var(--gray-text);
  font-weight: 600;
}

.mobile-meta-tel {
  color: var(--mint);
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--black-deep);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid var(--border-dark);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

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

.btn-dark {
  background: #030806;
  color: var(--white);
  border: 1px solid var(--border-dark);
}

.btn-soft-green {
  background: var(--mint);
  color: var(--mint-dark);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: var(--radius-full);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ==========================================
   HERO POSTER SECTION (Matches Flyer Identity)
   ========================================== */
.hero-poster-section {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #0e3a26 0%, #082418 50%, #04120c 100%);
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--border-dark);
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Split Grid: Left Text & Badges, Right Spotlight Card */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  width: 100%;
  margin-bottom: 28px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Brand Emblem */
.hero-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-emblem-wrap {
  width: 48px;
  height: 48px;
}

.hero-emblem-svg {
  width: 100%;
  height: 100%;
}

.hero-brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: var(--white);
  text-transform: uppercase;
}

/* Headline */
.hero-headline-block {
  margin-bottom: 16px;
}

.hero-punch-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-services-line {
  display: flex;
  gap: 22px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--mint);
  opacity: 0.95;
  text-transform: uppercase;
}

.hero-lead-text {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 520px;
}

/* Bottom Location & Contact Badges */
.hero-bottom-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  text-align: left;
}

.info-pill:hover {
  transform: translateY(-2px);
}

.pill-dark {
  background: rgba(8, 24, 17, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.pill-mint {
  background: var(--mint);
  border: 1px solid var(--mint);
  color: var(--mint-dark);
}

.pill-col {
  display: flex;
  flex-direction: column;
}

.pill-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 2px;
}

.pill-value {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.hero-cta-buttons {
  display: flex;
  gap: 12px;
}

/* ========================================================
   HERO 3D LUXURY CAR VIEWPORT (NO BACKGROUND, PURE 3D)
   ======================================================== */

.hero-3d-car-col {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.interactive-3d-car-container {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: grab;
  user-select: none;
  touch-action: none;
  perspective: 1200px;
}

.interactive-3d-car-container:active {
  cursor: grabbing;
}

/* 3D Perspective Stage */
.car-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* Floor Contact Shadow (Deforms dynamically in 3D) */
.car-3d-floor-shadow {
  position: absolute;
  bottom: 30px;
  width: 82%;
  height: 70px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(16, 185, 129, 0.12) 68%, transparent 80%);
  border-radius: 50%;
  filter: blur(8px);
  transform: rotateX(75deg) translateZ(-40px);
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

/* Real Mercedes-Benz 3D Body Wrap */
.car-3d-body-wrap {
  position: relative;
  width: 96%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

/* Authentic Photorealistic Mercedes-Benz Image */
.car-3d-real-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  pointer-events: none;
  transform: translateZ(10px);
  transition: opacity 0.35s ease, filter 0.35s ease;
}

/* Dynamic Specular Spotlight Sheen (Directly tracks mouse cursor) */
.car-3d-spotlight-sheen {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
  transform: translateZ(25px);
  border-radius: 50%;
}

/* Headlight Projector Xenon Flare */
.car-headlight-flare {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(186, 230, 253, 0.8) 35%, rgba(6, 182, 212, 0.35) 60%, transparent 75%);
  filter: blur(2px);
  transform: translate(-50%, -50%) translateZ(30px);
  pointer-events: none;
  opacity: 0.85;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

.car-headlight-flare.flare-left {
  left: 11.6%;
  top: 48.8%;
}

.car-headlight-flare.flare-right {
  left: 57.1%;
  top: 51.8%;
}

/* Mercedes Hood Star Glint */
.car-star-glint {
  position: absolute;
  left: 31%;
  top: 21.3%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.9) 25%, rgba(16, 185, 129, 0.45) 55%, transparent 75%);
  filter: blur(1.5px);
  transform: translate(-50%, -50%) translateZ(35px);
  pointer-events: none;
  opacity: 0.65;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

/* Ambient WebGL Canvas for 3D light rays */
#car3DCanvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
  pointer-events: none;
  outline: none;
  z-index: 2;
}

/* Camera Angle Preset Bar (Top Left) */
.car-preset-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  background: rgba(3, 10, 6, 0.75);
  padding: 4px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.preset-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #6ee7b7;
  padding-left: 4px;
  padding-right: 2px;
  user-select: none;
}

.preset-pill {
  padding: 4px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
}

.preset-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(16, 185, 129, 0.35);
}

.preset-pill.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* Mercedes Model Switcher Pills */
.car-model-switcher {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.model-pill {
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #94a3b8;
  background: rgba(3, 10, 6, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.model-pill:hover {
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.45);
}

.model-pill.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

/* Interactive Motion & Zoom Toolbar (Bottom Right) */
.car-motion-toolbar {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.motion-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #cbd5e1;
  background: rgba(3, 10, 6, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  user-select: none;
}

.motion-tool-btn:hover {
  color: #ffffff;
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(15, 41, 30, 0.9);
}

.motion-tool-btn.active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
}

.motion-tool-btn.active .spin-icon {
  animation: spin-turntable 3s linear infinite;
}

@keyframes spin-turntable {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.zoom-controls-cluster {
  display: inline-flex;
  align-items: center;
  background: rgba(3, 10, 6, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 2px 4px;
  backdrop-filter: blur(10px);
}

.zoom-controls-cluster .motion-tool-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  min-width: 26px;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
}

.zoom-controls-cluster .motion-tool-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.zoom-level-badge {
  font-size: 10px;
  font-weight: 800;
  color: #6ee7b7;
  padding: 0 4px;
  min-width: 38px;
  text-align: center;
  user-select: none;
  letter-spacing: 0.3px;
}

.car-3d-interaction-hint {
  position: absolute;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(3, 10, 6, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(8px);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #c7ecd9;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.car-3d-interaction-hint .hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Integrated Hero Search Bar */
.hero-filter-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

@media (max-width: 900px) {
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-punch-title {
    font-size: 38px;
  }
}

/* ==========================================
   FILTER & SEARCH SECTION
   ========================================== */
.filter-section {
  padding: 34px 0 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-dark);
}

.filter-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

.filter-group.search-group {
  flex: 2;
  min-width: 220px;
}

.filter-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.filter-input, .filter-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--white);
  outline: none;
  transition: border-color 0.15s ease;
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--green-primary);
  background: rgba(0, 0, 0, 0.5);
}

.filter-select option {
  background: #0b2217;
  color: #ffffff;
}

/* ==========================================
   CAR CATALOG GRID
   ========================================== */
.catalog-section {
  padding: 30px 0 70px;
  background: var(--bg-deep);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.4px;
}

.section-title p {
  font-size: 14px;
  color: var(--gray-text);
  margin-top: 3px;
}

.catalog-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.5px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Luxury Dark Car Card */
.car-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
}

.car-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #020704;
  overflow: hidden;
}

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

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

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-brand-new {
  background: rgba(16, 185, 129, 0.9);
  color: #041a10;
}

.badge-foreign-used {
  background: rgba(3, 10, 6, 0.85);
  backdrop-filter: blur(4px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-local-used {
  background: #2b3a32;
  color: var(--white);
}

/* Green status is completely suppressed */
.car-status-pill, .online-dot, .dot {
  display: none !important;
}

.car-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-header {
  margin-bottom: 12px;
}

.car-title {
  font-size: 18px;
  font-weight: 750;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 6px;
}

.car-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.car-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--green-primary);
  letter-spacing: -0.5px;
}

.car-price-note {
  font-size: 12px;
  color: var(--gray-text);
}

/* Specs Badges */
.car-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0 18px;
  border: 1px solid var(--border-dark);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-text-receptionist {
  flex: 1;
  background: var(--green-primary);
  color: var(--black-deep);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-text-receptionist:hover {
  background: #34d399;
}

.btn-details {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-dark);
  cursor: pointer;
}

.btn-details:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   SERVICES SECTION (We Sell, We Buy, We Swap)
   ========================================== */
.services-section {
  padding: 70px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.services-intro {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}

.sub-header-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--mint);
  display: block;
  margin-bottom: 8px;
}

.services-intro h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.services-intro p {
  color: var(--gray-text);
  font-size: 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
}

.service-num {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 900;
  color: var(--mint);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 8, 4, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.modal-title p {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 2px;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.16);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.inquiry-car-context {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.context-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.context-details h4 {
  font-size: 14px;
  font-weight: 750;
  color: var(--white);
}

.context-details p {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-primary);
}

.context-details span {
  font-size: 11px;
  color: var(--gray-text);
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-text);
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--white);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-primary);
}

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

.form-helper {
  font-size: 11px;
  color: var(--gray-text);
  margin-top: 4px;
}

.tab-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 18px;
}

.tab-btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--gray-text);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--white);
  border: 1px solid var(--border-dark);
}

/* ==========================================
   DASHBOARD & CHAT LAYOUT
   ========================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  min-height: calc(100vh - 150px);
  padding: 28px 0 50px;
}

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

.sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 16px;
}

.avatar-initials {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-primary);
  color: var(--black-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.chat-threads-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 280px);
  min-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.chat-thread-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.chat-thread-card:hover, .chat-thread-card.active {
  background: rgba(16, 185, 129, 0.14);
  border-color: #10b981;
}

.thread-thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.thread-body {
  flex: 1;
  min-width: 0;
}

.thread-title {
  font-size: 14px;
  font-weight: 750;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.thread-preview {
  font-size: 12.5px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

/* Chat Box */
.chat-window {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  height: 620px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-dark);
  background: rgba(3, 10, 6, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-pinned-car {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pinned-car-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pinned-car-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.pinned-car-info p {
  font-size: 13.5px;
  font-weight: 800;
  color: #34d399;
}

.pinned-car-spec {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 500;
}

.chat-messages-container {
  flex: 1;
  padding: 22px 20px;
  overflow-y: auto;
  background: rgba(2, 8, 4, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message-row {
  display: flex;
  gap: 12px;
  max-width: 80%;
  align-items: flex-end;
}

/* Sent message: on the right */
.message-row.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

/* Received message: on the left */
.message-row.received {
  align-self: flex-start;
  flex-direction: row;
}

/* Backward-compatibility with receptionist/customer tags */
.message-row.customer:not(.received):not(.sent) {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-row.receptionist:not(.received):not(.sent) {
  align-self: flex-start;
  flex-direction: row;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.msg-avatar.receptionist-avatar {
  background: #064e3b;
  color: #34d399;
  border: 1.5px solid #10b981;
}

.msg-avatar.customer-avatar {
  background: #0d281e;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
}

.msg-bubble {
  padding: 13px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

/* Left / Received Message Bubble (Clean contrast crisp white on dark card) */
.message-row.received .msg-bubble,
.message-row.receptionist:not(.sent) .msg-bubble,
.message-row:not(.sent):not(.customer) .msg-bubble {
  background: #0e2a20;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-bottom-left-radius: 4px;
}

/* Right / Sent Message Bubble (Deep emerald gradient with crisp white text) */
.message-row.sent .msg-bubble,
.message-row.customer:not(.received) .msg-bubble {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.msg-meta {
  font-size: 11px;
  margin-top: 5px;
  color: #94a3b8;
  display: flex;
  gap: 6px;
  align-items: center;
}

.message-row.sent .msg-meta,
.message-row.customer .msg-meta {
  justify-content: flex-end;
}

.message-row.received .msg-meta,
.message-row.receptionist .msg-meta {
  justify-content: flex-start;
}

.msg-meta .msg-sender {
  color: #c7ecd9;
  font-weight: 700;
  font-size: 11px;
}

.msg-meta .msg-time {
  color: #94a3b8;
  font-size: 11px;
}

.chat-input-bar {
  padding: 14px 18px;
  border-top: 1px solid var(--border-dark);
  background: rgba(3, 10, 6, 0.75);
  display: flex;
  gap: 12px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  transition: all 0.2s ease;
}

.chat-input::placeholder {
  color: #94a3b8;
}

.chat-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.negotiation-chips {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(2, 8, 4, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.negotiation-chip {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.32);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #c7ecd9;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.negotiation-chip:hover {
  background: #10b981;
  border-color: #10b981;
  color: #020905;
  font-weight: 750;
}

/* ==========================================
   ADMIN PORTAL
   ========================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-card-val {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-text);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  margin-top: auto;
  background: #020704;
  color: var(--white);
  border-top: 1px solid var(--border-dark);
  padding: 50px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-brand h3 span {
  color: var(--green-primary);
}

.footer-brand p {
  color: var(--gray-text);
  font-size: 13px;
  max-width: 300px;
  line-height: 1.5;
}

.footer-loc-contact {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-dark);
  font-size: 13px;
  color: var(--mint);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 13px;
  color: var(--gray-text);
  transition: color 0.15s ease;
}

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

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

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border-left: 3px solid var(--green-primary);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
}

/* ========================================================
   ADVANCED AUTHENTICATION PORTAL & CONCIERGE MODAL
   Ultra-Luxury Dark Emerald & Obsidian Aesthetic
   Responsive Across All Devices, Optimized for Phones
   ======================================================== */

.auth-page-body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(6, 43, 28, 0.35) 0%, transparent 50%),
              #041009;
  display: flex;
  flex-direction: column;
}

.auth-navbar {
  background: rgba(4, 16, 9, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}

.auth-main-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
}

.auth-ambient-glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.auth-ambient-glow-bottom {
  position: absolute;
  bottom: -150px;
  right: 10%;
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.auth-center-container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 2-Column Split Container */
.advanced-auth-container {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: rgba(7, 25, 17, 0.88);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85),
              0 0 35px rgba(16, 185, 129, 0.12);
  overflow: hidden;
}

/* Left Showcase Panel */
.auth-showcase-panel {
  background: linear-gradient(165deg, rgba(11, 34, 23, 0.95) 0%, rgba(4, 16, 9, 0.98) 100%);
  padding: 44px 40px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.showcase-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.showcase-emblem {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.showcase-brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--white);
  line-height: 1.1;
}

.showcase-punch {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--mint);
  text-transform: uppercase;
}

.showcase-services-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gray-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Vehicle Preview Card */
.auth-vehicle-preview {
  background: rgba(4, 16, 9, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  position: relative;
}

.preview-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 10px;
}

.preview-card-inner {
  display: flex;
  gap: 14px;
  align-items: center;
}

.preview-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
}

.preview-details h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.preview-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 4px;
}

.preview-price {
  font-size: 15px;
  font-weight: 850;
  color: var(--green-primary);
}

.preview-sub {
  font-size: 11px;
  color: var(--gray-text);
}

.preview-chat-note {
  font-size: 12px;
  color: var(--gray-text);
  margin-top: 10px;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

/* Showcase Pillars */
.showcase-pillars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pillar-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pillar-index {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--green-primary);
  background: rgba(16, 185, 129, 0.12);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h5 {
  font-size: 13px;
  font-weight: 750;
  color: var(--white);
}

.pillar-content p {
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.4;
  margin-top: 2px;
}

/* Showcase Footer Meta */
.showcase-bottom-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.meta-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  display: flex;
  gap: 6px;
}

.meta-label {
  color: var(--gray-text);
  font-weight: 700;
}

.meta-val {
  color: var(--mint);
  font-weight: 800;
}

/* Right Form Panel */
.auth-form-panel {
  padding: 44px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--mint);
  text-transform: uppercase;
}

.desk-indicator {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-primary);
}

/* Segmented Tab Switcher */
.advanced-tab-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.adv-tab-btn {
  flex: 1;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.3px;
  border: none;
  background: transparent;
  color: var(--gray-text);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.adv-tab-btn:hover {
  color: var(--white);
}

.adv-tab-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #041009;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Form Styles */
.form-header-text {
  margin-bottom: 20px;
}

.form-header-text h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.form-header-text p {
  font-size: 13px;
  color: var(--gray-text);
  margin-top: 4px;
}

.adv-form {
  display: flex;
  flex-direction: column;
}

.adv-form-group {
  margin-bottom: 16px;
}

.adv-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gray-text);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.label-opt {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: none;
  letter-spacing: 0;
}

.input-wrap {
  position: relative;
  width: 100%;
}

.adv-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: all 0.2s ease;
}

.adv-input:focus {
  border-color: var(--green-primary);
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.input-wrap.has-toggle .adv-input {
  padding-right: 64px;
}

.pw-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mint);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.pw-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.adv-submit-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.5px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #041009;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.adv-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
}

.auth-switch-note {
  font-size: 12px;
  color: var(--gray-text);
  text-align: center;
  margin-top: 14px;
}

.auth-switch-note a {
  color: var(--green-primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Demo Testing Box */
.adv-demo-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
}

.demo-box-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gray-text);
  margin-bottom: 10px;
  text-align: center;
}

.demo-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-security-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--gray-500);
}

/* ========================================================
   MODAL ADVANCED AUTH (Dual-Panel Concierge Modal)
   ======================================================== */
.modal-advanced-auth {
  max-width: 880px;
  width: 95%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  padding: 0;
  background: rgba(7, 25, 17, 0.94);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.9),
              0 0 40px rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

.modal-auth-showcase {
  background: linear-gradient(165deg, rgba(11, 34, 23, 0.95) 0%, rgba(4, 16, 9, 0.98) 100%);
  padding: 32px 28px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow-y: auto;
}

.modal-showcase-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.modal-showcase-header h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--white);
  line-height: 1.1;
}

.modal-showcase-tag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--mint);
}

.modal-services-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.modal-context-card {
  background: rgba(4, 16, 9, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
}

.modal-context-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--green-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-context-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.modal-context-img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
}

.modal-context-info h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.modal-context-price {
  font-size: 14px;
  font-weight: 850;
  color: var(--green-primary);
  margin-top: 2px;
}

.modal-context-sub {
  font-size: 10px;
  color: var(--gray-text);
  display: block;
}

.modal-context-hint {
  font-size: 11px;
  color: var(--gray-text);
  line-height: 1.4;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-showcase-pillars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-pillar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gray-text);
}

.pillar-bullet {
  color: var(--green-primary);
  font-size: 14px;
  line-height: 1;
}

.modal-showcase-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-dark);
  font-size: 11px;
  color: var(--mint);
  font-weight: 700;
}

.modal-auth-form-side {
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.modal-form-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* ========================================================
   COMPREHENSIVE RESPONSIVENESS (MOBILE PHONE FIRST)
   ======================================================== */

/* ========================================================
   COMPREHENSIVE RESPONSIVENESS (MOBILE PHONE FIRST)
   ======================================================== */

@media (max-width: 900px) {
  .advanced-auth-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .auth-showcase-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 28px 20px;
  }
  .auth-form-panel {
    padding: 28px 20px;
  }
  .modal-advanced-auth {
    grid-template-columns: 1fr;
    max-height: 94vh;
    width: 96%;
  }
  .modal-auth-showcase {
    display: none; /* Keep modal focused and fast on phone screens */
  }
  .modal-auth-form-side {
    padding: 24px 18px;
  }
}

/* Universal Safety & Responsive Defaults */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.admin-user-full { display: inline; }
.admin-user-short { display: none; }

.modal-car-specs {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.responsive-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.btn-mobile-chat-back {
  display: none;
}

/* Guaranteed Desktop Side-by-Side Presentation (> 900px) */
@media (min-width: 901px) {
  #customerDashboardLayout #customerSidebar,
  #customerDashboardLayout.mobile-chat-active #customerSidebar {
    display: block !important;
    width: auto !important;
  }
  #customerDashboardLayout #customerMain,
  #customerDashboardLayout.mobile-chat-active #customerMain {
    display: block !important;
    width: auto !important;
  }
  #adminInquiriesLayout #adminInquiriesSidebar,
  #adminInquiriesLayout.mobile-chat-active #adminInquiriesSidebar {
    display: block !important;
    width: auto !important;
  }
  #adminInquiriesLayout #adminInquiriesMain,
  #adminInquiriesLayout.mobile-chat-active #adminInquiriesMain {
    display: block !important;
    width: auto !important;
  }
  .btn-mobile-chat-back {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }

  /* Responsive Navbar */
  .nav-inner {
    height: 60px;
    padding: 0;
  }
  .brand-logo {
    gap: 8px;
  }
  .logo-symbol {
    width: 30px;
    height: 30px;
  }
  .brand-text h1 {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .desktop-nav-links, .desktop-nav-actions, .nav-links {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }

  /* Admin Header & Nav Actions on Phone */
  .admin-user-full { display: none !important; }
  .admin-user-short { display: inline !important; }
  .nav-actions {
    gap: 6px !important;
  }
  .nav-actions .btn-sm {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
  }
  .admin-nav-user {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }

  /* Collapse ALL 2-column form rows to single column on phones */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Admin Stats Grid: 2 clean columns on phones */
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .admin-stats-grid .stat-card:nth-child(5) {
    grid-column: 1 / -1 !important;
  }
  .stat-card {
    padding: 14px 12px !important;
  }
  .stat-card-val {
    font-size: 24px !important;
  }
  .stat-card-title {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  /* Admin & Dashboard Horizontal Scrollable Segmented Tabs */
  .tab-switch, .responsive-tabs {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    scrollbar-width: none;
    border-radius: var(--radius-sm);
  }
  .tab-switch::-webkit-scrollbar, .responsive-tabs::-webkit-scrollbar {
    display: none;
  }
  .tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 9px 14px !important;
    font-size: 12px !important;
  }

  /* Responsive Tables on Mobile: smooth horizontal swipe without breaking columns */
  .responsive-table-wrapper, div[style*="overflow-x:auto"] {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .responsive-table-wrapper table, div[style*="overflow-x:auto"] table {
    min-width: 620px !important;
    width: 100% !important;
  }

  /* Admin Inventory Header & Stacked Car Cards */
  .admin-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .admin-section-header .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
  .admin-car-item, .my-showroom-car-item {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .admin-car-item-actions, .my-car-actions {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .admin-car-item-actions .btn, .my-car-actions .btn {
    flex: 1 !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Hero Section */
  .hero-poster-section {
    padding: 24px 0 32px;
  }
  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }
  .hero-text-col {
    width: 100%;
  }
  .hero-punch-title {
    font-size: clamp(26px, 7.5vw, 42px);
    line-height: 1.08;
    margin-bottom: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-services-line {
    display: flex !important;
    flex-wrap: wrap !important;
    font-size: 11px;
    gap: 8px 12px;
    margin-bottom: 16px;
    letter-spacing: 1px;
  }
  .hero-lead-text {
    font-size: 14px;
    margin-bottom: 18px;
  }

  /* Badges on Mobile */
  .hero-bottom-pills {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }
  .info-pill {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 16px !important;
  }

  /* CTA Buttons on Mobile: Stack Vertically and Fill Width */
  .hero-cta-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-cta-buttons .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 14px 18px !important;
  }

  /* 3D Car Viewport on Mobile */
  .hero-3d-car-col {
    width: 100% !important;
  }
  .interactive-3d-car-container {
    height: 340px !important;
    margin: 8px 0 !important;
  }
  .car-3d-body-wrap {
    width: 98% !important;
  }
  .car-3d-real-img {
    max-height: 230px !important;
  }
  .car-3d-floor-shadow {
    bottom: 18px !important;
    height: 45px !important;
  }
  .car-preset-bar {
    top: 6px !important;
    left: 6px !important;
    padding: 2px 6px !important;
    gap: 3px !important;
  }
  .preset-label {
    display: none !important;
  }
  .preset-pill {
    padding: 3px 7px !important;
    font-size: 9px !important;
  }
  .car-model-switcher {
    top: 6px !important;
    right: 6px !important;
    gap: 4px !important;
  }
  .model-pill {
    padding: 3px 8px !important;
    font-size: 9.5px !important;
  }
  .car-motion-toolbar {
    bottom: 28px !important;
    right: 6px !important;
    gap: 5px !important;
  }
  .motion-tool-btn {
    padding: 4px 8px !important;
    font-size: 9.5px !important;
  }
  .car-3d-interaction-hint {
    bottom: 4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 8.5px !important;
    padding: 3px 8px !important;
  }

  /* Quick Finder Bar on Mobile */
  .hero-filter-box {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 14px !important;
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .filter-group, .filter-group.search-group {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  /* Catalog Grid on Mobile */
  .cars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }
  .car-card {
    width: 100%;
    box-sizing: border-box;
  }
  .car-specs {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .car-img-wrap {
    height: 200px;
  }
  .car-actions {
    flex-direction: column;
    gap: 8px;
  }
  .car-actions .btn-text-receptionist, .car-actions .btn-details {
    width: 100%;
  }

  /* Dashboard mobile layout */
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    padding: 12px 0 40px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .sidebar-card {
    padding: 14px;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    padding-bottom: 4px !important;
    scrollbar-width: none;
  }
  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  .sidebar-nav-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--border-dark) !important;
  }
  .sidebar-nav-item.active {
    background: var(--green-primary) !important;
    color: var(--black-deep) !important;
    border-color: var(--green-primary) !important;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-sidebar {
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .chat-threads-list {
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-bottom: 24px !important;
  }
  .chat-thread-card {
    padding: 14px 16px !important;
    gap: 12px !important;
    min-height: 68px !important;
    border-radius: 12px !important;
    background: rgba(4, 20, 11, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.25) !important;
    transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease !important;
  }
  .chat-thread-card:active, .chat-thread-card.active {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: #10b981 !important;
    transform: scale(0.99) !important;
  }
  .thread-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
  }
  .thread-title {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
  }
  .thread-subtitle {
    font-size: 12px !important;
    color: #34d399 !important;
    font-weight: 600 !important;
  }
  .thread-preview {
    font-size: 12px !important;
    color: #cbd5e1 !important;
  }

  /* ========================================================
     RESPONSIVE DUAL-VIEW CHAT ARCHITECTURE (MOBILE)
     View 1: Conversations List (Left Side) - Full Width, High-Touch
     View 2: Active Conversation Window - Full View with Sticky Bar
     ======================================================== */

  /* Customer: When viewing conversations list (left side) */
  #customerDashboardLayout:not(.mobile-chat-active) #customerSidebar {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #customerDashboardLayout:not(.mobile-chat-active) #customerChatsTab {
    display: none !important;
  }
  #customerDashboardLayout:not(.mobile-chat-active) .chat-input-bar {
    display: none !important;
  }

  /* Customer: When active conversation is open */
  #customerDashboardLayout.mobile-chat-active #customerSidebar {
    display: none !important;
  }
  #customerDashboardLayout.mobile-chat-active #customerMain {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #customerDashboardLayout.mobile-chat-active #customerChatsTab {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #customerDashboardLayout.mobile-chat-active .chat-input-bar {
    display: flex !important;
  }

  /* Admin: When viewing customer inquiries list (left side) */
  #adminInquiriesLayout:not(.mobile-chat-active) #adminInquiriesSidebar {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  #adminInquiriesLayout:not(.mobile-chat-active) #adminInquiriesMain {
    display: none !important;
  }
  #adminInquiriesLayout:not(.mobile-chat-active) .chat-input-bar {
    display: none !important;
  }

  /* Admin: When active customer chat is open */
  #adminInquiriesLayout.mobile-chat-active #adminInquiriesSidebar {
    display: none !important;
  }
  #adminInquiriesLayout.mobile-chat-active #adminInquiriesMain {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  #adminInquiriesLayout.mobile-chat-active .chat-input-bar {
    display: flex !important;
  }

  .chat-window {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: calc(100vh - 160px) !important;
    max-height: none !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: #030e07 !important;
    border: 1px solid var(--border-dark) !important;
    overflow: hidden !important; /* CRITICAL: Never visible, prevents horizontal blowout */
    padding-bottom: 0 !important;
    margin-bottom: 24px !important;
  }

  .chat-header {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    background: rgba(2, 10, 5, 0.96) !important;
    border-bottom: 1px solid var(--border-dark) !important;
    min-height: 48px !important;
    overflow: hidden !important;
  }

  .btn-mobile-chat-back {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: #064e3b !important;
    border: 1.5px solid #10b981 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 6px 11px !important;
    border-radius: var(--radius-full) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(16, 185, 129, 0.3) !important;
  }
  .btn-mobile-chat-back:active {
    background: #10b981 !important;
    color: #041009 !important;
  }

  .chat-pinned-car {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .pinned-car-img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
  }
  .pinned-car-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .pinned-car-info h3 {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .pinned-car-info p {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #34d399 !important;
    margin: 1px 0 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .pinned-car-spec {
    display: none !important;
  }
  .chat-header-counterpart {
    text-align: right !important;
    flex: 0 1 auto !important;
    flex-shrink: 0 !important;
    font-size: 10.5px !important;
    max-width: 80px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .chat-header-counterpart span,
  .chat-header-counterpart a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .negotiation-chips {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    scrollbar-width: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    background: rgba(2, 9, 5, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .negotiation-chips::-webkit-scrollbar {
    display: none !important;
  }
  .negotiation-chip {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 11px !important;
    padding: 5px 10px !important;
  }

  .chat-messages-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    min-height: 350px !important;
    max-height: calc(100vh - 210px) !important;
    padding: 14px 10px 110px 10px !important; /* 110px ensures bottom messages clear the fixed input bar */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: rgba(1, 6, 3, 0.6) !important;
  }

  .message-row {
    display: flex !important;
    width: auto !important;
    max-width: 85% !important;
    min-width: 0 !important;
    gap: 7px !important;
    box-sizing: border-box !important;
    align-items: flex-end !important;
  }

  /* Received message: Left aligned (100% visible on left edge) */
  .message-row.received,
  .message-row.receptionist:not(.sent),
  .message-row:not(.sent):not(.customer) {
    align-self: flex-start !important;
    flex-direction: row !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  /* Sent message: Right aligned (100% visible on right edge with safe margin) */
  .message-row.sent,
  .message-row.customer:not(.received) {
    align-self: flex-end !important;
    flex-direction: row-reverse !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .message-row.received .msg-bubble,
  .message-row.receptionist:not(.sent) .msg-bubble,
  .message-row:not(.sent):not(.customer) .msg-bubble {
    background: #0e2a20 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    border-bottom-left-radius: 4px !important;
    text-align: left !important;
  }

  .message-row.sent .msg-bubble,
  .message-row.customer:not(.received) .msg-bubble {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.6) !important;
    color: #ffffff !important;
    border-bottom-right-radius: 4px !important;
    text-align: left !important;
  }

  .msg-bubble-wrap {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .message-row.sent .msg-bubble-wrap {
    align-items: flex-end !important;
  }
  .message-row.received .msg-bubble-wrap {
    align-items: flex-start !important;
  }

  .msg-bubble {
    padding: 9px 13px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    border-radius: 16px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: pre-wrap !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    display: inline-block !important;
  }
  .msg-meta {
    font-size: 10.5px !important;
    margin-top: 3px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .message-row.sent .msg-meta {
    justify-content: flex-end !important;
  }
  .message-row.received .msg-meta {
    justify-content: flex-start !important;
  }
  .msg-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }

  /* ========================================================
     PERMANENTLY PINNED CHAT INPUT BAR & VISIBLE SEND BUTTON
     Guaranteed 100% visible fixed to the bottom of the phone screen
     ======================================================== */
  .chat-input-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    background: #020f07 !important;
    border-top: 2px solid #10b981 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px !important;
    display: none; /* Only flex when mobile-chat-active is on the layout */
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.95) !important;
    z-index: 9999999 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .chat-input, #chatMessageInput, #adminChatInput {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 16px !important; /* CRITICAL: 16px eliminates iOS Safari input auto-zoom */
    border-radius: var(--radius-full) !important;
    min-height: 46px !important;
    height: 46px !important;
    background: #072213 !important;
    color: #ffffff !important;
    border: 2px solid #10b981 !important;
    box-sizing: border-box !important;
    outline: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5) !important;
  }

  .chat-input::placeholder, #chatMessageInput::placeholder, #adminChatInput::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
  }

  .chat-input:focus, #chatMessageInput:focus, #adminChatInput:focus {
    border-color: #34d399 !important;
    background: #0c331e !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.6) !important;
  }

  /* GUARANTEED VISIBLE SEND BUTTON */
  .chat-input-bar button, .chat-input-bar .btn-send-msg, #btnSendMessage, #btnAdminSend {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 72px !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    background: var(--green-primary) !important;
    color: #041009 !important;
    border: none !important;
    border-radius: var(--radius-full) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: 0 2px 14px rgba(16, 185, 129, 0.7) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .chat-input-bar button:active, .chat-input-bar .btn-send-msg:active {
    transform: scale(0.96) !important;
    background: #34d399 !important;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 10px;
  }
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px;
    padding: 16px !important;
  }
  .modal-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
  }
  .modal-body {
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .modal-car-specs, .modal-content .car-specs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .modal-car-image {
    height: 200px !important;
  }

  /* Prevent iOS zoom on form inputs */
  .adv-input, .form-input, .filter-input, .filter-select, .form-select, .form-textarea {
    font-size: 16px !important;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .brand-text h1 {
    font-size: 14.5px;
  }
  .admin-nav-user {
    display: none !important;
  }
  .hero-punch-title {
    font-size: 28px !important;
  }
  .advanced-auth-container {
    border-radius: 16px;
  }
  .auth-form-panel {
    padding: 20px 14px;
  }
  .showcase-pillars {
    display: none !important;
  }
  .adv-tab-btn {
    padding: 10px 8px;
    font-size: 12px;
  }
  .demo-buttons-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Splash on Small Phones */
  .splash-content {
    padding: 0 16px;
  }
  .splash-emblem-wrap {
    width: 76px !important;
    height: 76px !important;
    margin-bottom: 16px !important;
  }
  .splash-emblem-svg {
    width: 46px !important;
    height: 46px !important;
  }
  .splash-brand-title {
    font-size: 26px !important;
    letter-spacing: 2px !important;
  }
  .splash-headline {
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
  }
  .splash-taglines {
    font-size: 9.5px !important;
    letter-spacing: 1px !important;
    padding: 4px 12px !important;
  }
  .splash-telemetry-box {
    width: 220px !important;
    margin: 16px auto 10px !important;
  }
  .splash-showroom-meta {
    font-size: 9.5px !important;
    gap: 6px !important;
  }
  .splash-enter-btn {
    padding: 8px 16px !important;
    font-size: 11px !important;
    margin-top: 14px !important;
  }
}

/* ========================================================
   ENHANCED CINEMATIC SHOWROOM SPLASH SCREEN
   Laser Stroke SVG Reveal, Atmospheric Particles & Metallic Shimmer
   ======================================================== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 40%, #0d3824 0%, #061a10 50%, #020704 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.75s;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(8px);
  pointer-events: none;
  visibility: hidden;
}

/* Floating Snowy Atmospheric Particles */
.splash-particles-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.splash-particles-field .particle {
  position: absolute;
  bottom: -20px;
  background: radial-gradient(circle, #ffffff 0%, rgba(199, 236, 217, 0.6) 60%, transparent 100%);
  border-radius: 50%;
  pointer-events: none;
  animation: particleRise linear infinite;
}

.particle.p1 { left: 10%; width: 4px; height: 4px; animation-duration: 5s; animation-delay: 0s; opacity: 0.6; }
.particle.p2 { left: 22%; width: 2px; height: 2px; animation-duration: 7s; animation-delay: 1.2s; opacity: 0.4; }
.particle.p3 { left: 35%; width: 5px; height: 5px; animation-duration: 6s; animation-delay: 0.5s; opacity: 0.7; }
.particle.p4 { left: 48%; width: 3px; height: 3px; animation-duration: 5.5s; animation-delay: 2s; opacity: 0.5; }
.particle.p5 { left: 62%; width: 4px; height: 4px; animation-duration: 6.8s; animation-delay: 0.8s; opacity: 0.6; }
.particle.p6 { left: 75%; width: 2px; height: 2px; animation-duration: 4.8s; animation-delay: 1.5s; opacity: 0.4; }
.particle.p7 { left: 88%; width: 5px; height: 5px; animation-duration: 6.2s; animation-delay: 2.5s; opacity: 0.7; }
.particle.p8 { left: 15%; width: 3px; height: 3px; animation-duration: 7.5s; animation-delay: 3s; opacity: 0.5; }
.particle.p9 { left: 55%; width: 3px; height: 3px; animation-duration: 5.2s; animation-delay: 1.8s; opacity: 0.6; }
.particle.p10 { left: 80%; width: 4px; height: 4px; animation-duration: 6.5s; animation-delay: 0.3s; opacity: 0.5; }

@keyframes particleRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { transform: translateY(-105vh) scale(1.2); opacity: 0; }
}

/* Ambient Flares */
.splash-ambient-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  animation: splashPulse 3s ease-in-out infinite alternate;
}

.splash-headlight-flare {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.35) 0%, rgba(199, 236, 217, 0.12) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(45px);
  animation: flareBreathe 3s ease-in-out infinite alternate;
}

@keyframes flareBreathe {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  max-width: 540px;
}

/* Emblem Wrap with Rotating Halo */
.splash-emblem-wrap {
  width: 92px;
  height: 92px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(4, 16, 9, 0.7) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.35), inset 0 0 15px rgba(16, 185, 129, 0.2);
  animation: splashEmblemIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}

.splash-emblem-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(199, 236, 217, 0.3);
  animation: rotateRing 14s linear infinite;
  pointer-events: none;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.splash-emblem-svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.7));
}

/* SVG Laser Drawing */
.splash-stroke {
  transition: all 0.5s ease;
}

.splash-circle-path {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: drawStroke 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-l-path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: drawStroke 0.9s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-car-path {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawStroke 1s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-wheel {
  animation: wheelPop 0.5s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-wing {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawStroke 0.6s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawStroke {
  0% { stroke-dashoffset: 280; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes wheelPop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Metallic Shimmer Title */
.splash-brand-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 3.5px;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(110deg, #ffffff 0%, #ffffff 35%, #c7ecd9 45%, #10b981 55%, #ffffff 65%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallicShimmer 2.5s ease-in-out infinite, splashFadeUp 0.7s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.splash-headline {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 2.2px;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 16px rgba(16, 185, 129, 0.45);
  animation: splashHeadlineIn 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes splashHeadlineIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); letter-spacing: 1px; }
  100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 2.2px; }
}

.splash-taglines {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gray-text);
  padding: 5px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  animation: splashFadeUp 0.7s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Digital Telemetry Box */
.splash-telemetry-box {
  width: 260px;
  margin: 24px auto 14px;
}

.telemetry-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.telemetry-status {
  color: var(--gray-text);
}

.telemetry-percent {
  color: var(--green-primary);
  font-family: monospace;
  font-size: 12px;
  font-weight: 900;
}

.splash-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.splash-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #10b981 60%, #c7ecd9 100%);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.9);
  transition: width 0.08s linear;
}

.splash-showroom-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: var(--gray-text);
  text-transform: uppercase;
  animation: splashFadeUp 0.7s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-enter-btn {
  margin-top: 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  animation: splashFadeUp 0.8s 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-enter-btn:hover {
  background: var(--green-primary);
  color: var(--black-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5);
}

/* Splash Keyframes */
@keyframes splashPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.95; }
}

@keyframes splashEmblemIn {
  0% { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes splashFadeUp {
  0% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ========================================================
   Multi-Photo Showroom Gallery, Badges & Upload Slots (5-Photo System)
   ======================================================== */
.car-photo-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(4, 16, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--mint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.gallery-nav-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.gallery-nav-btn:hover {
  background: var(--green-primary) !important;
  color: var(--black-deep) !important;
  border-color: var(--green-primary) !important;
  transform: translateY(-50%) scale(1.08) !important;
}

.gallery-nav-btn:active {
  transform: translateY(-50%) scale(0.96) !important;
}

.modal-thumbnails-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.modal-thumb-btn {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: #020b05;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}

.modal-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-thumb-btn:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
}

.modal-thumb-btn.active {
  border-color: var(--green-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.thumb-slot-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

/* 5-Photo Upload Preview Slots in Admin & Customer Posting */
.preview-slot-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #020b05;
  transition: transform 0.2s ease;
}

.preview-slot-card:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .modal-main-img-wrap {
    height: 230px !important;
  }
  .modal-thumbnails-row {
    gap: 5px;
  }
  .thumb-slot-tag {
    display: none;
  }
}

/* Device Notification Permission Banner (Mobile & Desktop) */
.device-notif-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px);
  max-width: 520px;
  background: rgba(7, 25, 17, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(16, 185, 129, 0.18);
  border-radius: 16px;
  padding: 14px 18px;
  z-index: 100000;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.device-notif-banner.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.notif-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notif-banner-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-banner-text {
  flex: 1;
  min-width: 0;
}

.notif-banner-text h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.notif-banner-text p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
  margin: 0;
}

.notif-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-notif-allow {
  background: var(--green-primary);
  color: #030806;
  border: none;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 750;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-notif-allow:hover {
  background: #34d399;
  transform: translateY(-1px);
}

.btn-notif-later {
  background: transparent;
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-notif-later:hover {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .notif-banner-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .notif-banner-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
  .btn-notif-allow {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
  }
}

/* Universal Floating In-App Message Alert (Cross-Browser) */
.incoming-msg-bar {
  position: fixed;
  top: 18px;
  right: 18px;
  max-width: 420px;
  width: calc(100% - 36px);
  background: rgba(7, 25, 17, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 1000000;
  transform: translateY(-90px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.incoming-msg-bar.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.incoming-msg-content {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.incoming-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-primary);
  color: #041009;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.incoming-msg-body {
  flex: 1;
  min-width: 0;
}

.incoming-msg-body strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 2px;
  font-weight: 750;
}

.incoming-msg-body p {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-incoming-view {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-incoming-view:hover {
  background: var(--green-primary);
  color: #041009;
}



