/* ==========================================================================
   CONCEPT 05 — ARCHITECTURAL MINIMAL LUXURY UI
   Matches the reference design with high-end glassmorphism, electric-blue
   accents, luxury typography, and interactive controls.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syncopate:wght@400;700&family=Syne:wght@600;700;800&display=swap');

:root {
  /* Aurora GT Liquid Glass Tokens (Lightened by 5%) */
  --bg-glass-base: rgba(22, 32, 48, 0.52);
  --bg-glass-card: linear-gradient(180deg, rgba(24, 38, 60, 0.62) 0%, rgba(14, 22, 35, 0.44) 100%);
  --bg-glass-pill: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  --bg-glass-hover: rgba(255, 255, 255, 0.16);
  --border-glass: rgba(255, 255, 255, 0.22);
  --border-glass-light: rgba(255, 255, 255, 0.40);

  --specular-rim: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55);
  --specular-soft: inset 0 1px 0 0 rgba(255, 255, 255, 0.40);
  --ambient-cyan-glow: inset 0 0 20px 0 rgba(78, 196, 250, 0.10);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.58);

  --accent-cyan: #4ec4fa;
  --accent-blue: #3b75f0;
  --accent-glow: rgba(78, 196, 250, 0.50);
  --accent-glow-strong: rgba(78, 196, 250, 0.75);

  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.77);
  --text-dim: rgba(255, 255, 255, 0.53);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global resets & canvas positioning */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0b1017;
  font-family: var(--font-sans);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: none;
  z-index: 1;
}

/* ==========================================================================
   APP READINESS & UI ENABLE/DISABLE STATES
   The UI remains completely hidden and disabled during initial loading.
   When PlayCanvas sends 'app:ready' / 'appready', it smoothly fades in and enables.
   ========================================================================== */

/* Initially hidden & disabled while loading */
body.app-loading .luxury-top-bar,
body.app-loading #UI_container,
body.app-loading #UI_container2,
body.app-loading .luxury-color-card,
body:not(.app-ready) .luxury-top-bar,
body:not(.app-ready) #UI_container,
body:not(.app-ready) #UI_container2,
body:not(.app-ready) .luxury-color-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) !important;
  transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth), visibility 0.5s !important;
}

body.app-loading .luxury-top-bar,
body:not(.app-ready) .luxury-top-bar {
  transform: translateY(-14px) !important;
}

body.app-loading button,
body:not(.app-ready) button {
  pointer-events: none !important;
}

/* Enabled & visible once app:ready is received */
body.app-ready .luxury-top-bar,
body.app-ready #UI_container,
body.app-ready #UI_container2 {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  transition: opacity 0.55s var(--ease-smooth), transform 0.55s var(--ease-smooth), visibility 0.55s !important;
}

body.app-ready #UI_container.luxury-left-sidebar {
  display: flex !important;
  transform: translateX(-50%) !important;
}

@media (min-width: 769px) {
  body.app-ready #UI_container.luxury-left-sidebar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(calc(-50% + 24px)) !important;
  }
}

body.app-ready #UI_container2.bottom-env-carousel {
  display: flex !important;
}

/* Hide legacy bootstrap navbar and unused components if present */
.sharpimage-navbar,
.modal-backdrop,
.container.mt-5[style*="visibility:hidden"] {
  display: none !important;
}

/* Prevent Bootstrap modals from covering entire screen */
.modal {
  display: none !important;
}

/* --------------------------------------------------------------------------
   ARCHITECTURAL BACKGROUND TYPOGRAPHY & LIGHTING (SUBTLE LUXURY LAYER)
   -------------------------------------------------------------------------- */
.arch-backdrop-layer {
  position: fixed;
  top: 14%;
  left: 17%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  opacity: 0.85;
  transition: opacity 0.6s var(--ease-smooth);
}

.arch-title-group h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
  color: rgba(235, 240, 248, 0.85);
  letter-spacing: -0.01em;
  margin: 0 0 16px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.arch-subtitle-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 14px;
}

.arch-subtitle-pills::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   ARCHITECTURAL LUXURY TOP BAR (HEADER)
   Aurora GT Liquid Glass Styling with Specular Highlights
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   ARCHITECTURAL LUXURY TOP BAR (HEADER)
   Aurora GT Liquid Glass Styling with Specular Highlights
   -------------------------------------------------------------------------- */
.luxury-top-bar {
  position: fixed !important;
  top: 14px !important;
  left: 24px !important;
  right: 24px !important;
  height: 60px !important;
  z-index: 100 !important;

  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px !important;

  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  pointer-events: auto;
  user-select: none;
  box-sizing: border-box !important;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
  display: flex;
  align-items: center;
}

.top-bar-left {
  flex: 1;
  justify-content: flex-start;
  gap: 12px;
}

/* Top Bar Home Button (Luxury Glass Capsule matching Bottom Navigation Bar) */
.top-bar-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.60) 0%, rgba(14, 22, 35, 0.42) 100%);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.23);
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  user-select: none;
  box-sizing: border-box;
  transition: all 0.28s var(--ease-smooth);
}

.top-bar-home-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
  transition: transform 0.25s var(--ease-smooth);
}

.top-bar-home-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(42, 108, 225, 0.65) 0%, rgba(78, 196, 250, 0.36) 100%);
  border-color: rgba(147, 219, 253, 0.75);
  box-shadow:
    inset 0 1.2px 1px rgba(255, 255, 255, 0.70),
    0 0 22px rgba(78, 196, 250, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.30);
  transform: translateY(-1px);
}

.top-bar-home-btn:hover svg {
  transform: scale(1.12);
}

.top-bar-home-btn:active {
  transform: scale(0.95);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
}

.top-bar-center {
  flex: 1;
  justify-content: center;
}

.top-bar-right {
  flex: 1;
  justify-content: flex-end;
  gap: 6px;
}

/* Engine Start / Stop Segmented Control (Liquid Glass Pill) */


/* Center Brand Typography — Modern Automotive Luxury Emblem */
.top-bar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: default;
  user-select: none;
}

.top-bar-brand .brand-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Syncopate', sans-serif;
  font-size: 31px;
  line-height: 1;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-smooth);
}

.top-bar-brand .brand-kia {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #ffffff;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.75),
    0 0 20px rgba(78, 196, 250, 0.50);
}

.top-bar-brand .brand-divider {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #4ec4fa;
  margin: 0 1px;
  text-shadow: 0 0 10px rgba(78, 196, 250, 0.75);
}

.top-bar-brand .brand-sportage {
  font-family: 'Syncopate', sans-serif;
  font-weight: 400;
  letter-spacing: 0.36em;
  color: #ffffff;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 10px rgba(0, 0, 0, 0.75),
    0 0 18px rgba(0, 0, 0, 0.50);
}

.top-bar-brand .brand-sub {
  display: none;
}

/* Right Social Media Links (Glass Buttons) */
.top-social-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 60px;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.60) 0%, rgba(14, 22, 35, 0.42) 100%);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.23);
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  box-shadow:
    inset 0 1.2px 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.38);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transition: all 0.25s var(--ease-smooth);
  outline: none;
}

.social-link-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(42, 108, 225, 0.65) 0%, rgba(78, 196, 250, 0.36) 100%);
  border-color: rgba(147, 219, 253, 0.75);
  transform: translateY(-2px) scale(1.06);
  box-shadow:
    inset 0 1.2px 1px rgba(255, 255, 255, 0.70),
    0 0 18px rgba(78, 196, 250, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.30);
}

.social-link-btn i,
.social-link-btn svg {
  line-height: 1;
}

/* --------------------------------------------------------------------------
   HORIZONTAL LUXURY BOTTOM NAVIGATION BAR (REFERENCE STYLE)
   -------------------------------------------------------------------------- */
.luxury-left-sidebar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  height: 82px !important;
  box-sizing: border-box !important;
  z-index: 45;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.60) 0%, rgba(14, 22, 35, 0.42) 100%) !important;
  backdrop-filter: blur(34px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.23) !important;
  border-radius: 16px !important;
  padding: 8px 26px !important;
  gap: 8px !important;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25), 0 20px 50px rgba(0, 0, 0, 0.58) !important;
  pointer-events: auto;
}

.sidebar-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.sidebar-group-bottom {
  margin-top: 0;
  padding-top: 0;
  padding-left: 14px;
  margin-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sidebar-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 18px;
  min-width: 82px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.28s var(--ease-smooth);
  outline: none;
  user-select: none;
  flex-shrink: 0;
}

.sidebar-nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.sidebar-nav-item .nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  transition: transform 0.25s var(--ease-smooth), stroke 0.25s;
}

.sidebar-nav-item span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1;
  transition: color 0.25s;
}

.sidebar-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.sidebar-nav-item:hover .nav-icon svg {
  stroke: #ffffff;
  transform: scale(1.08);
}

/* Active State: Aurora GT Electric Blue Specular Glass Pill */
.sidebar-nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(42, 108, 225, 0.65) 0%, rgba(78, 196, 250, 0.36) 100%) !important;
  border: 1px solid rgba(147, 219, 253, 0.75) !important;
  box-shadow: inset 0 1.2px 1px rgba(255, 255, 255, 0.70), 0 0 22px rgba(78, 196, 250, 0.55), 0 4px 14px rgba(0, 0, 0, 0.30) !important;
  transform: translateY(-2px);
}

.sidebar-nav-item.active .nav-icon svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 14px var(--accent-cyan));
}

.sidebar-nav-item.active span {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(78, 196, 250, 0.6);
}

.sidebar-separator {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 6px 14px;
}


/* Optional icon-only refinement. Append at END of Concept 05 CSS. */
#UI_container .sidebar-nav-item .nav-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#UI_container .sidebar-nav-item.active .nav-icon svg {
  stroke: var(--accent-cyan, #4ec4fa);
}


/* --------------------------------------------------------------------------
   BOTTOM COLOR SHELF / DOCK ("BODY COLORS" & "SEAT COLORS")
   Appears directly above the bottom main navigation bar
   -------------------------------------------------------------------------- */
.luxury-color-card {
  position: fixed;
  bottom: 106px !important;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: auto;
  max-width: min(820px, calc(100vw - 28px));
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.64) 0%, rgba(14, 22, 35, 0.44) 100%) !important;
  backdrop-filter: blur(34px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.23) !important;
  border-radius: 24px !important;
  padding: 12px 18px 14px 18px !important;
  z-index: 44;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.57), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.30), 0 20px 50px rgba(0, 0, 0, 0.58) !important;
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s;
  pointer-events: auto;
}

.luxury-color-card.collapsed {
  transform: translateX(-50%) translateY(20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.card-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 12px !important;
  padding: 0 4px !important;
  border-bottom: none !important;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header-row .panel-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.02em;
}

.panel-active-color-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #58c5ff;
  background: rgba(42, 108, 225, 0.22);
  border: 1.5px solid rgba(88, 197, 255, 0.65);
  box-shadow: 0 0 12px rgba(78, 196, 250, 0.35);
  border-radius: 9999px;
  padding: 3px 12px;
  text-transform: uppercase;
}

.card-header-row .panel-close-chevron {
  margin-left: auto !important;
  background: linear-gradient(180deg, rgba(20, 32, 52, 0.95) 0%, rgba(10, 16, 28, 0.98) 100%) !important;
  border: 1.5px solid rgba(147, 219, 253, 0.75) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(56, 189, 248, 0.35), inset 0 1.5px 1px rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  flex-shrink: 0 !important;
  pointer-events: auto !important;
  z-index: 50 !important;
}

.card-header-row .panel-close-chevron:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(56, 189, 248, 0.92) 100%) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.85), 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 1.5px 1px #ffffff !important;
  transform: scale(1.14) !important;
}

.card-header-row .panel-close-chevron:active {
  transform: scale(0.92) !important;
}

.card-header-row .panel-close-chevron svg {
  width: 15px !important;
  height: 15px !important;
  stroke: #ffffff !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  fill: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-header-row .panel-close-chevron:hover svg {
  transform: rotate(90deg) !important;
}

.color-palette-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.color-palette-list::-webkit-scrollbar {
  display: none;
}

/* Swatch items are fully styled in the dedicated color shelf section below */

.color-label-text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   BOTTOM LEFT: ENVIRONMENT PRESETS CAROUSEL (3 PRESETS)
   -------------------------------------------------------------------------- */
.bottom-env-carousel {
  position: fixed;
  bottom: 24px;
  left: 28px;
  transform: none;
  z-index: 40;
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  pointer-events: auto;
}

.carousel-nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(28, 42, 64, 0.62) 0%, rgba(16, 25, 40, 0.45) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
  outline: none;
  flex-shrink: 0;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.55), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.carousel-nav-arrow svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2.2;
  fill: none;
}

.carousel-nav-arrow:hover {
  background: linear-gradient(135deg, rgba(78, 196, 250, 0.38) 0%, rgba(59, 117, 240, 0.28) 100%);
  border-color: rgba(147, 219, 253, 0.80);
  transform: scale(1.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.70), 0 0 18px rgba(78, 196, 250, 0.55);
}

.carousel-cards-viewport {
  display: flex;
  align-items: center;
  gap: 10px;
}

.env-thumbnail-card {
  position: relative;
  width: 144px;
  height: 130px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.23);
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.56) 0%, rgba(14, 22, 35, 0.46) 100%);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: all 0.35s var(--ease-spring);
  flex-shrink: 0;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.env-thumbnail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-smooth), opacity 0.3s;
  opacity: 0.85;
}

.env-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(8, 12, 20, 0.68) 48%, rgba(6, 9, 16, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 11px 13px;
}

.env-card-overlay .card-index-txt {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.env-card-overlay .card-name-txt {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.card-progress-track {
  width: 100%;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  overflow: hidden;
}

.card-progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  border-radius: 9999px;
  transition: width 0.35s var(--ease-smooth);
}

.env-thumbnail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.55), 0 14px 34px rgba(0, 0, 0, 0.6);
}

.env-thumbnail-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Active Environment Thumbnail Card matching reference image */
.env-thumbnail-card.active {
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.75),
    0 0 25px rgba(255, 255, 255, 0.65),
    0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.env-thumbnail-card.active img {
  opacity: 1;
}

.env-thumbnail-card.active .card-index-txt {
  color: #ffffff;
}

.env-thumbnail-card.active .card-progress-track {
  background: rgba(255, 255, 255, 0.25);
}

.env-thumbnail-card.active .card-progress-fill {
  width: 58%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   BOTTOM-RIGHT FEATURE INFO CARD ("BOOMERANG SHAPED DRLS")
   -------------------------------------------------------------------------- */
.feature-glass-modal {
  position: fixed;
  right: 36px;
  bottom: 168px;
  width: 400px;
  height: 180px;
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.64) 0%, rgba(14, 22, 35, 0.44) 100%) !important;
  backdrop-filter: blur(34px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.23) !important;
  border-radius: 24px !important;
  padding: 14px !important;
  z-index: 50;
  display: flex;
  gap: 16px;
  box-shadow: inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25), 0 24px 65px rgba(0, 0, 0, 0.58) !important;
  transition: all 0.45s var(--ease-spring);
}

.feature-glass-modal.hidden {
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.feature-media-box {
  width: 164px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #080c14;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

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

.feature-body-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  padding-right: 4px;
}

.feature-close-x {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  outline: none;
}

.feature-close-x:hover {
  color: #ffffff;
  transform: scale(1.15);
}

.feature-text-block {
  padding-right: 20px;
}

.feature-text-block .feature-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  color: #ffffff;
  margin: 2px 0 8px 0;
  line-height: 1.25;
}

.feature-text-block .feature-desc {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.feature-nav-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
  outline: none;
}

.feature-nav-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.feature-progress-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.feature-count-txt {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.feature-progress-track {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.feature-progress-fill {
  height: 100%;
  background: var(--accent-cyan);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-cyan);
  transition: width 0.3s var(--ease-smooth);
}

/* --------------------------------------------------------------------------
   EXIT / WAPSI BUTTON (SLEEK LUXURY UPDATE)
   -------------------------------------------------------------------------- */
#wapsi {
  position: static;
  z-index: 60;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.25;
  pointer-events: none;
  width: auto;
  height: auto;
  min-width: 82px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.28s var(--ease-smooth), color 0.28s var(--ease-smooth), background 0.28s var(--ease-smooth);
}

#wapsi:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

#wapsi .nav-icon svg {
  stroke: currentColor;
}

#wapsi:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, rgba(42, 108, 225, 0.60) 0%, rgba(78, 196, 250, 0.32) 100%) !important;
  border-color: rgba(147, 219, 253, 0.80) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.70), 0 0 24px rgba(78, 196, 250, 0.60) !important;
}

/* --------------------------------------------------------------------------
   RESPONSIVENESS (TABLETS & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .bottom-env-carousel {
    left: 24px;
    padding: 0;
  }

  .env-thumbnail-card {
    width: 124px;
    height: 112px;
  }

  .feature-glass-modal {
    width: 380px;
  }
}

@media (max-width: 900px) {
  .luxury-top-bar {
    padding: 0 16px;
    height: 50px;
  }

  .top-bar-brand .brand-title {
    font-size: 15px;
    letter-spacing: 0.18em;
  }

  .top-bar-brand .brand-sub {
    display: none;
  }

  .engine-ctrl-btn {
    font-size: 9px;
    padding: 5px 10px;
  }

  .social-link-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .bottom-env-carousel {
    left: 20px;
    bottom: 20px;
  }

  .feature-glass-modal {
    right: 20px;
    bottom: 140px;
    width: 340px;
  }

  .luxury-color-card {
    bottom: 82px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    max-width: calc(100vw - 24px);
    width: auto;
    padding: 8px 12px;
  }

  .luxury-color-card.collapsed {
    transform: translateX(-50%) translateY(20px) scale(0.96);
  }

  .arch-backdrop-layer {
    display: none;
  }
}

@media (max-width: 640px) {
  .luxury-top-bar {
    padding: 0 10px;
    height: 48px;
  }

  .top-bar-brand {
    display: none;
  }

  .engine-ctrl-btn {
    font-size: 8.5px;
    padding: 4px 8px;
    letter-spacing: 0.08em;
  }

  .top-social-links {
    gap: 5px;
  }

  .social-link-btn {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .env-tab-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .luxury-left-sidebar {
    left: 50%;
    transform: translateX(-50%);
    bottom: 16px;
    padding: 4px 6px;
    max-width: calc(100vw - 28px);
    overflow-x: auto;
  }

  .sidebar-nav-item span {
    display: none;
  }

  .sidebar-nav-item {
    padding: 8px 10px;
    border-radius: 9999px;
  }

  .bottom-left-indicator {
    display: none;
  }

  .bottom-env-carousel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }

  .feature-glass-modal {
    left: 14px;
    right: 14px;
    bottom: 130px;
    width: auto;
    height: 160px;
  }
}


/* ========================================================================
   BODY / SEAT COLORS — PREMIUM SWATCH CARD REDESIGN
   Changes ONLY the appearance of the color options and their internal layout.
   No edits to the floating card's top/bottom/left/transform/z-index or JS IDs.
   ======================================================================== */

#body-color-panel .color-palette-list,
#seats-color-panel .color-palette-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 6px 6px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

#body-color-panel .color-row-item,
#seats-color-panel .color-row-item {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  min-width: 68px;
  padding: 4px 4px 6px 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer;
  user-select: none;
  transform: none;
  transition: transform 0.25s var(--ease-smooth);
}

#body-color-panel .color-row-item:hover,
#seats-color-panel .color-row-item:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}

#body-color-panel .color-row-item.active,
#seats-color-panel .color-row-item.active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none;
}

#body-color-panel .swatch-concentric-container,
#seats-color-panel .swatch-concentric-container {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid transparent;
  box-sizing: border-box;
  transition: all 0.25s var(--ease-smooth);
}

/* Active circular ring encircling the sphere */
#body-color-panel .color-row-item.active .swatch-concentric-container,
#seats-color-panel .color-row-item.active .swatch-concentric-container {
  border: 1.5px solid #58c5ff;
  box-shadow: 0 0 12px rgba(88, 197, 255, 0.55), inset 0 0 4px rgba(88, 197, 255, 0.25);
}

#body-color-panel .swatch-circle-fill,
#seats-color-panel .swatch-circle-fill {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: none;
  background-image: radial-gradient(ellipse at 32% 20%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16) 22%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%, rgba(0, 0, 0, 0.42));
  box-shadow: inset -7px -8px 15px rgba(0, 0, 0, 0.35),
    inset 2px 3px 7px rgba(255, 255, 255, 0.25),
    0 8px 16px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 0.25s var(--ease-spring);
}

#body-color-panel .color-row-item:hover .swatch-circle-fill,
#seats-color-panel .color-row-item:hover .swatch-circle-fill {
  transform: scale(1.04);
}

/* Hide old box checkmark */
#body-color-panel .color-row-item.active::before,
#seats-color-panel .color-row-item.active::before {
  content: none !important;
}

/* Checked state badge at top-right of sphere ring */
#body-color-panel .color-row-item.active .swatch-concentric-container::after,
#seats-color-panel .color-row-item.active .swatch-concentric-container::after {
  /* content: '✓'; */
  position: absolute;
  top: 0px;
  right: 0px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #ffffff;
  background: #38bdf8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.7);
  font: 700 11px/1 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  z-index: 3;
}

#body-color-panel .color-label-text,
#seats-color-panel .color-label-text {
  font-family: var(--font-sans), sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  white-space: nowrap;
  margin-top: 2px;
  transition: color 0.2s;
}

#body-color-panel .color-row-item:hover .color-label-text,
#seats-color-panel .color-row-item:hover .color-label-text {
  color: #ffffff;
}

#body-color-panel .color-row-item.active .color-label-text,
#seats-color-panel .color-row-item.active .color-label-text {
  color: #ffffff;
  font-weight: 600;
}

/* Capsule pill indicator below each label text */
#body-color-panel .color-row-item::after,
#seats-color-panel .color-row-item::after {
  content: '';
  display: block;
  width: 22px;
  height: 3.5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  margin-top: 2px;
  transition: all 0.25s var(--ease-smooth);
}

#body-color-panel .color-row-item.active::after,
#seats-color-panel .color-row-item.active::after {
  width: 32px;
  background: #58c5ff;
  box-shadow: 0 0 8px #38bdf8, 0 0 16px rgba(56, 189, 248, 0.6);
}

/* Narrow screens */
@media (max-width: 640px) {

  #body-color-panel .color-palette-list,
  #seats-color-panel .color-palette-list {
    gap: 14px;
    justify-content: flex-start;
  }

  #body-color-panel .color-row-item,
  #seats-color-panel .color-row-item {
    min-width: 72px;
    padding: 2px;
  }

  #body-color-panel .swatch-concentric-container,
  #seats-color-panel .swatch-concentric-container {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  #body-color-panel .swatch-circle-fill,
  #seats-color-panel .swatch-circle-fill {
    width: 44px;
    height: 44px;
  }

  #body-color-panel .color-label-text,
  #seats-color-panel .color-label-text {
    font-size: 10.5px;
  }
}

/* =========================================================
   TOP START / STOP BUTTONS — AURORA GT LIQUID GLASS CAPSULE
   Exact reference style: luminous translucent frosted glass,
   fully rounded pill shape, specular white top rim, and glowing blue active glass.
   ========================================================= */

.engine-segmented-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  padding: 2.5px;
  height: 38px;
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(24, 38, 60, 0.60) 0%, rgba(14, 22, 35, 0.42) 100%);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.23);
  box-shadow:
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.engine-ctrl-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5.5px;
  height: 100%;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: all 0.28s var(--ease-smooth);
  box-sizing: border-box;
}

.engine-ctrl-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.engine-btn-indicator {
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

/* START Play Triangle Icon */
#btn-engine-start .engine-btn-indicator {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid #ffffff;
  background: transparent;
  border-radius: 1px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
}

/* STOP Square Icon */
#btn-engine-stop .engine-btn-indicator {
  width: 8.5px;
  height: 8.5px;
  border-radius: 1.5px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Active START like reference: Luminous Sapphire Glass Pill */
.engine-ctrl-btn#btn-engine-start.active {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(42, 115, 235, 0.92) 0%, rgba(20, 75, 185, 0.85) 100%) !important;
  border: 1px solid rgba(165, 215, 255, 0.95) !important;
  border-radius: 9999px !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(78, 196, 250, 0.70),
    0 4px 12px rgba(0, 0, 0, 0.35) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 255, 255, 0.6);
}

.engine-ctrl-btn#btn-engine-start.active .engine-btn-indicator {
  border-left-color: #ffffff;
  filter: drop-shadow(0 0 6px #4ec4fa) drop-shadow(0 0 10px #ffffff);
}

/* Inactive STOP */
.engine-ctrl-btn#btn-engine-stop {
  color: #ffffff;
}

/* When STOP becomes active */
.engine-ctrl-btn#btn-engine-stop.active {
  color: #ffffff !important;
  background: linear-gradient(180deg, rgba(225, 42, 42, 0.92) 0%, rgba(160, 20, 20, 0.85) 100%) !important;
  border: 1px solid rgba(254, 168, 168, 0.95) !important;
  border-radius: 9999px !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(239, 68, 68, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.35) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 8px rgba(255, 255, 255, 0.6);
}

.engine-ctrl-btn#btn-engine-stop.active .engine-btn-indicator {
  background: #ffffff;
  filter: drop-shadow(0 0 6px #ef4444) drop-shadow(0 0 8px #ffffff);
}

@media (max-width: 768px) {
  .engine-segmented-control {
    height: 36px;
    padding: 2px;
  }

  .engine-ctrl-btn {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    gap: 6px;
    padding: 0 12px;
  }

  #btn-engine-start .engine-btn-indicator {
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-left-width: 7.5px;
  }

  #btn-engine-stop .engine-btn-indicator {
    width: 7.5px;
    height: 7.5px;
  }
}



/* ================================================================
   FINAL OVERRIDE: remove ONLY background boxes behind color options
   Works for Body Colors + Seat Colors, all states.
   Do not alter dimensions, placement, label, swatches or active ring.
   ================================================================ */
/* Remove boxes behind color balls */
#body-color-panel .color-row-item,
#seats-color-panel .color-row-item,
#body-color-panel .color-row-item:hover,
#seats-color-panel .color-row-item:hover,
#body-color-panel .color-row-item.active,
#seats-color-panel .color-row-item.active {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Keep individual color balls visible */
#body-color-panel .swatch-circle-fill,
#seats-color-panel .swatch-circle-fill {
  /* Existing ball styling remains unchanged */
}

/* Remove any box overlay */
#body-color-panel .color-row-item::before,
#seats-color-panel .color-row-item::before {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Keep the selected checkmark */
#body-color-panel .color-row-item.active::before,
#seats-color-panel .color-row-item.active::before {
  /* content: "✓" !important; */
  background: #3caeff !important;
  box-shadow: 0 2px 9px rgba(37, 155, 255, .48) !important;
}

/* Preserve swatch circular check, underline and blue selection halo. */

/* Remove main background box behind color options */
#body-color-panel,
#seats-color-panel {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (min-width: 769px) {
  #UI_container.luxury-left-sidebar {
    left: 50% !important;
    right: auto !important;
    transform: translateX(calc(-50% + 24px)) !important;
  }
}

/* Environment cards ka neon / glow kam */
.env-thumbnail-card.active {
  border: 1.5px solid rgba(147, 219, 253, 0.72) !important;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.50),
    0 0 14px rgba(78, 196, 250, 0.32),
    0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

.env-thumbnail-card.active .card-progress-fill {
  background: #ffffff !important;
  box-shadow: 0 0 5px rgba(78, 196, 250, 0.30) !important;
}

.env-thumbnail-card:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    0 8px 20px rgba(0, 0, 0, 0.32) !important;
}

/* Social icons: slightly larger, evenly spaced, inset from right edge.
   Header, logo and START/STOP layout unchanged. */
@media (min-width: 901px) {
  .top-bar-right .top-social-links {
    gap: 10px !important;
    margin-right: 4px !important;
  }

  .top-bar-right .social-link-btn {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
  }

  .top-bar-right .social-link-btn svg {
    width: 19px !important;
    height: 19px !important;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .top-bar-right .top-social-links {
    gap: 8px !important;
    margin-right: 4px !important;
  }

  .top-bar-right .social-link-btn {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px;
  }

  .top-bar-right .social-link-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (max-width: 640px) {
  .top-bar-right .top-social-links {
    gap: 4px !important;
    margin-right: 2px !important;
  }

  .top-bar-right .social-link-btn {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px;
  }

  .top-bar-right .social-link-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
}

/* Environment Cards — Force White Glow */
/* ONLY Environment Buttons — White Glow */
#UI_container2.bottom-env-carousel .env-thumbnail-card.active {
  border-color: #ffffff !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.75),
    0 0 18px rgba(255, 255, 255, 0.65),
    0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

/* Environment Progress Bar */
#UI_container2 .env-thumbnail-card.active .card-progress-fill {
  background: #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8) !important;
}

/* TOP BUTTONS — SAME GLASS BACKGROUND AS BOTTOM BAR */

.engine-segmented-control,
.top-bar-home-btn,
.social-link-btn {
  background: linear-gradient(180deg,
      rgba(24, 38, 60, 0.60) 0%,
      rgba(14, 22, 35, 0.42) 100%) !important;

  backdrop-filter: blur(34px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%) !important;

  border: 1px solid rgba(255, 255, 255, 0.23) !important;

  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    inset 0 -1px 1px rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.58) !important;
}

/* TOP SOCIAL ICONS + HOME — LIGHTER GLASS */

.top-bar-right .social-link-btn,
.top-bar-right .top-bar-home-btn {
  background: linear-gradient(180deg,
      rgba(24, 38, 60, 0.42) 0%,
      rgba(14, 22, 35, 0.30) 100%) !important;

  backdrop-filter: blur(34px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%) !important;

  border: 1px solid rgba(255, 255, 255, 0.30) !important;

  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.22) !important;
}

/* ==========================================================================
   BLINK ANIMATION — Home + Exit View buttons when Exit is active
   ========================================================================== */

/* HOME + EXIT FEATURE — SAME BLUE PULSE */

#btn-top-home.btn-blink,
#wapsi.btn-blink {
  position: relative !important;
  isolation: isolate;
  overflow: visible;
  background: rgba(24, 38, 60, 0.65) !important;
  border: 1px solid rgba(180, 225, 255, 0.85) !important;
  animation: none !important;
}

/* Animated blue overlay */
#btn-top-home.btn-blink::before,
#wapsi.btn-blink::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,
      rgba(42, 108, 225, 0.85),
      rgba(78, 196, 250, 0.65));
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
  animation: same-blue-pulse 1.4s ease-in-out infinite !important;
}

@keyframes same-blue-pulse {

  0%,
  100% {
    opacity: 0.2;
    box-shadow: 0 0 6px rgba(78, 196, 250, 0.25);
  }

  50% {
    opacity: 1;
    box-shadow:
      0 0 20px rgba(78, 196, 250, 0.85),
      0 0 35px rgba(78, 196, 250, 0.45);
  }
}

/* ==========================================================================
   RESPONSIVE — Tablet & Mobile (Desktop layout preserved as-is)
   Breakpoints: 1024px (tablet), 768px (large mobile), 480px (small mobile)
   ========================================================================== */

/* ---------- TABLET (≤ 1024px) ---------- */
@media (max-width: 1024px) {

  /* Top Bar */
  .luxury-top-bar {
    padding: 0 18px !important;
    height: 54px !important;
  }

  .top-bar-brand .brand-title {
    font-size: 13px !important;
    letter-spacing: 0.15em !important;
  }

  /* Engine buttons */
  .engine-ctrl-btn {
    font-size: 9px !important;
    padding: 5px 10px !important;
    letter-spacing: 0.10em !important;
  }

  /* Home button */
  .top-bar-home-btn {
    height: 38px !important;
    padding: 0 13px !important;
    font-size: 10px !important;
  }

  .top-bar-home-btn svg {
    width: 15px !important;
    height: 15px !important;
  }

  /* Sidebar / Bottom Bar */
  .luxury-left-sidebar {
    padding: 6px 18px !important;
    gap: 6px !important;
    border-radius: 14px !important;
  }

  .sidebar-nav-item {
    padding: 8px 14px !important;
    min-width: 68px !important;
  }

  .sidebar-nav-item .nav-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .sidebar-nav-item span {
    font-size: 10px !important;
  }

  /* Environment cards */
  .env-thumbnail-card {
    width: 120px !important;
    height: 108px !important;
  }

  /* Color panels */
  .luxury-color-card {
    padding: 8px 14px !important;
  }
}

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

  /* Top Bar */
  .luxury-top-bar {
    padding: 0 12px !important;
    height: 50px !important;
  }

  .top-bar-brand {
    display: none !important;
  }

  .top-bar-left {
    gap: 8px !important;
  }

  /* Engine buttons — hide text, keep pill */
  .engine-ctrl-btn span:last-child {
    display: none !important;
  }

  .engine-ctrl-btn {
    padding: 5px 10px !important;
    min-width: 36px !important;
    justify-content: center !important;
  }

  /* Home button */
  .top-bar-home-btn span {
    display: none !important;
  }

  .top-bar-home-btn {
    height: 36px !important;
    width: 36px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }

  .top-bar-home-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Social icons */
  .top-bar-right .top-social-links {
    gap: 4px !important;
    margin-right: 2px !important;
  }

  .top-bar-right .social-link-btn {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }

  .top-bar-right .social-link-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Sidebar bottom bar */
  .luxury-left-sidebar {
    bottom: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 6px 12px !important;
    border-radius: 14px !important;
    max-width: calc(100vw - 20px) !important;
    overflow-x: auto !important;
  }

  .sidebar-nav-item span {
    display: none !important;
  }

  .sidebar-nav-item {
    padding: 10px 12px !important;
    min-width: 44px !important;
    border-radius: 10px !important;
  }

  .sidebar-nav-item .nav-icon svg {
    width: 22px !important;
    height: 22px !important;
  }

  .sidebar-group-bottom {
    padding-left: 10px !important;
    margin-left: 6px !important;
  }

  /* Environment carousel */
  .bottom-env-carousel {
    left: 12px !important;
    bottom: 98px !important;
  }

  .env-thumbnail-card {
    width: 100px !important;
    height: 90px !important;
  }

  .card-name-txt {
    font-size: 9px !important;
  }

  /* Color panels */
  .luxury-color-card {
    bottom: 90px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    max-width: calc(100vw - 20px) !important;
  }

  .luxury-color-card.collapsed {
    transform: translateX(-50%) translateY(20px) scale(0.96) !important;
  }

  /* Feature card */
  .feature-glass-modal {
    left: 12px !important;
    right: 12px !important;
    bottom: 100px !important;
    width: auto !important;
  }
}

/* ---------- SMALL MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {

  /* Top Bar */
  .luxury-top-bar {
    padding: 0 8px !important;
    height: 46px !important;
  }

  /* Engine control — show only indicator dot */
  .engine-segmented-control {
    height: 32px !important;
    padding: 2px !important;
  }

  .engine-ctrl-btn {
    padding: 0 8px !important;
    min-width: 32px !important;
    font-size: 0 !important;        /* hide text */
  }

  .engine-btn-indicator {
    margin: 0 !important;
  }

  /* Social icons — hide on very small screens */
  .top-social-links {
    display: none !important;
  }

  /* Home button */
  .top-bar-home-btn {
    height: 32px !important;
    width: 32px !important;
    border-radius: 8px !important;
  }

  .top-bar-home-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Sidebar */
  .luxury-left-sidebar {
    bottom: 10px !important;
    padding: 4px 8px !important;
    gap: 4px !important;
    max-width: calc(100vw - 16px) !important;
  }

  .sidebar-nav-item {
    padding: 8px 9px !important;
    min-width: 38px !important;
    border-radius: 8px !important;
  }

  .sidebar-nav-item .nav-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  /* Environment carousel */
  .bottom-env-carousel {
    left: 8px !important;
    bottom: 90px !important;
    gap: 6px !important;
  }

  .env-thumbnail-card {
    width: 84px !important;
    height: 76px !important;
  }

  /* Feature card */
  .feature-glass-modal {
    left: 8px !important;
    right: 8px !important;
    bottom: 88px !important;
    flex-direction: column !important;
    height: auto !important;
  }

  .feature-media-box {
    width: 100% !important;
    height: 100px !important;
  }
}
