/* GOALKIT — Customize V2 */

body.cz-body { background: var(--charcoal, #14181F); }

/* HERO */
.cz-hero {
  padding: 36px 0 18px;
  background: radial-gradient(ellipse at top right, rgba(217,254,6,0.08), transparent 60%), var(--charcoal);
}
.cz-hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 5vw, 48px); letter-spacing: 0.5px; }
.cz-hero .lead { color: var(--text-muted, #9BA3B0); max-width: 760px; font-size: 16px; }

/* STEPPER */
.cz-stepper-wrap { background: var(--charcoal-2, #1F252F); border-top: 1px solid var(--charcoal-3, #2A3140); border-bottom: 1px solid var(--charcoal-3, #2A3140); padding: 14px 0; position: sticky; top: 64px; z-index: 10; }
.cz-stepper { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.cz-stepper li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--charcoal-3, #2A3140); color: var(--text-muted, #9BA3B0); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.18s; flex: 1 1 auto; min-width: 120px; justify-content: center; }
.cz-stepper li.is-active { background: var(--lime, #D9FE06); color: var(--charcoal, #14181F); }
.cz-stepper li.is-done { background: rgba(217,254,6,0.15); color: var(--lime, #D9FE06); }
.cz-step-n { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.15); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.cz-stepper li.is-active .cz-step-n { background: rgba(20,24,31,0.2); color: var(--charcoal, #14181F); }
.cz-stepper li.is-done .cz-step-n { background: rgba(217,254,6,0.2); }
@media (max-width: 600px) {
  .cz-step-l { display: none; }
  .cz-stepper li { padding: 6px 10px; min-width: 0; flex: 1 1 0; }
}

/* GRID */
.cz-main { padding: 24px 0 80px; }
/* Global: ensure `hidden` attribute always wins */
[hidden] { display: none !important; }

.cz-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; max-width: 760px; margin: 0 auto; }
@media (max-width: 900px) { .cz-grid { gap: 24px; } }

/* PREVIEW PANE */
.cz-preview { position: sticky; top: 130px; }
@media (max-width: 900px) { .cz-preview { position: static; } }
.cz-preview-card { background: var(--charcoal-2, #1F252F); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,0.4); }
.cz-tabs { display: flex; border-bottom: 1px solid var(--charcoal-3, #2A3140); }
.cz-tab { flex: 1; padding: 12px 16px; background: transparent; color: var(--text-muted, #9BA3B0); border: none; cursor: pointer; font-weight: 700; font-size: 13.5px; letter-spacing: 0.3px; transition: all 0.18s; -webkit-appearance: none; appearance: none; }
.cz-tab:disabled { opacity: 0.4; cursor: not-allowed; }
.cz-tab.is-active { color: var(--lime, #D9FE06); border-bottom: 2px solid var(--lime, #D9FE06); }

.cz-canvas-wrap { position: relative; aspect-ratio: 1/1; background: var(--charcoal-3, #2A3140); }
.cz-canvas-wrap canvas { width: 100%; height: 100%; display: block; object-fit: contain; cursor: grab; touch-action: none; user-select: none; }
.cz-canvas-wrap canvas:active { cursor: grabbing; }
#cz-tryon-canvas { aspect-ratio: 3/4; }
.cz-empty-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted, #9BA3B0); text-align: center; pointer-events: none; padding: 20px; }
.cz-empty-icon { font-size: 60px; opacity: 0.5; }

.cz-price-strip { padding: 14px 16px; border-top: 1px solid var(--charcoal-3, #2A3140); background: var(--charcoal, #14181F); }
.cz-price-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; padding: 3px 0; color: var(--text, #E8EAEE); }
.cz-price-label { color: var(--text-muted, #9BA3B0); }
.cz-price-total { font-size: 17px; font-weight: 800; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--charcoal-3, #2A3140); }
.cz-price-total .cz-price-val { color: var(--lime, #D9FE06); font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; letter-spacing: 1px; }
.cz-price-val { color: var(--text, #E8EAEE); font-weight: 700; }

.cz-preview-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--charcoal-3, #2A3140); background: var(--charcoal, #14181F); }
.cz-preview-actions .btn { flex: 1; padding: 9px 14px; font-size: 13px; }

/* STEP PANELS */
.cz-step { display: none; background: var(--charcoal-2, #1F252F); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 16px; padding: 24px; }
.cz-step.is-active { display: block; }
.cz-step-head h2 { margin: 0 0 6px; font-size: 22px; color: var(--white, #fff); }
.cz-step-head p { margin: 0 0 16px; color: var(--text-muted, #9BA3B0); font-size: 14px; }

/* FILTER + SEARCH */
.cz-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cz-chip { padding: 8px 14px; background: var(--charcoal-3, #2A3140); color: var(--text, #E8EAEE); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.18s; -webkit-appearance: none; appearance: none; }
.cz-chip:hover { border-color: var(--lime, #D9FE06); color: var(--lime, #D9FE06); }
.cz-chip.is-active { background: var(--lime, #D9FE06); color: var(--charcoal, #14181F); border-color: var(--lime, #D9FE06); }
.cz-search { width: 100%; padding: 11px 14px; background: var(--charcoal, #14181F); color: var(--text, #E8EAEE); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.cz-search:focus { outline: none; border-color: var(--lime, #D9FE06); }

/* PRODUCT GRID */
.cz-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; }
.cz-product { background: var(--charcoal, #14181F); border: 2px solid var(--charcoal-3, #2A3140); border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; transition: all 0.15s; -webkit-appearance: none; appearance: none; text-align: left; }
.cz-product:hover { border-color: rgba(217,254,6,0.5); transform: translateY(-2px); }
.cz-product.is-active { border-color: var(--lime, #D9FE06); box-shadow: 0 0 0 2px rgba(217,254,6,0.25); }
.cz-product img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cz-product-meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.cz-product-name { font-size: 12px; line-height: 1.3; color: var(--text, #E8EAEE); font-weight: 600; }
.cz-product-price { font-family: 'Bebas Neue', Impact, sans-serif; font-size: 17px; color: var(--lime, #D9FE06); letter-spacing: 0.5px; }
.cz-skeleton-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cz-skeleton-row span { background: var(--charcoal-3, #2A3140); border-radius: 10px; aspect-ratio: 1; animation: czPulse 1.5s ease-in-out infinite; }
@keyframes czPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* CONTROLS */
.cz-control { margin-bottom: 16px; }
.cz-control label { display: block; font-size: 13px; font-weight: 700; color: var(--text, #E8EAEE); margin-bottom: 6px; }
.cz-control label small { color: var(--text-muted, #9BA3B0); font-weight: 400; }
.cz-control input[type="text"],
.cz-control input[type="number"],
.cz-control input[type="search"] { width: 100%; padding: 11px 14px; background: var(--charcoal, #14181F); color: var(--text, #E8EAEE); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 10px; font-size: 14px; font-family: inherit; }
.cz-control input:focus { outline: none; border-color: var(--lime, #D9FE06); }
.cz-control input[type="range"] { width: 100%; accent-color: var(--lime, #D9FE06); }
.cz-control input[type="file"] { width: 100%; color: var(--text-muted, #9BA3B0); font-size: 13px; }

/* FONT / NUM / SWATCH GRIDS */
.cz-font-grid, .cz-numstyle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.cz-font, .cz-numstyle { padding: 10px 8px; background: var(--charcoal, #14181F); color: var(--text, #E8EAEE); border: 1.5px solid var(--charcoal-3, #2A3140); border-radius: 8px; cursor: pointer; font-size: 13px; letter-spacing: 1px; transition: all 0.15s; -webkit-appearance: none; appearance: none; }
.cz-font:hover, .cz-numstyle:hover { border-color: rgba(217,254,6,0.5); }
.cz-font.is-active, .cz-numstyle.is-active { background: var(--lime, #D9FE06); color: var(--charcoal, #14181F); border-color: var(--lime, #D9FE06); }

.cz-color-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cz-swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--charcoal-3, #2A3140); cursor: pointer; padding: 0; transition: transform 0.15s, border-color 0.15s; -webkit-appearance: none; appearance: none; }
.cz-swatch:hover { transform: scale(1.1); }
.cz-swatch.is-active { border-color: var(--lime, #D9FE06); transform: scale(1.1); box-shadow: 0 0 0 2px rgba(217,254,6,0.25); }
.cz-swatch-custom { width: 40px; height: 40px; border: 2px solid var(--charcoal-3, #2A3140); border-radius: 8px; cursor: pointer; padding: 0; background: transparent; }

/* ADVANCED ACCORDION */
.cz-advanced { background: var(--charcoal, #14181F); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.cz-advanced summary { cursor: pointer; font-weight: 700; color: var(--text, #E8EAEE); font-size: 13px; padding: 4px 0; }
.cz-advanced summary::marker { color: var(--lime, #D9FE06); }
.cz-advanced[open] summary { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--charcoal-3, #2A3140); }
.cz-mini { font-size: 11.5px; line-height: 1.5; margin: 4px 0 0; }

/* SIZE GRID */
.cz-size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cz-size { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; background: var(--charcoal, #14181F); color: var(--text, #E8EAEE); border: 1.5px solid var(--charcoal-3, #2A3140); border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; transition: all 0.15s; -webkit-appearance: none; appearance: none; }
.cz-size:hover { border-color: rgba(217,254,6,0.5); }
.cz-size span { font-size: 10px; color: var(--text-muted, #9BA3B0); font-weight: 400; }
.cz-size.is-active { background: var(--lime, #D9FE06); color: var(--charcoal, #14181F); border-color: var(--lime, #D9FE06); }
.cz-size.is-active span { color: var(--charcoal, #14181F); }

/* ORDER SUMMARY */
.cz-order-summary { background: var(--charcoal, #14181F); border: 1px solid var(--charcoal-3, #2A3140); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.cz-order-summary h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--lime, #D9FE06); }
.cz-order-summary ul { list-style: none; padding: 0; margin: 0; }
.cz-order-summary li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--charcoal-3, #2A3140); font-size: 13.5px; }
.cz-order-summary li:first-child { border-top: none; }
.cz-order-summary li span { color: var(--text-muted, #9BA3B0); }
.cz-order-summary li strong { color: var(--text, #E8EAEE); text-align: right; }
.cz-sum-total { padding-top: 12px !important; margin-top: 4px; border-top: 2px solid var(--charcoal-3, #2A3140) !important; font-size: 16px !important; }
.cz-sum-total strong { color: var(--lime, #D9FE06) !important; font-family: 'Bebas Neue', Impact, sans-serif; font-size: 22px; letter-spacing: 1px; }

.cz-order-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .cz-order-actions { grid-template-columns: 1fr 1fr; } }

.cz-next { width: 100%; margin-top: 10px; }

/* TRY-ON MODE PICKER */
.cz-tryon-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.cz-mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid var(--charcoal-3, #2A3140);
  background: var(--charcoal, #14181F);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  color: var(--text, #E8EAEE);
  font-family: inherit;
}
.cz-mode:hover { border-color: var(--lime, #D9FE06); }
.cz-mode.is-active {
  border-color: var(--lime, #D9FE06);
  background: rgba(217, 254, 6, 0.08);
  box-shadow: 0 0 0 2px rgba(217, 254, 6, 0.15);
}
.cz-mode-icon { font-size: 22px; line-height: 1; }
.cz-mode-title { font-size: 13px; font-weight: 700; }
.cz-mode-sub { font-size: 10.5px; color: var(--text-muted, #9BA3B0); }
@media (max-width: 480px) {
  .cz-tryon-modes { grid-template-columns: 1fr; }
  .cz-mode { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; }
  .cz-mode-icon { font-size: 24px; }
}

/* CAMERA CAPTURE */
.cz-camera-wrap, .cz-ar-wrap {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--charcoal-3, #2A3140);
}
.cz-camera-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror front cam */
}
.cz-camera-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.cz-camera-guide-frame {
  width: 60%;
  aspect-ratio: 1;
  border: 2px dashed rgba(217, 254, 6, 0.55);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  margin-bottom: 10px;
}
.cz-jersey-silhouette {
  width: 70%;
  max-height: 75%;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(0,0,0,0.45));
}
.cz-camera-guide p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 999px;
}
.cz-camera-btns, .cz-ar-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cz-camera-btns .btn-primary, .cz-ar-controls .btn-primary { flex: 1 1 auto; min-width: 140px; }

/* LIVE AR */
.cz-ar-wrap video { display: none; } /* hidden — we draw to canvas */
.is-pulse {
  animation: cz-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(217, 254, 6, 0.7);
}
@keyframes cz-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 254, 6, 0.7); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(217, 254, 6, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(217, 254, 6, 0); transform: scale(1); }
}
.cz-ar-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.cz-ar-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  transition: opacity 0.3s;
}
.cz-ar-guide p {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 4px 10px;
  border-radius: 999px;
}
.cz-ar-wrap.is-running .cz-ar-guide { opacity: 0; }

/* TRY-ON */
.cz-tryon-card { margin-bottom: 16px; }
.cz-upload-area {
  border: 2px dashed var(--charcoal-3, #2A3140);
  background: var(--charcoal, #14181F);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.cz-upload-area:hover, .cz-upload-area:focus-visible { border-color: var(--lime, #D9FE06); background: rgba(217,254,6,0.04); outline: none; }
.cz-upload-area.is-dragover { border-color: var(--lime, #D9FE06); background: rgba(217,254,6,0.08); }
.cz-upload-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.cz-upload-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--text, #E8EAEE); }
.cz-upload-sub { margin: 0; color: var(--text-muted, #9BA3B0); font-size: 12px; }

.cz-tryon-controls { padding: 14px 0; }
.cz-tryon-btns { display: flex; gap: 8px; margin-top: 8px; }
.cz-tryon-btns .btn { flex: 1; }
.cz-tryon-status { margin-top: 10px; font-size: 13px; padding: 9px 12px; border-radius: 8px; min-height: 18px; }
.cz-tryon-status:empty { display: none; }
.cz-tryon-status.is-loading { background: rgba(217,254,6,0.06); border: 1px solid rgba(217,254,6,0.3); color: var(--lime, #D9FE06); }
.cz-tryon-status.is-success { background: rgba(217,254,6,0.1); border: 1px solid var(--lime, #D9FE06); color: var(--lime, #D9FE06); }
.cz-tryon-status.is-error { background: rgba(255,90,90,0.08); border: 1px solid rgba(255,90,90,0.3); color: #ff9090; }

/* No-base fallback + selected-jersey banner */
.cz-no-base {
  text-align: center;
  padding: 32px 20px;
  background: rgba(217, 254, 6, 0.05);
  border: 1.5px dashed rgba(217, 254, 6, 0.4);
  border-radius: 14px;
  margin-bottom: 14px;
}
.cz-no-base p { margin: 0 0 14px; color: var(--text, #E8EAEE); font-size: 15px; }
.cz-no-base .btn { padding: 12px 28px; }

.cz-selected-jersey {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--charcoal, #14181F);
  border: 1.5px solid rgba(217, 254, 6, 0.35);
  border-radius: 12px;
  margin-bottom: 14px;
}
.cz-selected-jersey img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.cz-selected-jersey-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cz-selected-jersey-info strong { font-size: 14px; color: var(--text, #E8EAEE); }
.cz-selected-jersey-info span { font-size: 12px; }
.cz-selected-jersey .btn { white-space: nowrap; }

/* AI VTON RESULT PANEL */
.cz-tryon-result {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cz-tryon-result-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--charcoal, #14181F);
  border: 1.5px solid var(--charcoal-3, #2A3140);
  min-height: 320px;
}
.cz-tryon-result-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 0.4s ease;
}
.cz-tryon-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(20, 24, 31, 0.75);
  backdrop-filter: blur(4px);
  color: var(--text, #E8EAEE);
  text-align: center;
  padding: 24px;
}
.cz-tryon-loading p { margin: 0; font-size: 14px; transition: opacity 0.3s ease; }
.cz-tryon-loading #cz-tryon-loading-text { font-weight: 600; }
.cz-tryon-loading .cz-mini { font-size: 12px; color: var(--text-muted, #9BA3B0); }
.cz-progress-track {
  width: 240px;
  max-width: 80%;
  height: 6px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(217, 254, 6, 0.12);
  overflow: hidden;
  position: relative;
}
.cz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(217, 254, 6, 0.6), var(--lime, #D9FE06));
  border-radius: 999px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 12px rgba(217, 254, 6, 0.6);
}
.cz-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: cz-shimmer 1.4s linear infinite;
}
@keyframes cz-shimmer { 0% { transform: translateX(-40px); } 100% { transform: translateX(40px); } }
.cz-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(217, 254, 6, 0.18);
  border-top-color: var(--lime, #D9FE06);
  border-radius: 50%;
  animation: cz-spin 0.9s linear infinite;
}
@keyframes cz-spin { to { transform: rotate(360deg); } }
.cz-tryon-result-meta {
  font-size: 12px;
  color: var(--text-muted, #9BA3B0);
  text-align: center;
}
.cz-tryon-result-meta:empty { display: none; }
.cz-tryon-result-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.cz-tryon-result-btns .btn { flex: 1 1 auto; min-width: 130px; text-align: center; }

/* TEXT LAYERS */
.cz-text-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 8px; }
.cz-text-layers:empty + #cz-add-text { margin-top: 4px; }
.cz-layer-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--charcoal, #14181F);
  border: 1.5px solid var(--charcoal-3, #2A3140);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 12.5px;
  color: var(--text, #E8EAEE);
  cursor: pointer;
  transition: border-color 0.15s;
}
.cz-layer-chip.is-selected { border-color: var(--lime, #D9FE06); background: rgba(217,254,6,0.06); }
.cz-layer-chip:hover { border-color: var(--lime, #D9FE06); }
.cz-layer-chip button {
  background: transparent; border: none; color: var(--text-muted, #9BA3B0);
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; border-radius: 50%;
}
.cz-layer-chip button:hover { color: #ff6464; }
.cz-layer-text { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* SELECTED-LAYER PANEL */
.cz-selected-controls {
  background: linear-gradient(135deg, rgba(217,254,6,0.06), rgba(217,254,6,0.01));
  border: 1px solid rgba(217,254,6,0.35);
  border-radius: 12px;
  padding: 12px 14px;
}
.cz-sel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.cz-sel-grid input[type="text"] { grid-column: 1 / -1; }
.cz-sel-grid select {
  width: 100%; padding: 9px 11px;
  background: var(--charcoal, #14181F); color: var(--text, #E8EAEE);
  border: 1px solid var(--charcoal-3, #2A3140); border-radius: 8px;
  font-size: 13px; font-family: inherit;
}
.cz-sel-num { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted, #9BA3B0); }
.cz-sel-num input[type="range"] { flex: 1; accent-color: var(--lime, #D9FE06); }
.cz-sel-grid input[type="color"] { width: 100%; height: 38px; border: 1px solid var(--charcoal-3, #2A3140); border-radius: 8px; background: transparent; padding: 2px; }
.cz-sel-grid .btn-ghost { grid-column: 1 / -1; }

/* TOAST fallback */
.gk-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 80px); background: var(--charcoal-2, #1F252F); color: var(--text, #E8EAEE); border: 1px solid var(--lime, #D9FE06); padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 22px rgba(0,0,0,0.4); z-index: 10000; transition: transform 0.25s; font-size: 14px; font-weight: 600; }
.gk-toast.is-show { transform: translate(-50%, 0); }

/* Mobile compaction */
@media (max-width: 600px) {
  .cz-hero { padding: 24px 0 12px; }
  .cz-step { padding: 18px 16px; }
  .cz-product-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: 420px; }
  .cz-stepper-wrap { top: 60px; }
}
