:root {
  color-scheme: light;
  --bg: #f3f5f4;
  --surface: #ffffff;
  --text: #17201c;
  --muted: #66736c;
  --line: #dfe5e1;
  --green: #16885b;
  --green-dark: #0f6d48;
  --green-soft: #e9f6ef;
  --amber: #9a6500;
  --amber-soft: #fff6dc;
  --red: #b43a3a;
  --shadow: 0 14px 34px rgba(26, 49, 38, 0.07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); }
nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
nav a:hover, footer a:hover { color: var(--green); }

.page-shell { width: min(1120px, calc(100% - 32px)); margin: 34px auto 64px; display: grid; gap: 24px; }
.page-shell.narrow { width: min(900px, calc(100% - 32px)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 34px; }
.hero h1 { margin: 3px 0 10px; font-size: clamp(27px, 4vw, 40px); letter-spacing: -0.03em; }
h2 { margin: 3px 0 10px; font-size: 22px; }
h3 { margin: 0 0 8px; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine-print { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.eyebrow { margin: 0; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }

.notice { border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.notice p { margin: 4px 0 0; font-size: 14px; }
.notice-hold { background: var(--amber-soft); border: 1px solid #efd899; color: #694500; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; color: var(--muted); background: #eef1ef; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-hold { color: var(--amber); background: #ffedb8; }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading-outside { padding: 0 4px; margin-bottom: 14px; }
.section-heading h2 { margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; }
.product-card .button { margin-top: auto; }
.price { margin: 18px 0 6px; font-size: 26px; font-weight: 800; }
.features { margin: 14px 0 22px; padding-left: 20px; color: var(--muted); }
.empty-card { min-height: 190px; display: grid; align-content: center; text-align: center; color: var(--muted); grid-column: 1 / -1; }

.two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.two-column.compact { gap: 16px; }
.summary-list { margin: 20px 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 650; }

.button { min-height: 42px; padding: 10px 17px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; }
.button-primary { color: #fff; background: var(--green); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: #fff; border-color: #a9cdbb; }
.button-block { width: 100%; }
.button:disabled, .payment-option:disabled { cursor: not-allowed; opacity: 0.5; }

.payment-options { display: grid; gap: 12px; }
.payment-option { width: 100%; padding: 15px 16px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.payment-option span { font-weight: 750; }
.payment-option small { color: var(--muted); }
.provider-panel { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.provider-panel p { color: var(--muted); font-size: 14px; }
.qr-placeholder { min-height: 170px; display: grid; place-items: center; align-content: center; border: 1px dashed #abc6b8; border-radius: 12px; background: #f6faf8; color: var(--muted); text-align: center; }
.qr-placeholder span { font-size: 48px; color: var(--green); }
.qr-placeholder p { margin: 4px 0; }
.qr-placeholder img { width: min(280px, 100%); height: auto; aspect-ratio: 1; display: block; }

.state-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.state-card { position: relative; padding: 18px 18px 16px 42px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.state-card h3 { font-size: 15px; }
.state-card p { margin: 0; color: var(--muted); font-size: 12px; }
.state-dot { position: absolute; top: 21px; left: 18px; width: 10px; height: 10px; border-radius: 50%; }
.state-dot.pending { background: #d99a16; }.state-dot.success { background: var(--green); }.state-dot.danger { background: var(--red); }.state-dot.review { background: #7559b8; }.muted-dot { background: #8f9a94; }

.skeleton-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.skeleton-row span { height: 46px; border-radius: 10px; background: linear-gradient(100deg, #eef1ef 30%, #f7f9f8 50%, #eef1ef 70%); }
.support { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.support h2 { margin-bottom: 0; }
.empty-state { min-height: 260px; display: grid; justify-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-state h3 { color: var(--text); }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 28px; }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-row label { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.form-row input { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f7f6; }
.status-message { min-height: 24px; color: var(--green-dark); font-weight: 650; }
.orders-list { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.order-row div { display: grid; gap: 4px; }
.order-row small { color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }

footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 22px; color: var(--muted); font-size: 13px; }
footer span { margin-right: auto; }

@media (max-width: 760px) {
  .topbar { align-items: flex-start; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .hero, .support { align-items: flex-start; flex-direction: column; }
  .card-grid, .two-column, .state-grid { grid-template-columns: 1fr; }
  .skeleton-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-row label { grid-column: auto; }
  footer { flex-wrap: wrap; }
  footer span { width: 100%; }
}
