/* Design Tool Page */
.design-main {
  min-height: calc(100vh - 65px);
  padding: 60px 40px;
}

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

.design-step {
  display: none;
}
.design-step.active {
  display: block;
}

.step-header {
  margin-bottom: 48px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: none;
  display: block;
  margin-bottom: 12px;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.step-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 16px;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
}

.btn-back:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Specs Form */
.specs-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

.product-picker-group { gap: 14px; }
.product-search-wrap { position: relative; }
.product-search-wrap svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.product-search-wrap input { padding-left: 46px; }
.product-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
.product-tab, .btn-show-products { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 500 .78rem var(--font-body); cursor: pointer; }
.product-tab.active { color: #071116; background: var(--cyan); border-color: var(--cyan); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-card { min-height: 78px; display: flex; align-items: center; gap: 11px; position: relative; padding: 13px; text-align: left; color: var(--white); background: var(--surface); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; font-family: var(--font-body); }
.product-card:hover { border-color: rgba(254,106,0,.42); }
.product-card.selected { border-color: var(--cyan); background: var(--cyan-dim); box-shadow: inset 0 0 0 1px rgba(254,106,0,.12); }
.product-card-mark { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; background: var(--surface-2); color: var(--cyan); font: 700 .82rem var(--font-display); }
.product-card-copy { display: flex; flex-direction: column; min-width: 0; }
.product-card-copy strong { font-size: .83rem; line-height: 1.25; }
.product-card-copy small { color: var(--muted); font-size: .69rem; margin-top: 3px; }
.product-card-check { position: absolute; right: 8px; top: 7px; color: var(--cyan); font-size: .72rem; opacity: 0; }
.product-card.selected .product-card-check { opacity: 1; }
.btn-show-products { align-self: flex-start; background: transparent; }
.custom-product-fields { padding: 20px; border-radius: 12px; border: 1px solid var(--border); background: rgba(254,106,0,.035); }
.custom-note { color: var(--muted); font-size: .78rem; margin-top: 12px; }
.price-estimate { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; padding: 15px 17px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.price-estimate span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.price-estimate strong { color: var(--cyan); font-family: var(--font-display); text-align: right; }
.price-estimate small { grid-column: 1/-1; color: var(--muted); }
.mockup-stage { padding: 28px; background: radial-gradient(circle at 50% 30%, #293244 0, #151822 45%, #0a0b10 100%); border: 1px solid var(--border); border-radius: 18px; }
.mockup-scene { min-height: 330px; display: grid; place-items: center; perspective: 900px; }
.mockup-scene img { display: block; max-width: 72%; max-height: 300px; object-fit: contain; box-shadow: 0 28px 55px rgba(0,0,0,.45); }
.mockup-banner img { max-height: 300px; max-width: 42%; transform: rotateY(-5deg); border-bottom: 12px solid #191b20; }
.mockup-book img { max-width: 47%; transform: rotateY(-18deg) rotateX(3deg); transform-origin: right center; box-shadow: -12px 12px 0 #e8e4dc, -16px 16px 35px rgba(0,0,0,.5); }
.mockup-card img { max-width: 58%; transform: rotateZ(-4deg) rotateX(8deg); border-radius: 5px; }
.mockup-sign img, .mockup-billboard img { max-width: 78%; border: 10px solid #2b2d31; box-shadow: 0 0 0 2px #555, 0 30px 60px rgba(0,0,0,.55); }
.mockup-shirt img, .mockup-mug img, .mockup-box img { border-radius: 16px; }
.fulfillment-picker { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.fulfillment-picker legend { color: var(--white); font: 600 .9rem var(--font-display); margin-bottom: 10px; }
.fulfillment-card { position: relative; display: flex; min-height: 105px; padding: 17px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.fulfillment-card.selected { border-color: var(--cyan); background: var(--cyan-dim); }
.fulfillment-card input { position: absolute; opacity: 0; }
.fulfillment-card span { display: flex; flex-direction: column; gap: 6px; }
.fulfillment-card strong { color: var(--white); font-size: .9rem; }
.fulfillment-card small { color: var(--muted); line-height: 1.4; }
.fulfillment-card b { position: absolute; right: 10px; top: 8px; color: var(--cyan); font-size: .62rem; text-transform: uppercase; }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fulfillment-picker { grid-template-columns: 1fr; } .mockup-scene { min-height: 250px; } }
.order-status-page { min-height: calc(100vh - 70px); display: grid; place-items: start center; padding: 64px 24px; }
.order-status-card { width: min(760px,100%); padding: 34px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.order-status-heading span { color: var(--cyan); font: 600 .68rem var(--font-display); letter-spacing: .16em; }
.order-status-heading h1 { font: 700 clamp(1.8rem,5vw,2.7rem) var(--font-display); margin: 7px 0; }
.order-status-heading p { color: var(--muted); }
.order-summary-grid { display: grid; grid-template-columns: 220px 1fr; gap: 25px; margin: 28px 0; }
.order-thumb { min-height: 180px; display: grid; place-items: center; background: #090a0f; border-radius: 12px; overflow: hidden; }
.order-thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-facts div { display: flex; flex-direction: column; padding: 14px; background: var(--surface-2); border-radius: 10px; }
.order-facts small { color: var(--muted); text-transform: uppercase; font-size: .64rem; letter-spacing: .1em; }
.order-facts strong { text-transform: capitalize; margin-top: 4px; }
.pay-form { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--border); }
.pay-form h2 { font: 600 1.15rem var(--font-display); margin-bottom: 16px; }
.pay-message, .order-notice { color: var(--muted); margin-top: 14px; }
.order-notice { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--cyan-dim); }
@media(max-width:600px){.order-status-card{padding:22px}.order-summary-grid{grid-template-columns:1fr}.order-facts{grid-template-columns:1fr 1fr}}
@media (max-width: 430px) { .product-grid { grid-template-columns: 1fr; } }

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-select {
  appearance: none;
  color-scheme: light;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, #0c1a67 50%), linear-gradient(135deg, #0c1a67 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  color: #111735;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-select:focus {
  border-color: var(--cyan, #fe6a00);
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

input[type="search"] { appearance: none; }

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

select {
  cursor: pointer;
  color-scheme: light;
  background-color: #ffffff;
  color: #111735;
}

select option { background: #ffffff; color: #111735; }

textarea {
  resize: vertical;
  min-height: 80px;
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

/* Type Cards */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

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

.type-icon {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neon-circle {
  width: 40px;
  height: 32px;
  border: 3px solid var(--cyan);
  border-radius: 20px;
  box-shadow: 0 0 10px var(--cyan), 0 0 20px var(--cyan), inset 0 0 8px rgba(254,106,0,0.3);
}

.acrylic-block {
  width: 40px;
  height: 30px;
  background: rgba(254,106,0,0.1);
  border: 1px solid rgba(254,106,0,0.4);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(254,106,0,0.2);
}

.type-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.type-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

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

.style-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.style-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  color: var(--cyan);
}

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

/* Generate Button */
.btn-generate {
  background: #c45100;
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(254,106,0,0.3);
}

.btn-generate:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(254,106,0,0.5);
}

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

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Designs Grid */
.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.design-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.design-card:hover {
  border-color: rgba(254,106,0,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.design-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(254,106,0,0.3);
}

.design-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.design-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(12,12,20,0.9));
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.design-card:hover .design-overlay {
  opacity: 1;
}

.design-prompt {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.design-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
}

.design-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.design-select-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(254,106,0,0.3);
}

.design-card.selected .design-select-btn {
  color: var(--amber);
  text-shadow: 0 0 10px rgba(12,26,103,0.3);
}

/* Pick Actions */
.pick-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pick-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.btn-primary {
  background: #c45100;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(254,106,0,0.3);
}

.btn-primary:hover:not(:disabled) {
  background: #9f3f00;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Order Form */
.order-selected {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 32px;
}

.order-selected img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.design-num {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.btn-submit {
  align-self: flex-start;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--cyan-dim);
}

/* Success */
.success-panel {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(254,106,0,0.15);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(254,106,0,0.3);
}

.success-panel h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

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

/* Error */
.error-msg {
  color: #ff6b6b;
  font-size: 0.9rem;
  padding: 12px 16px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 8px;
}

/* --- Chat-style request form --- */
.request-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.entry-mode-picker{border:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:28px}.entry-mode-picker legend{font:600 .8rem var(--font-display);color:var(--brand-navy);margin-bottom:10px}.entry-mode{border:1px solid var(--border);background:#fff;border-radius:10px;padding:16px;display:flex;gap:10px;cursor:pointer}.entry-mode.active{border-color:var(--brand-orange);box-shadow:0 0 0 3px rgba(254,106,0,.09)}.entry-mode input{accent-color:var(--brand-orange);margin-top:4px}.entry-mode span{display:flex;flex-direction:column}.entry-mode strong{font:600 .85rem var(--font-display);color:var(--brand-navy)}.entry-mode small{color:var(--muted);font-size:.76rem;margin-top:3px}

@media(max-width:600px){.entry-mode-picker{grid-template-columns:1fr}}

textarea[name="description"] {
  min-height: 140px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.6;
}

.desc-footer {
  display: flex;
  justify-content: flex-end;
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
}

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

.upload-area:hover {
  border-color: rgba(254,106,0,0.4);
  background: var(--cyan-dim);
}

.upload-area.drag-over {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(254,106,0,0.2);
}

.upload-placeholder {
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.upload-placeholder p {
  font-size: 0.9rem;
}

.upload-link {
  color: var(--cyan);
  text-decoration: underline;
}

.upload-hint {
  font-size: 0.75rem;
  color: rgba(122,122,154,0.6);
}

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

.preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  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(12,12,20,0.8);
  border: 1px solid rgba(255,107,107,0.4);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ff6b6b;
  padding: 0;
}

.preview-add-more {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-add-more button {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.7rem;
  transition: border-color 0.2s, color 0.2s;
}

.preview-add-more button:hover {
  border-color: rgba(254,106,0,0.4);
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 768px) {
  .design-main { padding: 40px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .designs-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-area { padding: 16px; }
}

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