/* ==========================================================================
   AUTOTEX DYE TUBES & CONES — OFFICIAL CORPORATE DESIGN SYSTEM
   Brand Colors: Autotex Red #ED1C24, Deep Carbon #12151A, White #FFFFFF
   Fonts: Outfit (Headings) + Inter (Technical UI) + JetBrains Mono (Codes)
   ========================================================================== */

:root {
  /* Autotex Brand Palette */
  --brand-red: #ED1C24;
  --brand-red-hover: #D3151D;
  --brand-red-light: rgba(237, 28, 36, 0.08);
  --brand-red-glow: rgba(237, 28, 36, 0.28);
  
  /* Neutral Palette */
  --carbon-900: #0B0E14;
  --carbon-800: #12161F;
  --carbon-700: #1B202C;
  --carbon-600: #272F3E;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --pure-white: #FFFFFF;

  /* Typography matching autotex.net */
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Mulish', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 25px rgba(237, 28, 36, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Configurator Active Color */
  --active-color: #ED1C24;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--carbon-800);
  background-color: var(--pure-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   TOP UTILITY BAR
   ========================================================================== */
.top-bar {
  background-color: var(--carbon-900);
  color: var(--slate-300);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 8px var(--brand-red);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.top-divider {
  color: rgba(255, 255, 255, 0.2);
}

.top-link:hover {
  color: var(--pure-white);
}

.portal-link {
  color: var(--brand-red);
  font-weight: 600;
}
.portal-link:hover {
  color: #ff4d54;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: all var(--transition-normal);
  width: 100%;
}

/* Widescreen proper container for top bar and header */
.top-bar .container,
.site-header .container {
  max-width: 1540px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: clamp(12px, 2vw, 24px);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  border-left: 1.5px solid var(--slate-300);
  padding-left: 10px;
  white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  white-space: nowrap;
}

/* Navigation Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.3vw, 22px);
  flex-shrink: 1;
  white-space: nowrap;
}

.nav-item {
  font-size: clamp(0.82rem, 0.92vw, 0.90rem);
  font-weight: 600;
  color: var(--carbon-700);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-item:hover, .nav-item.active-link {
  color: var(--brand-red);
}

.badge-red {
  background-color: var(--brand-red);
  color: var(--pure-white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 4px;
  white-space: nowrap;
}

.caret {
  font-size: 0.55rem;
  margin-left: 3px;
  vertical-align: middle;
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
  white-space: nowrap;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--pure-white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--carbon-700);
  white-space: nowrap;
}

.dropdown-link:hover, .dropdown-link.active {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  font-weight: 600;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-outline-catalog {
  background-color: transparent;
  color: var(--carbon-800);
  border: 1.5px solid var(--slate-300);
}
.btn-outline-catalog:hover {
  border-color: var(--carbon-800);
  background-color: var(--slate-100);
}

.btn-primary-red {
  background-color: var(--brand-red);
  color: var(--pure-white);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.25);
}
.btn-primary-red:hover {
  background-color: var(--brand-red-hover);
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.35);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--carbon-800);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--carbon-900);
  color: var(--pure-white);
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-bg-yarn {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: grayscale(80%) contrast(1.2);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 14, 20, 0.95) 0%, rgba(18, 22, 31, 0.88) 60%, rgba(237, 28, 36, 0.12) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-accent {
  color: var(--brand-red);
}

.badge-text {
  color: var(--slate-300);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-red);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--slate-300);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background-color: var(--brand-red);
  color: var(--pure-white);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(237, 28, 36, 0.35);
}
.btn-hero-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(237, 28, 36, 0.45);
}

.btn-hero-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--pure-white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 8px;
}
.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--pure-white);
}

/* Hero Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  width: 100%;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pure-white);
  line-height: 1;
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--slate-400);
  font-weight: 500;
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.12);
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.35) 0%, rgba(237, 28, 36, 0) 70%);
  filter: blur(40px);
  z-index: 0;
}

.cluster-card {
  position: relative;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.cluster-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(11, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-top: 16px;
}

.cluster-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #109948;
}

/* ==========================================================================
   PROFILES SECTION (5 Core Models)
   ========================================================================== */
.profiles-section {
  padding: 85px 0 75px;
  background-color: var(--slate-50);
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--carbon-900);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 680px;
  margin: 0 auto 50px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.profile-card {
  position: relative;
  background-color: var(--pure-white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.profile-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-red);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08), var(--shadow-glow);
}

.profile-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.profile-thumb-wrap {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: radial-gradient(circle at center, #F8FAFC 0%, #EDF2F7 100%);
  border-radius: 10px;
  padding: 12px;
}

.profile-thumb {
  max-height: 185px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.profile-card:hover .profile-thumb {
  transform: scale(1.06);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--carbon-900);
  margin-bottom: 2px;
}

.profile-type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.profile-desc {
  font-size: 0.86rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.profile-features {
  list-style: none;
  font-size: 0.8rem;
  color: var(--carbon-700);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-features li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-features .check {
  color: #109948;
  font-weight: 700;
}

.btn-card-action {
  width: 100%;
  background-color: var(--slate-100);
  color: var(--carbon-800);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-action:hover {
  background-color: var(--brand-red);
  color: var(--pure-white);
  border-color: var(--brand-red);
}

/* ==========================================================================
   INTERACTIVE 3D 360° ROTATE & ZOOM COLOUR STUDIO
   ========================================================================== */
/* ==========================================================================
   INTERACTIVE 3D 360° ROTATE & ZOOM COLOUR STUDIO (Corporate Light Theme)
   ========================================================================== */
.studio-section {
  padding: 85px 0 95px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 50%, #F8FAFC 100%);
  color: var(--carbon-800);
  position: relative;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.studio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}

.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.studio-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-red);
  box-shadow: 0 0 6px var(--brand-red);
}

.studio-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin-bottom: 8px;
}

.studio-subtitle {
  font-size: 1rem;
  color: #475569;
  max-width: 620px;
}

.studio-actions-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-studio-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--slate-300);
  color: #1E293B;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-studio-tool:hover {
  background-color: var(--slate-50);
  border-color: #94A3B8;
  color: #0F172A;
}

.btn-studio-tool[aria-pressed="true"] {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--pure-white);
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}

/* Product Tabs Bar */
.product-selector-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.prod-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal);
}

.prod-tab:hover {
  background-color: #F8FAFC;
  border-color: var(--slate-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.prod-tab.active {
  background: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 6px 20px rgba(237, 28, 36, 0.12);
}

.tab-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748B;
  background-color: #F1F5F9;
  padding: 4px 8px;
  border-radius: 4px;
}

.prod-tab.active .tab-code {
  color: var(--brand-red);
  background-color: #FEF2F2;
}

.tab-info {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.tab-sub {
  font-size: 0.72rem;
  color: #64748B;
}

.prod-tab.active .tab-sub {
  color: var(--brand-red);
  font-weight: 600;
}

.tab-active-indicator {
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: var(--brand-red);
  border-radius: 3px 3px 0 0;
  display: none;
}

.prod-tab.active .tab-active-indicator {
  display: block;
}

/* Studio 2-Column Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 28px;
  align-items: stretch;
}

/* ==========================================================================
   VIEWPORT PANEL (Left Column - 3D 360° Render)
   ========================================================================== */
.studio-viewport-panel {
  background-color: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.viewport-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
}

.viewport-breadcrumbs {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
}

.viewport-breadcrumbs .sep {
  margin: 0 6px;
  color: var(--slate-300);
}

.viewport-breadcrumbs .active-crumb {
  color: #0F172A;
  font-weight: 700;
}

.view-status-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.live-tag {
  background-color: rgba(16, 153, 72, 0.12);
  color: #0E803C;
  border: 1px solid rgba(16, 153, 72, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #109948;
  animation: pulseDot 1.5s infinite;
}

.polymer-tag {
  background-color: #F1F5F9;
  color: #475569;
  border: 1px solid var(--slate-200);
}

/* ==========================================================================
   THE 360° STAGE VIEWPORT
   ========================================================================== */
.viewport-stage {
  position: relative;
  flex-grow: 1;
  min-height: 510px;
  margin: 18px 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.35s ease, border-color 0.35s ease;
  border: 1.5px solid var(--slate-200);

  /* Default Clean Studio Lighting Floor Background */
  background: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #F1F5F9 55%, #E2E8F0 100%);
  cursor: grab;
}

.viewport-stage:active {
  cursor: grabbing;
}

/* High Contrast Dark Backdrop Variation (for white, yellow, pale products) */
.viewport-stage.backdrop-dark {
  background: radial-gradient(circle at 50% 35%, #1E293B 0%, #0F172A 70%, #020617 100%);
  border-color: #334155;
}

/* Ultra Deep Black Backdrop */
.viewport-stage.backdrop-black {
  background: radial-gradient(circle at 50% 35%, #18181B 0%, #09090B 75%, #000000 100%);
  border-color: #27272A;
}

/* Floating Single Reset Control in 3D Stage Console */
.stage-floating-toolbar.stage-reset-bar {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
}

.reset-single-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--slate-300);
  color: #1E293B;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.viewport-stage.backdrop-dark .reset-single-btn,
.viewport-stage.backdrop-black .reset-single-btn {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
  color: #F8FAFC;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.reset-single-btn:hover {
  background: var(--brand-red);
  color: #FFFFFF !important;
  border-color: var(--brand-red);
  box-shadow: 0 6px 16px rgba(237, 28, 36, 0.35);
  transform: translateY(-1px);
}

.reset-single-btn:hover .tool-icon {
  transform: rotate(-180deg);
  transition: transform 0.35s ease;
}

.tool-btn {
  background: transparent;
  border: none;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.viewport-stage.backdrop-dark .tool-btn,
.viewport-stage.backdrop-black .tool-btn {
  color: var(--slate-200);
}

.tool-btn:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: #0F172A;
}

.viewport-stage.backdrop-dark .tool-btn:hover,
.viewport-stage.backdrop-black .tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--pure-white);
}

.tool-btn[aria-pressed="true"],
.tool-btn.active {
  background-color: var(--brand-red);
  color: var(--pure-white);
}

.quick-zoom-btn {
  font-size: 0.72rem;
  padding: 4px 7px;
  background-color: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.viewport-stage.backdrop-dark .quick-zoom-btn,
.viewport-stage.backdrop-black .quick-zoom-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--slate-200);
}

.quick-zoom-btn:hover {
  background-color: var(--brand-red);
  color: #fff !important;
  border-color: var(--brand-red);
}

.tool-btn[aria-pressed="true"] .tool-icon {
  animation: rotateSpin 2s linear infinite;
}

@keyframes rotateSpin {
  100% { transform: rotate(360deg); }
}

.tool-divider {
  width: 1px;
  height: 16px;
  background-color: var(--slate-300);
}

.viewport-stage.backdrop-dark .tool-divider,
.viewport-stage.backdrop-black .tool-divider {
  background-color: rgba(255, 255, 255, 0.2);
}

.zoom-level-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
  padding: 0 4px;
}

.viewport-stage.backdrop-dark .zoom-level-badge,
.viewport-stage.backdrop-black .zoom-level-badge {
  color: var(--pure-white);
}

/* Drag Interaction Hint Pill */
.drag-hint-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--slate-200);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: opacity 0.5s ease;
}

.viewport-stage.backdrop-dark .drag-hint-pill,
.viewport-stage.backdrop-black .drag-hint-pill {
  background-color: rgba(11, 14, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--slate-200);
}

.drag-hint-pill.fade-out {
  opacity: 0;
}

.hint-icon {
  color: var(--brand-red);
  font-size: 0.9rem;
}

/* Turntable Floor Ring Graphics */
.turntable-floor-ring {
  position: absolute;
  bottom: 35px;
  left: 50%;
  margin-left: -160px;
  width: 320px;
  height: 90px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 1;
}

.viewport-stage.backdrop-dark .turntable-floor-ring,
.viewport-stage.backdrop-black .turntable-floor-ring {
  border-color: rgba(255, 255, 255, 0.2);
}

.floor-grid-circle {
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  border: 1px solid rgba(237, 28, 36, 0.25);
}

.floor-tick {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748B;
}

.viewport-stage.backdrop-dark .floor-tick,
.viewport-stage.backdrop-black .floor-tick {
  color: var(--slate-400);
}

.tick-0 { top: -14px; left: 50%; transform: translateX(-50%); }
.tick-90 { right: -24px; top: 50%; transform: translateY(-50%); }
.tick-180 { bottom: -14px; left: 50%; transform: translateX(-50%); }
.tick-270 { left: -28px; top: 50%; transform: translateY(-50%); }

/* 360 Orbit Degree Badge */
.orbit-angle-hud {
  position: absolute;
  bottom: 60px;
  left: 20px;
  z-index: 15;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--slate-200);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #475569;
  backdrop-filter: blur(4px);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.viewport-stage.backdrop-dark .orbit-angle-hud,
.viewport-stage.backdrop-black .orbit-angle-hud {
  background-color: rgba(11, 14, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--slate-300);
}

.orbit-angle-hud strong {
  font-family: var(--font-mono);
  color: var(--brand-red);
}

/* Stage Single View */
.stage-single {
  position: relative;
  width: 100%;
  flex-grow: 1;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* REAL 3D WEBGL PRODUCT CANVAS */
.threejs-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 5;
  cursor: grab;
  outline: none;
  touch-action: none;
}

.threejs-canvas:active {
  cursor: grabbing;
}

/* THE 3D PRODUCT RENDER CONTAINER */
.product-render-stage {
  position: relative;
  width: 250px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Pedestal Radial Shadow */
.stage-pedestal-shadow {
  position: absolute;
  bottom: 8px;
  width: 190px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(5px);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.1s linear;
}

.stage-pedestal-shadow.small {
  width: 130px;
  height: 16px;
  bottom: 6px;
}

/* Photorealistic Direct Display Image */
.product-display-img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  transform-style: preserve-3d;
}

/* Dynamic Specular Glare Overlay that shifts with rotation */
.product-glare-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transition: transform 0.05s linear;
}

/* Custom Dynamic Canvas */
.product-custom-canvas {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 380px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
}

/* HUD Dimension Overlays */
.dimension-hud {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--slate-200);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.viewport-stage.backdrop-dark .dimension-hud,
.viewport-stage.backdrop-black .dimension-hud {
  background-color: rgba(11, 14, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.hud-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.viewport-stage.backdrop-dark .hud-label,
.viewport-stage.backdrop-black .hud-label {
  color: var(--slate-400);
}

.hud-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
}

.viewport-stage.backdrop-dark .hud-value,
.viewport-stage.backdrop-black .hud-value {
  color: var(--pure-white);
}

.top-hud {
  top: 50px;
  left: 40px;
}
.height-hud {
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
}
.bottom-hud {
  bottom: 60px;
  right: 40px;
}

/* ==========================================================================
   BOTTOM 360° VIEW ANGLE & SCRUBBER TOOLBAR
   ========================================================================== */
.stage-bottom-bar {
  width: 100%;
  padding: 10px 18px;
  background-color: #F8FAFC;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: 20;
  flex-wrap: wrap;
}

.angle-presets-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stage-backdrop-chips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.angle-bar-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.05em;
  margin-right: 2px;
}

.angle-preset-btn,
.stage-chip-btn {
  background-color: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.angle-preset-btn:hover,
.stage-chip-btn:hover {
  background-color: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.angle-preset-btn.active,
.stage-chip-btn.active {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--pure-white);
  box-shadow: 0 2px 6px rgba(237, 28, 36, 0.25);
}

.turntable-scrubber-wrap {
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 180px;
}

.turntable-scrubber-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--brand-red);
  cursor: pointer;
}

/* Stage Comparison Mode */
.stage-compare {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}

.compare-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.compare-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--slate-600);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 3px 8px;
  border-radius: 4px;
}

.viewport-stage.backdrop-dark .compare-tag,
.viewport-stage.backdrop-black .compare-tag {
  color: var(--slate-300);
  background-color: rgba(255, 255, 255, 0.1);
}

.compare-render-stage {
  position: relative;
  width: 170px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-render-stage .product-display-img {
  max-height: 290px;
}

.compare-vs-badge {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-red);
  background-color: var(--pure-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-info {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.compare-info strong {
  font-size: 0.95rem;
  color: var(--carbon-900);
}
.viewport-stage.backdrop-dark .compare-info strong,
.viewport-stage.backdrop-black .compare-info strong {
  color: var(--pure-white);
}

.compare-info span {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-family: var(--font-mono);
}
.viewport-stage.backdrop-dark .compare-info span,
.viewport-stage.backdrop-black .compare-info span {
  color: var(--slate-400);
}

/* Viewport Quick Footer */
.viewport-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--slate-100);
  padding-top: 16px;
}

.spec-quick-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.spec-quick-item strong {
  font-size: 0.88rem;
  color: #0F172A;
  font-weight: 700;
}

.active-color-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.color-sample-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  transition: background-color 0.28s ease;
}

.active-color-pill code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #334155;
  background-color: #F1F5F9;
  border: 1px solid var(--slate-200);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ==========================================================================
   PALETTE & CUSTOMIZER PANEL (Right Column - Light Theme)
   ========================================================================== */
.studio-palette-panel {
  background-color: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.palette-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-red);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

.palette-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background-color: #F1F5F9;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--slate-200);
}

/* Palette Search & Filter */
.palette-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #64748B;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background-color: #F8FAFC;
  border: 1.5px solid var(--slate-200);
  color: #0F172A;
  padding: 10px 36px;
  border-radius: 8px;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.search-input-wrap input:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 1.1rem;
  cursor: pointer;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: #F1F5F9;
  border: 1px solid var(--slate-200);
  color: #475569;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

.filter-pill.active {
  background-color: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--pure-white);
}

/* Quick Action Controls in Right Panel (Replacing Search & Filters) */
.palette-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-studio-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--carbon-800);
  background: #FFFFFF;
  border: 1.5px solid var(--slate-300);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-studio-action:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: rgba(237, 28, 36, 0.04);
}

.btn-studio-action.active,
.btn-studio-action[aria-pressed="true"] {
  background: var(--brand-red);
  color: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.25);
}

.btn-studio-action .action-icon {
  font-size: 0.95rem;
}

/* Swatches Grid - All 20 Shades in a Single Unscrolled View */
.swatches-container {
  flex-grow: 1;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  margin-bottom: 16px;
}

.swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.swatch-btn {
  background-color: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
  text-align: center;
}

.swatch-btn:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.swatch-btn.selected {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px var(--brand-red);
  background-color: #FEF2F2;
}

.swatch-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pure-white);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast);
}

.swatch-btn:hover .swatch-circle {
  transform: scale(1.1);
}

.swatch-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1E293B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.swatch-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #64748B;
}

/* Custom Bespoke Color Card */
.custom-color-card {
  background-color: #F8FAFC;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.custom-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.custom-desc {
  font-size: 0.75rem;
  color: #64748B;
  margin-bottom: 10px;
}

.custom-inputs-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.color-picker-label input[type="color"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.picker-preview {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid var(--slate-300);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hex-input-wrap {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 6px;
  padding: 2px 6px;
  flex-grow: 1;
}

.hash-prefix {
  font-family: var(--font-mono);
  color: #64748B;
  font-size: 0.82rem;
  font-weight: 700;
}

.hex-input-wrap input {
  background: transparent;
  border: none;
  color: #0F172A;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px;
  width: 100%;
  text-transform: uppercase;
}
.hex-input-wrap input:focus {
  outline: none;
}

.btn-apply-hex {
  background-color: var(--brand-red);
  color: var(--pure-white);
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.btn-apply-hex:hover {
  background-color: var(--brand-red-hover);
}

/* Active Selection Summary Card */
.selection-summary-card {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFFFFF 100%);
  border: 1.5px solid #FECACA;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.06);
}

.selected-product-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-chip {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  transition: background-color 0.28s ease;
}

.summary-details {
  flex-grow: 1;
}

.summary-details h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
}

.summary-details p {
  font-size: 0.76rem;
  color: #475569;
}

.status-verified {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: rgba(16, 153, 72, 0.12);
  color: #0E803C;
  border: 1px solid rgba(16, 153, 72, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.summary-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary-action {
  background-color: var(--brand-red);
  color: var(--pure-white);
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.3);
}
.btn-primary-action:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-1px);
}

.btn-secondary-action {
  background-color: #FFFFFF;
  color: #1E293B;
  border: 1.5px solid var(--slate-300);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}
.btn-secondary-action:hover {
  background-color: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
}

/* ==========================================================================
   ENGINEERING & FLOW PERFORMANCE SECTION
   ========================================================================== */
.engineering-section {
  padding: 85px 0;
  background-color: var(--pure-white);
  border-bottom: 1px solid var(--slate-200);
}

.eng-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eng-lead {
  font-size: 1.1rem;
  color: var(--slate-500);
  margin-bottom: 32px;
  line-height: 1.6;
}

.eng-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eng-feat-item {
  display: flex;
  gap: 18px;
}

.feat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eng-feat-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--carbon-900);
  margin-bottom: 4px;
}

.eng-feat-item p {
  font-size: 0.9rem;
  color: var(--slate-500);
  line-height: 1.55;
}

.eng-card-cluster {
  position: relative;
  background: radial-gradient(circle at center, #F8FAFC 0%, #E2E8F0 100%);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eng-cluster-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

.eng-stat-bubble {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: var(--brand-red);
  color: var(--pure-white);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 10px 20px rgba(237, 28, 36, 0.35);
  display: flex;
  flex-direction: column;
}

.eng-stat-bubble strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.eng-stat-bubble span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   TECHNICAL SPECIFICATION MATRIX TABLE
   ========================================================================== */
.specs-section {
  padding: 85px 0;
  background-color: var(--slate-50);
}

.specs-table-wrapper {
  overflow-x: auto;
  background-color: var(--pure-white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.specs-table th {
  background-color: var(--carbon-900);
  color: var(--pure-white);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 16px 20px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.specs-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--carbon-700);
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background-color: var(--slate-50);
}

.spec-prop {
  font-weight: 700;
  color: var(--carbon-900) !important;
  background-color: #FAFBFD;
  width: 22%;
}

.badge-table {
  display: inline-block;
  background-color: var(--slate-100);
  color: var(--carbon-800);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-table.red {
  background-color: var(--brand-red-light);
  color: var(--brand-red);
}

/* Specs Download Action Bar */
.specs-download-bar {
  background: linear-gradient(135deg, var(--carbon-900) 0%, var(--carbon-800) 100%);
  border-radius: 12px;
  padding: 26px 32px;
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.specs-download-bar h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.specs-download-bar p {
  font-size: 0.88rem;
  color: var(--slate-300);
  max-width: 620px;
}

.specs-download-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-outline-white {
  background: transparent;
  color: var(--pure-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--pure-white);
}

/* ==========================================================================
   TRUST & CERTIFICATION SECTION
   ========================================================================== */
.trust-section {
  padding: 60px 0;
  background-color: var(--pure-white);
  border-bottom: 1px solid var(--slate-200);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.trust-card {
  padding: 24px;
  background-color: var(--slate-50);
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--carbon-900);
  margin-bottom: 6px;
}

.trust-card p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* ==========================================================================
   SITE FOOTER (Exact Match to autotex.net Corporate Branding)
   ========================================================================== */
.site-footer {
  background-color: var(--carbon-900);
  color: var(--slate-400);
  font-size: 0.9rem;
}

.footer-top {
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer-bio {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--slate-400);
  margin-bottom: 20px;
}

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 8px;
}

.cert-icon {
  color: #109948;
  font-weight: 900;
}

.footer-cert-badge strong {
  font-size: 0.78rem;
  color: var(--pure-white);
  letter-spacing: 0.04em;
  display: block;
}

.footer-cert-badge small {
  font-size: 0.7rem;
  color: var(--slate-400);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pure-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--brand-red);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--brand-red);
  padding-left: 4px;
}

.footer-address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--slate-300);
}

.footer-contact-lines p {
  margin-bottom: 6px;
}
.footer-contact-lines a {
  color: var(--slate-200);
}
.footer-contact-lines a:hover {
  color: var(--brand-red);
}

.footer-bottom {
  padding: 22px 0;
  background-color: #07090D;
  font-size: 0.8rem;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright strong {
  color: var(--pure-white);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links a:hover {
  color: var(--pure-white);
}

/* ==========================================================================
   MODAL: SAMPLE REQUEST & QUOTE
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--pure-white);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.98);
  transition: all var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.06em;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--carbon-900);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--slate-400);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover {
  color: var(--carbon-900);
}

.modal-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-selection-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px 16px;
}

.preview-swatch-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid var(--pure-white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.modal-selection-preview strong {
  display: block;
  font-size: 0.95rem;
  color: var(--carbon-900);
}

.modal-selection-preview p {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--carbon-700);
}

.form-group input, .form-group select, .form-group textarea {
  border: 1.5px solid var(--slate-200);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: var(--carbon-900);
  background-color: var(--pure-white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.15);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-200);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--slate-300);
  color: var(--carbon-700);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--carbon-900);
  color: var(--pure-white);
  border-left: 4px solid var(--brand-red);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 3000;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */
@media (max-width: 1240px) {
  .brand-text-block {
    display: none;
  }
}

@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-description {
    margin: 0 auto 30px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .eng-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left, .top-divider {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-nav-drawer.open {
    display: block;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background-color: var(--pure-white);
    border-bottom: 2px solid var(--brand-red);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    z-index: 999;
  }
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .mobile-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--carbon-900);
    padding: 8px 0;
    border-bottom: 1px solid var(--slate-100);
  }
  .mobile-link.active {
    color: var(--brand-red);
  }
  .pdf-highlight {
    color: var(--brand-red);
    font-weight: 700;
  }
  .product-selector-bar {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .swatches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .summary-btn-group {
    grid-template-columns: 1fr;
  }
  .specs-download-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .viewport-footer {
    grid-template-columns: 1fr 1fr;
  }
  .stage-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .turntable-scrubber-wrap {
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================================================================
   FULL SCREEN 3D STUDIO PLAY MODE & RAL BADGE STYLES
   ========================================================================== */

.fullscreen-btn {
  background: rgba(237, 28, 36, 0.08) !important;
  color: var(--brand-red) !important;
  border-color: rgba(237, 28, 36, 0.25) !important;
}

.fullscreen-btn:hover {
  background: var(--brand-red) !important;
  color: #FFFFFF !important;
}

/* Fullscreen Stage Elements */
:fullscreen .viewport-stage,
:-webkit-full-screen .viewport-stage,
.viewport-stage:fullscreen,
.viewport-stage:-webkit-full-screen,
.viewport-stage.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 999999 !important;
}

:fullscreen #three-canvas,
:-webkit-full-screen #three-canvas,
.viewport-stage:fullscreen #three-canvas,
.viewport-stage:-webkit-full-screen #three-canvas,
.viewport-stage.is-fullscreen #three-canvas {
  width: 100vw !important;
  height: 100vh !important;
}

:fullscreen .stage-floating-toolbar,
:-webkit-full-screen .stage-floating-toolbar,
.viewport-stage:fullscreen .stage-floating-toolbar,
.viewport-stage:-webkit-full-screen .stage-floating-toolbar,
.viewport-stage.is-fullscreen .stage-floating-toolbar {
  top: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
  z-index: 1000001 !important;
}

:fullscreen .angle-quick-bar,
:-webkit-full-screen .angle-quick-bar,
.viewport-stage:fullscreen .angle-quick-bar,
.viewport-stage:-webkit-full-screen .angle-quick-bar,
.viewport-stage.is-fullscreen .angle-quick-bar {
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22) !important;
  z-index: 1000001 !important;
}

/* Floating Shade Badge in Fullscreen */
.fs-active-shade-badge {
  display: none;
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 50;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  align-items: center;
  gap: 12px;
}

:fullscreen .fs-active-shade-badge,
:-webkit-full-screen .fs-active-shade-badge,
.viewport-stage:fullscreen .fs-active-shade-badge,
.viewport-stage:-webkit-full-screen .fs-active-shade-badge,
.viewport-stage.is-fullscreen .fs-active-shade-badge {
  display: flex !important;
  z-index: 1000001 !important;
}

.fs-active-shade-badge .fs-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.fs-active-shade-badge .fs-name {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.fs-active-shade-badge .fs-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #94A3B8;
  margin-left: 4px;
}

.fs-active-shade-badge .fs-ral-pill {
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* Exit Fullscreen button */
.fs-exit-btn {
  display: none;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1000001;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.fs-exit-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

:fullscreen .fs-exit-btn,
:-webkit-full-screen .fs-exit-btn,
.viewport-stage:fullscreen .fs-exit-btn,
.viewport-stage:-webkit-full-screen .fs-exit-btn,
.viewport-stage.is-fullscreen .fs-exit-btn {
  display: flex !important;
  z-index: 1000001 !important;
}

/* RAL & Specification Pills in Palette */
.ral-badge-pill {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(237, 28, 36, 0.1);
  color: var(--brand-red);
  font-weight: 800;
  font-size: 0.74rem;
  border-radius: 4px;
  border: 1px solid rgba(237, 28, 36, 0.28);
  letter-spacing: 0.04em;
}

.swatch-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
}

.swatch-ral {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--brand-red);
  background: rgba(237, 28, 36, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   CLEAN STUDIO ONLY EMBED MODE (for https://autotex.net/shades/)
   ========================================================================== */
body.studio-only-mode {
  background: #FFFFFF;
  margin: 0;
  padding: 10px 0 24px 0;
  min-height: auto;
  overflow-x: hidden;
}

.studio-standalone-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.studio-standalone-wrapper .studio-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.studio-only-mode .product-selector-bar {
  margin-bottom: 12px;
}

.studio-only-mode .prod-tab {
  padding: 8px 12px;
  gap: 10px;
}

.studio-only-mode .studio-viewport-panel {
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.studio-only-mode .viewport-stage {
  margin: 0;
  min-height: 440px;
  height: 440px;
  border-radius: 12px;
}

.studio-only-mode .stage-single {
  min-height: 100%;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-only-mode .threejs-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Compare Active Candidate Slot Highlights */
.compare-column {
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid transparent;
}
.compare-column:hover {
  background: rgba(0, 0, 0, 0.03);
}
.compare-column.active-compare-slot {
  background: rgba(221, 43, 28, 0.06);
  border-color: rgba(221, 43, 28, 0.45);
  box-shadow: 0 4px 14px rgba(221, 43, 28, 0.12);
}
body.backdrop-dark .compare-column:hover {
  background: rgba(255, 255, 255, 0.04);
}
body.backdrop-dark .compare-column.active-compare-slot {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Floating Inspection Toolbar (Reset, Top/Center/Base Focus, Zoom) */
.stage-floating-toolbar.stage-reset-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
}

body.backdrop-dark .stage-floating-toolbar.stage-reset-bar {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stage-tool-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.stage-tool-divider {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.35);
  margin: 0 4px;
}

body.backdrop-dark .stage-tool-divider {
  background: rgba(255, 255, 255, 0.18);
}

.focus-pill-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--slate-700);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}

.focus-pill-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--brand-red);
}

.focus-pill-btn.active {
  background: var(--brand-red);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(221, 43, 28, 0.3);
}

body.backdrop-dark .focus-pill-btn {
  color: var(--slate-300);
}

body.backdrop-dark .focus-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

body.backdrop-dark .focus-pill-btn.active {
  background: var(--brand-red);
  color: #FFFFFF !important;
}

.zoom-btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--slate-700);
}

.zoom-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--brand-red);
}

body.backdrop-dark .zoom-btn {
  color: var(--slate-300);
}

body.backdrop-dark .zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.zoom-level-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--slate-600);
  min-width: 38px;
  text-align: center;
  user-select: none;
}

body.backdrop-dark .zoom-level-badge {
  color: var(--slate-300);
}
