.order-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.center { text-align: center; }
.wide { width: 100%; }
.panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 12px 36px -12px rgba(76, 45, 30, 0.12);
  border: 1px solid rgba(240, 230, 220, 0.6);
}
.panel.center { align-items: center; padding: 50px 30px; }

/* ---------- Шаги заказа ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 6px 0 24px;
  display: flex;
  gap: 12px;
}
.steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffffb0;
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-3);
  border: 1px solid var(--line);
  transition: all .2s ease;
}
.steps li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  font-size: 12px;
  font-weight: 800;
}
.steps li.done { color: var(--ink-2); border-color: #c7f0e3; }
.steps li.done span { background: var(--mint); color: #fff; }
.steps li.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-color: #ffd8cc;
}
.steps li.active span { background: var(--grad); color: #fff; }

/* ---------- 1. Шаг оплаты (Desktop & Mobile) ---------- */
.pay-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}
.pay-hero { display: flex; flex-direction: column; gap: 18px; }
.pay-hero-head { display: flex; gap: 22px; align-items: flex-start; }
.pay-hero h1 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin-bottom: 10px; }
.pay-hero p { margin: 0; line-height: 1.6; font-size: 14.5px; }

.tpl-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
}
.tpl-label {
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.tpl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tpl-chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.tpl-chip:hover {
  border-color: #ffb38a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.tpl-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 6px 16px rgba(43, 33, 64, 0.2);
}
.disc {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 42px;
  box-shadow: 0 16px 32px -10px #ff6b5b99;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px) rotate(6deg); } }

.pay-form-card {
  background: var(--bg);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
}
.perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perks li {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border: 1px solid rgba(240, 230, 220, 0.6);
}

.paid-badge {
  background: linear-gradient(135deg, var(--mint-soft), #d3f9ec);
  color: #0d8762;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #b6edd9;
}

/* ---------- 2. Студия редактора (2 колонки на ПК) ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}
.studio-left, .studio-right {
  display: flex;
  flex-direction: column;
}
.idea {
  background: linear-gradient(135deg, #f4f0ff 0%, #fff3ec 100%);
  border: 1.5px solid #e7defc;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.idea-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.idea .textarea { min-height: 74px; background: #fff; }

.lyrics {
  min-height: 380px;
  font-size: 14.5px;
  font-family: inherit;
  line-height: 1.6;
}
.style-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.style-presets button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all .15s ease;
}
.style-presets button:hover {
  background: var(--lav-soft);
  color: #6a58e8;
  border-color: #d1c6fc;
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  align-self: flex-start;
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all .15s;
}
.seg button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.studio-card {
  box-shadow: none;
  border: 1px solid var(--line);
}

.mod {
  background: #fff7e6;
  border: 1.5px solid #ffd98a;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.mod.reject { background: var(--rose-soft); border-color: #ffb4a8; }
.mod ul { margin: 0; padding-left: 18px; }
.err {
  background: var(--rose-soft);
  color: #c23c2f;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 3. Генерация ---------- */
.vinyl {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #2b2140 0 2px, #3a2f52 3px 5px);
  display: grid;
  place-items: center;
  animation: spin 3s linear infinite;
  box-shadow: 0 16px 36px -12px rgba(43, 33, 64, 0.35);
  margin-bottom: 14px;
}
.vinyl div { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); border: 5px solid #fff8f1; }
.gen-song { font-weight: 800; font-family: 'Unbounded'; font-size: 18px; }

/* ---------- 4. Готово (2 версии на выбор) ---------- */
.ready-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.queue-pill {
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.queue-pill.played { background: var(--mint); }

.ready-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: start;
}
.versions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.version {
  background: var(--bg);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.version.on-air {
  border-color: var(--peach);
  background: #fff4ea;
  box-shadow: 0 6px 20px -4px rgba(255, 179, 107, 0.4);
}
.version img, .version .cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}
.version audio { width: 100%; border-radius: 12px; }
.version .row { display: flex; gap: 6px; flex-wrap: wrap; }
.ready-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lyrics-view {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.lyrics-view summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  outline: none;
  user-select: none;
}
.lyrics-view pre {
  white-space: pre-wrap;
  font-family: inherit;
  margin: 12px 0 0;
  line-height: 1.65;
  font-size: 13.5px;
  max-height: 480px;
  overflow-y: auto;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 107, 91, 0.12);
  color: #ff523d;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-launch {
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 64, 112, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-launch:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 64, 112, 0.4);
}
.btn-launch:active { transform: translateY(1px); }

.my-orders { margin-top: 10px; }
.my-orders a { display: inline-block; margin: 4px 6px 0 0; }

/* ---------- Адаптивность под планшеты и смартфоны ---------- */
@media (max-width: 991px) {
  .pay-grid { grid-template-columns: 1fr; gap: 20px; }
  .studio-grid { grid-template-columns: 1fr; gap: 20px; }
  .ready-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .order-main { padding: 0 12px; }
  .panel { padding: 22px 18px; border-radius: 18px; }
  .pay-hero { flex-direction: column; align-items: center; text-align: center; }
  .perks { grid-template-columns: 1fr; }
  .versions { grid-template-columns: 1fr; }
  .lyrics { min-height: 260px; }
  .steps { gap: 6px; margin: 4px 0 16px; }
  .steps li { font-size: 11.5px; padding: 8px 10px; gap: 6px; }
  .steps li span { width: 20px; height: 20px; font-size: 11px; }
}

@media (max-width: 480px) {
  .steps li { font-size: 0; justify-content: center; padding: 8px; }
  .steps li span { font-size: 12px; }
}
