.order-hero {
  padding: 56px 0 12px;
  background:
    radial-gradient(640px 320px at 85% -20%, rgba(34, 211, 238, 0.12), transparent 65%);
}

.order-hero .lead {
  margin-top: 16px;
  color: var(--ink-dim);
  font-size: 1.1rem;
  max-width: 36em;
}

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0 72px;
}

.order-steps {
  display: grid;
  gap: 22px;
  counter-reset: orderstep;
}

.order-step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.order-step::before {
  counter-increment: orderstep;
  content: "0" counter(orderstep);
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--amber);
  margin-bottom: 12px;
}

.order-step h2 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.order-step .hint {
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.choice-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.choice:hover {
  border-color: var(--accent);
}

.choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-name strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}

.choice-name small {
  display: block;
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.choice-price {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.choice-price small {
  color: var(--ink-dim);
  font-weight: 400;
}

.order-summary {
  position: sticky;
  top: 84px;
  background: #0A101D;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.order-summary h2 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.order-summary h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 22px 0 6px;
}

.sum-value {
  font-size: 0.9rem;
  color: var(--ink);
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.summary-total .mono {
  color: var(--ink);
}

.summary-total b {
  color: var(--accent);
  font-size: 1.5rem;
}

.renewal-note {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.gateway-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.gateway-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.gateway-option:hover {
  border-color: var(--accent);
}

.gateway-option input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex: none;
}

.gateway-note {
  margin-top: 10px;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.pay-btn {
  width: 100%;
  margin-top: 18px;
}

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

.account-line {
  margin-top: 12px;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.order-alert {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.9rem;
}

.order-alert.ok {
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

.status-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 16, 0.72);
}

.status-overlay[hidden] {
  display: none !important;
}

.status-dialog {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.status-dialog h2 {
  font-size: 1.35rem;
  margin-top: 18px;
}

.status-dialog p {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.status-dialog .btn {
  width: 100%;
  margin-top: 22px;
}

.status-spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: order-spin 0.9s linear infinite;
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--accent);
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }
}

@media (max-width: 520px) {
  .choice-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .order-step {
    padding: 22px 18px;
  }

  .order-summary {
    padding: 22px 18px;
  }
}
