:root { color-scheme: light; font-family: Battambang, "Noto Sans Khmer", Arial, sans-serif; background: #edf8f4; color: #12352e; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; background: radial-gradient(circle at 80% 10%, #d0f2e5 0 8%, transparent 30%), #edf8f4; }
button, input { font: inherit; }
.portal { width: min(100%, 470px); min-height: 100vh; padding: 36px 24px 44px; background: #fff; box-shadow: 0 0 50px #0c403022; }
header { text-align: center; margin: 0 auto 30px; }
.eyebrow { margin: 0 0 10px; color: #08785f; font: 700 13px/1.3 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; line-height: 1.35; }
h1 { font-size: 28px; color: #0c715a; }
h1 span, h2 span, .intro span, .hint span, .waiting span, .result p span, button span { font-family: "DM Sans", sans-serif; }
h1 span { color: #183f36; font-size: .75em; font-weight: 500; }
.intro { margin: 15px 0 0; font-size: 14px; line-height: 1.75; color: #59726b; }
.screen { animation: enter .2s ease-out; }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.field-label span, h2 span { display: block; font: 400 12px/1.5 "DM Sans", sans-serif; color: #657a74; }
input { width: 100%; padding: 13px 14px; border: 1.5px solid #b9d4ca; border-radius: 10px; color: #12352e; font: 500 16px/1.3 "DM Sans", monospace; letter-spacing: .04em; outline: none; }
input:focus { border-color: #078268; box-shadow: 0 0 0 3px #0a85651c; }
.hint { margin: 7px 0 25px; color: #6b817b; font-size: 11px; line-height: 1.7; }
h2 { margin: 0 0 14px; font-size: 20px; }
.plans { display: grid; gap: 10px; }
.plan { position: relative; width: 100%; min-height: 76px; padding: 12px 104px 12px 15px; border: 1.5px solid #d3e5de; border-radius: 12px; background: #fff; color: #12352e; cursor: pointer; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.plan:hover, .plan:focus-visible { border-color: #078268; background: #f4fcf8; outline: none; transform: translateY(-1px); }
.plan:disabled { cursor: wait; opacity: .6; }
.plan strong, .plan span { display: block; }.plan strong { font-size: 17px; }.plan span { color: #6c817b; font: 12px/1.3 "DM Sans", sans-serif; }.plan b { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #08785f; font: 700 16px/1.2 "DM Sans", sans-serif; white-space: nowrap; }
.error { margin: 8px 0; color: #ba2a2a; font-size: 12px; line-height: 1.5; }
.text-button { display: block; margin: 0 0 22px; padding: 0; border: 0; background: none; color: #08785f; cursor: pointer; font-size: 13px; font-weight: 700; }
#pay-screen { text-align: center; } #pay-screen .text-button { text-align: left; }
#qr { display: block; width: min(288px, 100%); height: auto; margin: 4px auto 18px; border: 1px solid #e1eee9; border-radius: 12px; image-rendering: pixelated; }
.amount { margin: 0; color: #08785f; font: 700 25px/1.2 "DM Sans", sans-serif; }.waiting { margin-top: 24px; color: #4c6961; font-size: 13px; }.waiting i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #07a77d; animation: pulse 1.1s infinite; }
.result { padding-top: 48px; text-align: center; }.result-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; place-items: center; color: white; font: 700 35px/1 "DM Sans", sans-serif; }.success { background: #079b73; }.timeout { background: #ca7131; }.result h2 { font-size: 22px; }.result p { color: #57716a; font-size: 14px; line-height: 1.8; }.primary { margin-top: 16px; padding: 12px 20px; border: 0; border-radius: 9px; background: #08785f; color: #fff; cursor: pointer; font-weight: 700; }
[hidden] { display: none !important; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } } @keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
@media (min-width: 520px) { .portal { min-height: 680px; border-radius: 20px; } body { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
