* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2937; }
.landing { max-width: 750px; margin: 0 auto 92px; background: #fff; }
.landing img { display: block; width: 100%; height: auto; }
.sticky-pay { position: fixed; left: 0; right: 0; bottom: 0; width: min(750px, 100%); min-height: 72px; margin: 0 auto; border: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f3b13a; color: #fff; font-size: 24px; z-index: 10; }
.sticky-pay span { color: #6b3308; white-space: nowrap; }
.sticky-pay strong { flex: 0 0 auto; background: #ef4444; border-radius: 999px; padding: 10px 22px; font-size: 20px; white-space: nowrap; }
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: flex; align-items: flex-end; }
.sheet__panel { width: min(750px, 100%); margin: 0 auto; background: #fff; border-radius: 18px 18px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
.sheet__close { border: 0; background: transparent; font-size: 30px; float: right; }
.sheet h1 { margin: 0 0 18px; font-size: 22px; }
label { display: block; font-size: 15px; margin: 12px 0; }
input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 12px; font-size: 17px; margin-top: 6px; }
.code-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: end; }
.code-row button, .pay-methods button { border: 0; border-radius: 8px; padding: 12px; font-size: 16px; }
.code-row button { background: #eef2ff; color: #1d4ed8; margin-bottom: 12px; }
.privacy { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #4b5563; }
.privacy input { width: auto; margin: 0; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pay-methods button:first-child { background: #16a34a; color: #fff; }
.pay-methods button:last-child { background: #1677ff; color: #fff; }
.form-message { min-height: 20px; color: #dc2626; }
.success { max-width: 520px; min-height: 100vh; margin: 0 auto; padding: 60px 20px; background: #fff; text-align: center; }
.success h1 { font-size: 24px; margin-bottom: 12px; }
.success p { color: #4b5563; line-height: 1.6; }
.success img { max-width: 240px; width: 70%; margin: 20px auto; display: block; }
.success a { display: inline-block; margin-top: 16px; background: #16a34a; color: #fff; text-decoration: none; border-radius: 8px; padding: 12px 18px; }

@media (max-width: 390px) {
  .landing { margin-bottom: 86px; }
  .sticky-pay { min-height: 68px; padding-left: 14px; padding-right: 14px; font-size: 20px; }
  .sticky-pay strong { padding: 9px 16px; font-size: 18px; }
  .sheet__panel { padding-left: 14px; padding-right: 14px; }
  .code-row { grid-template-columns: 1fr 104px; gap: 8px; }
  .code-row button, .pay-methods button { font-size: 15px; padding-left: 8px; padding-right: 8px; }
}
