/* ==========================================================
   REGENESIS LUXURY 3D CONFIGURATOR - STYLESHEET
   ========================================================== */

/* --- NEW SCIENCE TYPOGRAPHY FONTS --- */
@font-face {
  font-family: 'New Science';
  src: url('fonts/New_Science_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Science';
  src: url('fonts/New_Science_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Science';
  src: url('fonts/New_Science_Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Science';
  src: url('fonts/New_Science_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Science';
  src: url('fonts/New_Science_Bold.otf') format('opentype');
  font-weight: 700 800 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Science Extended';
  src: url('fonts/New_Science_Regular_Extended.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Science Extended';
  src: url('fonts/New_Science_Bold_Extended.otf') format('opentype');
  font-weight: 700 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-main: 'New Science', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-extended: 'New Science Extended', 'New Science', system-ui, sans-serif;
  
  /* Brand Colors */
  --color-dark: #111827;
  --color-dark-hover: #1f2937;
  --color-light-bg: #ffffff;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  --color-blue-accent: #0284c7;
  --color-blue-light: rgba(2, 132, 199, 0.08);
  
  --text-dark-primary: #0f172a;
  --text-dark-secondary: #64748b;
  --text-dark-muted: #94a3b8;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-card: 28px;
  --radius-full: 9999px;
  
  --shadow-card: 0 30px 60px -15px rgba(0, 0, 0, 0.25), 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  --shadow-pill: 0 12px 32px -4px rgba(0, 0, 0, 0.18);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0f172a;
}

/* 3D Canvas Container */
#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  touch-action: none;
}

/* ==========================================================
   TOP NAVIGATION
   ========================================================== */
.top-nav {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 460px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.brand-area {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.brand-logo-img {
  height: 24px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body.env-studio .brand-logo-img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.15));
}

.brand-logo {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

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

/* Glass Buttons */
.env-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.env-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.glass-btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.glass-btn-icon:hover {
  background: rgba(255, 255, 255, 0.28);
}

.glass-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.glass-btn-pill:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Studio Environment Dynamic Contrast */
body.env-studio .brand-logo {
  color: var(--text-dark-primary);
  text-shadow: none;
}

body.env-studio .tagline-text,
body.env-studio .tagline-dash {
  color: var(--text-dark-secondary);
  text-shadow: none;
}

body.env-studio .env-toggle-btn,
body.env-studio .glass-btn-icon,
body.env-studio .glass-btn-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: #cbd5e1;
  color: var(--text-dark-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.env-studio .env-toggle-btn:hover,
body.env-studio .glass-btn-icon:hover,
body.env-studio .glass-btn-pill:hover {
  background: #ffffff;
}

body.env-studio .p-dot {
  background: rgba(0, 0, 0, 0.2);
}

body.env-studio .p-dot.active {
  background: var(--text-dark-primary);
}

/* ==========================================================
   BOTTOM VIEWPORT ELEMENTS
   ========================================================== */
.bottom-tagline {
  position: absolute;
  bottom: 28px;
  left: 36px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.tagline-dash {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.tagline-text {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Center Floating Carousel Navigation */
.floating-carousel-wrap {
  position: absolute;
  bottom: 28px;
  left: calc(50% - 219px);
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.carousel-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 250px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
}

.carousel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-primary);
  padding: 0 12px;
}

.carousel-arrow {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-dark-primary);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.12);
}

.pagination-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.p-dot.active {
  background: #ffffff;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* ==========================================================
   CANOPY DOOR FLOATING TOGGLE PILL
   ========================================================== */
.canopy-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-family: inherit;
  margin-bottom: 2px;
}

.canopy-pill-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.94);
}

.canopy-pill-btn:active {
  transform: translateY(0.5px) scale(0.98);
}

.canopy-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark-primary);
  transition: transform 0.3s ease;
}

.canopy-pill-btn:hover .canopy-pill-icon {
  transform: rotate(-8deg);
}

.canopy-wing-closed {
  display: none;
}
.door-closed .canopy-wing-open {
  display: none;
}
.door-closed .canopy-wing-closed {
  display: inline;
}

/* Single Environment Toggle (Moon in Obsidian / Sun in Studio) */
.env-icon-sun {
  display: none !important;
}
.env-icon-moon {
  display: inline !important;
}
body.env-studio .env-icon-moon,
.is-studio .env-icon-moon {
  display: none !important;
}
body.env-studio .env-icon-sun,
.is-studio .env-icon-sun {
  display: inline !important;
}

.canopy-pill-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dark-primary);
}

.canopy-status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.canopy-status-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.canopy-status-badge.open {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.canopy-status-badge.open::before {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.canopy-status-badge.closed {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}
.canopy-status-badge.closed::before {
  background: #94a3b8;
  box-shadow: none;
}

/* Dark studio mode styling for canopy button */
body:not(.env-studio) .canopy-pill-btn {
  background: rgba(15, 20, 28, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
body:not(.env-studio) .canopy-pill-btn:hover {
  background: rgba(22, 30, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
}
body:not(.env-studio) .canopy-pill-label,
body:not(.env-studio) .canopy-pill-icon {
  color: #f1f5f9;
}
body:not(.env-studio) .canopy-status-badge.open {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.36);
}
body:not(.env-studio) .canopy-status-badge.closed {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.22);
}

/* ==========================================================
   FLOATING REGENESIS CONFIGURATOR CARD (Right)
   ========================================================== */
.regenesis-card {
  position: absolute;
  top: 24px;
  right: 28px;
  bottom: 24px;
  width: 410px;
  z-index: 15;
  background: var(--color-light-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  overflow: visible;
  pointer-events: auto;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.regenesis-card.collapsed {
  transform: translateX(calc(100% + 28px));
  box-shadow: none;
}

/* Attached Collapse / Expand Toggle Tab */
.panel-collapse-tab {
  position: absolute;
  left: -34px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 68px;
  background: rgba(14, 19, 27, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(172, 132, 62, 0.38);
  border-right: none;
  border-radius: 14px 0 0 14px;
  color: #AC843E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: -6px 0 20px rgba(0, 0, 0, 0.4);
  transition: width 0.2s ease, left 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  outline: none;
}

.panel-collapse-tab:hover {
  background: rgba(22, 30, 42, 0.96);
  border-color: #AC843E;
  color: #F3E2C4;
  box-shadow: -8px 0 24px rgba(172, 132, 62, 0.32);
  width: 38px;
  left: -38px;
}

#collapse-tab-chevron {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.regenesis-card.collapsed #collapse-tab-chevron {
  transform: rotate(180deg);
}

.regenesis-card.collapsed .panel-collapse-tab {
  box-shadow: -8px 0 28px rgba(0, 0, 0, 0.6);
}

/* Mobile Grab Bar (Hidden on desktop) */
.sheet-grab-bar {
  display: none;
}

/* Stepper Header */
.stepper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 16px 28px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.55;
  transition: var(--transition);
}

.stepper-item:hover {
  opacity: 0.85;
}

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

.step-num {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--text-dark-secondary);
}

.stepper-item.active .step-num {
  background: var(--color-dark);
  color: #ffffff;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-secondary);
}

.stepper-item.active .step-label {
  color: var(--text-dark-primary);
}

.step-connector {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  margin: 0 10px;
}

.step-connector.active {
  background: var(--color-dark);
}

/* Step Content Panels */
.step-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.step-content::-webkit-scrollbar {
  width: 5px;
}

.step-content::-webkit-scrollbar-track {
  background: transparent;
}

.step-content::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.step-content::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

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

.config-section {
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.section-badge {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.section-title-wrap h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark-primary);
  line-height: 1.2;
}

.section-title-wrap p {
  font-size: 11px;
  color: var(--text-dark-secondary);
  margin-top: 2px;
}

/* ==========================================================
   SHELL OPTION CARDS (2 Columns)
   ========================================================== */
.option-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}

.option-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.option-card:active {
  transform: scale(0.95);
}

/* Apple-style concentric selection ring: 2px white gap + clean outer accent stroke */
.option-card.active {
  border-color: var(--color-blue-accent);
  background: #ffffff;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--color-blue-accent), 0 12px 28px -4px rgba(2, 132, 199, 0.25);
  transform: translateY(-1px);
}

/* 3D Realistic Sphere Preview with Light Shimmer */
.sphere-preview {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.32);
  transition: var(--transition);
}

.option-card:hover .sphere-preview {
  transform: scale(1.06);
}

/* Diagonal specular light sweep across the sphere */
.sphere-preview::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(-45deg) translateY(-120%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.option-card:hover .sphere-preview::after,
.option-card.active .sphere-preview::after {
  transform: rotate(-45deg) translateY(120%);
}

/* Gloss Shader Highlights */
.sphere-preview.gloss::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 20%;
  width: 32%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 75%);
  transform: rotate(-35deg);
  z-index: 2;
}

/* Matte Sphere Softness */
.sphere-preview.matte::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 -12px 18px rgba(0, 0, 0, 0.4), inset 0 8px 12px rgba(255, 255, 255, 0.15);
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dark-secondary);
}

/* ==========================================================
   COMFORT SET PREVIEW CARD
   ========================================================== */
.comfort-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
}

.comfort-preview-card:hover {
  border-color: var(--color-border-hover);
  background: #f8fafc;
}

.comfort-thumb-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comfort-thumb-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.comfort-info {
  flex: 1;
}

.comfort-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.comfort-info span {
  font-size: 11px;
  color: var(--text-dark-secondary);
}

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

/* Comfort Step 2 Options List */
.comfort-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comfort-option-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.comfort-option-item:hover {
  border-color: var(--color-border-hover);
  background: #f8fafc;
}

.comfort-option-item.active {
  border-color: var(--color-blue-accent);
  background: var(--color-blue-light);
}

.interior-trim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interior-trim-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark-primary);
}

.tone-swatches {
  display: flex;
  gap: 8px;
}

.tone-swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: var(--transition);
}

.tone-swatch-btn:hover {
  transform: scale(1.1);
}

.tone-swatch-btn.active {
  border-color: var(--color-dark);
  box-shadow: 0 0 0 2px var(--color-blue-accent);
}

/* ==========================================================
   STEP 3: REVIEW SUMMARY TABLE
   ========================================================== */
/* Client Name Input Field */
.client-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.client-name-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.client-name-input {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark-primary);
  outline: none;
  transition: var(--transition);
}

.client-name-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

/* ==========================================================
   STEP 3: ARCHITECTURAL LUXURY SPECIFICATION CARDS
   ========================================================== */
.review-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.spec-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: var(--transition);
}

.spec-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
}

/* Swatch with Architectural Texture Hatching */
.spec-swatch {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Diagonal texture hatch overlays */
.spec-swatch.hatch-matte::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.15) 1.5px,
    transparent 1.5px,
    transparent 5px
  );
  pointer-events: none;
}

.spec-swatch.hatch-gloss::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, transparent 45%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.spec-swatch.hatch-metallic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.3) 1.5px,
    transparent 1.5px,
    transparent 4px
  );
  pointer-events: none;
}

.spec-swatch.hatch-leather::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.22) 20%, transparent 25%);
  background-size: 5px 5px;
  pointer-events: none;
}

.spec-swatch.hatch-bamboo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 3px
  ), repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.spec-meta {
  flex: 1;
  min-width: 0;
}

.spec-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.spec-cat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.spec-finish-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.spec-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: #f8fafc;
  font-size: 10px;
  color: #64748b;
}

.spec-pantone-chip {
  font-weight: 600;
  color: #334155;
}

.spec-hex-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #475569;
}

/* ==========================================================
   CARD FOOTER BUTTONS
   ========================================================== */
.stepper-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 24px 22px 24px;
  border-top: 1px solid #f1f5f9;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.footer-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--color-dark);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
  transition: var(--transition);
}

.btn-next:hover {
  background: var(--color-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.35);
}

.btn-share-logo-only {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-share-logo-only:hover {
  background: #f8fafc;
  border-color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-share-logo-only:active {
  transform: scale(0.95);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: transparent;
  color: var(--text-dark-secondary);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ==========================================================
   CAD STUDIO DRAWER (COLLAPSIBLE)
   ========================================================== */
.studio-drawer {
  position: absolute;
  top: 24px;
  left: 28px;
  bottom: 24px;
  width: 580px;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  color: #f8fafc;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title h3 {
  font-size: 15px;
  font-weight: 700;
}

.drawer-title p {
  font-size: 11px;
  color: #94a3b8;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
}

.drawer-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  overflow: hidden;
}

.drawer-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.drawer-col input {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 11px;
  margin-bottom: 8px;
}

.drawer-tree-scroll {
  flex: 1;
  overflow-y: auto;
  font-size: 11px;
  color: #cbd5e1;
}

.drawer-actions-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.drawer-select {
  flex: 1;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 11px;
}

.btn-drawer-action {
  padding: 6px 12px;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-drawer-action.btn-danger {
  background: #dc2626;
}

.drawer-groups-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-export-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.btn-drawer-tool {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.btn-drawer-tool:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================
   CUSTOM COLOR MODAL
   ========================================================== */
.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  width: 340px;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.modal-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.modal-card p {
  font-size: 12px;
  color: var(--text-dark-secondary);
  margin-top: 4px;
  margin-bottom: 16px;
}

.modal-color-pick-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

#modal-color-input {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
}

#modal-hex-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.finish-pill-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-md);
}

.finish-pill-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-dark-secondary);
  transition: var(--transition);
}

.finish-pill-btn.active {
  background: #ffffff;
  color: var(--text-dark-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.modal-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--color-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================
   LOADING OVERLAY & UTILITIES
   ========================================================== */
/* Technical Luxury Loading HUD Overlay */
.luxury-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(ellipse at 50% 40%, #0e141c 0%, #070a0f 60%, #030406 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.65s ease;
  overflow: hidden;
}

.luxury-loader-overlay.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

/* Subtle background watermark */
.loader-bg-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.035;
}

.loader-watermark {
  width: 780px;
  max-width: 90vw;
  filter: grayscale(100%) invert(1);
}

/* Floating Luxury HUD Card */
.loader-hud-card {
  position: relative;
  z-index: 10;
  width: 440px;
  max-width: calc(100vw - 36px);
  padding: 34px 28px 28px;
  background: rgba(14, 19, 27, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(172, 132, 62, 0.24);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.07) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Shield Emblem Container with Calibration Ring */
.loader-emblem-container {
  position: relative;
  width: 76px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.loader-outer-ring {
  position: absolute;
  width: 82px;
  height: 82px;
  border: 1px dashed rgba(172, 132, 62, 0.35);
  border-radius: 50%;
  animation: rotateCalibrationRing 20s linear infinite;
}

.loader-pulse-glow {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(172, 132, 62, 0.3) 0%, rgba(172, 132, 62, 0) 70%);
  animation: pulseEmblemGlow 3s ease-in-out infinite;
}

.loader-shield-img {
  position: relative;
  z-index: 2;
  width: 62px;
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(172, 132, 62, 0.32));
}

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

@keyframes pulseEmblemGlow {
  0%, 100% { transform: scale(0.92); opacity: 0.45; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

@keyframes blinkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Brand Header */
.loader-brand-header {
  margin-bottom: 18px;
}

.loader-brand-title {
  font-family: 'New Science', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0 0 5px 0;
}

.loader-brand-sub {
  font-family: 'New Science', 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #AC843E;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Technical Telemetry Console */
.loader-telemetry-box {
  width: 100%;
  background: rgba(7, 10, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.telemetry-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-family: 'Fragment Mono', 'SF Mono', Consolas, monospace;
  font-size: 9.5px;
}

.telemetry-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #AC843E;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #AC843E;
  box-shadow: 0 0 8px #AC843E;
  animation: blinkPulse 1.2s infinite ease-in-out;
}

.telemetry-code {
  color: #5B7A8C;
  letter-spacing: 0.06em;
}

.telemetry-feed-text {
  font-family: 'Fragment Mono', 'SF Mono', Consolas, monospace;
  font-size: 10.5px;
  color: #e2e8f0;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* 7 Modalities Matrix */
.modality-calibration-matrix {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 18px;
}

.modality-node {
  padding: 6px 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mod-num {
  font-family: 'Fragment Mono', monospace;
  font-size: 8px;
  color: #4E6776;
  transition: color 0.35s ease;
}

.mod-name {
  font-family: 'New Science', 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #64748b;
  transition: all 0.35s ease;
}

.modality-node.active {
  background: rgba(172, 132, 62, 0.16);
  border-color: rgba(172, 132, 62, 0.55);
  box-shadow: 0 0 10px rgba(172, 132, 62, 0.22);
}

.modality-node.active .mod-num {
  color: #F3E2C4;
}

.modality-node.active .mod-name {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(172, 132, 62, 0.6);
}

/* Architectural Precision Progress Section */
.loader-progress-section {
  width: 100%;
}

.loader-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: visible;
  position: relative;
  margin-bottom: 9px;
}

.loader-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #5B7A8C 0%, #AC843E 70%, #F3E2C4 100%);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-progress-pip {
  position: absolute;
  right: -2px;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #AC843E, 0 0 4px #ffffff;
}

.loader-progress-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fragment Mono', 'SF Mono', Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.loader-metric-status {
  color: #8fa0b0;
  text-transform: uppercase;
  font-size: 9.5px;
}

.loader-metric-pct {
  color: #F3E2C4;
  font-weight: 700;
  font-size: 11px;
}

.mesh-tooltip {
  position: absolute;
  z-index: 50;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: #fff;
  transform: translate(-50%, -120%);
  white-space: nowrap;
}

.toast-container {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--color-blue-accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* ==========================================================
   LIGHTING & REALISM DRAWER
   ========================================================== */
.lighting-drawer {
  position: absolute;
  top: 66px;
  right: 390px;
  width: 320px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 18px;
  z-index: 90;
  animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.drawer-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.drawer-title-compact h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 2px;
}

.drawer-title-compact p {
  font-size: 11px;
  color: var(--text-dark-secondary);
}

.lighting-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.lighting-preset-btn[data-env="obsidian"] {
  grid-column: span 2;
  background: linear-gradient(135deg, #090b0e 0%, #171d26 100%);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.lighting-preset-btn[data-env="obsidian"] .preset-name {
  color: #ffffff;
  font-weight: 700;
}

.lighting-preset-btn[data-env="obsidian"] .preset-desc {
  color: #94a3b8;
}

.lighting-preset-btn[data-env="obsidian"].active {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
  background: linear-gradient(135deg, #0c1117 0%, #1e2836 100%);
}

.lighting-preset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.lighting-preset-btn:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.lighting-preset-btn.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7;
}

.preset-icon {
  font-size: 18px;
}

.preset-details {
  display: flex;
  flex-direction: column;
}

.preset-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.preset-desc {
  font-size: 9px;
  color: var(--text-dark-secondary);
}

.lighting-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dark-secondary);
  font-weight: 600;
}

.luxury-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
}

.luxury-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.luxury-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ==========================================================
   INLINE CUSTOM COLOR ACCORDION
   ========================================================== */
.inline-custom-accordion {
  margin-top: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: fadeInDown 0.2s ease;
}

.custom-accordion-header {
  margin-bottom: 10px;
}

.accordion-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.picker-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.luxury-color-swatch-input {
  -webkit-appearance: none;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  background: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.luxury-color-swatch-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.luxury-color-swatch-input::-webkit-color-swatch {
  border: 2px solid #ffffff;
  border-radius: 10px;
}

.hex-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 10px;
  flex: 1;
}

.hex-prefix {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  margin-right: 4px;
}

.luxury-hex-field {
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  width: 100%;
  padding: 8px 0;
  text-transform: uppercase;
}

/* ==========================================================
   DUAL-TONE CABIN INTERIOR TOGGLE
   ========================================================== */
.dual-tone-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.dual-tone-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.dual-tone-input {
  display: none;
}

.dual-tone-switch {
  position: relative;
  width: 42px;
  height: 24px;
  background: #e2e8f0;
  border-radius: 24px;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.dual-tone-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dual-tone-input:checked + .dual-tone-switch {
  background: #0f172a;
}

.dual-tone-input:checked + .dual-tone-switch::after {
  transform: translateX(18px);
}

.dual-tone-switch.dark-switch {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.dual-tone-input:checked + .dual-tone-switch.dark-switch {
  background: #3b82f6;
  border-color: #60a5fa;
}

.dual-tone-info {
  display: flex;
  flex-direction: column;
}

.dual-tone-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.dual-tone-desc {
  font-size: 11px;
  color: var(--text-dark-secondary);
}

.inner-shell-selection-wrap {
  margin-top: 12px;
  animation: fadeInDown 0.3s ease;
}

.section-subtitle-wrap h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark-primary);
}

.section-subtitle-wrap p {
  font-size: 11px;
  color: var(--text-dark-secondary);
  margin-bottom: 8px;
}

/* ==========================================================
   MATERIAL SEGMENTED TABS (BAMBOO VS LEATHER)
   ========================================================== */
.material-segmented-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  gap: 4px;
  margin-bottom: 14px;
}

.mat-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mat-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.material-subpanel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subpanel-header {
  margin-bottom: 4px;
}

.subpanel-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

/* ==========================================================
   LEATHER TEXTURE SELECTOR
   ========================================================== */
.leather-texture-wrap {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.texture-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.texture-pills {
  display: flex;
  gap: 6px;
}

.texture-pill-btn {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.texture-pill-btn:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.texture-pill-btn.active {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

/* ==========================================================
   FULL-BLEED TACTILE MACRO SAMPLE PREVIEW
   ========================================================== */
.leather-macro-preview-wrap {
  margin-top: 10px;
  width: 100%;
}

.leather-macro-card {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: #090d14;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: crosshair;
}

.leather-macro-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.leather-macro-card:hover .leather-macro-canvas {
  transform: scale(1.03);
}

.macro-badge-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(10, 15, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.macro-badge-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f8fafc;
}

.macro-sheen-highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle 120px at 50% 50%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.leather-macro-card:hover .macro-sheen-highlight {
  opacity: 1;
}

/* ==========================================================
   REVIEW VIEW MODES (Inside / Front / 360 Orbit)
   ========================================================== */
.review-view-modes {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.view-mode-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.view-mode-pills {
  display: flex;
  gap: 5px;
}

.view-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.view-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.view-pill.active {
  border-color: #0284c7;
  background: #f0f9ff;
  color: #0284c7;
  font-weight: 700;
}

/* ==========================================================
   SHARE BUILD SHEET MODAL
   ========================================================== */
.share-card {
  max-width: 380px;
  padding: 24px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.modal-header-row h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.share-card p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 18px;
}

.share-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.share-channel-btn:hover {
  border-color: #cbd5e1;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.share-icon {
  font-size: 22px;
}

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

.share-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.share-text span {
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================
   MOBILE LUXURY RESPONSIVE EXPERIENCE (<= 768px)
   ========================================================== */
@media (max-width: 768px) {
  /* 1. TOP NAVIGATION HEADER STREAMLINING */
  .top-nav {
    top: max(14px, env(safe-area-inset-top, 14px));
    left: 16px;
    right: 16px;
  }

  .brand-logo-img {
    height: 18px;
    max-width: 180px;
  }

  .brand-logo {
    font-size: 20px;
    letter-spacing: -0.4px;
  }

  .nav-btn-label {
    display: none !important;
  }

  .env-toggle-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
  }

  .glass-btn-icon {
    width: 38px;
    height: 38px;
  }

  .glass-btn-pill {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
  }

  /* 2. HIDE DESKTOP FLOATING ELEMENTS */
  .bottom-tagline,
  .floating-carousel-wrap {
    display: none !important;
  }

  /* 3. LUXURY BOTTOM SHEET (DRAWER) ARCHITECTURE */
  .regenesis-card {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    /* Default: Peek Mode ~42vh */
    height: 42vh;
    max-height: 42vh;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.38), 0 -2px 10px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: none;
    z-index: 50;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: height 0.38s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 12px);
  }

  /* Expanded Mode ~78vh */
  .regenesis-card.expanded {
    height: 78vh;
    max-height: 78vh;
  }

  /* Mobile Collapse Tab & Collapsed Mode */
  .panel-collapse-tab {
    left: 50%;
    top: -26px;
    transform: translateX(-50%);
    width: 58px;
    height: 26px;
    border-radius: 12px 12px 0 0;
    border-right: 1px solid rgba(172, 132, 62, 0.4);
    border-bottom: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
  }

  .panel-collapse-tab:hover {
    left: 50%;
    top: -28px;
    width: 58px;
  }

  #collapse-tab-chevron {
    transform: rotate(90deg);
  }

  .regenesis-card.collapsed {
    transform: translateY(100%);
    box-shadow: none;
  }

  .regenesis-card.collapsed #collapse-tab-chevron {
    transform: rotate(-90deg);
  }

  /* Apple-style Grab Bar / Drag Handle */
  .sheet-grab-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 4px 0;
    cursor: pointer;
    touch-action: none;
    flex-shrink: 0;
    width: 100%;
  }

  .sheet-grab-pill {
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: #cbd5e1;
    transition: background 0.2s ease, width 0.2s ease;
  }

  .sheet-grab-bar:active .sheet-grab-pill,
  .sheet-grab-bar:hover .sheet-grab-pill {
    background: #94a3b8;
    width: 50px;
  }

  /* Stepper Header in Bottom Sheet */
  .stepper-header {
    padding: 2px 20px 10px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    user-select: none;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .step-label {
    font-size: 12px;
  }

  .step-connector {
    margin: 0 8px;
  }

  /* Content Scrollable Area inside Bottom Sheet */
  .step-content {
    padding: 12px 18px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .config-section {
    margin-bottom: 14px;
  }

  .section-title-wrap {
    margin-bottom: 10px;
    gap: 8px;
  }

  .section-badge {
    font-size: 14px;
  }

  .section-title-wrap h3 {
    font-size: 13px;
    font-weight: 700;
  }

  .section-title-wrap p {
    font-size: 11px;
  }

  /* 4. HORIZONTAL TOUCH-SWIPEABLE OPTION CARDS RAILS */
  .option-cards-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 14px 2px;
    gap: 12px;
    scrollbar-width: none;
  }

  .option-cards-grid::-webkit-scrollbar {
    display: none;
  }

  .option-card {
    flex: 0 0 132px;
    min-width: 132px;
    max-width: 132px;
    scroll-snap-align: start;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    min-height: 48px;
    touch-action: pan-x;
  }

  .sphere-preview {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
  }

  .card-title {
    font-size: 12px;
  }

  .card-subtitle {
    font-size: 11px;
  }

  /* Interior Quick Preview Card */
  .comfort-preview-card {
    padding: 10px 14px;
    min-height: 48px;
  }

  .comfort-thumb-wrap {
    width: 42px;
    height: 42px;
  }

  .comfort-thumb-dot {
    width: 28px;
    height: 28px;
  }

  .comfort-info h4 {
    font-size: 12px;
  }

  .comfort-info p {
    font-size: 11px;
  }

  .leather-macro-card {
    height: 130px;
    border-radius: 12px;
  }

  /* Stepper Footer in Bottom Sheet */
  .stepper-footer {
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 8px)) 20px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
    background: #ffffff;
  }

  .btn-next,
  .btn-back {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 13px;
  }

  /* Review Summary Table in Sheet */
  .review-table {
    gap: 8px;
    margin-bottom: 14px;
  }

  .review-row {
    padding: 10px 12px;
  }

  .review-label {
    font-size: 11px;
  }

  .review-val {
    font-size: 11px;
    gap: 6px;
  }

  .action-section {
    gap: 8px;
  }

  .btn-review-action {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  /* Full-Screen CAD Studio Drawer on Mobile */
  .cad-studio-drawer {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
  }

  /* Custom Color Modal for Mobile */
  .modal-card {
    width: calc(100% - 32px);
    max-width: 360px;
    padding: 20px;
  }

  .modal-buttons {
    display: flex;
    gap: 10px;
  }

  .modal-buttons button {
    min-height: 44px;
    flex: 1;
  }

  /* Mobile Lighting Drawer */
  .lighting-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 24px 24px 0 0;
    z-index: 120;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 12px)) 20px;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.4);
  }
}

/* ==========================================================
   TOP NAV: FLOATING QUICK BACKDROP SWITCH (OBSIDIAN / STUDIO)
   ========================================================== */
.backdrop-quick-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: var(--transition);
}

.backdrop-quick-switch:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.65);
}

.quick-switch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.quick-switch-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: scale(1.04);
}

/* ==========================================================
   STEP 3: CAMERA PERSPECTIVE SELECTOR (ICON DOCK)
   ========================================================== */
.review-view-modes {
  margin-bottom: 14px;
}

.view-mode-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 6px;
}

.view-mode-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.view-pill {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.view-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
  border-color: #cbd5e1;
}

.view-pill.active {
  background: #ffffff;
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

/* ==========================================================
   CLIENT NAME / COMMISSIONED FOR FIELD (BOTTOM OF REVIEW)
   ========================================================== */
.client-name-wrap {
  margin-top: 10px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  transition: var(--transition);
}

.client-name-wrap:focus-within {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.client-name-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

.client-name-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.client-name-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ==========================================================
   LUXURY ARCHITECTURAL SPEC CARDS WITH TEXTURE HATCHING
   ========================================================== */
.spec-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.spec-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.spec-cat-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
}

.spec-finish-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  letter-spacing: 0.02em;
}

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

.spec-swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Texture Hatch Overlays on Swatches */
.spec-swatch.hatch-matte::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.7;
}

.spec-swatch.hatch-gloss::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.spec-swatch.hatch-metallic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.25) 2px, transparent 2px, transparent 5px);
  mix-blend-mode: overlay;
}

.spec-swatch.hatch-leather::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.3) 1.5px, transparent 1.5px);
  background-size: 6px 6px;
  opacity: 0.65;
}

.spec-swatch.hatch-bamboo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 3px),
                    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 3px);
  opacity: 0.75;
}

.spec-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.spec-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-pantone-chip {
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  letter-spacing: 0.01em;
}

.spec-hex-chip {
  font-size: 10px;
  font-family: 'Inter', monospace;
  font-weight: 600;
  color: #64748b;
}

/* ==========================================================
   FOOTER ACTIONS & LOGO-ONLY SHARE BUTTON
   ========================================================== */
.footer-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-share-logo-only {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-share-logo-only:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-1px);
}

/* ==========================================================
   INTERIOR AMBIENT RGB & STROBE CONTROLS
   ========================================================== */
.interior-lighting-section {
  margin-top: 14px;
}

.drawer-section-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.subgroup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.subgroup-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.subgroup-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark-primary);
  letter-spacing: 0.2px;
}

.subgroup-desc {
  font-size: 10px;
  color: var(--text-dark-secondary);
}

.subgroup-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.rgb-swatches-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.rgb-swatch-btn,
.rgb-custom-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 3px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.rgb-swatch-btn:hover,
.rgb-custom-swatch:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.rgb-swatch-btn.active,
.rgb-custom-swatch.active {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.swatch-dot.custom-dot {
  background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}

.swatch-name {
  font-size: 9.5px;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.rgb-color-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

.rgb-mode-pill-row,
.strobe-mode-pill-row {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.rgb-mode-btn,
.strobe-mode-btn {
  flex: 1;
  padding: 5px 6px;
  font-size: 10px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.rgb-mode-btn:hover,
.strobe-mode-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.rgb-mode-btn.active,
.strobe-mode-btn.active {
  color: #0f172a;
  background: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

#btn-quick-strobe.active {
  background: #fef08a;
  color: #854d0e;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
  border-color: #facc15;
}


