:root {
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", "Microsoft YaHei", system-ui, sans-serif;
  background: #0a0c12;
  color: #f3f4f6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.checkout-header { border-bottom: 1px solid rgba(255,255,255,.1); }
.header-inner { max-width: 1120px; margin: auto; min-height: 72px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.brand img { object-fit: contain; }
.brand-accent { color: #00dce8; }
.back-link { font-size: 14px; color: #a7b1c4; }
.back-link:hover, .back-link:focus-visible { color: #fff; }

.checkout-main { width: min(100%, 1120px); margin: 0 auto; padding: 50px 28px 80px; flex: 1; }
.page-heading { margin-bottom: 36px; }
.eyebrow { font-size: 11px; font-weight: 700; color: #00dce8; }
h1 { margin: 7px 0 0; font-size: 34px; line-height: 1.2; }
h2 { margin: 0 0 18px; font-size: 18px; line-height: 1.3; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 340px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.plan-list { display: grid; gap: 10px; }
.plan-option { min-height: 92px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 18px; display: flex; align-items: center; gap: 16px; cursor: pointer; background: #131824; transition: border-color .15s, background-color .15s; }
.plan-option:hover { border-color: #5b7581; }
.plan-option:has(input:checked) { border-color: #00dce8; background: #13232c; }
.plan-option input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #00dce8; }
.plan-copy { min-width: 0; display: grid; gap: 3px; }
.plan-copy strong { font-size: 16px; }
.plan-copy small { font-size: 13px; color: #acb5c2; line-height: 1.5; }
.plan-price { margin-left: auto; font-size: 18px; font-weight: 800; white-space: nowrap; }
.plan-note { margin: 18px 0 0; max-width: 560px; color: #9da9b8; font-size: 13px; line-height: 1.65; }
.buyer-fields { margin-top: 34px; }
.field { display: grid; gap: 8px; font-size: 13px; color: #b3bdca; }
.field input, .field select { width: 100%; min-height: 46px; border: 1px solid #414a58; border-radius: 6px; background: #151a24; color: #f3f4f6; padding: 0 12px; outline: none; }
.field input:focus, .field select:focus { border-color: #00dce8; }
.field input::placeholder { color: #8490a1; }
.renewal-field { margin-top: 16px; }
.field-note { margin: 11px 0 0; color: #8e9aab; font-size: 12px; line-height: 1.5; }

.order-summary, .order-status { border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #151a24; padding: 24px; }
.summary-row, .summary-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary-row { font-size: 14px; color: #b3bdca; }
.summary-row span:last-child { color: #f3f4f6; }
.summary-rule { height: 1px; margin: 22px 0; background: rgba(255,255,255,.13); }
.summary-total { font-size: 14px; }
.summary-total strong { font-size: 26px; color: #fff; }
.payment-method { margin-top: 22px; }
.payment-method option:disabled { color: #8e9aab; }
.delivery-note { margin: 22px 0 18px; color: #9da9b8; font-size: 13px; line-height: 1.6; }
.primary-button { width: 100%; min-height: 48px; background: #00dce8; border: 1px solid #00dce8; border-radius: 6px; color: #06131a; font-weight: 800; }
.primary-button:hover:not(:disabled) { background: #63f0f3; border-color: #63f0f3; }
.primary-button:disabled { opacity: .65; cursor: wait; }
.inline-error { margin: 12px 0 0; color: #ffb9ab; font-size: 13px; }
.support-contact { margin-top: 23px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 18px; color: #a7b1c4; font-size: 13px; }
.support-contact > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.support-contact strong { color: #f3f4f6; font-size: 14px; }
.support-contact button { border: 0; background: transparent; color: #00dce8; padding: 6px 0; }
.support-contact button:hover { color: #63f0f3; }
.support-link { display: inline-flex; align-items: center; min-height: 34px; margin-top: 8px; color: #00dce8; font-weight: 700; }
.support-link:hover { color: #63f0f3; }

.order-status { max-width: 680px; }
.status-topline { display: inline-flex; align-items: center; gap: 8px; color: #ffd58f; font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-topline.paid { color: #50ddb4; }
.status-topline.closed { color: #b8c5d6; }
.order-status h2 { margin: 13px 0 24px; font-size: 24px; }
.status-details { display: grid; gap: 15px; }
.status-details > div { display: flex; justify-content: space-between; gap: 24px; font-size: 14px; }
.status-details span, .issued-key > span { color: #a7b1c4; }
.status-details code, .issued-key code { font-family: Consolas, "JetBrains Mono", monospace; overflow-wrap: anywhere; }
.status-message { margin: 24px 0; color: #a7b1c4; font-size: 14px; }
.issued-key { border-top: 1px solid rgba(255,255,255,.13); padding-top: 20px; }
.renewal-result { border-top: 1px solid rgba(255,255,255,.13); padding-top: 20px; color: #60efd1; font-size: 15px; }
.key-line { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 9px; }
.key-line code { color: #60efd1; font-size: 20px; font-weight: 700; }
.key-line button { border: 1px solid #44756e; border-radius: 6px; padding: 8px 12px; color: #d9fff5; background: #1b3b38; }
.status-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.secondary-button, .text-button { min-height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 8px 14px; background: #202836; color: #f3f4f6; font-size: 14px; }
.secondary-button:hover, .text-button:hover { background: #2b3544; }
.cancel-button { border-color: #68515a; color: #ffbdb6; }
.cancel-button:hover { background: #39262d; }
.text-button { border-color: transparent; background: transparent; color: #b8c5d6; }
.checkout-footer { padding: 20px 28px; border-top: 1px solid rgba(255,255,255,.08); color: #778294; text-align: center; font-size: 12px; }

@media (max-width: 760px) {
  .header-inner { padding: 0 18px; min-height: 64px; }
  .brand { font-size: 17px; }
  .brand img { width: 28px; height: 28px; }
  .back-link { font-size: 12px; }
  .checkout-main { padding: 34px 18px 58px; }
  .page-heading { margin-bottom: 26px; }
  h1 { font-size: 28px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .order-summary, .order-status { padding: 20px; }
  .plan-option { padding: 15px; gap: 12px; }
  .plan-price { font-size: 16px; }
}
