/* ═══════════════════════════════════════════════════
   STAHLWILLE KONFIGURATOR – REDESIGN
   Topbar + Sidebar + 3D Viewer
   #191919  #4f9983  #fdfdfd
   ═══════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand (unchanged) */
  --dark: #191919;
  --green: #4f9983;
  --green-light: #6ab8a1;
  --green-dim: #54a48e;
  --green-bg: rgba(79, 153, 131, 0.08);
  --green-bg2: rgba(79, 153, 131, 0.14);
  --white: #fdfdfd;
  --gray-50: #f8f8f8;
  --gray-100: #eeeeee;
  --gray-200: #d4d4d4;
  --gray-300: #bbb;
  --gray-400: #9a9a9a;
  --gray-500: #6b6b6b;
  --gray-600: #444;
  --gray-700: #2a2a2a;
  --gray-800: #1a1a1a;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 100px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sh-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --sh-focus: 0 0 0 3px rgba(79, 153, 131, 0.2);

  /* Layout */
  --topbar-h: 48px;
  --sidebar-w: 540px;
  --sidebar-px: 28px;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.2s;
  --dur-md: 0.3s;
  --dur-slow: 0.45s;
}

html,
body {
  height: 100%;
  font-family: var(--font);
  background: var(--dark);
  color: var(--dark);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── APP SHELL ─────────────────────────────────── */
.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

#password-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password-modal {
  background: var(--white);
  padding: 40px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.password-modal h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}

.password-modal p {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}

#password-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 16px;
  font-family: var(--font);
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

#password-input:focus {
  border-color: var(--green);
}

#password-submit {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

#password-submit:hover {
  background: var(--green-dim);
}

/* ─── TOPBAR ────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--dark);
  border-bottom: 1px solid var(--gray-700);
  z-index: 100;
}

.topbar__brand {
  flex: 1;
  display: flex;
  align-items: center;
}

.topbar__logo {
  height: 54px;
  width: auto;
  filter: invert(1);
}

.topbar__center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 2;
  justify-content: center;
}

.topbar__model {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.topbar__sep {
  width: 1px;
  height: 14px;
  background: var(--gray-600);
}

.topbar__config {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 400;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

.topbar__btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: 1px solid var(--gray-600);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.02em;
  font-family: var(--font);
}

.topbar__btn:hover {
  color: var(--white);
  border-color: var(--gray-400);
}

.topbar__btn:active {
  transform: scale(0.97);
}

.topbar__btn--icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── WORKSPACE ─────────────────────────────────── */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}

/* ─── SIDEBAR ───────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 10;
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
}

/* ─── STEP NAVIGATION ───────────────────────────── */
.step-nav {
  flex-shrink: 0;
  padding: 16px var(--sidebar-px) 14px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
}

.step-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.step-pip__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  border: 2px solid var(--gray-200);
  color: var(--gray-400);
  background: var(--white);
  transition: all var(--dur-md) var(--ease-spring);
  position: relative;
}

.step-pip__label {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--dur) var(--ease);
  white-space: nowrap;
  font-family: var(--font);
}

/* Active step */
.step-pip.active .step-pip__dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(79, 153, 131, 0.15);
}

.step-pip.active .step-pip__label {
  color: var(--green);
}

/* Done step */
.step-pip.done .step-pip__dot {
  background: var(--green);
  border-color: var(--green);
  color: transparent;
  font-size: 0;
}

.step-pip.done .step-pip__dot::after {
  content: '\2713';
  position: absolute;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.step-pip.done .step-pip__label {
  color: var(--gray-500);
}

/* Connector line */
.step-pip__line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  margin: 0 6px;
  margin-bottom: 16px;
  transition: background var(--dur-md) var(--ease);
  border-radius: 1px;
}

.step-pip__line.done {
  background: var(--green);
}

/* ─── SIDEBAR BODY ──────────────────────────────── */
.sidebar__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.sidebar__body::-webkit-scrollbar {
  width: 3px;
}

.sidebar__body::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar__body::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 2px;
}

/* ─── PANELS (step content) ─────────────────────── */
.panel {
  position: absolute;
  inset: 0;
  padding: 28px var(--sidebar-px) 24px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  overflow-y: auto;
}

.panel.active {
  position: relative;
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.panel__head {
  margin-bottom: 20px;
}

.panel__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.panel__subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 400;
  line-height: 1.5;
}

.panel__content {
  flex: 1;
}

/* ─── SIDEBAR FOOTER ────────────────────────────── */
.sidebar__footer {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  padding: 14px var(--sidebar-px);
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.nav-btn {
  flex: 1;
  height: 46px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  letter-spacing: 0.01em;
  font-family: var(--font);
}

.nav-btn:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.nav-btn--back {
  background: none;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-500);
}

.nav-btn--back:hover {
  border-color: var(--gray-400);
  color: var(--dark);
}

.nav-btn--back.hidden {
  opacity: 0;
  pointer-events: none;
}

.nav-btn--next {
  background: var(--green);
  border: none;
  color: var(--white);
}

.nav-btn--next:hover {
  background: var(--green-dim);
}

.nav-btn--next.submit {
  flex: 2;
  background: var(--dark);
}

.nav-btn--next.submit:hover {
  background: var(--gray-700);
}

/* ═══ STEP 1: MODEL CARDS ═══════════════════════════ */
#model-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.model-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: center;
}

.model-card:hover .model-card__thumb {
  transform: scale(1.04);
}

.model-card:active .model-card__thumb {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.model-card.active .model-card__label {
  color: var(--green);
}

.model-card.active {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.model-card.active .model-card__thumb {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.model-card__thumb-wrap {
  position: relative;
  width: 100%;
}

.model-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}

/* Coming Soon badge */
.model-card__badge {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-700);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  pointer-events: none;
}

/* Coming Soon card state */
.model-card.coming-soon {
  cursor: default;
  opacity: 0.45;
}

.model-card.coming-soon:hover .model-card__thumb {
  transform: none;
}

.model-card.coming-soon:active .model-card__thumb {
  transform: none;
}

.model-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 0;
}

.model-card__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--dur) var(--ease);
}

.model-card__desc {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ═══ STEP 2: COLOR GRID ═══════════════════════════ */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.color-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 12px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.color-swatch:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.color-swatch:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.color-swatch.active {
  background: var(--green-bg);
  border-color: var(--green);
}

.swatch-dot {
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  position: relative;
}

.color-swatch:hover .swatch-dot {
  transform: scale(1.04);
  box-shadow: var(--sh-md);
}

/* Checkmark on active */
.color-swatch.active .swatch-dot::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.15);
  border-radius: inherit;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Dark checkmark for light colors */
.color-swatch.active[data-dark-check] .swatch-dot::after {
  color: var(--dark);
  text-shadow: none;
  background: rgba(255, 255, 255, 0.2);
}

.swatch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  text-align: center;
}

.swatch-ral {
  font-size: 9px;
  color: var(--gray-400);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-align: center;
}

/* Collapsible color sections */
.color-section {
  border: 1px solid var(--gray-100);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.color-section__toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--dur) var(--ease);
}

.color-section__toggle:hover {
  background: var(--gray-50);
}

.color-section__toggle::-webkit-details-marker {
  display: none;
}

.color-section__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  grid-column: 1;
  grid-row: 1;
}

.color-section__subtitle {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
  grid-column: 1;
  grid-row: 2;
  margin-top: 1px;
}

.color-section__chevron {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--gray-300);
  transition: transform var(--dur-md) var(--ease);
}

.color-section[open] .color-section__chevron {
  transform: rotate(180deg);
}

.color-section__body {
  padding: 4px 16px 16px;
}

/* Custom color picker */
.custom-color-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.custom-color-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.custom-color-btn.active {
  background: var(--green-bg);
  border-color: var(--green);
}

.custom-color-input {
  width: 44px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
}

.custom-color-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.custom-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.custom-color-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

/* ═══ STEP 3: SURFACE CARDS ════════════════════════ */
.material-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: left;
  margin-bottom: 8px;
}

.material-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--sh-sm);
  transform: translateY(-1px);
}

.material-card:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.material-card.active {
  background: var(--green-bg);
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.material-card__preview {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.material-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.material-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.material-desc {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

.material-card__bar {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  overflow: hidden;
  flex-shrink: 0;
}

.material-card__bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  transition: width var(--dur) var(--ease);
}

/* ═══ STEP 4: LOGO ═════════════════════════════════ */
.logo-section {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.logo-section__header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dim);
  cursor: pointer;
  margin-bottom: 10px;
  transition: color var(--dur) var(--ease);
}

.logo-section__header:hover {
  color: var(--green);
}

.logo-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.logo-toggle {
  width: 36px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-sm);
  background: var(--gray-100);
  cursor: pointer;
  font-size: 16px;
  transition: all var(--dur) var(--ease);
}

.logo-toggle.active {
  background: var(--green-bg);
  border-color: var(--green);
  color: var(--green);
}

.logo-controls .logo-slider-row {
  margin-top: 0;
  padding: 0;
  border-top: none;
}

#print-controls-front,
#print-controls-back {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-top: 12px;
}

.pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  cursor: pointer;
}

.pill input {
  display: none;
}

.pill__inner {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-pill);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  font-family: var(--font);
}

.pill:hover .pill__inner {
  border-color: var(--gray-300);
  background: var(--white);
}

.pill:has(input:checked) .pill__inner {
  background: var(--green-bg2);
  border-color: var(--green);
  color: var(--green-dim);
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--r-md);
  padding: 24px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: center;
  color: var(--gray-500);
}

.upload-zone:hover {
  border-color: var(--green);
  background: var(--green-bg);
}

.upload-zone span {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.upload-zone small {
  font-size: 11px;
  color: var(--gray-400);
}

.upload-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--green-bg);
  border: 1.5px solid var(--green);
  border-radius: var(--r-sm);
}

.upload-preview__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dim);
}

.upload-preview__remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1;
}

.upload-preview__remove:hover {
  color: var(--dark);
}

/* ─── Logo color pickers ──────────────────────── */
.logo-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--gray-100);
  margin-top: 12px;
}

.logo-color-row + .logo-color-row {
  margin-top: 0;
}

.logo-color-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.logo-color-row input[type="color"] {
  width: 44px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  background: none;
  flex-shrink: 0;
}

.logo-color-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.logo-color-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

/* ─── Logo scale slider ──────────────────────── */
.logo-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-100);
  margin-top: 12px;
}

.logo-slider-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.logo-slider-row__control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-slider-row__control input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.logo-slider-row__control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  border: 2px solid var(--white);
  box-shadow: var(--sh-sm);
}

.logo-slider-row__val {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  font-family: var(--font-mono);
  min-width: 32px;
  text-align: right;
}

/* ═══ STEP 5: PRINT GRID ═════════════════════════ */
.print-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.print-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 14px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: left;
}

.print-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--sh-sm);
}

.print-card:active {
  transform: scale(0.98);
  transition-duration: 0.08s;
}

.print-card.active {
  background: var(--green-bg);
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.print-card__img {
  width: 80px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.print-card__placeholder {
  width: 80px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  color: var(--gray-300);
  font-size: 18px;
  flex-shrink: 0;
}

.print-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.print-card__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.print-card__desc {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 500;
}

/* ═══ STEP 6: INLAY GRID ═════════════════════════ */
.inlay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.inlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: center;
}

.inlay-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--sh-sm);
}

.inlay-card:active {
  transform: scale(0.97);
  transition-duration: 0.08s;
}

.inlay-card.active {
  background: var(--green-bg);
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.inlay-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.inlay-card__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--r-sm);
  color: var(--gray-400);
  font-size: 24px;
}

.inlay-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

/* ═══ STEP 7: CONTACT FORM ════════════════════════ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qty-row__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  min-width: 48px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qty-control__btn {
  width: 36px;
  height: 34px;
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
  font-family: var(--font);
}

.qty-control__btn:hover {
  background: var(--gray-100);
}

.qty-control__input {
  width: 56px;
  height: 34px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  background: var(--white);
  outline: none;
  -moz-appearance: textfield;
  font-family: var(--font);
}

.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.qty-row__note {
  font-size: 11px;
  color: var(--gray-400);
}

.form-divider {
  height: 1px;
  background: var(--gray-100);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--dark);
  font-family: var(--font);
  outline: none;
  transition: all var(--dur) var(--ease);
}

.form-input::placeholder {
  color: var(--gray-300);
}

.form-input:focus {
  border-color: var(--green);
  background: var(--white);
  box-shadow: var(--sh-focus);
}

.form-input.error {
  border-color: #d44;
  background: #fff5f5;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(221, 68, 68, 0.1);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-textarea {
  resize: none;
  min-height: 52px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form-check input {
  display: none;
}

.form-check__box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xs);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

.form-check:has(input:checked) .form-check__box {
  background: var(--green);
  border-color: var(--green);
}

.form-check:has(input:checked) .form-check__box::after {
  content: '\2713';
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.form-check__text {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.link-accent {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.link-accent:hover {
  text-decoration: underline;
}

/* ═══ STEP 8: SUMMARY ═════════════════════════════ */
.summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row__key {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.summary-row__val {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-row__swatch {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* ═══ 3D VIEWER ═══════════════════════════════════ */
.viewer {
  flex: 1;
  position: relative;
  background: radial-gradient(ellipse at 50% 45%, #161616 0%, #0e0e0e 50%, #080808 100%);
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#canvas-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.viewer__controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viewer-ctrl {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--dur) var(--ease);
}

.viewer-ctrl:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.viewer-ctrl.active {
  color: var(--green);
  border-color: var(--green);
  background: rgba(79, 153, 131, 0.12);
}

/* logo-view-nav removed — replaced by logo-section__header click */

/* ─── LOADER ──────────────────────────────────── */
.loader-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader__ring {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader__text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ─── DEBUG PANEL ─────────────────────────────── */
.debug-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 80;
  width: 280px;
  max-height: calc(100% - 24px);
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  color: #ddd;
  font-size: 11.5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.debug-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.debug-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.debug-close:hover {
  color: #eee;
}

.debug-panel__body {
  overflow-y: auto;
  padding: 6px 0;
  flex: 1;
}

.debug-section {
  padding: 6px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.debug-section:last-child {
  border-bottom: none;
}

.debug-section__title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 8px;
  margin-top: 4px;
}

.debug-row {
  display: grid;
  grid-template-columns: 100px 1fr 38px;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.debug-row label {
  font-size: 10.5px;
  color: #999;
  white-space: nowrap;
}

.debug-row input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

.debug-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
}

.debug-row input[type=color] {
  width: 28px;
  height: 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.debug-val {
  font-size: 9.5px;
  color: var(--green);
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.debug-num {
  width: 72px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--green);
  font-size: 11px;
  font-family: var(--font-mono);
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}

.debug-num:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.1);
}

.debug-num::-webkit-inner-spin-button,
.debug-num::-webkit-outer-spin-button {
  opacity: 1;
}

.debug-mat-block {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  margin-bottom: 6px;
}

.debug-mat-block__name {
  font-size: 9px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* ─── TOAST ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(79, 153, 131, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 300;
  white-space: nowrap;
  font-family: var(--font);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Drawer annotation is now a 3D sprite – no CSS needed */