:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #182230; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: #2563eb; text-decoration: none; }
.buy-header { height: 64px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e6eaf0; }
.buy-brand { display: inline-flex; align-items: center; gap: 10px; color: #14243a; font-size: 19px; font-weight: 700; }
.buy-brand img { width: 34px; height: 34px; object-fit: contain; }
.buy-main { width: min(920px, calc(100% - 32px)); margin: 34px auto 72px; }
.buy-heading { margin: 0 0 22px; text-align: center; }
.buy-heading p { margin: 0 0 8px; color: #2563eb; font-size: 13px; font-weight: 700; }
.buy-heading h1 { margin: 0; font-size: 29px; line-height: 1.3; }
.buy-heading span { display: block; margin-top: 8px; color: #667085; font-size: 14px; }
#buy-form { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .85fr); align-items: start; gap: 22px; }
.plan-picker, .checkout-fields, .payment-panel { min-width: 0; padding: 22px; background: #fff; border: 1px solid #e0e6ee; border-radius: 8px; }
.plan-picker { margin: 0; }
.plan-picker legend, .payment-choice legend { padding: 0 6px; font-size: 17px; font-weight: 700; }
.plan-list { display: grid; gap: 10px; }
.plan-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid #e0e6ee; border-radius: 6px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: #2563eb; background: #f6f9ff; }
.plan-option input { width: 17px; height: 17px; margin: 0; accent-color: #2563eb; }
.plan-name { display: block; font-size: 15px; font-weight: 700; }
.plan-meta { display: block; margin-top: 5px; color: #667085; font-size: 12px; line-height: 1.55; }
.plan-price { white-space: nowrap; color: #14243a; font-size: 19px; font-weight: 750; }
.plan-price small { color: #667085; font-size: 12px; font-weight: 500; }
.checkout-fields h2 { margin: 0 0 19px; font-size: 17px; }
.checkout-fields > label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.checkout-fields > input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #cfd7e3; border-radius: 5px; color: #182230; font: inherit; }
.checkout-fields > input::placeholder { font-size: .67em; }
.checkout-fields > input:focus { outline: 3px solid #dbeafe; border-color: #2563eb; }
.field-note, .secure-note { margin: 7px 0 0; color: #667085; font-size: 12px; line-height: 1.55; }
.payment-hint { display: grid; gap: 5px; margin-top: 18px; padding: 14px 16px; border-left: 4px solid #15966b; background: #f0f8f4; color: #356b55; font-size: 13px; line-height: 1.6; }
.payment-hint strong { color: #176344; font-size: 14px; }
.payment-choice { margin: 18px 0 0; padding: 0; border: 0; }
#payment-options { display: flex; gap: 10px; margin-top: 8px; }
#payment-options label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #e0e6ee; border-radius: 5px; font-size: 13px; }
#payment-options input { accent-color: #2563eb; }
.buy-submit { width: 100%; min-height: 46px; margin-top: 20px; border: 0; border-radius: 5px; background: #2563eb; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.buy-submit:disabled { opacity: .55; cursor: not-allowed; }
.buy-alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 6px; background: #fff5f5; color: #b42318; font-size: 14px; }
.loading, .empty { padding: 18px 0; color: #667085; text-align: center; font-size: 14px; }
.payment-panel { margin-top: 18px; }
.payment-summary { display: flex; flex-wrap: wrap; gap: 34px; padding-bottom: 14px; border-bottom: 1px solid #edf0f4; }
.payment-summary div { display: grid; gap: 5px; }
.payment-summary span { color: #667085; font-size: 12px; }
.payment-summary strong { overflow-wrap: anywhere; font-size: 15px; }
.payment-status { display: flex; align-items: center; gap: 8px; margin: 15px 0; font-size: 14px; font-weight: 650; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5a100; }
.payment-frame-wrap { overflow: hidden; min-height: 200px; display: grid; place-items: center; background: #f7f9fc; border: 1px solid #e6eaf0; border-radius: 5px; }
#payment-frame { width: 100%; height: 520px; border: 0; background: #fff; }
.frame-empty { padding: 28px; color: #667085; text-align: center; font-size: 13px; }
.open-payment { display: inline-block; margin-top: 13px; font-weight: 650; }
.success-dialog { width: min(420px, calc(100% - 28px)); padding: 30px; border: 1px solid #e0e6ee; border-radius: 8px; color: #182230; text-align: center; }
.success-dialog::backdrop { background: rgb(16 24 40 / 48%); }
.success-mark { width: 48px; height: 48px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #e8f7ef; color: #159454; font-size: 26px; }
.success-dialog h2 { margin: 0 0 18px; font-size: 20px; }
.success-dialog p { margin: 10px 0; font-size: 14px; }
.password-warning { color: #b54708; }
@media (max-width: 700px) {
  .buy-header { height: 58px; padding: 0 16px; }
  .buy-main { margin-top: 24px; }
  .buy-heading h1 { font-size: 25px; }
  #buy-form { grid-template-columns: 1fr; gap: 14px; }
  .plan-picker, .checkout-fields, .payment-panel { padding: 18px; }
  #payment-frame { height: 460px; }
}
