*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Noto Sans Thai",system-ui,-apple-system,sans-serif;color:#172033;background:#f5f7fb}body{position:relative;overflow-x:hidden}.bg-orb{position:fixed;border-radius:999px;filter:blur(10px);opacity:.45;z-index:0}.orb-a{width:420px;height:420px;background:#dfe7ff;right:-120px;top:-120px}.orb-b{width:360px;height:360px;background:#dff9ee;left:-150px;bottom:-100px}.topbar{height:76px;padding:0 max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2;background:rgba(255,255,255,.72);backdrop-filter:blur(18px);border-bottom:1px solid rgba(22,35,61,.07)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#172033;color:#fff;font-weight:800}.brand b{display:block;font-size:16px}.brand small{display:block;color:#8a94a8;margin-top:2px}.admin-link,.logout{color:#65718a;text-decoration:none;font-size:14px}.shell{max-width:1160px;margin:0 auto;padding:64px 24px 80px;position:relative;z-index:1}.hero{max-width:660px;margin:10px auto 32px;text-align:center}.eyebrow,.kicker{font-size:11px;letter-spacing:.16em;font-weight:800;color:#7180a1}.hero h1,.member-hero h1{font-size:clamp(34px,5vw,58px);line-height:1.04;margin:14px 0;color:#131b2d}.hero h1 span{color:#6575f5}.hero p,.member-hero p{color:#738099;line-height:1.7}.card{background:rgba(255,255,255,.9);border:1px solid rgba(21,34,57,.08);box-shadow:0 22px 70px rgba(36,50,90,.08);border-radius:26px}.auth-card{width:min(460px,100%);margin:0 auto;padding:22px}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#f0f3f8;padding:5px;border-radius:14px;margin-bottom:22px}.tab{border:0;background:transparent;padding:11px;border-radius:11px;font-weight:700;color:#7f899b;cursor:pointer}.tab.active{background:#fff;color:#172033;box-shadow:0 4px 14px rgba(20,33,56,.08)}.auth-form{display:grid;gap:15px}.hidden{display:none}.auth-form label,.topup-card label{font-size:13px;font-weight:700;color:#556078}.auth-form input,.search-row input{width:100%;border:1px solid #dfe4ee;border-radius:13px;padding:13px 14px;margin-top:7px;outline:none;background:#fff;font-size:15px}.auth-form input:focus,.search-row input:focus,.amount-input:focus-within{border-color:#7e8af7;box-shadow:0 0 0 4px rgba(101,117,245,.10)}.btn{border:0;border-radius:13px;padding:12px 17px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn.primary{background:#6575f5;color:white;box-shadow:0 12px 28px rgba(101,117,245,.24)}.wide{width:100%}.message{margin-top:12px;font-size:13px}.message.error{color:#c83e4d}.member-hero{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:30px}.member-hero h1{font-size:42px;margin-bottom:8px}.wallet-card{min-width:270px;padding:22px 25px;border-radius:24px;background:#172033;color:#fff;box-shadow:0 22px 50px rgba(23,32,51,.18)}.wallet-card span,.wallet-card small{display:block;color:#9ea8bb;font-size:12px}.wallet-card strong{font-size:42px;display:block;margin:6px 0}.grid{display:grid;grid-template-columns:1.05fr .95fr;gap:22px}.topup-card,.qr-card{padding:28px;min-height:440px}.card-title{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}.card-title h2{margin:4px 0 0;font-size:27px}.secure-pill{font-size:11px;font-weight:800;background:#e8f8f0;color:#22855e;border-radius:999px;padding:8px 10px}.amount-label{display:block}.amount-input{margin-top:9px;border:1px solid #dde3ed;border-radius:18px;padding:5px 15px;display:flex;align-items:center;background:#fff}.amount-input span{font-size:26px;color:#9aa5b7}.amount-input input{border:0;outline:0;background:transparent;width:100%;font-size:38px;font-weight:800;padding:13px;color:#172033}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0 22px}.quick button{border:1px solid #e1e6ef;background:#f8f9fc;border-radius:11px;padding:10px;cursor:pointer;font-weight:700;color:#5f6b81}.quick button:hover{border-color:#8994fa;color:#6575f5}.hint{font-size:12px;color:#8791a4;line-height:1.7}.qr-card{display:grid;place-items:center;text-align:center}.qr-placeholder{font-size:74px;color:#c7cfdb}.empty-state h3{margin:8px 0}.empty-state p{color:#8893a7}.qr-view img{width:230px;height:230px;object-fit:contain;background:#fff;padding:8px;border-radius:18px;border:1px solid #edf0f5}.qr-view h3{font-size:31px;margin:14px 0 2px}.transfer{font-size:13px;color:#7d899d}.transfer b{color:#f26363}.countdown{margin-top:14px;background:#f5f7fb;border-radius:12px;padding:10px;font-weight:800}.status-pill{display:inline-flex;margin-top:12px;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800}.status-pill.pending{background:#fff4d8;color:#9c7413}.status-pill.paid{background:#e9f8f0;color:#1f855d}.status-pill.expired{background:#fdebee;color:#b44352}.how{margin-top:22px;display:flex;align-items:center;justify-content:center;gap:12px;color:#778298;font-size:12px}.how div{display:flex;align-items:center;gap:7px}.how b{width:25px;height:25px;border-radius:999px;background:#fff;border:1px solid #e2e7ef;display:grid;place-items:center;color:#6575f5}.how i{width:28px;height:1px;background:#dce2eb}.logout{display:block;text-align:center;margin-top:30px}.toast{position:fixed;right:24px;bottom:24px;z-index:20;max-width:360px;background:#172033;color:#fff;border-radius:14px;padding:13px 16px;box-shadow:0 18px 40px rgba(0,0,0,.18);transform:translateY(20px);opacity:0;pointer-events:none;transition:.22s}.toast.show{transform:none;opacity:1}.toast.error{background:#b74051}@media(max-width:800px){.shell{padding-top:35px}.grid{grid-template-columns:1fr}.member-hero{align-items:stretch;flex-direction:column}.wallet-card{min-width:0}.how{flex-wrap:wrap}.how i{display:none}.admin-link{font-size:12px}.quick{grid-template-columns:1fr 1fr}}.cancel-invoice{margin-top:12px;background:#fff0f2;color:#b43d4d;border:1px solid #f3cbd1}.cancel-invoice:hover{background:#fde4e8}.cancel-invoice:disabled{opacity:.5;cursor:not-allowed}
.payment-result{display:grid;gap:9px;margin-top:8px;text-align:left}.payment-result>div{display:flex;justify-content:space-between;gap:24px;padding:10px 12px;background:#f7f8fb;border-radius:11px}.payment-result span{color:#7b879c;font-size:13px}.payment-result b{color:#172033}.payment-result small{display:block;text-align:center;color:#8a94a8;margin-top:4px;word-break:break-all}
.status-pill.cancelled{background:#fbe8eb;color:#b43d4d}
