/* Быстрый заказ на главной (quick-order.js) */
.qo-wrap { width: 100%; max-width: 460px; margin: 0 auto; }
.qo-wrap [hidden] { display: none !important; }

.qo-card {
  --brand: #8b5cf6;
  --brand-2: #06b6d4;
  --brand-soft: rgba(139, 92, 246, 0.16);
  border-radius: 22px;
  padding: 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(24, 24, 32, 0.86), rgba(14, 14, 20, 0.86));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.8), 0 0 60px -30px var(--brand);
  scroll-margin-top: 16px;
  transition: box-shadow 0.4s;
}
@media (min-width: 640px) { .qo-card { padding: 22px; } }
.qo-card[data-brand="tiktok"]    { --brand: #fe2c55; --brand-2: #25f4ee; --brand-soft: rgba(254, 44, 85, 0.14); }
.qo-card[data-brand="instagram"] { --brand: #e1306c; --brand-2: #f77737; --brand-soft: rgba(225, 48, 108, 0.14); }
.qo-card[data-brand="telegram"]  { --brand: #229ed9; --brand-2: #38bdf8; --brand-soft: rgba(34, 158, 217, 0.16); }
.qo-card[data-brand="youtube"]   { --brand: #ff0033; --brand-2: #ff6b6b; --brand-soft: rgba(255, 0, 51, 0.13); }

.qo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.qo-title { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 1.0625rem; color: #fff; }
.qo-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; color: #6ee7b7;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2);
  white-space: nowrap;
}
.qo-live i { width: 6px; height: 6px; border-radius: 999px; background: #34d399; animation: qoPulse 1.8s ease-in-out infinite; }
@keyframes qoPulse { 50% { opacity: 0.35; } }

.qo-block + .qo-block { margin-top: 16px; }
.qo-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  font-size: 0.75rem; font-weight: 600; color: #9ca3af;
  margin-bottom: 8px;
}
.qo-label-aside { font-weight: 500; color: #6b7280; }

/* Платформы */
.qo-platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.qo-platform {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 0;
  padding: 10px 4px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: #9ca3af;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}
.qo-platform:hover { color: #e5e7eb; border-color: rgba(255, 255, 255, 0.16); }
.qo-platform:active { transform: scale(0.97); }
.qo-platform-ico {
  width: 34px; height: 34px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.qo-platform-ico svg { width: 18px; height: 18px; }
.qo-platform-name { font-size: 0.6875rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qo-platform[aria-checked="true"] { color: #fff; border-color: var(--brand); background: var(--brand-soft); }
.qo-platform[aria-checked="true"] .qo-platform-ico {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 16px -6px var(--brand);
}
.qo-platform[data-platform="tiktok"][aria-checked="true"] .qo-platform-ico { background: #000; box-shadow: 0 6px 16px -6px #fe2c55; }
.qo-platform[data-platform="tiktok"][aria-checked="true"] .qo-platform-ico svg { filter: drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
.qo-platform[data-platform="instagram"][aria-checked="true"] .qo-platform-ico { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }

/* Услуги — карточки с ценой */
.qo-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.qo-services:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qo-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #d1d5db;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.qo-chip:hover { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.qo-chip-name { font-size: 0.8125rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qo-chip-price { font-size: 0.75rem; color: #6b7280; font-variant-numeric: tabular-nums; }
.qo-chip-price small { font-size: 0.625rem; margin-left: 1px; }
.qo-chip[aria-checked="true"] { color: #fff; border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.qo-chip[aria-checked="true"] .qo-chip-price { color: #e5e7eb; }

/* Поля */
.qo-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
@media (max-width: 640px) { .qo-input { font-size: 16px; } }
.qo-input::placeholder { color: #565b66; }
.qo-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.qo-input[aria-invalid="true"] { border-color: rgba(251, 191, 36, 0.6); }

.qo-stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 6px; }
.qo-step {
  height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.12s;
}
.qo-step svg { width: 16px; height: 16px; }
.qo-step:hover { color: #fff; background: var(--brand-soft); border-color: var(--brand); }
.qo-step:active { transform: scale(0.94); }
.qo-qty-input {
  text-align: center;
  font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.qo-qty-input::placeholder { font-family: Inter, sans-serif; font-weight: 400; font-size: 0.875rem; }
.qo-qty-input::-webkit-outer-spin-button,
.qo-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.qo-presets { display: flex; gap: 5px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.qo-presets::-webkit-scrollbar { display: none; }
.qo-preset {
  flex: 1 0 auto;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 0.75rem; font-weight: 500;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.qo-preset:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.qo-preset.is-active { color: #fff; border-color: var(--brand); background: var(--brand-soft); }

.qo-hint { margin-top: 7px; min-height: 1em; font-size: 0.75rem; color: #a78bfa; }
.qo-hint:empty { display: none; }
.qo-hint.is-warn { color: #fbbf24; }

.qo-link-field { position: relative; }
.qo-link-field .qo-input { padding-left: 40px; padding-right: 84px; }
.qo-link-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #6b7280; display: flex; pointer-events: none; }
.qo-link-ico svg { width: 16px; height: 16px; }
.qo-link-field:focus-within .qo-link-ico { color: var(--brand); }
.qo-link-ok {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #052e22; background: #34d399;
}
.qo-link-ok svg { width: 12px; height: 12px; }
.qo-paste {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  height: 32px; padding: 0 11px;
  border-radius: 9px;
  font-size: 0.75rem; font-weight: 600;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.qo-paste:hover { background: var(--brand-soft); border-color: var(--brand); }
.qo-link-warn { font-size: 0.6875rem; color: #fbbf24; margin-top: 6px; }

/* Итог и оплата — компактно, без отдельного тёмного блока */
.qo-summary {
  margin-top: 16px;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label total" "bal total" "err err" "pay pay";
  align-items: center;
  column-gap: 10px;
}
.qo-total-row { display: contents; }
.qo-total-label { grid-area: label; color: #e5e7eb; font-size: 0.875rem; font-weight: 600; }
.qo-total-wrap { grid-area: total; display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.qo-total {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.375rem; font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.qo-currency { color: #9ca3af; font-size: 0.9375rem; font-weight: 600; }
.qo-old { color: #6b7280; font-size: 0.75rem; }
.qo-badge {
  font-size: 0.625rem; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  background: #34d399; color: #052e22;
}
.qo-balance-row { grid-area: bal; display: flex; gap: 4px; margin-top: 2px; font-size: 0.6875rem; color: #6b7280; }
.qo-balance-label.is-note { color: #6b7280; }
.qo-balance-row strong { color: #d1d5db; font-weight: 600; }
.qo-summary .qo-error { grid-area: err; }
.qo-summary .qo-pay { grid-area: pay; }

.qo-error { margin-top: 10px; font-size: 0.8125rem; color: #fca5a5; white-space: pre-line; }

.qo-pay {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 0;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  box-shadow: 0 12px 28px -12px rgba(139, 92, 246, 0.85);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.qo-pay::after {
  content: '';
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: qoShine 3.6s ease-in-out infinite;
}
@keyframes qoShine { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.qo-pay:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(139, 92, 246, 1); }
.qo-pay:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.qo-pay:disabled::after { display: none; }
@media (prefers-reduced-motion: reduce) { .qo-pay::after { animation: none; display: none; } }

.qo-note {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.6875rem; color: #6b7280; text-align: center;
}
.qo-note svg { width: 13px; height: 13px; flex-shrink: 0; color: #34d399; }
@media (max-width: 480px) {
  .qo-card { padding: 16px; }
  .qo-chip { padding: 8px 9px; }
  .qo-chip-name { font-size: 0.75rem; white-space: normal; line-height: 1.2; }
  .qo-chip-price { font-size: 0.6875rem; }
  .qo-platform-ico { width: 32px; height: 32px; }
}

/* Один спокойный синий акцент (как в Telegram) для любой соцсети */
.qo-card,
.qo-card[data-brand] {
  --brand: #2aa3e0;
  --brand-2: #38bdf8;
  --brand-soft: rgba(42, 163, 224, 0.15);
}
.qo-platform[data-platform="tiktok"][aria-checked="true"] .qo-platform-ico { box-shadow: 0 6px 16px -6px #2aa3e0; }
