/* Khung thanh toán 1 chạm */
.rp-overlay{position:fixed;inset:0;z-index:100;background:rgba(14,13,82,.55);display:flex;align-items:center;justify-content:center;padding:16px;animation:rpFade .2s}
.rp-overlay .rp{width:min(760px,100%);max-height:calc(100vh - 32px);overflow-y:auto;box-shadow:0 30px 80px rgba(14,13,82,.35)}
@keyframes rpFade{from{opacity:0}}
@keyframes rpUp{from{transform:translateY(24px);opacity:0}}
.rp{position:relative;background:#fff;border:1px solid #D3ECE6;border-radius:22px;padding:clamp(18px,3.5vw,30px);color:#13302D;font-family:'Be Vietnam Pro',system-ui,sans-serif;animation:rpUp .25s}
.rp *{box-sizing:border-box}
.rp h3{margin:0;font-family:Montserrat,sans-serif;font-weight:800;font-size:clamp(19px,3vw,23px);line-height:1.3;color:#0B4F4A;text-wrap:balance}
.rp p{margin:0;text-wrap:wrap}
.rp button,.rp a.rp-btn{white-space:nowrap;font:inherit;cursor:pointer}
.rp-x{position:absolute;top:12px;right:12px;width:38px;height:38px;border:0;border-radius:12px;background:#F2FAF8;color:#0B4F4A;font-size:18px}
.rp-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-right:44px}
.rp-eyebrow{font-size:13px;color:#577570;margin-bottom:4px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-timer{position:relative;width:76px;height:76px;flex:none;display:grid;place-items:center}
.rp-timer svg{position:absolute;inset:0;transform:rotate(-90deg)}
.rp-timer circle{fill:none;stroke-width:6}
.rp-timer .bg{stroke:#E2F3EF}
.rp-timer .fg{stroke:#0E8F7E;stroke-linecap:round;transition:stroke-dashoffset 1s linear,stroke .3s}
.rp-timer b{font-family:Montserrat,sans-serif;font-weight:800;font-size:17px;color:#0B4F4A;font-variant-numeric:tabular-nums;line-height:1}
.rp-timer small{position:absolute;bottom:13px;left:0;right:0;text-align:center;font-size:10px;color:#577570}
.rp-timer.warn .fg{stroke:#E0A100}.rp-timer.warn b{color:#A8480C}
.rp-timer.crit .fg{stroke:#C0352B}.rp-timer.crit b{color:#C0352B}
.rp-amount{margin:14px 0 18px;font-family:Montserrat,sans-serif;font-weight:900;font-size:clamp(28px,5vw,36px);color:#0B4F4A;white-space:nowrap}
.rp-amount small{font-family:'Be Vietnam Pro',sans-serif;font-weight:500;font-size:14px;color:#577570;margin-left:8px}
.rp-body{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:24px;align-items:start}
.rp-qr{background:#fff;border:2px solid #0B4F4A;border-radius:18px;padding:14px;text-align:center}
.rp-qr svg{width:100%;height:auto;display:block}
.rp-qr p{font-size:12px;color:#577570;margin-top:8px!important}
.rp-label{font-size:13px;font-weight:700;color:#0B4F4A;margin:0 0 10px!important}
.rp-apps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.rp-apps a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border:1px solid #D3ECE6;border-radius:12px;text-decoration:none;color:#13302D;font-size:11px;font-weight:600;line-height:1.2;text-align:center;min-width:0}
.rp-apps a:active{background:#F2FAF8}
.rp-apps img{width:36px;height:36px;border-radius:9px;object-fit:contain}
.rp-apps span{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-more{background:none;border:0;color:#0B7A6B;font-weight:600;font-size:13px;padding:0;margin:0 0 14px}
.rp-info{margin:0;background:#F2FAF8;border-radius:14px;padding:4px 14px}
.rp-info div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #E2F3EF;font-size:14px}
.rp-info div:last-child{border-bottom:0}
.rp-info dt{color:#577570;white-space:nowrap}
.rp-info dd{margin:0;display:flex;align-items:center;gap:8px;font-weight:700;color:#0B4F4A;text-align:right;min-width:0}
.rp-info dd span{overflow-wrap:anywhere}
.rp-copy{border:1px solid #B8DCD3;background:#fff;color:#0B7A6B;border-radius:8px;padding:4px 9px;font-size:12px!important;font-weight:700}
.rp-copy.done{background:#E7F6EC;border-color:#1E7A45;color:#1E7A45}
.rp-hl{background:#FFF1E6;border-radius:6px;padding:2px 6px;color:#A8480C!important}
.rp-save{width:100%;margin-top:10px;border:1.5px solid #0B4F4A;background:#fff;color:#0B4F4A;border-radius:12px;padding:11px;font-weight:700;font-size:14px}
.rp-status{display:flex;align-items:center;gap:10px;margin-top:18px;padding:12px 14px;border-radius:12px;background:#EAF6F3;font-size:14px;color:#2C2B5E;line-height:1.5}
.rp-dot{width:10px;height:10px;border-radius:50%;background:#0E8F7E;flex:none;animation:rpPulse 1.4s ease-in-out infinite}
@keyframes rpPulse{0%,100%{box-shadow:0 0 0 0 rgba(14,143,126,.5)}50%{box-shadow:0 0 0 7px rgba(14,143,126,0)}}
.rp-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:14px;font-size:13px;color:#577570}
.rp-foot a,.rp-foot button{color:#0B7A6B;background:none;border:0;padding:0;font-size:13px;font-weight:600;text-decoration:underline}
.rp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:14px 22px;font-weight:700;font-size:15px;text-decoration:none;border:1.5px solid #0B4F4A;min-height:50px}
.rp-btn.pri{background:#0B4F4A;color:#fff}.rp-btn.gho{background:#fff;color:#0B4F4A}
.rp-center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 0 4px}
.rp-center .lead{font-size:15px;line-height:1.7;color:#3D5F5A;max-width:460px}
.rp-check{width:84px;height:84px}
.rp-check circle{fill:#E7F6EC;stroke:#1E7A45;stroke-width:3;stroke-dasharray:260;stroke-dashoffset:260;animation:rpDraw .6s ease-out forwards}
.rp-check path{fill:none;stroke:#1E7A45;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:60;stroke-dashoffset:60;animation:rpDraw .4s .45s ease-out forwards}
@keyframes rpDraw{to{stroke-dashoffset:0}}
.rp-bar{width:min(320px,100%);height:6px;border-radius:6px;background:#E2F3EF;overflow:hidden}
.rp-bar i{display:block;height:100%;width:0;background:#1E7A45;animation:rpBar 3.5s linear forwards}
@keyframes rpBar{to{width:100%}}
.rp-confetti{position:absolute;inset:0;pointer-events:none;border-radius:22px}
.rp-toast{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);background:#073632;color:#fff;font-size:13px;padding:8px 14px;border-radius:10px;white-space:nowrap;animation:rpFade .2s}
.rp-mobile .rp-body{grid-template-columns:1fr}
.rp-mobile .rp-qr{max-width:240px;margin:0 auto;order:2}
.rp-mobile .rp-side{order:1}
@media (max-width:640px){
  .rp-overlay{padding:0;align-items:flex-end}
  .rp-overlay .rp{border-radius:22px 22px 0 0;max-height:94vh;padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .rp-body{grid-template-columns:1fr}
  .rp-qr{max-width:240px;margin:0 auto}
}
@media (prefers-reduced-motion:reduce){.rp,.rp-overlay,.rp-dot,.rp-check *,.rp-bar i{animation:none!important}.rp-check circle,.rp-check path{stroke-dashoffset:0}.rp-bar i{width:100%}}
