:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #162b27;
  background: #f3f6f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f3f6f4; }
button, a { font: inherit; }
.page-shell { width: min(100% - 40px, 1000px); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 17px; font-weight: 750; text-decoration: none; letter-spacing: .02em; }
.brand small { display: block; margin-top: 2px; color: #75847f; font-size: 11px; font-weight: 550; letter-spacing: .1em; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: #fff; background: #147b63; font-size: 22px; font-weight: 800; }
.secure-tag { color: #56756c; font-size: 13px; }
.secure-tag span { margin-right: 6px; color: #199a72; font-size: 10px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr); gap: 20px; align-items: stretch; padding: 20px 0 48px; }
.card { border: 1px solid #e0e8e3; border-radius: 20px; background: #fff; box-shadow: 0 16px 46px rgba(25, 57, 45, .06); }
.order-card { padding: clamp(24px, 5vw, 46px); }
.eyebrow { margin: 0 0 10px; color: #147b63; font-size: 11px; font-weight: 750; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(27px, 4vw, 34px); line-height: 1.25; letter-spacing: -.03em; }
.muted { color: #75847f; font-size: 14px; line-height: 1.7; }
#status-message { min-height: 24px; margin: 12px 0 28px; }
.order-details { border-top: 1px solid #edf1ee; }
.detail-row, .amount-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid #edf1ee; font-size: 14px; }
.detail-row span, .amount-row span { color: #75847f; }
.detail-row strong { max-width: 70%; text-align: right; font-weight: 650; }
.amount-row { align-items: baseline; margin-top: 2px; padding: 22px 0; border: 0; }
.amount-row strong { color: #147b63; font-size: 32px; letter-spacing: -.03em; }
.actions { display: grid; gap: 14px; margin-top: 24px; }
.primary-button { min-height: 52px; border: 0; border-radius: 12px; color: #fff; background: #147b63; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.primary-button:hover:not(:disabled) { background: #0f6954; transform: translateY(-1px); }
.primary-button:disabled { opacity: .58; cursor: wait; }
.secondary-link { justify-self: center; color: #56756c; font-size: 14px; text-decoration: none; }
.secondary-link:hover { color: #147b63; text-decoration: underline; }
.error-message { margin: 18px 0 0; color: #b44038; font-size: 14px; line-height: 1.6; }
.qr-card { display: grid; min-height: 390px; place-items: center; padding: 28px; }
.qr-placeholder, .qr-content { display: grid; justify-items: center; gap: 12px; text-align: center; }
.qr-placeholder strong, .qr-content strong { font-size: 16px; }
.qr-placeholder span, .qr-content .muted { color: #75847f; font-size: 13px; }
.qr-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; color: #147b63; background: #e7f4ef; font-size: 39px; }
.qr-content img { width: min(70vw, 280px); aspect-ratio: 1; padding: 10px; border: 1px solid #e6ede8; border-radius: 14px; background: #fff; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 0 0 28px; color: #87938f; font-size: 12px; }
.welcome-card { max-width: 540px; margin: 14vh auto 0; padding: 48px; text-align: center; }
.welcome-card .brand-mark { margin: 0 auto 18px; }
.welcome-card .muted { margin: 12px 0 0; }

@media (max-width: 720px) {
  .page-shell { width: min(100% - 28px, 520px); }
  .site-header { min-height: 72px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 14px; padding: 10px 0 32px; }
  .order-card { padding: 25px 22px; }
  .qr-card { min-height: 310px; padding: 22px; }
  .site-footer { flex-direction: column; gap: 5px; font-size: 11px; }
}
