:root {
  --card-bg: rgba(255, 255, 255, 0.06);
}

.order-page {
  padding-top: 24px;
}

.order-header {
  align-items: center;
}

.wizard {
  display: grid;
  gap: 22px;
}

.wizard-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--outline);
  border-radius: 14px;
  background: var(--card);
}

.wizard-progress,
.wizard-price {
  font-weight: 600;
}

.wizard-card {
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 20px;
  background: var(--card);
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
  animation: wizardFadeIn 0.28s ease both;
}

.wizard-card h2 {
  margin: 0;
}

.wizard-card[data-anim="forward"] {
  animation: wizardSlideInLeft 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wizard-card[data-anim="back"] {
  animation: wizardSlideInRight 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wizard-card.hidden {
  display: none;
}

.grid.small {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.templates {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.template-card {
  border: 1px solid var(--outline);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  display: grid;
  gap: 10px;
}

.template-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.template-card .template-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.chip {
  border: 1px solid var(--outline);
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

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

.chip.active {
  background: var(--ink);
  color: #10131a;
}

.btn {
  border: 1px solid var(--outline);
  padding: 10px 16px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.btn.primary {
  background: var(--ink);
  color: #10131a;
}

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

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.ghost {
  background: transparent;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 6px;
}

.field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.custom-panel {
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.custom-panel .option-row {
  display: grid;
  gap: 8px;
}

.hidden {
  display: none;
}

@media (max-width: 720px) {
  .wizard-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

@keyframes wizardSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wizardSlideInRight {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
