:root {
  --bg: #08090b;
  --bg-soft: #101116;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: #252832;
  --line-hot: #ff3c00;
  --line-red: #e63000;
  --text: #ffffff;
  --muted: #a7acb8;
  --dim: #707684;
  --green: #1fd67b;
  --shadow-hot: 0 0 24px rgba(255, 60, 0, 0.34);
  --radius: 10px;
  --crystal-aspect: 1.3080599308 / 1.588060379;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 60, 0, 0.12), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(35, 108, 255, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, canvas { max-width: 100%; }

.builder-shell { padding-top: 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--line-hot);
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 0 32px rgba(255, 60, 0, 0.30);
}
.section-heading p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}
.btn.is-disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--line-hot), var(--line-red));
  box-shadow: var(--shadow-hot);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
.btn-large { margin-top: 32px; min-height: 54px; padding-inline: 30px; }
.btn-full { width: 100%; }

.progress-wrap {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(13, 14, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}
.progress {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.progress-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dim);
  background: rgba(255,255,255,0.03);
}
.progress-step span {
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #1a1c22;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}
.progress-step strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-step.is-active {
  color: var(--text);
  border-color: rgba(255, 60, 0, 0.72);
  box-shadow: 0 0 22px rgba(255, 60, 0, 0.16);
}
.progress-step.is-active span { background: var(--line-hot); color: white; }
.progress-step.is-complete span { background: var(--green); color: #04120b; }
.progress-step.is-skipped {
  opacity: 0.45;
  border-style: dashed;
}

.step {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 28px 64px;
  animation: stepIn 300ms ease both;
}
.step.is-active { display: block; }
#step-1 { padding-top: 48px; }
.section-heading { text-align: center; margin-bottom: 44px; }
.section-heading h2 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  text-transform: uppercase;
}
.question-block { margin-bottom: 32px; }
.question-block h3, .glass-panel h3, .tool-group h3 { margin-bottom: 18px; font-size: 1rem; text-transform: uppercase; }

.questionnaire {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}
.question-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.question-progress span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  color: var(--dim);
  font-weight: 900;
}
.question-progress span.is-active {
  border-color: var(--line-hot);
  background: rgba(255,60,0,0.18);
  color: white;
  box-shadow: var(--shadow-hot);
}
.question-progress span.is-complete {
  border-color: var(--green);
  background: var(--green);
  color: #03130a;
}
.question-panel {
  display: none;
  min-height: 520px;
  animation: questionIn 320ms ease both;
}
.question-panel.is-active { display: block; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.usage-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.usage-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.start-heading { margin-bottom: 24px; }
.start-heading h2 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
.start-choice-grid {
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-card, .glass-panel, .config-card, .toolbox, .summary-card, .modal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
}
.choice-card {
  position: relative;
  min-height: 160px;
  padding: 22px;
  color: var(--text);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.choice-card:hover, .choice-card.is-selected {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--line-hot);
  box-shadow: var(--shadow-hot);
}
.choice-card.is-selected { background: linear-gradient(145deg, rgba(255,60,0,0.25), rgba(255,255,255,0.04)); }
.choice-icon { display: block; margin-bottom: 16px; font-size: 2rem; }
.choice-card strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.choice-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.start-choice {
  display: flex;
  min-height: 214px;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 22%, rgba(255,60,0,0.20), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.026)),
    var(--panel);
}
.choice-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255,60,0,0.30);
  border-radius: 999px;
  color: var(--line-hot);
  background: rgba(255,60,0,0.08);
  font-size: 0.78rem;
  font-weight: 900;
}
.start-choice-top {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.start-whatsapp-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #25d366, #128c7e);
  box-shadow: 0 0 22px rgba(37,211,102,0.24);
}
.start-whatsapp-logo svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.start-choice strong { font-size: 1.28rem; }
.choice-cta {
  display: inline-flex;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,60,0,0.30);
  color: white;
  font-weight: 900;
}
.choice-cta::after {
  content: ">";
  margin-left: 10px;
  color: var(--line-hot);
}
.usage-category-card {
  min-height: 250px;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255,60,0,0.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    var(--panel);
}
.usage-category-card .choice-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255,60,0,0.36);
  border-radius: 12px;
  background: rgba(255,60,0,0.10);
  font-size: 1.8rem;
}
.usage-category-card strong { font-size: 1.18rem; }
.usage-subcard {
  min-height: 190px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.035);
}
.usage-subcard .choice-icon {
  margin-bottom: 16px;
  font-size: 2rem;
}
.usage-subcard strong { font-size: 1.08rem; }
.choice-card.is-selected::after {
  content: "OK";
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line-hot);
  font-weight: 900;
}

.two-column, .recommendation-layout, .editor-layout, .result-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.budget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin: 0 auto;
}
.budget-panel-large {
  padding: 34px;
}
.glass-panel, .toolbox, .summary-card { padding: 24px; }
.budget-value {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
}
.budget-value span { font-family: "Orbitron", sans-serif; font-size: 2.4rem; font-weight: 900; }
.budget-value small { color: var(--muted); margin-bottom: 8px; }
input[type="range"] {
  width: 100%;
  accent-color: var(--line-hot);
}
.budget-track-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.78rem;
}
.budget-tier { display: block; margin-top: 18px; color: var(--line-hot); }
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.option-pill {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 800;
}
.option-pill.is-selected {
  color: white;
  border-color: var(--line-hot);
  background: rgba(255, 60, 0, 0.22);
}
.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
}

.config-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
}
.config-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--line-hot), transparent);
}
.config-title { color: var(--line-hot); font-size: 1.15rem; text-transform: uppercase; }
.spec-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.spec-list span { color: var(--muted); }
.config-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,60,0,0.28);
  border-radius: 8px;
  background: rgba(255,60,0,0.08);
  color: var(--text-soft);
  line-height: 1.55;
}
.manual-controls { display: grid; gap: 18px; margin-top: 22px; }
.manual-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: var(--muted);
  line-height: 1.55;
}
label { display: grid; gap: 8px; color: var(--muted); font-weight: 700; }
input, select, textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,0.36);
  padding: 11px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(255,60,0,0.16); }
.field-note {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
}
.font-preview {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
}

.editor-layout { grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr); align-items: start; }
.editor-stage-wrap { min-width: 0; }
.pc-panel-frame {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #23262d, #07080a 48%, #2c3038);
  box-shadow: 0 30px 80px rgba(0,0,0,0.48), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.crystal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: var(--crystal-aspect);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 30%, rgba(255,255,255,0.04) 55%, transparent),
    rgba(7, 10, 13, 0.72);
}
.crystal-stage[data-filter="smoked"] { background-color: rgba(0,0,0,0.86); }
.crystal-stage.is-laser .design-item {
  filter: grayscale(1) contrast(2) brightness(0.82);
}
.crystal-stage.is-laser::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(105deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 7px),
    radial-gradient(circle, transparent 48%, rgba(255,60,0,0.14));
  mix-blend-mode: overlay;
}
.glass-reflection {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,0.15), transparent 18%, transparent 70%, rgba(255,255,255,0.08));
  z-index: 12;
}
.selected-hint { color: var(--dim); text-align: center; }
.design-item {
  position: absolute;
  left: 42%;
  top: 42%;
  min-width: 80px;
  min-height: 54px;
  touch-action: none;
  user-select: none;
  z-index: 5;
  transform-origin: center;
  cursor: move;
}
.design-item img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }
.design-text {
  min-width: 90px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 4px 12px;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
}
.design-item.is-selected { outline: 2px solid var(--line-hot); outline-offset: 4px; }
.rotate-handle {
  position: absolute;
  left: 50%;
  top: -42px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border: 2px solid white;
  border-radius: 50%;
  background: var(--line-hot);
  box-shadow: var(--shadow-hot);
  cursor: grab;
  display: none;
}
.rotate-handle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 18px;
  background: var(--line-hot);
}
.resize-handle {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 24px;
  height: 24px;
  border: 2px solid white;
  border-radius: 6px;
  background: var(--line-hot);
  box-shadow: var(--shadow-hot);
  cursor: nwse-resize;
  display: none;
}
.design-item.is-selected .rotate-handle,
.design-item.is-selected .resize-handle {
  display: block;
}
.toolbox { display: grid; gap: 18px; }
.tool-group { display: grid; gap: 12px; }
.upload-btn {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px dashed rgba(255,60,0,0.7);
  border-radius: 8px;
  background: rgba(255,60,0,0.11);
  color: white;
}
.upload-btn input { display: none; }
.compact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.compact-row:has(#delete-selected:only-child) { grid-template-columns: 1fr; }
.warning-box {
  padding: 16px;
  border: 1px solid rgba(255, 60, 0, 0.65);
  border-radius: 8px;
  background: rgba(255, 60, 0, 0.13);
}
.warning-box strong { color: white; }
.warning-box p { margin: 8px 0 0; color: #ffd9cd; line-height: 1.5; }

.result-layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); }
.viewer-shell {
  position: relative;
  height: 560px;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 30%, rgba(255,60,0,0.12), transparent 36%), #050609;
}
#pc-viewer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.plain-preview {
  display: block;
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(7, 10, 13, 0.76);
  color: var(--muted);
  font-weight: 900;
  pointer-events: none;
}
.viewer-hint {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--dim);
  font-size: 0.78rem;
  pointer-events: none;
}
.viewer-error {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 60, 0, 0.7);
  border-radius: 8px;
  background: rgba(20, 8, 4, 0.84);
  color: #ffd9cd;
  font-weight: 800;
  text-align: center;
}
#viewer-shell { position: relative; height: 560px; min-height: 560px; }
.summary-card h3 { color: var(--line-hot); text-transform: uppercase; }
.summary-list { display: grid; gap: 12px; margin: 20px 0 24px; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 10px; }
.summary-list span { color: var(--muted); }
.summary-card .btn + .btn { margin-top: 12px; }
.direct-contact-panel {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.design-send-notice {
  width: min(720px, 100%);
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255,60,0,0.42);
  border-radius: 8px;
  background: rgba(255,60,0,0.10);
  color: #ffd9cd;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}
.send-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 12px;
  width: min(520px, 100%);
}
.direct-contact-panel .btn-large {
  width: 100%;
  margin-top: 0;
}
#download-design:not([hidden]) {
  width: min(420px, 100%);
  min-height: 62px;
  border-color: rgba(255, 60, 0, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 60, 0, 0.95), rgba(230, 48, 0, 0.72)),
    rgba(255,255,255,0.06);
  box-shadow: 0 0 28px rgba(255, 60, 0, 0.30);
  color: white;
  animation: downloadPulse 1.6s ease-in-out infinite;
}
#download-design:not([hidden])::before {
  content: "↓";
  font-size: 1.15rem;
  line-height: 1;
}

.disclaimer-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.disclaimer-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.disclaimer-card p:last-of-type { margin-bottom: 26px; }
.disclaimer-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,60,0,0.36);
  border-radius: 8px;
  background: rgba(255,60,0,0.09);
  color: white;
  line-height: 1.5;
}
.disclaimer-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--line-hot);
}

.crystal-question-panel {
  display: none;
  animation: questionIn 320ms ease both;
}
.crystal-question-panel.is-active { display: block; }
.crystal-choice-grid,
.finish-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.crystal-choice-card {
  min-height: 210px;
  padding: 28px;
}
.crystal-choice-card .choice-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.15rem;
}
.crystal-choice-yes {
  border-color: rgba(42, 214, 126, 0.32);
  background:
    radial-gradient(circle at 82% 18%, rgba(42,214,126,0.18), transparent 36%),
    rgba(255,255,255,0.045);
}
.crystal-choice-yes:hover,
.crystal-choice-yes.is-selected {
  border-color: rgba(42, 214, 126, 0.72);
  box-shadow: 0 0 28px rgba(42,214,126,0.18);
}
.crystal-choice-yes .choice-icon {
  color: #0d1f14;
  background: #2ad67e;
}
.crystal-choice-no {
  border-color: rgba(255, 86, 86, 0.28);
  background:
    radial-gradient(circle at 82% 18%, rgba(255,86,86,0.14), transparent 36%),
    rgba(255,255,255,0.045);
}
.crystal-choice-no:hover,
.crystal-choice-no.is-selected {
  border-color: rgba(255, 86, 86, 0.60);
  box-shadow: 0 0 28px rgba(255,86,86,0.14);
}
.crystal-choice-no .choice-icon {
  color: white;
  background: rgba(255,86,86,0.72);
}
.finish-card {
  min-height: 330px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 16px;
}
.finish-card strong,
.finish-card p {
  padding-inline: 4px;
}
.finish-preview {
  position: relative;
  display: block;
  height: 170px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.12), transparent 24%, rgba(255,255,255,0.06)),
    #101217;
}
.preview-glass {
  position: absolute;
  inset: 20px 34px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.18), transparent 35%),
    rgba(10,15,20,0.62);
}
.preview-vinyl-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -42%) rotate(-8deg);
  border-radius: 30% 70% 55% 45%;
  background: linear-gradient(135deg, #ff3c00, #ffd24a 55%, #2ad67e);
  box-shadow: 0 0 24px rgba(255,60,0,0.32);
}
.preview-vinyl-text {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  color: white;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
}
.preview-laser-lines {
  position: absolute;
  inset: 38px 58px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.78) 0 2px, transparent 2px 10px),
    radial-gradient(circle at 50% 52%, rgba(255,255,255,0.34), transparent 44%);
  filter: grayscale(1) contrast(1.6);
  opacity: 0.72;
}
.preview-laser-mark {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  color: #d9d9d9;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
}
.modal.is-open { display: grid; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: 28px;
}
.modal-card h2 { margin-bottom: 20px; }
.modal-card label { margin-bottom: 14px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: white;
}

/* ── Guided configurator modal ── */
.guided-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: 40px 28px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.guided-modal.is-open { display: flex; }
body.guided-open {
  overflow: hidden;
  background: transparent;
}
.guided-modal-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 84dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0d0e12;
  border: 1px solid rgba(255, 60, 0, 0.22);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 60px rgba(255, 60, 0, 0.10),
    0 40px 100px rgba(0, 0, 0, 0.90);
}

/* Close button — lives inside progress-wrap */
.guided-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms;
}
.guided-close:hover {
  background: rgba(255,60,0,0.18);
  border-color: rgba(255,60,0,0.55);
  color: white;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes questionIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes downloadPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 24px rgba(255, 60, 0, 0.26); }
  50% { transform: translateY(-2px); box-shadow: 0 0 38px rgba(255, 60, 0, 0.48); }
}

@media (max-width: 820px) {
  /* Modal window */
  .guided-modal { padding: 14px 10px; }
  .guided-modal-inner { border-radius: 16px; max-height: 88dvh; }

  /* Progress bar — scroll horizontal, close button al final */
  .progress-wrap {
    padding: 8px 10px;
    gap: 8px;
    overflow: visible;
  }
  .progress {
    display: flex;
    flex: 1;
    width: max-content;
    max-width: none;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0;
  }
  .progress::-webkit-scrollbar { display: none; }
  .progress-step {
    flex: 0 0 auto;
    justify-content: center;
    width: 32px;
    min-height: 32px;
    padding: 4px;
    border-radius: 50%;
  }
  .progress-step span { width: 22px; height: 22px; flex-basis: 22px; font-size: 0.7rem; }
  .progress-step strong { display: none; }

  /* Steps */
  .two-column, .recommendation-layout, .editor-layout, .result-layout { grid-template-columns: 1fr; }
  .start-choice-grid, .usage-category-grid, .usage-subgrid,
  .crystal-choice-grid, .finish-choice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .step { width: 100%; padding: 16px 14px 72px; }
  #step-1.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 16px 32px;
  }

  /* Headings */
  .section-heading { margin-bottom: 12px; text-align: left; }
  .eyebrow { margin-bottom: 4px; font-size: 0.68rem; }
  .section-heading h2 { font-size: clamp(1.3rem, 6.5vw, 1.8rem); line-height: 1.05; overflow-wrap: anywhere; }
  .start-heading h2 { font-size: clamp(1.7rem, 8.5vw, 2.4rem); }
  .section-heading p:not(.eyebrow) { margin: 5px 0 0; font-size: 0.82rem; line-height: 1.3; }

  /* Question progress dots */
  .question-progress { justify-content: flex-start; gap: 6px; margin-bottom: 10px; }
  .question-progress span { width: 26px; height: 26px; font-size: 0.76rem; }
  .question-panel { min-height: auto; }

  /* Choice cards */
  .choice-card { min-height: 0; padding: 10px 12px; }
  .choice-card:hover, .choice-card.is-selected { transform: none; }
  .start-choice { min-height: 0; padding: 14px 12px; }
  .start-choice-top { min-height: 32px; margin-bottom: 12px; }
  .start-whatsapp-logo { width: 32px; height: 32px; flex-basis: 32px; }
  .start-whatsapp-logo svg { width: 20px; height: 20px; }
  .start-choice strong { font-size: 0.96rem; }
  .start-choice p { font-size: 0.82rem; }
  .start-choice .choice-cta {
    margin-top: auto; padding-top: 10px;
    width: 100%; font-size: 0.8rem;
  }
  .choice-kicker { min-height: 22px; padding: 0 7px; font-size: 0.62rem; }

  /* Category/sub/crystal cards */
  .usage-category-card, .usage-subcard, .crystal-choice-card { min-height: 0; padding: 10px; }
  .usage-category-card .choice-icon, .usage-subcard .choice-icon,
  .crystal-choice-card .choice-icon {
    width: 32px; height: 32px; margin-bottom: 8px; border-radius: 8px; font-size: 1rem;
  }
  .usage-category-card strong, .usage-subcard strong,
  .crystal-choice-card strong, .finish-card strong { font-size: 0.82rem; line-height: 1.1; }
  .usage-category-card p, .usage-subcard p,
  .crystal-choice-card p, .finish-card p { font-size: 0.72rem; line-height: 1.2; }

  /* Finish cards */
  .finish-card { min-height: 0; padding: 10px; }
  .finish-preview { height: 90px; }

  /* Panels */
  .budget-panel-large, .glass-panel, .toolbox, .summary-card,
  .config-card, .disclaimer-card, .direct-contact-panel { padding: 14px; }
  .budget-value { flex-direction: column; gap: 2px; align-items: flex-start; }
  .budget-value span { font-size: 1.9rem; }
  .budget-value small { margin-bottom: 0; }
  .budget-track-labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 10px; }

  /* Spec list */
  .spec-list li, .summary-list li {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 4px; padding: 7px 0;
  }

  /* Layouts */
  .editor-layout, .result-layout, .recommendation-layout { gap: 10px; }
  .pc-panel-frame { width: min(300px, 100%); }
  .crystal-stage { aspect-ratio: var(--crystal-aspect); min-height: 0; }
  .compact-row { grid-template-columns: 1fr; }
  .toolbox { gap: 12px; }

  /* Viewer 3D */
  .viewer-shell, #viewer-shell { height: 220px; min-height: 220px; }

  /* Direct contact */
  .direct-contact-panel { gap: 10px; }
  .send-actions { grid-template-columns: 1fr; width: 100%; }
  .btn-large { margin-top: 0; min-height: 46px; }

  /* Step action buttons — sticky, siempre visibles */
  .step-actions {
    position: sticky;
    bottom: 0;
    z-index: 12;
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 0 max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, transparent, #0d0e12 36%);
    backdrop-filter: blur(6px);
  }
  .step-actions:empty { display: none; }
  .step-actions .btn { flex: 1; min-height: 46px; font-size: 0.88rem; }
  .step-actions .btn:only-child { margin-left: auto; flex: 0 0 140px; }

  /* Email modal */
  .modal { align-items: end; padding: 0; }
  .modal-card {
    width: 100%; border-radius: 16px 16px 0 0;
    max-height: min(92vh, 700px); overflow: auto;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  /* Modal overlay tighter on very small screens */
  .guided-modal { padding: 6px 4px; }
  .guided-modal-inner { border-radius: 14px; }

  /* Steps: slightly tighter padding */
  .step { padding: 12px 10px 64px; }
  .step.is-active { display: flex; flex-direction: column; }

  /* Progress bar */
  .progress-wrap { padding: 6px 8px; gap: 6px; }
  .progress { gap: 5px; }
  .progress-step { width: 28px; min-height: 28px; padding: 4px; }
  .progress-step span { width: 22px; height: 22px; flex-basis: 22px; font-size: 0.68rem; }

  /* Close button */
  .guided-close { width: 26px; height: 26px; font-size: 0.78rem; }

  /* Section headings inside modal steps */
  .section-heading { margin-bottom: 10px; }
  .section-heading h2 { font-size: clamp(1.1rem, 5.5vw, 1.45rem); line-height: 1.05; }
  .section-heading p:not(.eyebrow) { margin-top: 6px; font-size: 0.82rem; line-height: 1.28; }
  .eyebrow { font-size: 0.68rem; }

  /* Question progress dots */
  .question-progress { gap: 6px; margin-bottom: 8px; }
  .question-progress span { width: 24px; height: 24px; font-size: 0.68rem; }

  /* Step 1 — outside modal, compact on very small screens */
  #step-1.is-active { padding: 20px 12px 24px; }
  .start-heading { margin-bottom: 14px; }
  .start-heading h2 { font-size: clamp(1.8rem, 8.5vw, 2.4rem); line-height: 0.98; }
  .start-heading p:not(.eyebrow) { margin-top: 8px; font-size: 0.88rem; line-height: 1.3; }

  /* Choice grids */
  .choice-kicker { max-width: 100%; min-height: 22px; padding-inline: 7px; font-size: 0.62rem; }
  .start-choice-grid,
  .usage-category-grid,
  .usage-subgrid,
  .crystal-choice-grid,
  .finish-choice-grid { gap: 7px; }
  .start-choice { padding: 12px 10px; }
  .start-choice-top { min-height: 30px; gap: 6px; margin-bottom: 10px; }
  .start-whatsapp-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .start-whatsapp-logo svg { width: 18px; height: 18px; }
  .start-choice strong { font-size: 0.9rem; line-height: 1.16; }
  .start-choice p { display: block; overflow: visible; font-size: 0.76rem; line-height: 1.2; }
  .start-choice .choice-cta { margin-top: 11px; padding-top: 10px; font-size: 0.7rem; }

  /* Category / crystal cards */
  .usage-category-card,
  .usage-subcard,
  .crystal-choice-card { padding: 11px 10px; }
  .usage-category-card .choice-icon,
  .usage-subcard .choice-icon,
  .crystal-choice-card .choice-icon { width: 32px; height: 32px; margin-bottom: 8px; font-size: 1rem; }
  .usage-category-card strong,
  .usage-subcard strong,
  .crystal-choice-card strong,
  .finish-card strong { font-size: 0.82rem; line-height: 1.12; }
  .usage-category-card p,
  .usage-subcard p,
  .crystal-choice-card p,
  .finish-card p { font-size: 0.72rem; line-height: 1.22; }

  /* Recommendation / config cards */
  .recommendation-layout { gap: 8px; }
  .config-card { padding: 12px; }
  .config-card::before { height: 3px; }
  .config-title { font-size: 0.9rem; }
  .spec-list { gap: 0; margin-top: 10px; }
  .spec-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6px; padding: 7px 0; }
  .spec-list span { font-size: 0.72rem; }
  .spec-list strong { font-size: 0.8rem; text-align: right; overflow-wrap: anywhere; }
  .config-note { margin-top: 10px; padding: 9px; font-size: 0.75rem; }

  /* Manual panel */
  .manual-panel { padding: 10px; }
  .manual-note { margin-top: 8px; padding: 9px; font-size: 0.75rem; }
  .manual-controls { gap: 8px; margin-top: 10px; }
  .manual-controls label { gap: 5px; font-size: 0.76rem; }

  /* Summary card */
  .summary-card { padding: 12px; }
  .summary-card h3 { font-size: 0.96rem; }
  .summary-list { gap: 0; margin: 12px 0 14px; }
  .summary-list li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 6px; padding: 7px 0; }
  .summary-list span { font-size: 0.74rem; }
  .summary-list strong { font-size: 0.82rem; text-align: right; overflow-wrap: anywhere; }
  .summary-card .btn + .btn { margin-top: 7px; }

  /* Disclaimer */
  .disclaimer-card { padding: 12px; }
  .disclaimer-card p { margin-bottom: 8px; font-size: 0.8rem; line-height: 1.32; }
  .disclaimer-check { grid-template-columns: 17px minmax(0, 1fr); gap: 9px; padding: 11px; font-size: 0.8rem; }
  .disclaimer-check input { width: 16px; height: 16px; }

  /* Contact / send panel */
  .direct-contact-panel { width: 100%; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; justify-items: stretch; }
  .send-actions { width: 100%; gap: 8px; }
  .direct-contact-panel .btn-large { min-height: 50px; padding: 0 14px; border-radius: 11px; font-size: 0.9rem; justify-content: flex-start; box-shadow: none; }
  .whatsapp-logo { flex: 0 0 28px; width: 28px; height: 28px; margin-right: 2px; border-radius: 50%; }
  .whatsapp-logo svg { width: 17px; height: 17px; }
  #download-design:not([hidden]) { width: 100%; min-height: 50px; animation: none; }
  .design-send-notice { width: 100%; text-align: left; }

  /* Finish / sticker preview */
  .finish-card { padding: 9px; gap: 9px; }
  .finish-preview { height: 90px; border-radius: 8px; }
  .preview-glass { inset: 12px 16px; }
  .preview-vinyl-shape { width: 54px; height: 54px; }
  .preview-vinyl-text, .preview-laser-mark { bottom: 20px; font-size: 0.62rem; }
  .preview-laser-lines { inset: 24px 28px; }

  /* 3D viewer — smaller on very small screens */
  .viewer-shell,
  #viewer-shell { height: 190px; min-height: 190px; }
  .pc-panel-frame { width: min(300px, 100%); padding: 10px; border-radius: 12px; }
  .selected-hint, .viewer-hint { font-size: 0.74rem; line-height: 1.3; }
  .plain-preview { top: 10px; width: calc(100% - 20px); text-align: center; }

  /* Buttons */
  .btn { padding-inline: 12px; }
  .choice-card strong, .tool-group h3, .glass-panel h3 { overflow-wrap: anywhere; }

  /* Email modal */
  .modal-card { padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); }
}
