/* ========================================================
   SignPal Design Studio — Stylesheet
   Modern, High-Performance Interactive Design & Pre-Flight Studio
   ======================================================== */

.design-main {
  min-height: calc(100vh - 75px);
  padding: 40px 24px 80px;
  background: var(--bg);
}

.design-container {
  max-width: 1200px;
  margin: 0 auto;
}

.design-step {
  display: none;
}
.design-step.active {
  display: block;
  animation: fadeInStep 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Stepper Navigation & Language Switcher --- */
.studio-stepper {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stepper-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 18px;
  box-shadow: 0 4px 18px rgba(12, 26, 103, 0.04);
  flex: 1;
}

.lang-switch-wrap {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(12, 26, 103, 0.04);
  gap: 4px;
}

.lang-pill {
  background: transparent;
  border: none;
  font: 700 0.76rem var(--font-display);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-pill:hover {
  color: var(--brand-navy);
}

.lang-pill.active {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(12, 26, 103, 0.2);
}

.step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.step-node:hover {
  background: var(--surface-2);
}

.step-node-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: 700 0.76rem var(--font-display);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.step-node.active .step-node-num {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 0 12px rgba(254, 106, 0, 0.35);
}

.step-node.completed .step-node-num {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.step-node-text {
  font: 600 0.84rem var(--font-display);
  color: var(--muted);
  transition: color 0.2s;
}

.step-node.active .step-node-text {
  color: var(--brand-navy);
}

.stepper-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 14px;
  transition: background 0.3s;
}

.stepper-line.active {
  background: var(--brand-orange);
}

/* --- Headers & Badges --- */
.step-header, .studio-header {
  margin-bottom: 32px;
}

.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(254, 106, 0, 0.1);
  color: var(--brand-orange);
  font: 700 0.68rem var(--font-display);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  border: 1px solid rgba(254, 106, 0, 0.2);
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.step-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.55;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-navy);
  padding: 8px 16px;
  border-radius: 9px;
  font: 600 0.82rem var(--font-display);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.04);
}

/* --- Entry Mode Picker --- */
.entry-mode-picker {
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.entry-mode-picker legend {
  font: 700 0.82rem var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.entry-mode {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.entry-mode:hover {
  border-color: rgba(254, 106, 0, 0.4);
  box-shadow: 0 6px 20px rgba(12, 26, 103, 0.06);
}

.entry-mode.active {
  border-color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.035);
  box-shadow: 0 0 0 3px rgba(254, 106, 0, 0.12);
}

.entry-mode input {
  accent-color: var(--brand-orange);
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.entry-mode span {
  display: flex;
  flex-direction: column;
}

.entry-mode strong {
  font: 700 0.92rem var(--font-display);
  color: var(--brand-navy);
}

.entry-mode small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* --- Forms & Inputs --- */
.request-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group > label {
  font: 700 0.84rem var(--font-display);
  color: var(--brand-navy);
}

.picker-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.market-advantage-pill {
  font: 700 0.7rem var(--font-display);
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 9px;
  border-radius: 6px;
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--body);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(254, 106, 0, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Product Grid --- */
.product-search-wrap {
  position: relative;
}

.product-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.product-search-wrap input {
  padding-left: 42px;
}

.product-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.product-tab {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 0.78rem var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
}

.product-tab:hover {
  border-color: var(--brand-orange);
  color: var(--brand-navy);
}

.product-tab.active {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--body);
  transition: all 0.2s;
}

.product-card:hover {
  border-color: rgba(254, 106, 0, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(12, 26, 103, 0.05);
}

.product-card.selected {
  border-color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.04);
  box-shadow: 0 0 0 2px rgba(254, 106, 0, 0.15);
}

.product-card-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--brand-orange);
  font: 700 0.9rem var(--font-display);
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card-copy strong {
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--brand-navy);
}

.product-card-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 3px;
}

.product-card-check {
  position: absolute;
  right: 10px;
  top: 10px;
  color: var(--brand-orange);
  font-size: 0.8rem;
  opacity: 0;
  font-weight: 800;
}

.product-card.selected .product-card-check {
  opacity: 1;
}

.btn-show-products {
  align-self: flex-start;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--brand-navy);
  border-radius: 8px;
  padding: 8px 16px;
  font: 600 0.8rem var(--font-display);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-show-products:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.custom-product-fields {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.custom-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 10px;
}

/* --- Dynamic B2B Engineering & Fabrication Configurator --- */
.b2b-config-box {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(254, 106, 0, 0.03) 0%, rgba(12, 26, 103, 0.04) 100%);
  border: 1px solid rgba(254, 106, 0, 0.28);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 20px rgba(12, 26, 103, 0.04);
  animation: fadeIn 0.3s ease;
}

.b2b-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(12, 26, 103, 0.08);
}

.b2b-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(254, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.b2b-header-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--brand-navy);
}

.b2b-header-row small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.b2b-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.b2b-opt-group label {
  display: block;
  font: 700 0.78rem var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.b2b-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.b2b-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font: 600 0.78rem var(--font-body);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.b2b-pill:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: translateY(-1px);
}

.b2b-pill.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
  box-shadow: 0 2px 8px rgba(12, 26, 103, 0.25);
}

/* Corporate Bundle Manifest */
.bundle-manifest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.bundle-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bundle-item-qty {
  background: rgba(254, 106, 0, 0.1);
  color: var(--brand-orange);
  font: 800 0.92rem var(--font-display);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.bundle-item-info strong {
  display: block;
  font-size: 0.84rem;
  color: var(--brand-navy);
}

.bundle-item-info small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.bundle-price-advantage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(254, 106, 0, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(254, 106, 0, 0.2);
  font-size: 0.86rem;
}

.bundle-price-advantage del {
  color: var(--muted);
}

.bundle-badge {
  color: var(--brand-navy);
}

.bundle-badge strong {
  color: var(--brand-orange);
  font-size: 1rem;
}

@media (max-width: 768px) {
  .b2b-options-row {
    grid-template-columns: 1fr;
  }
  .bundle-manifest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Industry & Style Presets --- */
.preset-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-navy);
  border-radius: 999px;
  padding: 8px 16px;
  font: 600 0.8rem var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-pill:hover {
  border-color: var(--brand-orange);
  transform: translateY(-1px);
}

.preset-pill.active {
  background: var(--brand-navy);
  color: #fff;
  border-color: var(--brand-navy);
  box-shadow: 0 3px 12px rgba(12, 26, 103, 0.18);
}

.style-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.style-preset-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s;
}

.style-preset-card input {
  position: absolute;
  opacity: 0;
}

.style-preset-card:hover {
  border-color: rgba(254, 106, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 26, 103, 0.06);
}

.style-preset-card.active {
  border-color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.035);
  box-shadow: 0 0 0 2px rgba(254, 106, 0, 0.15);
}

.style-card-badge {
  font: 700 0.62rem var(--font-display);
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  margin-bottom: 8px;
}

.style-preset-card strong {
  font: 700 0.86rem var(--font-display);
  color: var(--brand-navy);
  line-height: 1.3;
}

.style-preset-card small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 6px;
  line-height: 1.4;
}

/* Quick Fill Samples */
.quick-fill-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(12, 26, 103, 0.03);
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.quick-fill-label {
  font: 700 0.75rem var(--font-display);
  color: var(--brand-navy);
}

.quick-fill-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 11px;
  font: 600 0.74rem var(--font-body);
  color: var(--brand-navy);
  cursor: pointer;
  transition: all 0.15s;
}

.quick-fill-btn:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: #fff;
}

/* Dynamic Pricing Card */
.price-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 18px rgba(12, 26, 103, 0.04);
}

.price-left span {
  display: block;
  font: 700 0.72rem var(--font-display);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-left strong {
  display: block;
  font: 800 1.35rem var(--font-display);
  color: var(--brand-orange);
  margin-top: 4px;
}

.price-right {
  text-align: right;
}

.savings-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font: 700 0.7rem var(--font-display);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.price-right small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Description Textarea */
.desc-footer {
  display: flex;
  justify-content: flex-end;
}

.char-count {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  min-height: 120px;
}

.upload-area:hover {
  border-color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.03);
}

.upload-area.drag-over {
  border-color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.06);
}

.upload-placeholder {
  text-align: center;
  color: var(--muted);
}

.upload-link {
  color: var(--brand-orange);
  text-decoration: underline;
  font-weight: 600;
}

.upload-hint {
  font-size: 0.74rem;
  margin-top: 4px;
  opacity: 0.7;
}

.upload-previews {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.preview-add-more button {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  border: 2px dashed var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font: 600 0.8rem var(--font-body);
}

/* Generation Telemetry HUD */
.telemetry-hud {
  padding: 24px;
  background: #071042;
  border-radius: 16px;
  border: 1px solid rgba(254, 106, 0, 0.35);
  box-shadow: 0 12px 35px rgba(7, 16, 66, 0.25);
  color: #fff;
}

.telemetry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.telemetry-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fe6a00;
  box-shadow: 0 0 12px #fe6a00;
  animation: pulseLight 1.2s infinite ease-in-out;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-title {
  font: 700 0.76rem var(--font-display);
  letter-spacing: 0.15em;
  color: #ff9a54;
}

.telemetry-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.telemetry-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  opacity: 0.35;
  transition: opacity 0.3s;
}

.telemetry-step.active {
  opacity: 1;
}

.telemetry-step.completed {
  opacity: 0.85;
}

.telem-indicator {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font: 700 0.72rem var(--font-display);
  flex: 0 0 auto;
}

.telemetry-step.active .telem-indicator {
  background: #fe6a00;
  color: #fff;
  box-shadow: 0 0 10px rgba(254, 106, 0, 0.5);
}

.telemetry-step.completed .telem-indicator {
  background: #10b981;
  color: #fff;
}

.telem-info strong {
  display: block;
  font: 600 0.86rem var(--font-display);
  color: #fff;
}

.telem-info span {
  display: block;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

/* Primary Button */
.btn-generate, .btn-primary {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  font: 700 0.95rem var(--font-display);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(254, 106, 0, 0.28);
}

.btn-generate:hover:not(:disabled), .btn-primary:hover:not(:disabled) {
  background: #e05e00;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(254, 106, 0, 0.35);
}

.btn-generate:disabled, .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================================
   STEP 2: INTERACTIVE STUDIO & PROOF INSPECTOR
   ======================================================== */

.studio-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(12, 26, 103, 0.04);
  flex-wrap: wrap;
}

.btn-wa-header-share {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font: 700 0.8rem var(--font-display);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-wa-header-share:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.studio-view-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-toggle-label {
  font: 700 0.76rem var(--font-display);
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toggle-pill-group {
  display: flex;
  background: var(--surface-2);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.toggle-pill {
  background: transparent;
  border: none;
  padding: 7px 15px;
  border-radius: 8px;
  font: 600 0.78rem var(--font-display);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.toggle-pill.active {
  background: var(--surface);
  color: var(--brand-navy);
  box-shadow: 0 2px 8px rgba(12, 26, 103, 0.08);
}

/* Switch control */
.switch-control {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-control input {
  display: none;
}

.switch-slider {
  width: 38px;
  height: 22px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}

.switch-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.switch-control input:checked + .switch-slider {
  background: var(--brand-orange);
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(16px);
}

.switch-label {
  font: 600 0.8rem var(--font-display);
  color: var(--brand-navy);
}

/* Studio Workspace (2 Columns) */
.studio-workspace {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Concepts Grid */
.studio-concepts-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.studio-concept-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(12, 26, 103, 0.04);
}

.studio-concept-card:hover {
  border-color: rgba(254, 106, 0, 0.45);
  box-shadow: 0 12px 36px rgba(12, 26, 103, 0.08);
}

.studio-concept-card.selected {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(254, 106, 0, 0.2), 0 12px 36px rgba(12, 26, 103, 0.08);
}

.concept-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.concept-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.concept-chip {
  background: var(--brand-navy);
  color: #fff;
  font: 700 0.72rem var(--font-display);
  padding: 4px 10px;
  border-radius: 6px;
}

.concept-style-tag {
  color: var(--muted);
  font: 500 0.74rem var(--font-body);
}

.btn-zoom-inspect {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--brand-navy);
  border-radius: 6px;
  padding: 5px 11px;
  font: 600 0.74rem var(--font-display);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-zoom-inspect:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Concept Viewport */
.concept-viewport-wrap {
  position: relative;
  width: 100%;
  background: radial-gradient(circle at 50% 30%, #1e2433 0%, #0d1017 100%);
  padding: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.concept-viewport-wrap.mode-flat {
  background: #11141c;
  padding: 24px;
}

.canvas-scene {
  position: relative;
  display: inline-block;
  max-width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.mode-mockup .canvas-scene {
  transform: perspective(1000px) rotateX(4deg) rotateY(-3deg);
  border-radius: 8px;
}

.mode-flat .canvas-scene {
  transform: none;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.canvas-art-img {
  display: block;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
}

/* Bleed Guide & Crop Marks */
.bleed-guide-overlay {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 2px solid #ec4899; /* Magenta Trim line */
}

.mode-flat .bleed-guide-overlay {
  display: block;
}

.bleed-box {
  position: absolute;
  inset: 12px;
  border: 1px dashed #06b6d4; /* Cyan Bleed Safe Zone */
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 6px;
}

.guide-tag {
  font: 700 0.58rem var(--font-display);
  background: rgba(6, 182, 212, 0.85);
  color: #041a22;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.crop-mark {
  position: absolute;
  width: 14px;
  height: 14px;
}
.crop-mark.top-left { top: 0; left: 0; border-top: 2px solid #fff; border-left: 2px solid #fff; }
.crop-mark.top-right { top: 0; right: 0; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.crop-mark.bottom-left { bottom: 0; left: 0; border-bottom: 2px solid #fff; border-left: 2px solid #fff; }
.crop-mark.bottom-right { bottom: 0; right: 0; border-bottom: 2px solid #fff; border-right: 2px solid #fff; }

/* Live Vector Typography Overlay Layer */
.canvas-overlay-content {
  position: absolute;
  inset: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s;
}

.canvas-overlay-content.overlay-hidden {
  opacity: 0;
}

.vector-overlay-badge {
  border-left: 4px solid var(--brand-orange);
  padding-left: 12px;
  max-width: 80%;
}

.vector-brand-name {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.vector-brand-tagline {
  font-size: clamp(0.68rem, 1.4vw, 0.85rem);
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

.vector-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(12, 16, 28, 0.82);
  backdrop-filter: blur(8px);
  border-radius: 7px;
  border-bottom: 3px solid var(--brand-orange);
  font-size: clamp(0.64rem, 1.3vw, 0.76rem);
  font-weight: 600;
}

.vector-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.concept-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.concept-facts {
  display: flex;
  gap: 10px;
}

.fact-dpi, .fact-cmyk {
  font: 700 0.68rem var(--font-display);
  background: var(--surface-2);
  color: var(--brand-navy);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.btn-concept-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-navy);
  font: 700 0.82rem var(--font-display);
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.studio-concept-card.selected .btn-concept-select {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
  box-shadow: 0 4px 14px rgba(254, 106, 0, 0.28);
}

/* Studio Sidebar Panels */
.studio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.studio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(12, 26, 103, 0.04);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}

.panel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.panel-head h3 {
  font: 700 0.95rem var(--font-display);
  color: var(--brand-navy);
}

.panel-head p {
  color: var(--muted);
  font-size: 0.74rem;
}

.editor-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-field label {
  display: block;
  font: 700 0.74rem var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.editor-field input, .editor-field select {
  padding: 9px 12px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
}

.color-picker-wrap input[type="color"] {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: transparent;
}

.color-picker-wrap span {
  font: 700 0.75rem var(--font-display);
  color: var(--brand-navy);
}

/* Pre-Flight Health Panel */
.preflight-score-badge {
  margin-left: auto;
  font: 800 0.95rem var(--font-display);
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 8px;
}

.preflight-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.check-copy strong {
  display: block;
  font: 700 0.78rem var(--font-display);
  color: var(--brand-navy);
}

.check-copy small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 1px;
}

/* Order CTA Panel */
.order-summary-box {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.summary-line.highlight {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-bottom: 10px;
}

.summary-line.highlight strong {
  font: 800 1.25rem var(--font-display);
  color: var(--brand-orange);
}

.summary-savings {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
}

.btn-studio-order {
  width: 100%;
}

.pick-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ========================================================
   STEP 3: ORDER CHECKOUT STYLES
   ======================================================== */
.order-selected {
  margin-bottom: 30px;
}

.mockup-viewport {
  position: relative;
  display: inline-block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.order-design-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.verified-tag {
  color: #059669;
  font: 700 0.74rem var(--font-display);
}

.fulfillment-picker {
  border: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.fulfillment-picker legend {
  font: 700 0.84rem var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 10px;
}

.fulfillment-card {
  position: relative;
  display: flex;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
}

.fulfillment-card:hover {
  border-color: rgba(254, 106, 0, 0.4);
}

.fulfillment-card.selected {
  border-color: var(--brand-orange);
  background: rgba(254, 106, 0, 0.04);
  box-shadow: 0 0 0 2px rgba(254, 106, 0, 0.15);
}

.fulfillment-card input {
  position: absolute;
  opacity: 0;
}

.fulfillment-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fulfillment-card strong {
  font: 700 0.9rem var(--font-display);
  color: var(--brand-navy);
}

.fulfillment-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.fulfillment-card b {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--brand-orange);
  font: 700 0.65rem var(--font-display);
  text-transform: uppercase;
}

/* Fullscreen Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 44, 0.92);
  backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-modal[hidden] {
  display: none !important;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: #0d1017;
  border: 1px solid rgba(254, 106, 0, 0.4);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.lightbox-viewport {
  position: relative;
  padding: 40px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #1a2030 0%, #0d1017 100%);
}

.lightbox-viewport img {
  max-width: 100%;
  max-height: 550px;
  object-fit: contain;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #090c12;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 0.84rem var(--font-display);
}

.lightbox-dpi {
  color: #ff9a54;
  font-size: 0.76rem;
}

/* Errors & Success */
.error-msg {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-top: 16px;
}

.success-panel {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  border: 2px solid #a7f3d0;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.success-panel h2 {
  font: 800 1.8rem var(--font-display);
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.success-panel p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .style-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .studio-workspace { grid-template-columns: 1fr; }
  .studio-sidebar { position: static; }
}

@media (max-width: 768px) {
  .design-main { padding: 24px 16px 60px; }
  .stepper-track { flex-direction: column; gap: 8px; align-items: stretch; }
  .stepper-line { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-mode-picker { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .fulfillment-picker { grid-template-columns: 1fr; }
  .price-estimate { flex-direction: column; align-items: flex-start; }
  .price-right { text-align: left; }
  .studio-controls-bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .style-cards-grid { grid-template-columns: 1fr; }
}
