/* ═══════════════════════════════════════════════════════════════
   TwoComms Custom Print Configurator — v2 Studio
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. Design Tokens ──────────────────────────────────────── */
html,
html body,
main {
  background: #03060c !important;
}

.cp-page {
  --cp-bg: #09080a;
  --cp-surface: rgba(17, 16, 18, 0.9);
  --cp-surface-strong: rgba(23, 21, 24, 0.96);
  --cp-card: rgba(20, 19, 22, 0.9);
  --cp-card-soft: rgba(31, 29, 34, 0.86);
  --cp-border: rgba(216, 175, 104, 0.18);
  --cp-border-strong: rgba(236, 197, 127, 0.42);
  --cp-text: #f6efe3;
  --cp-muted: rgba(246, 239, 227, 0.72);
  --cp-soft: rgba(246, 239, 227, 0.52);
  --cp-accent: #d7a450;
  --cp-accent-soft: #f2d39b;
  --cp-accent-deep: #9c6121;
  --cp-success: #9cce8e;
  --cp-danger: #ef9a88;
  --cp-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  --cp-transition-fast: 180ms cubic-bezier(0.2, 0, 0, 1);
  --cp-transition-enter: 300ms cubic-bezier(0.2, 0, 0, 1);
  --cp-transition-large: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  min-height: 100vh;
  padding-bottom: 7rem;
  background: #03060c;
  color: var(--cp-text);
}

/* ── 1. Shell & Card Foundation ────────────────────────────── */
.cp-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
}

.cp-hero,
.cp-card,
.cp-stage-card,
.cp-capsule {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cp-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(215, 164, 80, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(11, 10, 13, 0.97), rgba(18, 17, 20, 0.95));
  box-shadow: var(--cp-shadow);
}

.cp-hero::before,
.cp-card::before,
.cp-stage-card::before,
.cp-capsule::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.08;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 80%);
}

/* ── 2. Hero ───────────────────────────────────────────────── */
.cp-hero {
  --cp-hero-scroll: 0;
  z-index: 1;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.45rem, 3vw, 2.7rem);
  min-height: clamp(460px, calc(100svh - 112px), 680px);
  background:
    radial-gradient(circle at 72% 24%, rgba(242, 211, 155, 0.15), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(215, 164, 80, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(9, 8, 10, 0.96), rgba(18, 16, 20, 0.94) 52%, rgba(11, 10, 13, 0.96));
  border-color: rgba(236, 197, 127, 0.2);
  overflow: hidden;
}

.cp-hero::before,
.cp-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cp-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 86%);
}

.cp-hero::after {
  inset: auto 8% 0 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 211, 155, 0.4), transparent);
  opacity: 0.7;
}

.cp-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  width: min(100%, 42rem);
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 3.4rem) 0 1rem;
}

.cp-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: min(100%, 28rem);
}

.cp-hero-brandmark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(242, 211, 155, 0.24), rgba(156, 97, 33, 0.14));
  border: 1px solid rgba(242, 211, 155, 0.3);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cp-hero-brandmark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
}

.cp-hero-brandcopy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.cp-hero-brandcopy strong {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff8ed;
  overflow-wrap: anywhere;
}

.cp-hero-brandcopy span {
  color: var(--cp-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cp-hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(242, 211, 155, 0.06);
  border: 1px solid rgba(242, 211, 155, 0.28);
  color: var(--cp-accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cp-hero-title {
  margin: 0;
  max-width: 8.8ch;
  font-size: clamp(2.95rem, 6.2vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: #ffffff;
  text-wrap: balance;
  text-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.cp-hero-desc {
  margin: 0;
  max-width: 34rem;
  color: var(--cp-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.cp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.4rem;
}

.cp-hero-scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--cp-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cp-hero-scrollcue-line {
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, rgba(242, 211, 155, 0.18), rgba(242, 211, 155, 0.8));
  transform-origin: left center;
  animation: cp-hero-scrollcue 2.8s ease-in-out infinite;
}

/* ── 2a. Hero Animations (Entrance & Wow) ──────────────────── */

.cp-animate-in {
  opacity: 0;
  transform: translateY(20px);
  animation: cp-hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cp-delay-1 { animation-delay: 0.1s; }
.cp-delay-2 { animation-delay: 0.2s; }
.cp-delay-3 { animation-delay: 0.3s; }
.cp-delay-4 { animation-delay: 0.4s; }
.cp-delay-5 { animation-delay: 0.5s; }
.cp-delay-6 { animation-delay: 0.6s; }

@keyframes cp-hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cp-hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: cp-hero-art-fade 1.2s ease-out forwards;
}

@keyframes cp-hero-art-fade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.cp-hero-beam,
.cp-hero-orb,
.cp-hero-mark,
.cp-hero-silhouette-shell {
  position: absolute;
}

.cp-hero-beam {
  top: -12%;
  right: -6%;
  width: min(48vw, 560px);
  height: 140%;
  background:
    radial-gradient(circle at 36% 28%, rgba(242, 211, 155, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(242, 211, 155, 0.09), transparent 68%);
  opacity: calc(0.85 - var(--cp-hero-scroll) * 0.24);
  transform: translate3d(calc(var(--cp-hero-scroll) * 18px), calc(var(--cp-hero-scroll) * -22px), 0);
  filter: blur(2px);
  animation: cp-hero-pulse-beam 8s ease-in-out infinite alternate;
}

@keyframes cp-hero-pulse-beam {
  0% { transform: translate3d(0,0,0) scale(1); opacity: 0.8; }
  100% { transform: translate3d(2%, -4%, 0) scale(1.05); opacity: 0.95; }
}

.cp-hero-orb {
  top: clamp(16%, 20vh, 24%);
  right: clamp(12%, 16vw, 20%);
  width: clamp(120px, 12vw, 180px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.3), rgba(242, 211, 155, 0.22) 34%, rgba(242, 211, 155, 0.06) 58%, transparent 72%);
  opacity: calc(0.95 - var(--cp-hero-scroll) * 0.24);
  transform: translate3d(0, calc(var(--cp-hero-scroll) * -28px), 0);
  filter: blur(1px);
  animation: cp-hero-float-orb 12s ease-in-out infinite alternate;
}

@keyframes cp-hero-float-orb {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(-15px, 20px, 0) rotate(15deg); }
}

.cp-hero-mark {
  top: clamp(20%, 22vh, 27%);
  right: clamp(12%, 15vw, 19%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(86px, 10vw, 136px);
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.38), transparent 34%),
    linear-gradient(145deg, rgba(242, 211, 155, 0.35), rgba(156, 97, 33, 0.18));
  border: 1px solid rgba(242, 211, 155, 0.25);
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.3),
    0 0 0 10px rgba(242, 211, 155, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: calc(0.95 - var(--cp-hero-scroll) * 0.26);
  transform: translate3d(0, calc(var(--cp-hero-scroll) * -22px), 0);
  animation: cp-hero-float-mark 9s ease-in-out infinite alternate;
}

@keyframes cp-hero-float-mark {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  100% { transform: translate3d(8px, -12px, 0) rotate(-4deg); }
}

.cp-hero-mark img {
  width: 56%;
  height: 56%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.3));
}

.cp-hero-silhouette-shell {
  right: clamp(-1rem, -2vw, 1rem);
  bottom: clamp(-4.5rem, -7vh, -1rem);
  width: min(42vw, 430px);
  opacity: calc(0.25 - var(--cp-hero-scroll) * 0.08);
  animation: cp-hero-float-sil 14s ease-in-out infinite alternate;
}

@keyframes cp-hero-float-sil {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-10px, 10px, 0); }
}

.cp-hero-silhouette {
  --cp-garment-fill: linear-gradient(180deg, rgba(94, 90, 100, 0.75), rgba(18, 17, 20, 0.28) 92%);
  width: 82%;
  height: 80%;
  transform: translate3d(0, calc(var(--cp-hero-scroll) * -34px), 0) scale(1.06);
  filter: saturate(0.8) drop-shadow(0 32px 42px rgba(0, 0, 0, 0.3));
}

.cp-hero-silhouette .cp-garment-body,
.cp-hero-silhouette .cp-garment-sleeve,
.cp-hero-silhouette .cp-garment-hood {
  border-color: rgba(255, 236, 204, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Base modern button */
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms cubic-bezier(0.16, 1, 0.3, 1), color 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.cp-btn svg {
  width: 18px;
  height: 18px;
  z-index: 1;
}

.cp-btn span:not(.cp-btn-shimmer) {
  z-index: 1;
}

.cp-btn--primary {
  background: linear-gradient(135deg, var(--cp-accent-soft), var(--cp-accent));
  color: #171317;
  border-color: rgba(242, 211, 155, 0.35);
  box-shadow: 0 18px 42px rgba(215, 164, 80, 0.32);
}

.cp-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(215, 164, 80, 0.45);
}

/* Shimmer animation for primary button */
.cp-btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: cp-btn-shimmer 3.5s infinite;
  z-index: 0;
}

@keyframes cp-btn-shimmer {
  0% { left: -100%; }
  25% { left: 200%; }
  100% { left: 200%; }
}

.cp-btn--telegram {
  background: rgba(42, 171, 238, 0.08);
  color: var(--cp-text);
  border-color: rgba(42, 171, 238, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cp-btn--telegram:hover {
  background: rgba(42, 171, 238, 0.18);
  border-color: rgba(42, 171, 238, 0.45);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(42, 171, 238, 0.15);
}

.cp-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 211, 155, 0.25);
}

@keyframes cp-hero-scrollcue {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.95;
  }
}

@media (max-width: 1080px) {
  .cp-hero {
    min-height: clamp(440px, 68svh, 620px);
  }

  .cp-hero-title {
    font-size: clamp(2.6rem, 7.5vw, 4.8rem);
  }

  .cp-hero-silhouette-shell {
    width: min(44vw, 360px);
    opacity: 0.22;
  }
}

@media (max-width: 900px) {
  .cp-hero {
    align-items: flex-start;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .cp-hero-copy {
    width: min(100%, 31rem);
    padding: 1rem 0 2rem;
  }

  .cp-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-hero-title {
    max-width: 8.2ch;
    font-size: clamp(2.35rem, 11vw, 3.65rem);
  }

  .cp-hero-beam {
    top: -4%;
    right: -30%;
    width: 90%;
    opacity: 0.62;
  }

  .cp-hero-orb {
    top: 10%;
    right: 8%;
    width: 100px;
  }

  .cp-hero-mark {
    top: 5.75rem;
    right: 1rem;
    width: 78px;
  }

  .cp-hero-silhouette-shell {
    right: -5rem;
    bottom: -2rem;
    width: 250px;
    opacity: 0.15;
  }
}

@media (max-width: 560px) {
  .cp-hero-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.7rem;
    width: 100%;
    max-width: min(100%, 21rem);
  }

  .cp-hero-brandmark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .cp-hero-brandmark img {
    width: 28px;
    height: 28px;
  }

  .cp-hero-brandcopy span {
    font-size: 0.82rem;
  }

  .cp-hero-title {
    max-width: 7.3ch;
    font-size: clamp(2.1rem, 10.5vw, 3.2rem);
  }

  .cp-hero-desc {
    max-width: 21rem;
  }

  .cp-hero-scrollcue {
    font-size: 0.74rem;
  }

  .cp-hero-scrollcue-line {
    width: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hero {
    --cp-hero-scroll: 0 !important;
  }
  
  .cp-animate-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .cp-hero-art {
    animation: none;
    opacity: 1;
  }

  .cp-hero-beam,
  .cp-hero-orb,
  .cp-hero-mark,
  .cp-hero-silhouette,
  .cp-hero-silhouette-shell,
  .cp-btn-shimmer,
  .cp-hero-scrollcue-line {
    transform: none !important;
    animation: none !important;
  }
}

/* ── 3. Buttons & Links ────────────────────────────────────── */
.cp-link,
.cp-submit-button,
.cp-secondary-button,
.cp-mobile-bar-toggle,
.cp-mobile-bar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--cp-transition-fast), border-color var(--cp-transition-fast), background var(--cp-transition-fast), color var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-link--primary,
.cp-submit-button,
.cp-mobile-bar-action {
  background: linear-gradient(135deg, var(--cp-accent-soft), var(--cp-accent));
  color: #141214;
  box-shadow: 0 18px 38px rgba(215, 164, 80, 0.22);
}

.cp-link--ghost,
.cp-secondary-button,
.cp-mobile-bar-toggle {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cp-text);
}

.cp-link:hover,
.cp-submit-button:hover,
.cp-secondary-button:hover,
.cp-mobile-bar-toggle:hover,
.cp-mobile-bar-action:hover {
  transform: translateY(-1px);
}

/* ── 4. Configurator Layout ────────────────────────────────── */
.cp-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  background: #03060c;
}

/* ── 4a. Build Strip ───────────────────────────────────────── */
.cp-build-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
  position: relative;
}

.cp-build-strip::-webkit-scrollbar {
  display: none;
}

.cp-build-chip {
  display: grid;
  flex: 0 0 168px;
  gap: 0.2rem;
  padding: 0.78rem 0.9rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cp-text);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), opacity var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-build-chip small {
  color: var(--cp-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.cp-build-chip strong {
  font-size: 0.92rem;
}

/* Current step — gold accent */
.cp-build-chip.is-active {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.12);
  box-shadow: 0 0 0 1px var(--cp-accent);
}

/* Done step — subtle green check */
.cp-build-chip.is-done:not(.is-active) {
  border-color: rgba(156, 206, 142, 0.25);
  background: rgba(156, 206, 142, 0.06);
}

.cp-build-chip.is-done::before {
  content: "✓";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cp-success);
  color: #141214;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Pending step — dimmed, not clickable */
.cp-build-chip.is-pending {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.cp-build-chip:hover:not(.is-pending) {
  border-color: var(--cp-border-strong);
  background: rgba(242, 211, 155, 0.08);
}

/* ── 4b. Workbench — BALANCED 50/50 desktop layout ─────────── */
.cp-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.cp-stage-card,
.cp-card,
.cp-capsule {
  padding: 1.1rem;
}

.cp-stage-card {
  position: sticky;
  top: 1rem;
  transition: opacity var(--cp-transition-large), transform var(--cp-transition-large);
}

/* Hidden state for Stage before product is chosen */
.cp-stage-card.is-hidden {
  opacity: 0;
  transform: translateX(-40px);
  pointer-events: none;
  position: absolute;
}

/* Entrance animation */
.cp-stage-card.is-entering {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: sticky;
}

/* Full-width mode for Lobby step (no Stage visible) */
.cp-workbench.is-lobby-mode {
  grid-template-columns: minmax(0, 1fr);
}

.cp-workbench.is-lobby-mode .cp-stage-card {
  display: none;
}

.cp-panel-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

/* ── 5. Step Transition System ─────────────────────────────── */
.cp-step-viewport {
  position: relative;
  overflow: hidden;
}

.cp-card--step {
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity var(--cp-transition-enter), transform var(--cp-transition-enter);
  visibility: hidden;
}

.cp-card--step.is-current {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
  visibility: visible;
}

/* When exiting to the left (going forward) */
.cp-card--step.is-exiting-left {
  transform: translateX(-40px);
  opacity: 0;
}

/* When exiting to the right (going backward) */
.cp-card--step.is-exiting-right {
  transform: translateX(40px);
  opacity: 0;
}

/* ── 6. Card Heads & Typography ────────────────────────────── */
.cp-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}

.cp-card h2,
.cp-stage-card h2 {
  margin: 0.3rem 0 0;
  font-size: 1.42rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

/* ── 7. Stage Card ─────────────────────────────────────────── */
.cp-stage-view-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.cp-stage-view-switch button,
.cp-capsule-toggle {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--cp-muted);
  cursor: pointer;
  transition: background var(--cp-transition-fast), color var(--cp-transition-fast);
}

.cp-stage-view-switch button.is-active,
.cp-stage-view-switch button:hover,
.cp-capsule-toggle:hover {
  background: rgba(242, 211, 155, 0.1);
  color: var(--cp-text);
}

.cp-stage-frame {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 1rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at center, rgba(242, 211, 155, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.cp-stage-aura {
  position: absolute;
  inset: 10% 16%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 164, 80, 0.2), rgba(215, 164, 80, 0) 70%);
  filter: blur(18px);
}

.cp-garment-shell {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 0.9;
  display: grid;
  place-items: center;
}

/* ── 7a. Garment CSS Silhouette ────────────────────────────── */
.cp-garment {
  position: relative;
  width: 74%;
  height: 72%;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42));
  /* Cross-fade transitions */
  transition: opacity 250ms ease, transform 250ms ease, filter 250ms ease;
}

.cp-garment.is-transitioning {
  opacity: 0;
  transform: scale(0.97);
}

.cp-garment-body,
.cp-garment-sleeve,
.cp-garment-hood {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(250, 244, 235, 0.14), rgba(255, 255, 255, 0.02)),
    var(--cp-garment-fill, linear-gradient(180deg, #49454e, #2d2b30));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background var(--cp-transition-enter);
}

.cp-garment-body {
  inset: 16% 18% 0;
  border-radius: 28px 28px 34px 34px;
}

.cp-garment-sleeve {
  top: 24%;
  width: 26%;
  height: 44%;
  border-radius: 26px;
}

.cp-garment-sleeve--left {
  left: 2%;
  transform: rotate(24deg);
}

.cp-garment-sleeve--right {
  right: 2%;
  transform: rotate(-24deg);
}

.cp-garment-hood {
  top: 0;
  left: 28%;
  width: 44%;
  height: 24%;
  border-radius: 48% 48% 42% 42%;
}

.cp-garment--tshirt .cp-garment-hood,
.cp-garment--longsleeve .cp-garment-hood {
  display: none;
}

.cp-garment--tshirt .cp-garment-body,
.cp-garment--longsleeve .cp-garment-body {
  inset: 12% 20% 0;
}

.cp-garment--tshirt .cp-garment-sleeve {
  top: 14%;
  height: 24%;
}

.cp-garment--longsleeve .cp-garment-sleeve {
  top: 18%;
  height: 48%;
}

.cp-garment--customer_garment .cp-garment-body {
  inset: 18% 18% 8%;
  border-style: dashed;
  border-radius: 30px;
}

.cp-garment--customer_garment .cp-garment-hood {
  display: none;
}

/* ── 7b. Zone Pins & Pulse ─────────────────────────────────── */
.cp-zone-layer {
  position: absolute;
  inset: 0;
}

.cp-zone-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 12, 15, 0.72);
  color: var(--cp-muted);
  font-size: 0.82rem;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), color var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-zone-pin.is-active {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.2);
  color: var(--cp-text);
  animation: zone-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes zone-pulse {
  from { box-shadow: 0 0 0 0 rgba(215, 164, 80, 0.3); }
  to { box-shadow: 0 0 0 8px rgba(215, 164, 80, 0); }
}

.cp-zone-pin[hidden] {
  display: none;
}

/* ── 7c. Stage Meta & Toolbar ──────────────────────────────── */
.cp-stage-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.cp-stage-copy {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.cp-stage-toolbar {
  justify-content: space-between;
  margin-top: 0.95rem;
}

.cp-inline-price-summary {
  font-size: 0.94rem;
}

/* ── 8. Option Cards & Product Cards (Premium States) ──────── */
.cp-option-grid,
.cp-product-grid,
.cp-inline-fields,
.cp-config-cluster {
  display: grid;
  gap: 0.8rem;
}

.cp-option-grid--three,
.cp-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-option-grid--two,
.cp-inline-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 4-col grid for lobby product selection */
.cp-option-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-inline-fields--compact {
  grid-template-columns: minmax(160px, 220px) minmax(180px, 1fr);
}

.cp-option-card,
.cp-product-card {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0.92rem 0.96rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  color: var(--cp-text);
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), transform var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-option-card small,
.cp-product-card small {
  color: var(--cp-soft);
}

.cp-option-card span,
.cp-product-card span {
  color: var(--cp-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Hover — lift effect */
.cp-option-card:hover,
.cp-product-card:hover {
  border-color: rgba(255, 214, 138, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Selected — Premium golden state with checkmark badge */
.cp-option-card.is-active,
.cp-product-card.is-active {
  border-color: var(--cp-accent);
  background: linear-gradient(180deg, rgba(215, 164, 80, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px var(--cp-accent), 0 8px 24px rgba(215, 164, 80, 0.12);
  transform: translateY(-2px);
}

/* ✓ Badge for selected cards */
.cp-option-card.is-active::after,
.cp-product-card.is-active::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cp-accent);
  color: #141214;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  animation: badge-pop 200ms cubic-bezier(0.2, 0, 0, 1);
  z-index: 2;
}

@keyframes badge-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cp-product-card strong {
  font-size: 1.03rem;
}

/* ── 9. Config Blocks, Subheads, Chips ─────────────────────── */
.cp-config-block,
.cp-upload-panel,
.cp-inline-note,
.cp-review-box,
.cp-status-box {
  position: relative;
  z-index: 1;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
}

.cp-subhead,
.cp-inline-note-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.22rem;
  margin-bottom: 0.8rem;
}

.cp-mini-chip-row,
.cp-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.cp-mini-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cp-muted);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), color var(--cp-transition-fast), transform var(--cp-transition-fast);
}

.cp-mini-chip:hover {
  border-color: rgba(255, 214, 138, 0.18);
  transform: translateY(-1px);
}

.cp-mini-chip.is-active {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.16);
  color: var(--cp-text);
  box-shadow: 0 0 0 1px var(--cp-accent);
}

/* Swatch buttons */
.cp-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--cp-muted);
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), color var(--cp-transition-fast), transform var(--cp-transition-fast);
}

.cp-swatch:hover {
  transform: translateY(-1px);
}

.cp-swatch.is-active {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.16);
  color: var(--cp-text);
  box-shadow: 0 0 0 1px var(--cp-accent);
}

.cp-swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── 10. Form Fields ───────────────────────────────────────── */
.cp-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.42rem;
}

.cp-field span {
  color: var(--cp-muted);
  font-size: 0.92rem;
}

.cp-field input,
.cp-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.88rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 10, 13, 0.7);
  color: var(--cp-text);
  transition: border-color var(--cp-transition-fast);
}

.cp-field input:focus,
.cp-field textarea:focus {
  border-color: var(--cp-accent);
  outline: none;
}

.cp-field textarea {
  min-height: 110px;
  resize: vertical;
}

.cp-field--toggle {
  align-content: end;
}

.cp-field--toggle input {
  width: 22px;
  min-height: 22px;
  padding: 0;
}

.cp-upload-field {
  display: grid;
  gap: 0.45rem;
}

.cp-upload-field input {
  padding: 0.92rem;
  border-radius: 18px;
  border: 1px dashed rgba(242, 211, 155, 0.36);
  background: rgba(17, 16, 20, 0.78);
  color: var(--cp-text);
}

.cp-file-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.cp-file-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.72rem 0.82rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

/* ── 11. Step Actions ──────────────────────────────────────── */
.cp-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── 12. Review & Status ───────────────────────────────────── */
.cp-review-box ul,
.cp-capsule-breakdown ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cp-status-box.is-error {
  border-color: rgba(239, 154, 136, 0.36);
  background: rgba(95, 26, 18, 0.24);
  color: #ffd1c5;
}

.cp-status-box.is-success {
  border-color: rgba(156, 206, 142, 0.35);
  background: rgba(36, 68, 34, 0.26);
  color: #d8f7cf;
}

/* ── 13. Price Capsule ─────────────────────────────────────── */
.cp-capsule {
  display: grid;
  gap: 0.95rem;
}

.cp-capsule-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.cp-capsule-price {
  display: grid;
  gap: 0.25rem;
}

.cp-capsule-price span {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.cp-capsule-breakdown {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
}

/* ── 14. Mobile Bar ────────────────────────────────────────── */
.cp-mobile-bar {
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 40;
  display: none;
  gap: 0.7rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cp-mobile-bar-toggle,
.cp-mobile-bar-action {
  min-height: 56px;
}

.cp-mobile-bar-toggle {
  justify-content: flex-start;
  text-align: left;
}

.cp-mobile-bar-toggle span {
  display: block;
  font-weight: 700;
}

.cp-mobile-bar-toggle small {
  color: var(--cp-soft);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* ── Desktop medium (< 1160px) ─────────────────────────────── */
@media (max-width: 1160px) {
  .cp-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-stage-frame {
    min-height: 360px;
  }

  .cp-stage-card {
    position: relative;
    top: auto;
  }
}

/* ── Tablet (< 920px) ──────────────────────────────────────── */
@media (max-width: 920px) {
  .cp-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-option-grid--three,
  .cp-option-grid--four,
  .cp-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-option-grid--two,
  .cp-inline-fields,
  .cp-inline-fields--compact,
  .cp-stage-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-title {
    max-width: none;
  }
}

/* ── Mobile (< 720px) ──────────────────────────────────────── */
@media (max-width: 720px) {
  .cp-page {
    padding-bottom: 8.4rem;
  }

  /* Sticky Build Strip on mobile */
  .cp-build-strip {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--cp-bg);
    padding: 0.6rem 0;
    /* Right fade for scroll indicator */
    mask-image: linear-gradient(90deg, black 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, black 85%, transparent);
  }

  /* Compact stage on mobile */
  .cp-stage-frame {
    min-height: 160px;
    max-height: 220px;
    padding: 0.5rem;
  }

  .cp-garment-shell {
    width: min(80%, 180px);
  }

  .cp-stage-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-stage-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  /* Capsule as overlay */
  .cp-capsule {
    position: fixed;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 5.6rem;
    z-index: 39;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity var(--cp-transition-fast), transform var(--cp-transition-fast);
  }

  .cp-page[data-mobile-expanded="true"] .cp-capsule {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .cp-mobile-bar {
    display: grid;
  }

  .cp-step-actions {
    flex-direction: column;
  }

  .cp-step-actions .cp-link,
  .cp-step-actions .cp-secondary-button {
    width: 100%;
  }

  .cp-option-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Small mobile (< 480px) ────────────────────────────────── */
@media (max-width: 480px) {
  .cp-option-grid--three,
  .cp-product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-build-chip {
    flex: 0 0 140px;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cp-link,
  .cp-submit-button,
  .cp-secondary-button,
  .cp-mobile-bar-toggle,
  .cp-mobile-bar-action,
  .cp-stage-view-switch button,
  .cp-capsule,
  .cp-garment,
  .cp-garment-body,
  .cp-garment-sleeve,
  .cp-garment-hood,
  .cp-option-card,
  .cp-product-card,
  .cp-mini-chip,
  .cp-swatch,
  .cp-build-chip,
  .cp-card--step,
  .cp-stage-card,
  .cp-zone-pin {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   V2 WATERFALL + STAGE RECEIPT + PREMIUM ADDONS
   ═══════════════════════════════════════════════════════════════ */

/* ── V2.1 Waterfall container ──────────────────────────────── */
.cp-waterfall {
  display: block;
}

.cp-step-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
}

.cp-step {
  position: relative;
  border: 1px solid var(--cp-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(215, 164, 80, 0.05), transparent 30%),
    linear-gradient(180deg, rgba(11, 10, 13, 0.92), rgba(18, 17, 20, 0.88));
  box-shadow: var(--cp-shadow);
  overflow: hidden;
  transition: border-color var(--cp-transition-fast), transform var(--cp-transition-enter);
}

.cp-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.08;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 80%);
}

.cp-step > * {
  position: relative;
  z-index: 1;
}

/* Summary (collapsed) row — shown when step is done or pending */
.cp-step-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1.05rem;
}

.cp-step-summary-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cp-muted);
  font-size: 0.86rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cp-step-summary-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.cp-step-summary-text small {
  color: var(--cp-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.cp-step-summary-text strong {
  color: var(--cp-text);
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-step-summary-edit {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cp-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), color var(--cp-transition-fast);
}

.cp-step-summary-edit:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent-soft);
  background: rgba(215, 164, 80, 0.08);
}

/* Body (expanded) — shown when step is active */
.cp-step-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0 1.15rem 1.15rem;
  animation: step-expand var(--cp-transition-enter);
}

@keyframes step-expand {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cp-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding-top: 0.35rem;
}

.cp-step-head h2 {
  margin: 0.25rem 0 0;
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.cp-step-head p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* State: active (expanded body visible, no summary badge) */
@keyframes slideInFromRightStep {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.cp-step.is-active {
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 1px rgba(215, 164, 80, 0.4), 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: slideInFromRightStep 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.cp-step.is-active .cp-step-summary {
  display: none;
}

.cp-step.is-active .cp-step-body {
  padding-top: 1.1rem;
}

/* State: done (collapsed, green tint on num badge) */
.cp-step.is-done {
  border-color: rgba(156, 206, 142, 0.22);
  background:
    radial-gradient(circle at top right, rgba(156, 206, 142, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(11, 10, 13, 0.9), rgba(18, 17, 20, 0.85));
}

.cp-step.is-done .cp-step-body {
  display: none;
}

.cp-step.is-done .cp-step-summary-num {
  background: rgba(156, 206, 142, 0.18);
  border-color: rgba(156, 206, 142, 0.5);
  color: #d3f0c6;
}

.cp-step.is-done .cp-step-summary-num::after {
  content: "✓";
  font-size: 0.78rem;
  font-weight: 800;
  color: #d3f0c6;
  position: absolute;
  margin-left: 2px;
}

.cp-step.is-done .cp-step-summary-num {
  font-size: 0;
}

.cp-step.is-done .cp-step-summary {
  cursor: default;
}

/* State: pending (collapsed, dimmed) */
.cp-step.is-pending {
  opacity: 0.54;
  pointer-events: none;
}

.cp-step.is-pending .cp-step-body {
  display: none;
}

.cp-step.is-pending .cp-step-summary-edit {
  visibility: hidden;
}

/* Tertiary button */
.cp-tertiary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--cp-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), color var(--cp-transition-fast), background var(--cp-transition-fast);
}

.cp-tertiary-button:hover {
  border-color: var(--cp-accent);
  color: var(--cp-accent-soft);
  background: rgba(215, 164, 80, 0.05);
}

.cp-tertiary-button--center {
  margin: 0.6rem auto 0;
  display: flex;
}

.cp-secondary-button--ghost {
  border-style: dashed;
}

/* ── V2.2 Stage Receipt (замість capsule) ──────────────────── */
.cp-stage-receipt {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(215, 164, 80, 0.3);
  background:
    radial-gradient(circle at top right, rgba(215, 164, 80, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(18, 16, 14, 0.95), rgba(12, 11, 14, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.7rem;
}

.cp-stage-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.cp-stage-receipt-head small {
  color: var(--cp-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.cp-stage-receipt-head strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.cp-stage-receipt-head strong small {
  display: inline;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cp-muted);
}

.cp-stage-receipt-mode {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(215, 164, 80, 0.12);
  border: 1px solid rgba(215, 164, 80, 0.3);
  color: var(--cp-accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cp-stage-receipt-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.cp-stage-receipt-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--cp-muted);
}

.cp-stage-receipt-list li:last-child {
  border-bottom: 0;
}

.cp-stage-receipt-list li strong {
  color: var(--cp-text);
  font-weight: 600;
  font-size: 0.94rem;
}

.cp-stage-receipt-list li.is-empty {
  display: block;
  text-align: center;
  color: var(--cp-soft);
  font-style: italic;
  border-bottom: 0;
}

.cp-stage-receipt-foot {
  padding-top: 0.3rem;
  color: var(--cp-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── V2.3 Addon Card (premium) ─────────────────────────────── */
.cp-addon-grid {
  display: grid;
  gap: 0.8rem;
}

.cp-addon-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cp-text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), transform var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-addon-card:hover {
  border-color: rgba(255, 214, 138, 0.28);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.cp-addon-card.is-active {
  border-color: var(--cp-accent);
  background: linear-gradient(180deg, rgba(215, 164, 80, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px var(--cp-accent), 0 12px 28px rgba(215, 164, 80, 0.12);
}

.cp-addon-card.is-active::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cp-accent);
  color: #141214;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.cp-addon-card-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(215, 164, 80, 0.3);
  background: rgba(215, 164, 80, 0.08);
  color: var(--cp-accent-soft);
}

.cp-addon-card-icon svg {
  width: 36px;
  height: 36px;
}

.cp-addon-card-body {
  display: grid;
  gap: 0.25rem;
}

.cp-addon-card-body strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.cp-addon-card-badge {
  display: inline-flex;
  align-self: start;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(215, 164, 80, 0.12);
  border: 1px solid rgba(215, 164, 80, 0.3);
  color: var(--cp-accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cp-addon-card-hint,
.cp-addon-card-bonus {
  color: var(--cp-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cp-addon-card-bonus {
  color: var(--cp-accent-soft);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* Gift variant — extra plush */
.cp-addon-card--gift {
  background: linear-gradient(135deg, rgba(215, 164, 80, 0.08), rgba(255, 255, 255, 0.02));
}

.cp-addon-card--gift .cp-addon-card-icon {
  border-color: rgba(215, 164, 80, 0.5);
  background: rgba(215, 164, 80, 0.15);
}

/* ── V2.4 Artwork service buttons ──────────────────────────── */
.cp-artwork-services {
  display: grid;
  gap: 0.7rem;
}

.cp-artwork-service {
  position: relative;
  display: grid;
  gap: 0.4rem;
  padding: 0.95rem 1.05rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cp-text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), transform var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-artwork-service:hover {
  border-color: rgba(255, 214, 138, 0.28);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.cp-artwork-service.is-active {
  border-color: var(--cp-accent);
  background: linear-gradient(180deg, rgba(215, 164, 80, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px var(--cp-accent);
}

.cp-artwork-service-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
}

.cp-artwork-service-head strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.cp-artwork-service-badge {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(215, 164, 80, 0.12);
  border: 1px solid rgba(215, 164, 80, 0.3);
  color: var(--cp-accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cp-artwork-service-hint {
  color: var(--cp-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── V2.5 Dropzone Grid (per-zone uploads) ─────────────────── */
.cp-dropzone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
}

.cp-dropzone-empty {
  grid-column: 1 / -1;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.015);
  color: var(--cp-muted);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.6;
}

.cp-dropzone {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px dashed rgba(242, 211, 155, 0.3);
  background: rgba(255, 255, 255, 0.022);
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast);
}

.cp-dropzone:hover {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.04);
}

.cp-dropzone-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cp-dropzone-head small {
  color: var(--cp-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.cp-dropzone-head strong {
  font-size: 0.96rem;
  color: var(--cp-text);
}

.cp-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.cp-dropzone-body {
  display: grid;
  gap: 0.25rem;
  text-align: center;
  padding: 0.4rem 0;
}

.cp-dropzone-cta {
  color: var(--cp-accent-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.cp-dropzone-meta {
  color: var(--cp-soft);
  font-size: 0.82rem;
}

.cp-dropzone-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.28rem;
}

.cp-dropzone-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  color: var(--cp-text);
}

.cp-dropzone-list li small {
  color: var(--cp-soft);
  font-size: 0.76rem;
}

/* ── V2.6 Quantity bar + Smart sizing ──────────────────────── */
.cp-qty-bar {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
  flex-wrap: wrap;
}

.cp-qty-bar-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cp-qty-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cp-text);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast);
}

.cp-qty-step:hover {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.1);
}

.cp-qty-bar-counter input {
  width: 80px;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 10, 13, 0.7);
  color: var(--cp-text);
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
}

.cp-qty-bar-counter input:focus {
  border-color: var(--cp-accent);
  outline: none;
}

.cp-qty-bar-meta {
  display: grid;
  gap: 0.1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 14px;
  background: rgba(215, 164, 80, 0.1);
  border: 1px solid rgba(215, 164, 80, 0.3);
}

.cp-qty-bar-meta small {
  color: var(--cp-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cp-qty-bar-meta strong {
  color: var(--cp-accent-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.cp-size-block {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.022);
}

.cp-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cp-size-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.6rem;
}

.cp-size-matrix-cell {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  text-align: center;
}

.cp-size-matrix-cell span {
  color: var(--cp-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.cp-size-matrix-cell input {
  width: 100%;
  min-height: 40px;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 10, 13, 0.7);
  color: var(--cp-text);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.cp-size-matrix-cell input:focus {
  border-color: var(--cp-accent);
  outline: none;
}

.cp-size-warning {
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 154, 136, 0.3);
  background: rgba(95, 26, 18, 0.18);
  color: #ffd1c5;
  font-size: 0.88rem;
  text-align: center;
}

.cp-size-warning.is-error {
  border-color: rgba(239, 154, 136, 0.5);
  background: rgba(95, 26, 18, 0.3);
}

/* ── V2.7 Final Actions (Dual CTA) ─────────────────────────── */
.cp-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.05rem;
}

.cp-final-button {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: transform var(--cp-transition-fast), border-color var(--cp-transition-fast), background var(--cp-transition-fast), box-shadow var(--cp-transition-fast), opacity var(--cp-transition-fast);
}

.cp-final-button:hover:not(.is-disabled):not(:disabled) {
  transform: translateY(-2px);
}

.cp-final-button.is-disabled,
.cp-final-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.cp-final-button.is-busy {
  opacity: 0.75;
  pointer-events: none;
}

.cp-final-button-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.cp-final-button-icon svg {
  width: 26px;
  height: 26px;
}

.cp-final-button-text {
  display: grid;
  gap: 0.15rem;
}

.cp-final-button-text strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.cp-final-button-text small {
  color: currentColor;
  opacity: 0.78;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cp-final-button--primary {
  background: linear-gradient(135deg, var(--cp-accent-soft), var(--cp-accent));
  color: #141214;
  box-shadow: 0 18px 38px rgba(215, 164, 80, 0.22);
}

.cp-final-button--primary .cp-final-button-icon {
  background: rgba(20, 18, 20, 0.15);
  color: #141214;
}

.cp-final-button--secondary {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--cp-text);
}

.cp-final-button--secondary .cp-final-button-icon {
  color: var(--cp-accent-soft);
}

.cp-final-button--secondary:hover:not(.is-disabled):not(:disabled) {
  border-color: var(--cp-accent);
  background: rgba(215, 164, 80, 0.08);
}

/* ── V2.8 Empty hint utility ───────────────────────────────── */
.cp-empty-hint {
  color: var(--cp-soft);
  font-size: 0.88rem;
  font-style: italic;
}

.cp-status-box.is-warning {
  border-color: rgba(242, 211, 155, 0.35);
  background: rgba(95, 72, 28, 0.24);
  color: #f2d39b;
}

/* ── V2.9 Responsive (waterfall + final actions) ───────────── */
@media (max-width: 920px) {
  .cp-final-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-dropzone-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 720px) {
  .cp-step-summary {
    padding: 0.75rem 0.9rem;
    gap: 0.65rem;
  }

  .cp-step-body {
    padding: 0 0.9rem 0.95rem;
  }

  .cp-stage-receipt-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cp-stage-receipt-head strong {
    font-size: 1.4rem;
  }

  .cp-addon-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
  }

  .cp-addon-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .cp-addon-card-icon svg {
    width: 30px;
    height: 30px;
  }

  .cp-final-button {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.85rem 0.95rem;
  }

  .cp-final-button-icon {
    width: 42px;
    height: 42px;
  }

  .cp-size-matrix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-step,
  .cp-step-body,
  .cp-addon-card,
  .cp-artwork-service,
  .cp-final-button,
  .cp-dropzone {
    transition: none !important;
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   V2.10 Guided Studio Recovery
   ═══════════════════════════════════════════════════════════════ */

.cp-shell[data-flow-phase="lobby"] {
  min-height: calc(100vh - 104px);
  align-content: start;
  padding-block: 0.45rem 0;
}

.cp-shell[data-flow-phase="lobby"] .cp-hero {
  min-height: clamp(320px, 44vh, 470px);
  align-items: stretch;
}

.cp-shell[data-flow-phase="studio"] .cp-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: 1rem 1.1rem;
}

.cp-shell[data-flow-phase="studio"] .cp-title {
  max-width: 14ch;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.cp-shell[data-flow-phase="studio"] .cp-lead {
  font-size: 0.94rem;
  line-height: 1.6;
}

.cp-build-strip-shell {
  position: sticky;
  top: 0.75rem;
  z-index: 24;
  padding: 0.25rem 0 0.15rem;
}

.cp-build-strip-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(10, 9, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.cp-build-strip-shell > * {
  position: relative;
  z-index: 1;
}

.cp-build-strip {
  padding: 0.4rem;
}

.cp-workbench {
  grid-template-columns: minmax(380px, 0.96fr) minmax(0, 1.04fr);
  align-items: start;
}

.cp-workbench.is-lobby-mode {
  grid-template-columns: minmax(0, 1fr);
}

.cp-workbench.is-lobby-mode .cp-waterfall,
.cp-workbench.is-lobby-mode .cp-step,
.cp-workbench.is-lobby-mode .cp-step--mode {
  width: 100%;
  max-width: none;
}

.cp-stage-card {
  top: 5.85rem;
}

.cp-stage-card.is-hidden {
  display: none;
}

.cp-stage-frame {
  min-height: 500px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 224, 161, 0.18), transparent 26%),
    radial-gradient(circle at 50% 70%, rgba(92, 70, 41, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(34, 31, 36, 0.98), rgba(11, 10, 14, 0.9));
}

.cp-stage-orbit {
  position: absolute;
  inset: 12% 14%;
  border-radius: 50%;
  border: 1px solid rgba(242, 211, 155, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 120px rgba(215, 164, 80, 0.08);
}

.cp-stage-ground {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 10%;
  height: 14%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(215, 164, 80, 0.22), rgba(215, 164, 80, 0) 70%);
  filter: blur(12px);
}

.cp-stage-placeholder {
  position: absolute;
  left: 50%;
  top: 18%;
  z-index: 2;
  display: grid;
  gap: 0.45rem;
  width: min(72%, 320px);
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 9, 12, 0.58);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.cp-stage-placeholder strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.cp-stage-placeholder span {
  color: var(--cp-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cp-stage-placeholder[hidden] {
  display: none;
}

.cp-garment-shell {
  width: min(100%, 420px);
}

.cp-garment {
  position: relative;
  z-index: 2;
  width: 78%;
  height: 76%;
}

.cp-garment.is-placeholder {
  opacity: 0.78;
  filter: saturate(0.82) brightness(0.92) drop-shadow(0 26px 42px rgba(0, 0, 0, 0.44));
}

.cp-garment-body,
.cp-garment-sleeve,
.cp-garment-hood {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    var(--cp-garment-fill, linear-gradient(180deg, #5c5862, #29272d));
}

.cp-stage-overlay,
.cp-zone-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cp-stage-overlay {
  z-index: 3;
}

.cp-zone-layer {
  z-index: 4;
}

.cp-stage-overlay button,
.cp-zone-layer button {
  pointer-events: auto;
}

.cp-zone-pin {
  appearance: none;
  transform: translate(-50%, -50%);
  min-width: 96px;
  padding-inline: 0.85rem;
  background: rgba(12, 11, 15, 0.82);
}

.cp-zone-pin span {
  pointer-events: none;
}

.cp-zone-pin:not(.is-active) {
  color: rgba(246, 239, 227, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
}

.cp-stage-print {
  position: absolute;
  z-index: 3;
  top: var(--plate-top);
  left: var(--plate-left);
  width: var(--plate-width);
  height: var(--plate-height);
  transform: translate(-50%, -50%) rotate(var(--plate-rotate)) scale(var(--plate-scale, 1));
  transform-origin: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cp-stage-print::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px dashed rgba(242, 211, 155, 0.72);
  background:
    linear-gradient(180deg, rgba(242, 211, 155, 0.28), rgba(242, 211, 155, 0.08)),
    repeating-linear-gradient(135deg, rgba(242, 211, 155, 0.24), rgba(242, 211, 155, 0.24) 12px, rgba(255, 255, 255, 0.04) 12px, rgba(255, 255, 255, 0.04) 24px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(242, 211, 155, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cp-stage-print-label,
.cp-stage-print-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 9, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.cp-stage-print-label {
  left: 8px;
  bottom: 8px;
  padding: 0.28rem 0.55rem;
  color: var(--cp-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: scale(var(--plate-label-scale, 1));
  transform-origin: left bottom;
}

.cp-stage-print-badge {
  top: -10px;
  right: -10px;
  min-width: 38px;
  min-height: 38px;
  padding: 0.35rem 0.55rem;
  color: var(--cp-accent-soft);
  font-size: 0.76rem;
  font-weight: 800;
  transform: scale(var(--plate-label-scale, 1));
  transform-origin: top right;
}

.cp-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cp-fit-card {
  display: grid;
  gap: 0.32rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cp-text);
  text-align: left;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), transform var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-fit-card:hover {
  border-color: rgba(255, 214, 138, 0.24);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.cp-fit-card.is-active {
  border-color: var(--cp-accent);
  background: linear-gradient(180deg, rgba(215, 164, 80, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px var(--cp-accent), 0 10px 26px rgba(215, 164, 80, 0.12);
}

.cp-fit-card small,
.cp-fit-card em {
  color: var(--cp-soft);
  font-style: normal;
  font-size: 0.78rem;
}

.cp-fit-card strong {
  font-size: 1.06rem;
}

.cp-fit-card span {
  color: var(--cp-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.cp-fabric-row,
.cp-front-size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.cp-mini-chip--fabric {
  display: inline-grid;
  gap: 0.16rem;
  align-items: start;
}

.cp-mini-chip--fabric small,
.cp-mini-chip--sleeve-side small {
  color: var(--cp-soft);
  font-size: 0.72rem;
  line-height: 1.25;
}

.cp-mini-chip.is-locked {
  border-color: rgba(242, 211, 155, 0.36);
  background: rgba(215, 164, 80, 0.12);
}

.cp-size-preset {
  display: inline-grid;
  gap: 0.2rem;
  min-width: 96px;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--cp-text);
  text-align: left;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), transform var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-size-preset:hover {
  border-color: rgba(255, 214, 138, 0.24);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.cp-size-preset.is-active {
  border-color: var(--cp-accent);
  background: linear-gradient(180deg, rgba(215, 164, 80, 0.16), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px var(--cp-accent);
}

.cp-size-preset strong {
  font-size: 0.96rem;
}

.cp-size-preset span {
  color: var(--cp-soft);
  font-size: 0.74rem;
}

.cp-sleeve-side-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-bottom: 0.9rem;
}

.cp-mini-chip--sleeve-side {
  display: inline-grid;
  gap: 0.16rem;
  min-width: 168px;
  text-align: left;
}

.cp-sleeve-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.cp-sleeve-editor {
  padding: 0.95rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.cp-sleeve-editor-head {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.8rem;
}

.cp-sleeve-editor-head strong {
  font-size: 0.98rem;
}

.cp-sleeve-editor-head span {
  color: var(--cp-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cp-stage-print--back::before {
  border-radius: 22px;
}

.cp-stage-print--sleeve_left::before,
.cp-stage-print--sleeve_right::before {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(242, 211, 155, 0.28), rgba(242, 211, 155, 0.08)),
    repeating-linear-gradient(180deg, rgba(242, 211, 155, 0.2), rgba(242, 211, 155, 0.2) 10px, rgba(255, 255, 255, 0.04) 10px, rgba(255, 255, 255, 0.04) 20px);
}

.cp-stage-print--sleeve_left .cp-stage-print-badge,
.cp-stage-print--sleeve_right .cp-stage-print-badge {
  max-width: 108px;
  min-width: 42px;
  padding-inline: 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-stage-print--sleeve_left .cp-stage-print-label,
.cp-stage-print--sleeve_right .cp-stage-print-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-step[hidden] {
  display: none !important;
}

.cp-shell[data-flow-phase="lobby"] .cp-step--mode {
  min-height: clamp(320px, 40vh, 440px);
}

.cp-shell[data-flow-phase="lobby"] .cp-step--mode .cp-step-body {
  min-height: 100%;
  align-content: center;
}

.cp-page [hidden] {
  display: none !important;
}

@media (max-width: 1160px) {
  .cp-build-strip-shell {
    top: 0.4rem;
  }

  .cp-stage-card {
    top: auto;
  }
}

@media (max-width: 920px) {
  .cp-shell[data-flow-phase="studio"] .cp-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-fit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-sleeve-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .cp-shell[data-flow-phase="lobby"] {
    min-height: auto;
  }

  .cp-build-strip-shell {
    top: 0;
  }

  .cp-stage-frame {
    min-height: 320px;
  }

  .cp-stage-placeholder {
    top: 14%;
    width: min(88%, 320px);
  }

  .cp-zone-pin {
    min-width: 82px;
    min-height: 36px;
    font-size: 0.76rem;
  }

  .cp-stage-print-label {
    font-size: 0.62rem;
  }

  .cp-stage-print-badge {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.72rem;
  }
}

/* ── V2.11 SVG Stage + refined fabric/dropzones ───────────── */
.cp-garment {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.34));
}

.cp-stage-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cp-stage-svg__part {
  transition: fill var(--cp-transition-fast), opacity var(--cp-transition-fast);
}

.cp-stage-svg__part--base {
  fill: var(--cp-stage-base-fill, #474149);
}

.cp-stage-svg__part--top {
  fill: var(--cp-stage-top-fill, #625d68);
}

.cp-stage-svg__part--shade {
  fill: var(--cp-stage-shade-fill, #2a252b);
}

.cp-stage-svg__detail {
  fill: none;
  stroke: var(--cp-stage-stroke, rgba(255, 255, 255, 0.34));
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.72;
}

.cp-stage-print {
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.22));
}

.cp-stage-print::before {
  border-radius: var(--plate-radius, 20px);
  background:
    linear-gradient(180deg, rgba(255, 236, 194, 0.24), rgba(255, 236, 194, 0.06)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(135deg, rgba(242, 211, 155, 0.16), rgba(242, 211, 155, 0.16) 12px, rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 24px);
}

.cp-stage-print--shape-panel::before {
  border-radius: var(--plate-radius, 22px);
}

.cp-stage-print--shape-sleeve_patch::before {
  border-radius: 18px 18px 24px 28px;
  background:
    linear-gradient(180deg, rgba(255, 236, 194, 0.24), rgba(255, 236, 194, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(180deg, rgba(242, 211, 155, 0.18), rgba(242, 211, 155, 0.18) 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
}

.cp-stage-print--shape-sleeve_text::before {
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 236, 194, 0.2), rgba(255, 236, 194, 0.05)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
}

.cp-stage-print--shape-custom_panel::before {
  border-style: dotted;
  background:
    linear-gradient(180deg, rgba(255, 236, 194, 0.18), rgba(255, 236, 194, 0.05)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
}

.cp-stage-print.is-text-placement .cp-stage-print-badge {
  min-width: 56px;
  max-width: 128px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cp-stage-print.is-text-placement .cp-stage-print-label {
  bottom: auto;
  top: 8px;
}

.cp-stage-print--back::before {
  background:
    linear-gradient(180deg, rgba(255, 236, 194, 0.26), rgba(255, 236, 194, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(180deg, rgba(242, 211, 155, 0.16), rgba(242, 211, 155, 0.16) 12px, rgba(255, 255, 255, 0.02) 12px, rgba(255, 255, 255, 0.02) 26px);
}

.cp-mini-chip--fabric {
  min-width: 156px;
  padding: 0.9rem 0.95rem;
  align-items: stretch;
  justify-items: stretch;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.028);
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), box-shadow var(--cp-transition-fast), transform var(--cp-transition-fast);
}

.cp-mini-chip--fabric:hover {
  border-color: rgba(255, 214, 138, 0.28);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.cp-mini-chip--fabric.is-active {
  border-color: rgba(242, 211, 155, 0.62);
  background: linear-gradient(180deg, rgba(242, 211, 155, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px rgba(242, 211, 155, 0.46), 0 14px 28px rgba(242, 211, 155, 0.08);
}

.cp-mini-chip--fabric.is-premium {
  border-color: rgba(242, 211, 155, 0.18);
}

.cp-mini-chip--fabric.is-premium.is-active,
.cp-mini-chip--fabric.is-premium.is-locked {
  background:
    radial-gradient(circle at top right, rgba(242, 211, 155, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(242, 211, 155, 0.14), rgba(255, 255, 255, 0.03));
}

.cp-mini-chip--fabric.is-single {
  cursor: default;
}

.cp-mini-chip--fabric.is-single.is-active {
  box-shadow: 0 0 0 1px rgba(242, 211, 155, 0.46), 0 10px 24px rgba(242, 211, 155, 0.09);
}

.cp-fabric-chip-title {
  display: grid;
  gap: 0.16rem;
}

.cp-fabric-chip-title strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.cp-fabric-chip-title small {
  color: var(--cp-accent-soft);
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cp-fabric-chip-meta {
  display: inline-flex;
  align-self: start;
  margin-top: 0.5rem;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 9, 12, 0.48);
  color: var(--cp-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.cp-mini-chip--fabric.is-included .cp-fabric-chip-meta {
  color: var(--cp-accent-soft);
  border-color: rgba(242, 211, 155, 0.24);
  background: rgba(242, 211, 155, 0.08);
}

.cp-dropzone {
  min-height: 212px;
  align-content: start;
  border-style: solid;
  border-color: rgba(242, 211, 155, 0.18);
  background:
    radial-gradient(circle at top right, rgba(242, 211, 155, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.022);
}

.cp-dropzone-head strong {
  max-width: 16ch;
  line-height: 1.3;
}

.cp-dropzone-body {
  min-height: 82px;
  padding-top: 0.75rem;
}

.cp-dropzone[data-placement-key="back"] {
  border-color: rgba(242, 211, 155, 0.24);
}

.cp-dropzone[data-placement-key="sleeve_left"],
.cp-dropzone[data-placement-key="sleeve_right"] {
  border-color: rgba(242, 211, 155, 0.16);
}

@media (max-width: 920px) {
  .cp-shell[data-flow-phase="studio"] .cp-hero,
  .cp-workbench {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-hero-copy,
  .cp-hero-panel,
  .cp-stage-card,
  .cp-panel-column,
  .cp-card,
  .cp-card--step.is-current {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cp-hero-actions > *,
  .cp-stage-toolbar > *,
  .cp-stage-meta > * {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .cp-page {
    overflow-x: clip;
  }

  .cp-stage-card,
  .cp-card {
    padding-inline: 0.95rem;
  }

  .cp-stage-frame {
    min-height: 280px;
    padding: 0.75rem;
  }

  .cp-garment-shell {
    width: min(100%, 320px);
  }

  .cp-stage-meta {
    gap: 0.85rem;
  }
}

/* ── V2.12 Stage clarity + mobile polish ───────────────────── */
.cp-stage-frame {
  aspect-ratio: 11 / 13;
  min-height: clamp(320px, 44vw, 500px);
  padding: clamp(0.95rem, 2vw, 1.2rem);
}

.cp-stage-guide {
  margin-top: 0.9rem;
  color: var(--cp-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cp-stage-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.9rem;
}

.cp-stage-legend-empty {
  padding: 0.82rem 0.92rem;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.022);
  color: var(--cp-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cp-stage-legend-chip {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--cp-text);
  text-align: left;
  transition: border-color var(--cp-transition-fast), background var(--cp-transition-fast), transform var(--cp-transition-fast), box-shadow var(--cp-transition-fast);
}

.cp-stage-legend-chip small {
  color: var(--cp-accent-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cp-stage-legend-chip strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.cp-stage-legend-chip span {
  color: var(--cp-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cp-stage-legend-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 211, 155, 0.24);
  background: rgba(255, 255, 255, 0.042);
}

.cp-stage-legend-chip.is-active {
  border-color: rgba(242, 211, 155, 0.3);
  background:
    radial-gradient(circle at top right, rgba(242, 211, 155, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.cp-stage-legend-chip.is-focused {
  box-shadow: 0 0 0 1px rgba(242, 211, 155, 0.36), 0 12px 26px rgba(242, 211, 155, 0.08);
}

.cp-zone-pin {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 11, 15, 0.72);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.cp-zone-pin small {
  color: var(--cp-accent-soft);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.cp-zone-pin span {
  display: none;
}

.cp-zone-pin.is-active {
  border-color: rgba(242, 211, 155, 0.46);
  background:
    linear-gradient(180deg, rgba(242, 211, 155, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(12, 11, 15, 0.82);
}

.cp-stage-print {
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.18));
}

.cp-stage-print::before {
  border-width: 1px;
  border-color: rgba(242, 211, 155, 0.44);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.14),
    0 0 18px rgba(242, 211, 155, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.cp-stage-print-badge {
  top: 8px;
  right: 8px;
  min-width: 44px;
  min-height: 28px;
  padding: 0.22rem 0.48rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: none;
}

.cp-stage-print-label {
  display: none;
}

.cp-stage-meta {
  align-items: start;
}

.cp-stage-copy {
  min-width: 0;
}

@media (max-width: 920px) {
  .cp-card-head {
    gap: 0.8rem;
    align-items: flex-start;
  }

  .cp-fit-grid,
  .cp-sleeve-editor-grid,
  .cp-inline-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-fabric-row,
  .cp-front-size-row,
  .cp-sleeve-side-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-mini-chip--fabric,
  .cp-mini-chip--sleeve-side,
  .cp-size-preset {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .cp-stage-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-stage-card,
  .cp-card {
    padding-inline: 0.9rem;
  }

  .cp-stage-view-switch {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .cp-stage-view-switch button {
    flex: 0 0 auto;
  }

  .cp-stage-frame {
    min-height: 300px;
  }

  .cp-zone-pin {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .cp-final-button {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.9rem;
  }

  .cp-final-button-text strong {
    font-size: 0.95rem;
  }

  .cp-final-button-text small,
  .cp-status-box {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  .cp-stage-frame {
    min-height: 276px;
  }

  .cp-stage-guide,
  .cp-stage-legend-chip span {
    font-size: 0.76rem;
  }

  .cp-stage-legend-chip strong {
    font-size: 0.88rem;
  }

  .cp-zone-pin {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .cp-zone-pin small {
    font-size: 0.5rem;
  }

  .cp-stage-print-badge {
    top: 6px;
    right: 6px;
    min-width: 38px;
    min-height: 24px;
    font-size: 0.6rem;
  }
}

/* ── V2.13 Responsive containment sweep ───────────────────── */
@media (max-width: 1100px) {
  .cp-shell[data-flow-phase="studio"] .cp-hero,
  .cp-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-stage-card {
    position: relative;
    top: auto;
  }

  .cp-stage-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .cp-shell,
  .cp-configurator,
  .cp-workbench,
  .cp-waterfall,
  .cp-stage-card,
  .cp-step,
  .cp-step-body,
  .cp-config-block,
  .cp-field,
  .cp-final-actions {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cp-hero {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    padding: 0.95rem;
  }

  .cp-hero-copy,
  .cp-hero-panel,
  .cp-hero-stat {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cp-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-hero-actions > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cp-step-summary {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
  }

  .cp-step-summary-edit {
    grid-column: 2;
    justify-self: flex-start;
    margin-top: 0.1rem;
  }

  .cp-step-summary-text strong {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .cp-step-actions {
    flex-wrap: wrap;
  }

  .cp-step-actions > * {
    flex: 1 1 100%;
    width: 100%;
  }

  .cp-final-button-text strong,
  .cp-final-button-text small,
  .cp-stage-guide,
  .cp-status-box,
  .cp-step-head p,
  .cp-subhead span,
  .cp-inline-note-copy {
    overflow-wrap: anywhere;
  }

  [data-contact-channel-list].cp-mini-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-contact-channel-list] .cp-mini-chip {
    width: 100%;
    min-width: 0;
    padding-inline: 0.72rem;
  }
}

@media (max-width: 420px) {
  .cp-hero,
  .cp-card,
  .cp-stage-card,
  .cp-capsule {
    border-radius: 22px;
  }

  .cp-stage-card,
  .cp-card {
    padding-inline: 0.82rem;
  }

  .cp-config-block,
  .cp-upload-panel,
  .cp-inline-note,
  .cp-review-box,
  .cp-status-box {
    padding: 0.82rem 0.85rem;
    border-radius: 18px;
  }

  .cp-step-summary {
    padding: 0.72rem 0.8rem;
  }

  .cp-step-body {
    padding: 0 0.8rem 0.9rem;
  }

  .cp-step-summary-num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .cp-step-summary-text strong,
  .cp-card h2,
  .cp-stage-card h2 {
    line-height: 1.25;
  }

  [data-contact-channel-list].cp-mini-chip-row {
    grid-template-columns: minmax(0, 1fr);
  }
  }
}

/* --- PREMIUM UI CONFIGURATOR APPENDS --- */

.cp-fit-card {
  padding: 0;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  gap: 0;
}
.cp-fit-card-figure {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.cp-fit-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cp-fit-card:hover .cp-fit-card-figure img,
.cp-fit-card.is-active .cp-fit-card-figure img {
  transform: scale(1.05);
}
.cp-fit-card-info {
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cp-size-preset {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
}
.cp-size-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cp-text);
  opacity: 0.6;
}
.cp-size-preset.is-active .cp-size-icon {
  color: var(--cp-accent);
  opacity: 1;
}
.cp-size-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cp-size-details {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cp-stage-view-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
}
.cp-stage-view-switch button img {
  opacity: 0.6;
}
.cp-stage-view-switch button.is-active img {
  opacity: 1;
  /* filter: none; */ /* Removing drop-shadow to keep images original gold */
}

/* stage print styling / Hitboxes */
.cp-stage-print {
  pointer-events: auto !important; /* Make plate clickable */
  transition: all 0.2s ease;
}
.cp-stage-print:hover::before {
  background: repeating-linear-gradient(135deg, rgba(242, 211, 155, 0.35), rgba(242, 211, 155, 0.35) 12px, rgba(255, 255, 255, 0.1) 12px, rgba(255, 255, 255, 0.1) 24px) !important;
  backdrop-filter: blur(2px);
}
.cp-stage-print.is-inactive {
  opacity: 0.5;
}
.cp-stage-print.is-inactive:hover {
  opacity: 1;
}
/* Ensure the label and badge can be clicked safely without jumping */
.cp-stage-print-label,
.cp-stage-print-badge {
  pointer-events: none;
  display: none !important;
}

/* ====== FABRIC INFO MODAL & THERMO ====== */
.cp-mini-chip.has-info {
  position: relative;
  overflow: visible;
}
.cp-fabric-chip-content {
  display: flex;
  flex-direction: column;
  gap: inherit;
  width: 100%;
}
.cp-fabric-info-trigger {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cp-accent);
  color: #000;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.cp-fabric-info-trigger:hover {
  transform: scale(1.1);
}

.cp-mini-chip[data-choice-value="thermo"] {
  position: relative;
  overflow: visible;
  border-color: rgba(255, 60, 100, 0.4);
}
.cp-mini-chip[data-choice-value="thermo"]::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #ff3c64, #ff8c00, #ff3c64);
  background-size: 200% 200%;
  animation: thermoFire 3s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.cp-mini-chip[data-choice-value="thermo"].is-active::before {
  opacity: 1;
}
.cp-mini-chip[data-choice-value="thermo"] > * {
  position: relative;
  z-index: 1;
}
@keyframes thermoFire {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.cp-fabric-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.cp-fabric-modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.cp-fabric-modal-box {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.cp-fabric-modal-overlay.is-visible .cp-fabric-modal-box {
  transform: translateY(0);
}
.cp-fabric-modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.cp-fabric-modal-media {
  width: 100%;
  aspect-ratio: 1/1;
  background: #000;
}
.cp-fabric-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-fabric-modal-title {
  font-size: 1.2rem;
  margin: 1.5rem 1.5rem 0.5rem;
  color: white;
}
.cp-fabric-modal-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin: 0 1.5rem 1.5rem;
  line-height: 1.5;
}

.is-thermo-theme .cp-fabric-modal-box {
  box-shadow: 0 0 40px rgba(255, 60, 100, 0.2);
  border-color: rgba(255, 60, 100, 0.4);
}

.cp-mini-chip[data-choice-value="thermo"] {
  position: relative;
  overflow: visible;
  border-color: rgba(255, 60, 100, 0.4);
}
.cp-mini-chip[data-choice-value="thermo"].is-active {
  background: linear-gradient(45deg, rgba(255, 60, 100, 0.15), rgba(255, 140, 0, 0.15));
  border-color: rgba(255, 60, 100, 0.8) !important;
  box-shadow: 0 0 12px rgba(255, 60, 100, 0.4), inset 0 0 10px rgba(255, 140, 0, 0.1);
  animation: thermoGlow 3s ease-in-out infinite alternate;
}
@keyframes thermoGlow {
  0% { box-shadow: 0 0 12px rgba(255, 60, 100, 0.4), inset 0 0 10px rgba(255, 140, 0, 0.1); }
  100% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.6), inset 0 0 15px rgba(255, 60, 100, 0.2); border-color: rgba(255, 140, 0, 0.9) !important; }
}


/* ====== FIRE SVG ICON & AUTO-INCLUDED ADDONS ====== */
.cp-fire-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  margin-bottom: 2px;
  width: 16px;
  height: 16px;
  color: #ff8c00;
  animation: fireFlicker 1.5s infinite alternate ease-in-out;
}
@keyframes fireFlicker {
  0% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 2px #ff8c00); }
  100% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 8px #ff3c64); color: #ff3c64; }
}

.cp-addon-card.is-auto-included {
  cursor: default;
  /* Prevent toggle hover effects, freeze it in active state visually */
}
.cp-addon-card.is-auto-included:hover {
  transform: none;
}
.cp-addon-card.is-auto-included .cp-addon-card-badge {
  background: rgba(215, 164, 80, 0.2);
  color: var(--cp-accent);
}
.cp-addon-card.is-auto-included {
  pointer-events: none;
}

/* ====== FLEECE TOGGLE UI ====== */
.cp-fleece-toggle {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-fleece-title {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cp-fleece-options {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.cp-fleece-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cp-fleece-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}
.cp-fleece-btn.is-active {
  background: #2a2a2a;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.cp-fleece-btn .cp-addon-card-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.cp-fleece-btn.is-active .cp-addon-card-icon {
  opacity: 1;
  color: var(--cp-accent);
}

.cp-btn--soon {
  background: rgba(255, 255, 255, 0.03);
  color: var(--cp-muted);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: not-allowed;
  opacity: 0.8;
}

.cp-btn--soon:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  transform: none;
  box-shadow: none;
}

.cp-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(242, 211, 155, 0.08);
  border: 1px solid rgba(242, 211, 155, 0.22);
  color: var(--cp-accent-soft);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ====== CUSTOM PRINT REFRESH 2026-04-17 ====== */
.cp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: clamp(1.4rem, 3vw, 3.4rem);
  min-height: clamp(460px, calc(100svh - 112px), 620px);
  padding: clamp(1.5rem, 3vw, 2.8rem);
  background:
    radial-gradient(circle at top right, rgba(215, 164, 80, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(8, 8, 10, 0.98), rgba(13, 13, 16, 0.96) 44%, rgba(18, 16, 18, 0.94));
  border-color: rgba(236, 197, 127, 0.18);
}

.cp-hero::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.08;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.cp-hero::after {
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 211, 155, 0.24), transparent);
  opacity: 1;
}

.cp-hero-copy {
  width: min(100%, 40rem);
  padding: 0;
}

.cp-hero-brand {
  max-width: min(100%, 32rem);
}

.cp-hero-title {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.65rem);
  line-height: 0.94;
}

.cp-hero-desc {
  max-width: 35rem;
  color: rgba(246, 239, 227, 0.76);
}

.cp-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  align-self: stretch;
  align-content: end;
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  border-left: 1px solid rgba(242, 211, 155, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(12, 12, 15, 0.72), rgba(12, 12, 15, 0.2));
}

.cp-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(242, 211, 155, 0.08), transparent 26%);
  pointer-events: none;
}

.cp-hero-panel-head,
.cp-hero-panel-foot,
.cp-hero-panel-item {
  position: relative;
  z-index: 1;
}

.cp-hero-panel-head {
  display: grid;
  gap: 0.3rem;
}

.cp-hero-panel-head small,
.cp-hero-panel-foot small {
  color: var(--cp-accent-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cp-hero-panel-head strong {
  max-width: 22rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  color: #fff8ed;
}

.cp-hero-panel-list {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-hero-panel-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-hero-panel-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(242, 211, 155, 0.08);
  border: 1px solid rgba(242, 211, 155, 0.16);
  color: var(--cp-accent-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cp-hero-panel-item strong {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.96rem;
  color: var(--cp-text);
}

.cp-hero-panel-item p,
.cp-hero-panel-foot p {
  margin: 0;
  color: var(--cp-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.cp-hero-panel-foot {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.2rem;
}

.cp-addon-card {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
}

.cp-addon-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

.cp-addon-card-control {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cp-addon-card-control-text {
  color: var(--cp-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cp-addon-card-switch {
  position: relative;
  display: inline-flex;
  width: 2.65rem;
  height: 1.5rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--cp-transition-fast), border-color var(--cp-transition-fast);
}

.cp-addon-card-switch-thumb {
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 50%;
  background: rgba(246, 239, 227, 0.94);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
  transform: translateX(0);
  transition: transform var(--cp-transition-fast), background var(--cp-transition-fast);
}

.cp-addon-card.is-active .cp-addon-card-control-text,
.cp-addon-card.is-auto-included .cp-addon-card-control-text {
  color: var(--cp-accent-soft);
}

.cp-addon-card.is-active .cp-addon-card-switch,
.cp-addon-card.is-auto-included .cp-addon-card-switch {
  background: rgba(215, 164, 80, 0.28);
  border-color: rgba(242, 211, 155, 0.34);
}

.cp-addon-card.is-active .cp-addon-card-switch-thumb,
.cp-addon-card.is-auto-included .cp-addon-card-switch-thumb {
  transform: translateX(1.12rem);
  background: #171317;
}

.cp-mini-chip--fabric.has-info {
  position: relative;
  padding-right: 2.85rem;
  overflow: visible;
}

.cp-fabric-chip-content {
  padding-right: 0.3rem;
}

.cp-fabric-info-trigger {
  top: 0.8rem;
  right: 0.8rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid rgba(242, 211, 155, 0.26);
  background: rgba(242, 211, 155, 0.16);
  color: #fff8ed;
  font-size: 0.8rem;
  font-weight: 800;
}

.cp-fabric-info-trigger:hover {
  transform: scale(1.06);
  background: rgba(242, 211, 155, 0.24);
}

.cp-fabric-modal-media[hidden] {
  display: none;
}

.cp-fabric-modal-box {
  max-width: 460px;
  background:
    linear-gradient(180deg, rgba(20, 19, 22, 0.98), rgba(10, 10, 12, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
}

.cp-fabric-modal-title {
  color: #fff8ed;
}

.cp-fabric-modal-desc {
  color: rgba(246, 239, 227, 0.74);
}

.is-premium-theme .cp-fabric-modal-box {
  border-color: rgba(242, 211, 155, 0.26);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(242, 211, 155, 0.1);
}

@media (max-width: 980px) {
  .cp-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .cp-hero-copy {
    width: min(100%, 36rem);
  }

  .cp-hero-panel {
    padding: 0.2rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(242, 211, 155, 0.14);
    background: transparent;
  }
}

@media (max-width: 640px) {
  .cp-hero {
    padding: 1.25rem;
    gap: 1.2rem;
  }

  .cp-hero-title {
    max-width: 12ch;
    font-size: clamp(2.2rem, 12vw, 3.35rem);
  }

  .cp-hero-actions {
    width: 100%;
  }

  .cp-hero-actions .cp-btn {
    width: 100%;
  }

  .cp-hero-panel-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .cp-addon-card {
    grid-template-columns: 1fr;
  }

  .cp-addon-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .cp-step {
    scroll-margin-top: 7.6rem;
  }

  .cp-config-cluster {
    gap: 0.9rem;
  }

  .cp-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.5rem, 2.5vw, 0.75rem);
  }

  .cp-fit-card {
    min-width: 0;
    border-radius: 20px;
  }

  .cp-fit-card-figure {
    aspect-ratio: 0.92 / 1;
  }

  .cp-fit-card-info {
    gap: 0.18rem;
    padding: clamp(0.7rem, 3vw, 0.95rem);
  }

  .cp-fit-card small {
    font-size: clamp(0.56rem, 2.1vw, 0.66rem);
    letter-spacing: 0.07em;
  }

  .cp-fit-card strong {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
    line-height: 1.1;
  }

  .cp-fit-card span,
  .cp-fit-card em {
    font-size: clamp(0.66rem, 2.45vw, 0.79rem);
    line-height: 1.32;
  }

  .cp-fabric-row {
    display: grid;
    gap: clamp(0.45rem, 2vw, 0.7rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-fabric-row[data-count="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .cp-fabric-row[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-fabric-row[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cp-mini-chip--fabric {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: clamp(0.7rem, 2.4vw, 0.88rem) clamp(0.55rem, 2vw, 0.8rem);
    border-radius: 18px;
    gap: 0.28rem;
  }

  .cp-mini-chip--fabric.has-info {
    padding-top: clamp(0.85rem, 2.8vw, 1rem);
    padding-right: clamp(0.85rem, 2.8vw, 1rem);
  }

  .cp-fabric-chip-title strong {
    font-size: clamp(0.8rem, 2.9vw, 0.94rem);
    line-height: 1.12;
  }

  .cp-fabric-chip-meta {
    align-self: stretch;
    justify-content: center;
    margin-top: 0.36rem;
    padding: 0.22rem 0.45rem;
    text-align: center;
    white-space: normal;
    font-size: clamp(0.58rem, 2.1vw, 0.72rem);
    line-height: 1.15;
  }

  .cp-fabric-info-trigger {
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .cp-step-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: stretch;
  }

  .cp-step-actions > * {
    min-width: 0;
    width: 100%;
  }

  .cp-step-actions > :only-child,
  .cp-step-actions > :nth-child(3):last-child {
    grid-column: 1 / -1;
  }

  .cp-step-actions .cp-link,
  .cp-step-actions .cp-secondary-button,
  .cp-step-actions .cp-tertiary-button {
    padding-inline: 0.85rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .cp-build-strip-shell {
    position: relative;
    z-index: 1;
    padding: 0 0 0.35rem;
    margin-bottom: 0.35rem;
    scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 5rem);
  }

  .cp-build-strip-shell::before {
    border-radius: 999px;
  }

  .cp-build-strip {
    align-items: center;
    gap: 0;
    overflow: visible;
    padding: 0.75rem 0.85rem;
  }

  .cp-build-chip {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: none;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
  }

  .cp-build-chip small,
  .cp-build-chip strong {
    display: none;
  }

  .cp-build-chip::before {
    content: "";
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: none;
  }

  .cp-build-chip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% + 8px);
    width: calc(100% - 16px);
    height: 2px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
  }

  .cp-build-chip:last-child::after {
    display: none;
  }

  .cp-build-chip.is-active::before {
    width: 12px;
    height: 12px;
    border-color: rgba(242, 211, 155, 0.9);
    background: rgba(242, 211, 155, 0.95);
    box-shadow: 0 0 0 4px rgba(242, 211, 155, 0.18);
  }

  .cp-build-chip.is-done::before {
    border: 0;
    background: var(--cp-success);
  }

  .cp-build-chip.is-done::after,
  .cp-build-chip.is-active::after {
    background: rgba(242, 211, 155, 0.42);
  }

  .cp-build-chip.is-pending {
    pointer-events: none;
  }

  .cp-build-chip.is-pending::before {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
  }

  .cp-build-chip.is-pending::after {
    background: rgba(255, 255, 255, 0.08);
  }

  .cp-build-chip:hover:not(.is-pending) {
    border: 0;
    background: transparent;
  }
}

@media (max-width: 420px) {
  .cp-fit-card-figure {
    aspect-ratio: 0.82 / 1;
  }

  .cp-fit-card strong {
    font-size: clamp(0.82rem, 3.4vw, 0.9rem);
  }

  .cp-fit-card span,
  .cp-fit-card em {
    font-size: clamp(0.62rem, 2.7vw, 0.7rem);
  }

  .cp-fabric-row[data-count="3"] {
    gap: 0.38rem;
  }

  .cp-fabric-row[data-count="3"] .cp-mini-chip--fabric {
    padding: 0.68rem 0.38rem 0.64rem;
    border-radius: 16px;
  }

  .cp-fabric-row[data-count="3"] .cp-mini-chip--fabric.has-info {
    padding-top: 0.82rem;
    padding-right: 0.75rem;
  }

  .cp-fabric-row[data-count="3"] .cp-fabric-chip-title strong {
    font-size: clamp(0.68rem, 2.9vw, 0.76rem);
  }

  .cp-fabric-row[data-count="3"] .cp-fabric-chip-meta {
    padding: 0.18rem 0.28rem;
    font-size: 0.54rem;
  }

  .cp-fabric-row[data-count="3"] .cp-fabric-info-trigger {
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .cp-step-actions .cp-link,
  .cp-step-actions .cp-secondary-button,
  .cp-step-actions .cp-tertiary-button {
    min-height: 46px;
    padding-inline: 0.7rem;
    font-size: 0.88rem;
  }

  .cp-build-strip {
    padding-inline: 0.7rem;
  }

  .cp-build-chip::before {
    width: 9px;
    height: 9px;
  }

  .cp-build-chip.is-active::before {
    width: 11px;
    height: 11px;
  }
}

/* ====== CUSTOM PRINT HERO REFERENCE MATCH 2026-04-28 ====== */
.cp-hero--reference {
  --cp-ref-gold: #f0bf6a;
  --cp-ref-gold-soft: #ffe1a0;
  --cp-ref-purple: #7c42ff;
  --cp-ref-blue: #0d2233;
  display: grid;
  box-sizing: border-box;
  grid-template-columns: minmax(340px, 0.78fr) minmax(520px, 1.38fr) minmax(286px, 0.54fr);
  gap: clamp(0.8rem, 1.4vw, 1.35rem);
  align-items: start;
  width: 100%;
  height: clamp(680px, 74svh, 760px) !important;
  min-height: clamp(680px, 74svh, 760px) !important;
  max-height: 760px;
  margin-inline: 0;
  padding: clamp(1.25rem, 2vw, 1.85rem);
  border-radius: 26px;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 52% 42%, rgba(124, 66, 255, 0.22), transparent 31%),
    radial-gradient(circle at 75% 34%, rgba(240, 191, 106, 0.14), transparent 24%),
    linear-gradient(90deg, rgba(2, 5, 10, 0.99) 0%, rgba(10, 8, 18, 0.98) 45%, rgba(5, 8, 14, 0.99) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cp-hero--reference::before {
  background:
    radial-gradient(circle at 27% 100%, rgba(124, 66, 255, 0.16), transparent 16%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  opacity: 0.72;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.85));
}

.cp-hero--reference::after {
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 191, 106, 0.34), rgba(124, 66, 255, 0.3), transparent);
}

.cp-hero--reference .cp-hero-copy {
  z-index: 3;
  align-self: start;
  gap: 1rem;
  width: min(100%, 430px);
  padding: 28px 0 0;
}

.cp-hero--reference .cp-hero-brand {
  display: none;
}

.cp-hero--reference .cp-hero-badge {
  position: relative;
  padding: 0.72rem 1.45rem;
  background: rgba(240, 191, 106, 0.06);
  border-color: rgba(240, 191, 106, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 34px rgba(240, 191, 106, 0.1);
  color: var(--cp-ref-gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.cp-hero--reference .cp-hero-badge::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 0.65rem;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 31%, 96% 18%, 78% 100%, 22% 100%, 4% 18%, 38% 31%);
}

.cp-hero--reference .cp-hero-title {
  max-width: 12.5ch;
  font-size: 4.35rem;
  line-height: 1;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.62);
}

.cp-hero--reference .cp-hero-title span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(180deg, #ffe5a8 0%, #f0bf6a 47%, #d1903e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.cp-hero--reference .cp-hero-desc {
  max-width: 380px;
  color: rgba(246, 247, 252, 0.68);
  font-size: 1rem;
  line-height: 1.48;
}

.cp-hero--reference .cp-hero-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 330px);
  gap: 0.62rem;
  margin-top: 0.2rem;
}

.cp-hero--reference .cp-btn {
  min-height: 54px;
  justify-content: space-between;
  padding: 1rem 1.28rem;
  border-radius: 999px;
  font-size: 0.98rem;
}

.cp-hero--reference .cp-btn--primary {
  border-color: rgba(255, 226, 164, 0.55);
  background: linear-gradient(135deg, #ffe4a1 0%, #e6a94b 100%);
  box-shadow: 0 12px 34px rgba(240, 191, 106, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.cp-hero--reference .cp-btn--telegram {
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(13, 34, 51, 0.82), rgba(8, 18, 29, 0.86));
  border-color: rgba(76, 169, 230, 0.22);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cp-hero-proof-row {
  order: 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.44rem;
  width: min(100%, 430px);
  margin-top: 0.2rem;
}

.cp-hero-proof-row span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 0.44rem;
  min-height: 48px;
  padding: 0.42rem 0.56rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  line-height: 1.25;
}

.cp-hero-proof-row svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 235, 190, 0.88);
}

.cp-hero-signature {
  position: relative;
  display: inline-block;
  isolation: isolate;
  order: 5;
  margin-top: 0.1rem;
  color: rgba(156, 96, 255, 0.18);
  font-family: "Trebuchet MS", "Comic Sans MS", "Marker Felt", cursive;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-4deg) skewX(-5deg);
  -webkit-text-stroke: 0.7px rgba(185, 145, 255, 0.62);
  text-shadow: 0 0 22px rgba(124, 66, 255, 0.26);
}

.cp-hero-signature::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 1;
  color: transparent;
  background: linear-gradient(96deg, #9b62ff 0%, #bd83ff 36%, #f0bf6a 72%, #fff0ca 100%);
  background-clip: text;
  -webkit-background-clip: text;
  clip-path: inset(0 100% 0 0);
  filter: drop-shadow(0 0 14px rgba(124, 66, 255, 0.55));
  animation: cp-hero-graffiti-reveal 2.75s 0.75s cubic-bezier(0.18, 0.72, 0.2, 1) forwards;
}

.cp-hero-signature::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -0.45rem;
  top: 46%;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 54% 46%, rgba(240, 191, 106, 0.9) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 52%, rgba(156, 96, 255, 0.92) 0 12%, transparent 13%),
    radial-gradient(ellipse at center, rgba(156, 96, 255, 0.34), transparent 68%);
  filter: blur(1.4px);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: cp-hero-graffiti-spray 2.75s 0.75s cubic-bezier(0.18, 0.72, 0.2, 1) forwards;
}

@keyframes cp-hero-graffiti-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  18% {
    clip-path: inset(0 74% 0 0);
  }
  45% {
    clip-path: inset(0 42% 0 0);
  }
  72% {
    clip-path: inset(0 12% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes cp-hero-graffiti-spray {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.78);
  }
  10%,
  86% {
    opacity: 0.9;
  }
  100% {
    left: calc(100% + 0.85rem);
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-10deg) scale(1.08);
  }
}

.cp-hero-theatre {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: start;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.cp-hero-stage {
  position: relative;
  left: 50%;
  width: min(150%, 1180px);
  max-width: none;
  margin: 0 0 78px;
  aspect-ratio: 1672 / 941;
  transform: translateX(-50%);
  isolation: isolate;
}

.cp-hero-stage::before {
  content: "";
  position: absolute;
  inset: -9% -10% 1%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 88%, rgba(240, 191, 106, 0.2), transparent 34%),
    radial-gradient(ellipse at 50% 45%, rgba(124, 66, 255, 0.18), transparent 48%);
  filter: blur(2px);
  pointer-events: none;
}

.cp-hero-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.04);
  mask-image: radial-gradient(ellipse 72% 76% at 50% 54%, #000 50%, rgba(0, 0, 0, 0.82) 63%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 72% 76% at 50% 54%, #000 50%, rgba(0, 0, 0, 0.82) 63%, transparent 88%);
  user-select: none;
}

.cp-hero-garment-label {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.78);
}

.cp-hero-garment-label::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, rgba(255, 218, 146, 0.95), rgba(255, 218, 146, 0.18) 46%, transparent 46%, transparent 58%, rgba(255, 218, 146, 0.42) 58%);
  background-size: 1px 12px;
}

.cp-hero-garment-label::before {
  content: "";
  order: 2;
  width: 10px;
  height: 10px;
  margin-top: -0.1rem;
  border-radius: 999px;
  background: #fff4d0;
  box-shadow: 0 0 18px rgba(240, 191, 106, 0.95);
}

.cp-hero-garment-label--hoodie {
  top: 17.5%;
  left: 24.2%;
}

.cp-hero-garment-label--tee {
  top: 12.7%;
  left: 49.7%;
  transform: translateX(-50%);
}

.cp-hero-garment-label--longsleeve {
  top: 17.4%;
  right: 23.1%;
}

.cp-hero-logo-on-cloth {
  position: absolute;
  display: grid;
  justify-items: center;
  color: #ffffff;
  text-align: center;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.cp-hero-logo-on-cloth img {
  width: 100%;
  height: auto;
  filter: none;
}

.cp-hero-logo-on-cloth--hoodie {
  top: 46.3%;
  left: 30.4%;
  width: 4.7%;
  transform: translate(-50%, -50%) rotate(-1deg);
  opacity: 0.84;
  mix-blend-mode: screen;
}

.cp-hero-logo-on-cloth--hoodie span {
  margin-top: 0.16rem;
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.cp-hero-logo-on-cloth--tee {
  top: 43.2%;
  left: 49.4%;
  width: 17.5%;
  transform: translate(-50%, -50%) rotate(-4deg);
  opacity: 0.94;
  mix-blend-mode: screen;
  animation: cp-hero-tee-logo-pulse 3.1s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.cp-hero-logo-on-cloth--tee img {
  width: 30%;
  margin-bottom: 0.1rem;
}

.cp-hero-logo-on-cloth--tee strong {
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 0.92;
  letter-spacing: 0.08em;
}

.cp-hero-logo-on-cloth--tee small {
  margin-top: 0.12rem;
  color: #f0bf6a;
  font-size: 0.36rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cp-hero-logo-on-cloth--longsleeve {
  top: 42.5%;
  right: 27.7%;
  width: 3.85%;
  transform: translate(50%, -50%) rotate(2deg);
  opacity: 0.78;
  mix-blend-mode: screen;
}

.cp-hero-print-zone {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: #fff7dc;
}

.cp-hero-print-zone::before {
  content: "";
  position: absolute;
  left: var(--print-clean-x);
  top: var(--print-clean-y);
  width: var(--print-clean-w);
  aspect-ratio: 1.18;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(4, 4, 6, 0.82), rgba(4, 4, 6, 0.42) 52%, transparent 72%);
  filter: blur(3px);
  opacity: 0.82;
  transform: translate(-50%, -50%) rotate(var(--print-clean-rotate, 0deg));
  mix-blend-mode: multiply;
}

.cp-hero-print-zone__frame {
  position: absolute;
  left: var(--frame-x);
  top: var(--frame-y);
  width: var(--frame-w);
  min-width: 34px;
  aspect-ratio: 148 / 210;
  display: grid;
  place-items: center;
  padding: clamp(3px, 0.55vw, 8px);
  border: 2.4px solid rgba(255, 240, 198, 0.98);
  border-radius: 9%;
  background:
    linear-gradient(180deg, rgba(255, 236, 188, 0.24), rgba(124, 66, 255, 0.14)),
    repeating-linear-gradient(135deg, rgba(255, 226, 164, 0.44), rgba(255, 226, 164, 0.44) 1px, rgba(8, 7, 9, 0.12) 1px, rgba(8, 7, 9, 0.12) 8px);
  box-shadow:
    0 0 0 1px rgba(124, 66, 255, 0.56),
    0 0 34px rgba(240, 191, 106, 0.62),
    0 0 24px rgba(124, 66, 255, 0.38),
    inset 0 0 20px rgba(255, 236, 188, 0.22);
  filter:
    drop-shadow(0 0 10px rgba(255, 236, 188, 0.42))
    drop-shadow(0 0 18px rgba(124, 66, 255, 0.32));
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--frame-rotate, 0deg)) scale(0.86);
  transform-origin: center;
  animation: cp-hero-print-zone-cycle 7.2s ease-in-out infinite both;
  will-change: transform, opacity;
}

.cp-hero-print-zone__frame::before,
.cp-hero-print-zone__frame::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 12%;
  pointer-events: none;
}

.cp-hero-print-zone__frame::before {
  border: 1.2px dashed rgba(255, 246, 222, 0.82);
  filter: drop-shadow(0 0 10px rgba(240, 191, 106, 0.86));
}

.cp-hero-print-zone__frame::after {
  background:
    linear-gradient(90deg, rgba(255, 246, 222, 0.9), transparent 24%) left top / 34% 1px no-repeat,
    linear-gradient(90deg, transparent 76%, rgba(255, 246, 222, 0.9)) right bottom / 34% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 246, 222, 0.9), transparent 24%) left top / 1px 34% no-repeat,
    linear-gradient(180deg, transparent 76%, rgba(255, 246, 222, 0.9)) right bottom / 1px 34% no-repeat;
}

.cp-hero-print-zone__frame span,
.cp-hero-print-zone__frame strong {
  position: relative;
  z-index: 1;
  display: block;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
}

.cp-hero-print-zone__frame span {
  max-width: 9ch;
  font-size: clamp(0.36rem, 0.55vw, 0.55rem);
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 248, 226, 0.98);
}

.cp-hero-print-zone__frame strong {
  margin-top: 0.24rem;
  color: #f0bf6a;
  font-size: clamp(0.42rem, 0.72vw, 0.68rem);
  font-weight: 950;
}

.cp-hero-print-zone__frame--a6 {
  --frame-x: var(--a6-x);
  --frame-y: var(--a6-y);
  --frame-w: var(--a6-w);
  --frame-rotate: var(--a6-rotate, 0deg);
  animation-delay: 0s;
}

.cp-hero-print-zone__frame--a5 {
  --frame-x: var(--a5-x);
  --frame-y: var(--a5-y);
  --frame-w: var(--a5-w);
  --frame-rotate: var(--a5-rotate, 0deg);
  animation-delay: 2.4s;
}

.cp-hero-print-zone__frame--a4 {
  --frame-x: var(--a4-x);
  --frame-y: var(--a4-y);
  --frame-w: var(--a4-w);
  --frame-rotate: var(--a4-rotate, 0deg);
  animation-delay: 4.8s;
}

.cp-hero-print-zone--hoodie {
  --print-clean-x: 30.5%;
  --print-clean-y: 46.2%;
  --print-clean-w: 10.2%;
  --print-clean-rotate: -3deg;
  --a6-x: 30.5%;
  --a6-y: 45.2%;
  --a6-w: 5.1%;
  --a6-rotate: -4deg;
  --a5-x: 32.2%;
  --a5-y: 49.5%;
  --a5-w: 7.4%;
  --a5-rotate: -3deg;
  --a4-x: 32.3%;
  --a4-y: 50.1%;
  --a4-w: 9.35%;
  --a4-rotate: -3deg;
}

.cp-hero-print-zone--longsleeve {
  --print-clean-x: 72.5%;
  --print-clean-y: 43.3%;
  --print-clean-w: 8.6%;
  --print-clean-rotate: 4deg;
  --a6-x: 72.6%;
  --a6-y: 43.4%;
  --a6-w: 4.7%;
  --a6-rotate: 4deg;
  --a5-x: 76.2%;
  --a5-y: 47.1%;
  --a5-w: 6.7%;
  --a5-rotate: 4deg;
  --a4-x: 76.4%;
  --a4-y: 47.7%;
  --a4-w: 8.5%;
  --a4-rotate: 4deg;
}

@keyframes cp-hero-print-zone-cycle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--frame-rotate, 0deg)) scale(0.88);
  }
  6%,
  38% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--frame-rotate, 0deg)) scale(1);
  }
  45%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--frame-rotate, 0deg)) scale(1.06);
  }
}

@keyframes cp-hero-tee-logo-pulse {
  0%,
  100% {
    opacity: 0.88;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)) brightness(1);
    transform: translate(-50%, -50%) rotate(-4deg) scale(1);
  }
  44% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(255, 236, 188, 0.34)) brightness(1.22);
    transform: translate(-50%, -50%) rotate(-4deg) scale(1.035);
  }
  55% {
    opacity: 0.72;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)) brightness(0.92);
    transform: translate(-50%, -50%) rotate(-4deg) scale(1.01);
  }
  62% {
    opacity: 0.98;
  }
}

.cp-hero-palette {
  position: absolute;
  right: 2.5%;
  bottom: 1.2rem;
  left: 2.5%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 64px;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(8, 10, 15, 0.72);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cp-hero-palette span,
.cp-hero-palette b {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.cp-hero-palette i {
  display: inline-flex;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.18), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.cp-hero-palette .cp-hero-swatch-rainbow {
  background: conic-gradient(from 20deg, #ef4444, #f59e0b, #84cc16, #22c55e, #06b6d4, #3b82f6, #7c3aed, #ef4444);
}

.cp-hero-palette button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cp-hero-options {
  position: relative;
  z-index: 3;
  display: grid;
  align-self: start;
  justify-self: end;
  gap: 0.64rem;
  width: min(100%, 310px);
  margin-top: 22px;
  min-width: 0;
}

.cp-hero-option {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 118px;
  padding: 0.88rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 18%, rgba(124, 66, 255, 0.2), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.cp-hero-option:nth-child(2n) {
  background:
    radial-gradient(circle at 88% 20%, rgba(240, 191, 106, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border-color: rgba(240, 191, 106, 0.18);
}

.cp-hero-option::after {
  content: "";
  position: absolute;
  top: 1.35rem;
  right: 1.25rem;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--cp-ref-purple);
  box-shadow: 0 0 18px rgba(124, 66, 255, 0.9);
}

.cp-hero-option:nth-child(2n)::after {
  background: #f4c56c;
  box-shadow: 0 0 18px rgba(240, 191, 106, 0.9);
}

.cp-hero-option-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cp-hero-option-icon svg {
  width: 42px;
  height: 42px;
}

.cp-hero-option-icon--violet {
  box-shadow: 0 0 32px rgba(124, 66, 255, 0.26);
  color: #f3ecff;
}

.cp-hero-option-icon--gold {
  box-shadow: 0 0 32px rgba(240, 191, 106, 0.2);
  color: #fff0cb;
}

.cp-hero-option strong {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cp-hero-option p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.34;
}

.cp-hero-mini-swatches {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.cp-hero-mini-swatches i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #7046c8;
}

.cp-hero-mini-swatches i:nth-child(2) { background: #315d8f; }
.cp-hero-mini-swatches i:nth-child(3) { background: #4b8062; }
.cp-hero-mini-swatches i:nth-child(4) { background: #d24d36; }
.cp-hero-mini-swatches i:nth-child(5) { background: #f5a542; }

.cp-hero-telegram-mobile {
  display: none;
}

.cp-shell[data-flow-phase="lobby"] .cp-hero--reference {
  height: clamp(680px, 74svh, 760px) !important;
  min-height: clamp(680px, 74svh, 760px) !important;
  max-height: 760px;
}

.cp-shell[data-flow-phase="studio"] .cp-hero--reference {
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  height: auto !important;
  min-height: auto !important;
  max-height: none;
  padding: 1rem 1.1rem;
  align-items: center;
}

.cp-shell[data-flow-phase="studio"] .cp-hero--reference .cp-hero-options,
.cp-shell[data-flow-phase="studio"] .cp-hero--reference .cp-hero-proof-row,
.cp-shell[data-flow-phase="studio"] .cp-hero--reference .cp-hero-signature {
  display: none;
}

.cp-shell[data-flow-phase="studio"] .cp-hero--reference .cp-hero-copy {
  padding-top: 0;
}

.cp-shell[data-flow-phase="studio"] .cp-hero--reference .cp-hero-title {
  max-width: none;
  font-size: 2.35rem;
}

.cp-shell[data-flow-phase="studio"] .cp-hero-stage {
  left: auto;
  width: min(100%, 420px);
  margin: 0 auto;
  transform: none;
}

.cp-shell[data-flow-phase="studio"] .cp-hero-palette,
.cp-shell[data-flow-phase="studio"] .cp-hero-garment-label,
.cp-shell[data-flow-phase="studio"] .cp-hero-logo-on-cloth,
.cp-shell[data-flow-phase="studio"] .cp-hero-print-zone {
  display: none;
}

@media (min-width: 921px) and (max-width: 1500px) {
  .cp-hero--reference .cp-hero-copy {
    gap: 0.82rem;
    width: min(100%, 405px);
    padding-top: 20px;
  }

  .cp-hero--reference .cp-hero-title {
    font-size: 3.95rem;
  }

  .cp-hero--reference .cp-hero-desc {
    font-size: 0.95rem;
    line-height: 1.42;
  }

  .cp-hero--reference .cp-btn {
    min-height: 50px;
    padding-block: 0.84rem;
  }

  .cp-hero-signature {
    font-size: clamp(1.32rem, 1.7vw, 1.72rem);
  }

  .cp-hero-proof-row span {
    min-height: 42px;
    padding-block: 0.34rem;
  }
}

@media (max-width: 1320px) {
  .cp-hero--reference {
    grid-template-columns: minmax(270px, 0.68fr) minmax(430px, 1.28fr) minmax(244px, 0.58fr);
    padding-inline: 24px;
  }

  .cp-hero--reference .cp-hero-title {
    font-size: 3.85rem;
  }

  .cp-hero-stage {
    width: min(140%, 1060px);
  }

  .cp-hero-options {
    width: min(100%, 294px);
    margin-top: 34px;
  }

  .cp-hero-proof-row {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 286px);
  }

  .cp-hero-proof-row span {
    min-height: 42px;
  }

  .cp-hero-option {
    min-height: 126px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0.82rem;
  }

  .cp-hero-option-icon {
    width: 62px;
    height: 62px;
  }

  .cp-hero-option-icon svg {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 1100px) {
  .cp-hero--reference {
    grid-template-columns: minmax(0, 0.78fr) minmax(430px, 1.18fr);
    min-height: auto;
    align-items: center;
  }

  .cp-hero--reference .cp-hero-copy {
    width: min(100%, 360px);
  }

  .cp-hero--reference .cp-hero-title {
    font-size: 4rem;
  }

  .cp-hero-options {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cp-hero-option {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 164px;
  }
}

@media (max-width: 920px) {
  .cp-hero--reference {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    height: auto !important;
    min-height: auto !important;
    padding: 1.15rem;
  }

  .cp-hero--reference .cp-hero-copy {
    width: min(100%, 620px);
  }

  .cp-hero--reference .cp-hero-title {
    max-width: 12ch;
    font-size: 3.35rem;
  }

  .cp-hero--reference .cp-hero-desc {
    max-width: 560px;
  }

  .cp-hero--reference .cp-hero-actions {
    width: min(100%, 420px);
  }

  .cp-hero-proof-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .cp-hero-stage {
    width: 100%;
    left: auto;
    transform: none;
    margin-bottom: 84px;
  }

  .cp-hero-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-hero-option {
    min-height: 138px;
  }
}

@media (max-width: 680px) {
  .bottom-nav {
    display: none !important;
  }

  .cp-hero--reference {
    gap: 0.72rem;
    padding: 0.82rem 0.92rem calc(1.05rem + env(safe-area-inset-bottom));
    border-radius: 22px;
    max-height: none;
  }

  .cp-shell[data-flow-phase="lobby"] .cp-hero--reference {
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
  }

  .cp-hero--reference .cp-hero-copy {
    gap: 0.72rem;
    padding-top: 0;
  }

  .cp-hero--reference .cp-hero-badge {
    padding: 0.62rem 1rem;
    font-size: 0.7rem;
  }

  .cp-hero--reference .cp-hero-title {
    max-width: 12ch;
    font-size: 2.38rem;
    line-height: 1.04;
  }

  .cp-hero--reference .cp-hero-desc {
    max-width: 31ch;
    font-size: 0.88rem;
    line-height: 1.38;
    overflow-wrap: break-word;
  }

  .cp-hero--reference .cp-hero-copy,
  .cp-hero--reference .cp-hero-actions {
    width: 100%;
  }

  .cp-hero--reference .cp-btn {
    min-height: 48px;
    padding-inline: 1rem;
  }

  .cp-hero--reference .cp-hero-actions {
    gap: 0.58rem;
    margin-top: 0.1rem;
  }

  .cp-hero--reference .cp-hero-actions .cp-btn--telegram {
    display: none;
  }

  .cp-hero-telegram-mobile {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    margin-top: 0.1rem;
    justify-content: center;
  }

  .cp-hero-proof-row {
    display: none;
  }

  .cp-hero-signature {
    display: inline-block;
    margin-top: 0.08rem;
    font-size: 1.18rem;
  }

  .cp-hero-stage {
    left: 50%;
    width: min(108%, 430px);
    margin: -0.35rem 0 0;
    transform: translateX(-50%);
  }

  .cp-hero-garment-label {
    font-size: 0.74rem;
  }

  .cp-hero-garment-label::after {
    height: 34px;
  }

  .cp-hero-logo-on-cloth--hoodie span,
  .cp-hero-logo-on-cloth--tee small {
    display: none;
  }

  .cp-hero-logo-on-cloth--tee strong {
    font-size: 0.68rem;
  }

  .cp-hero-print-zone__frame {
    min-width: 24px;
    padding: 3px;
    border-width: 1px;
  }

  .cp-hero-print-zone__frame span {
    display: none;
  }

  .cp-hero-print-zone__frame strong {
    margin-top: 0;
    font-size: 0.46rem;
  }

  .cp-hero-palette {
    display: none;
  }

  .cp-hero-palette span,
  .cp-hero-palette b {
    font-size: 0.72rem;
  }

  .cp-hero-palette i {
    width: 22px;
    height: 22px;
  }

  .cp-hero-options {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 42vw);
    gap: 0.55rem;
    width: 100%;
    margin-top: 0.1rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .cp-hero-options::-webkit-scrollbar {
    display: none;
  }

  .cp-hero-option {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.55rem;
    min-height: 58px;
    padding: 0.58rem 0.68rem;
    border-radius: 14px;
  }

  .cp-hero-option-icon {
    width: 34px;
    height: 34px;
  }

  .cp-hero-option-icon svg {
    width: 21px;
    height: 21px;
  }

  .cp-hero-option strong {
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }

  .cp-hero-option p,
  .cp-hero-mini-swatches {
    display: none;
  }

  .cp-hero-option::after {
    top: 0.52rem;
    right: 0.52rem;
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 420px) {
  .cp-hero--reference .cp-hero-title {
    font-size: 2.24rem;
  }

  .cp-hero-stage {
    width: min(104%, 390px);
    margin-left: 0;
  }

  .cp-hero-garment-label--hoodie {
    left: 23%;
  }

  .cp-hero-garment-label--longsleeve {
    right: 21%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-hero-logo-on-cloth--tee,
  .cp-hero-print-zone__frame,
  .cp-hero-signature::before,
  .cp-hero-signature::after {
    animation: none !important;
  }

  .cp-hero-logo-on-cloth--tee {
    opacity: 0.94;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    transform: translate(-50%, -50%) rotate(-4deg);
  }

  .cp-hero-print-zone__frame {
    opacity: 0;
  }

  .cp-hero-print-zone__frame--a4 {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--frame-rotate, 0deg)) scale(1);
  }

  .cp-hero-signature::before {
    clip-path: inset(0 0 0 0);
  }

  .cp-hero-signature::after {
    display: none;
  }
}
