:root {
  --ink: #182235; --muted: #637087; --line: #d8e0e7; --paper: #fff; --canvas: #edf2f4;
  --navy: #12345a; --teal: #087d77; --green: #167553; --green-soft: #e4f3ec;
  --amber: #9b6207; --amber-soft: #fff1d9; --red: #b92d28; --red-soft: #fde8e6; --yape: #74288f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); background: var(--navy); color: #fff; border-bottom: 4px solid var(--teal); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: #fff; color: var(--navy); font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: #c8d6e5; font-size: 12px; }
.environment { display: flex; align-items: center; gap: 8px; color: #d7e4ef; font-size: 13px; }
.environment i { width: 8px; height: 8px; border-radius: 50%; background: #ffc857; }
.payment-shell { width: min(1160px, calc(100% - 40px)); margin: 42px auto 64px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, .82fr); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(24,43,64,.1); }
.checkout { padding: clamp(28px, 5vw, 58px); border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
h1, h2 { letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; }
.heading > p:last-child { max-width: 650px; margin: 13px 0 0; color: var(--muted); line-height: 1.55; }
.purchase { display: flex; align-items: center; gap: 16px; margin: 32px 0 36px; padding: 18px; background: #f6f9fa; border-left: 4px solid var(--teal); }
.purchase-icon { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; background: var(--navy); color: #fff; font-size: 17px; font-weight: 800; }
.purchase h2 { margin: 0 0 4px; font-size: 17px; }
.purchase p { margin: 0; color: var(--muted); font-size: 13px; }
fieldset { margin: 0 0 30px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 13px; font-size: 15px; font-weight: 750; }
.amount-options, .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amount-option { min-height: 88px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.amount-option.is-selected { border-color: var(--teal); background: #f4fbfa; box-shadow: inset 0 0 0 1px var(--teal); }
.amount-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.amount-option strong, .amount-option small { display: block; }
.amount-option small { margin-top: 5px; color: var(--muted); }
.amount-option b { white-space: nowrap; }
.field { display: grid; gap: 7px; color: #344259; font-size: 12px; font-weight: 700; }
.field-wide { grid-column: 1 / -1; }
.field span small { color: var(--muted); font-weight: 650; }
.field input { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #cbd6df; border-radius: 5px; color: var(--ink); outline: 0; font-size: 14px; font-weight: 500; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,125,119,.12); }
.method-heading { min-height: 64px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 6px; }
.yape-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 7px; background: var(--yape); color: #fff; font-size: 20px; font-weight: 800; }
.method-heading strong, .method-heading small { display: block; }
.method-heading small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.secure-label { margin-left: auto; padding: 6px 8px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.yape-help { display: grid; gap: 5px; margin: -2px 0 14px; padding: 12px 13px; border: 1px solid #d9cde0; border-left: 4px solid var(--yape); border-radius: 5px; background: #fff; color: var(--muted); font-size: 12px; line-height: 1.45; }
.yape-help strong { color: var(--ink); }
.yape-help b { color: var(--ink); }
.yape-warning { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.test-note { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 10px 12px; border: 1px dashed #b7c5d0; border-radius: 5px; background: #f8fafb; color: var(--muted); font-size: 11px; }
.test-note strong { color: var(--ink); }
.terms { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.terms input { margin: 2px 0 0; accent-color: var(--teal); }
.pay-button { width: 100%; height: 54px; display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 20px; border: 0; border-radius: 5px; background: var(--navy); color: #fff; font-weight: 750; cursor: pointer; }
.pay-button:hover { background: #0c4774; }
.pay-button:disabled { cursor: wait; opacity: .65; }
.form-error { min-height: 20px; margin: 8px 0 0; color: var(--red); font-size: 12px; }
.verification { padding: clamp(28px, 4vw, 42px); background: #f7f9fa; }
.verification-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-badge { padding: 6px 9px; border-radius: 4px; background: #e9eef2; color: #536277; font-size: 11px; font-weight: 800; }
.status-badge.approved { background: var(--green-soft); color: var(--green); }
.status-badge.pending { background: var(--amber-soft); color: var(--amber); }
.status-badge.rejected { background: var(--red-soft); color: var(--red); }
.verification h2 { margin: 24px 0 8px; font-size: 23px; }
.verification > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.status-flow { list-style: none; margin: 32px 0; padding: 0; }
.status-flow li { position: relative; min-height: 66px; display: flex; align-items: flex-start; gap: 12px; color: #8490a0; }
.status-flow li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 13px; width: 1px; height: 39px; background: #cbd5dc; }
.status-flow i { z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #e2e8ec; font-style: normal; font-size: 11px; font-weight: 800; }
.status-flow strong, .status-flow small { display: block; }
.status-flow strong { font-size: 13px; }
.status-flow small { margin-top: 4px; font-size: 11px; }
.status-flow li.active { color: var(--ink); }
.status-flow li.active i { background: var(--teal); color: #fff; }
.status-flow li.error i { background: var(--red); color: #fff; }
.receipt { margin: 0; border-top: 1px solid var(--line); }
.receipt div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.fraud-note { margin-top: 26px; padding: 15px; border: 1px solid #d9cde0; border-left: 4px solid var(--yape); background: #fff; }
.fraud-note strong { font-size: 12px; }
.fraud-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.reset-button { width: 100%; height: 44px; margin-top: 16px; border: 1px solid #bac6d0; border-radius: 5px; background: transparent; color: var(--navy); font-weight: 700; cursor: pointer; }
.is-hidden { display: none !important; }
@media (max-width: 860px) { .payment-shell { grid-template-columns: 1fr; margin-top: 22px; } .checkout { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 580px) { .topbar { height: 64px; padding: 0 16px; } .environment { font-size: 0; } .payment-shell { width: 100%; margin: 0; border-left: 0; border-right: 0; box-shadow: none; } .checkout, .verification { padding: 28px 18px; } .amount-options, .field-grid { grid-template-columns: 1fr; } .secure-label { max-width: 82px; text-align: center; } .test-note { flex-direction: column; gap: 4px; } }
