:root{--ink:#0f1535;--ac:#5b4bff;--ac2:#8b5cf6;--bg:#f3f5fb;--bs-body-font-family:'Manrope',system-ui,sans-serif}
body{background:var(--bg);color:var(--ink);padding-bottom:84px}
.btn-primary{--bs-btn-bg:#0b2756;--bs-btn-border-color:#0b2756;--bs-btn-hover-bg:#4636e6;--bs-btn-hover-border-color:#4636e6;--bs-btn-active-bg:#3b2cd0}
.btn,.form-control,.form-select{border-radius:12px}.form-control,.form-select{padding:.7rem .9rem;border-color:#dfe3f0}
.form-control:focus,.form-select:focus{border-color:#0b2756;box-shadow:0 0 0 .2rem rgba(91,75,255,.15)}
.cardx{background:#fff;border-radius:20px;border:1px solid #e8ebf5;padding:1.25rem}
.hero{background:linear-gradient(135deg,var(--ink),#2a2470 60%,var(--ac2));color:#fff;border-radius:24px;padding:1.5rem}
.top{background:#fff;border-bottom:1px solid #e8ebf5;position:sticky;top:0;z-index:20;padding-top:env(safe-area-inset-top)}
.brand{font-weight:800;letter-spacing:-.03em;color:var(--ink);text-decoration:none}.brand i{color:#0b2756}
.bnav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e8ebf5;display:flex;justify-content:space-around;padding:.4rem .25rem calc(.4rem + env(safe-area-inset-bottom));z-index:30}
.bnav a{text-align:center;color:#7b82a3;text-decoration:none;font-size:.7rem;font-weight:600;flex:1}.bnav a i{display:block;font-size:1.3rem}.bnav a.on{color:#0b2756}
.bnav .pay{margin-top:-26px}.bnav .pay i{background:#0b2756;color:#fff;width:54px;height:54px;line-height:54px;border-radius:50%;margin:0 auto 2px;box-shadow:0 8px 20px rgba(91,75,255,.4)}
.dnav a{color:#5a6285;text-decoration:none;font-weight:600;padding:.4rem .8rem;border-radius:10px}.dnav a.on,.dnav a:hover{background:#eeedff;color:#0b2756}
.auth{max-width:460px;margin:0 auto;padding:1.5rem 1rem}
.ico{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eeedff;color:#0b2756;font-size:1.2rem;flex:none}
.tr{display:flex;align-items:center;gap:.8rem;padding:.8rem 0;border-bottom:1px solid #f0f2f9;text-decoration:none;color:inherit}.tr:last-child{border:0}
.big{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;font-size:2.8rem;margin:0 auto}
.otp{letter-spacing:.5em;text-align:center;font-weight:800;font-size:1.3rem}
/* --- no-JavaScript behaviour --- */
.hint{font-size:.75rem;color:#7b82a3;margin-top:.25rem}
.form-control:user-invalid,.form-select:user-invalid{border-color:#dc3545;background-image:none}
.form-control:user-invalid+.hint{color:#dc3545;font-weight:700}
.opt{display:flex;align-items:center;gap:.8rem;border:2px solid #e8ebf5;border-radius:14px;padding:.8rem;cursor:pointer;background:#fff;margin-bottom:.6rem;transition:.15s}
.opt:hover{border-color:#c9c4ff}.opt input{accent-color:#0b2756;width:1.2rem;height:1.2rem;flex:none}
.opt:has(input:checked){border-color:#0b2756;background:#f6f5ff}.opt:has(input:disabled){opacity:.5;cursor:not-allowed}
.chips{display:flex;gap:.5rem;margin-bottom:1rem}.chips input{display:none}
.chips label{padding:.35rem .9rem;border-radius:10px;background:#e9ebf5;font-weight:600;font-size:.85rem;cursor:pointer}
.chips input:checked+label{background:#0b2756;color:#fff}
.hist:has(#f-s:checked) .tr[data-s=failed],.hist:has(#f-f:checked) .tr[data-s=success]{display:none}
details.cardx summary{cursor:pointer;font-weight:700;list-style:none}details.cardx summary::-webkit-details-marker{display:none}
.stepbar{height:6px;border-radius:9px;background:#e4e6f3;overflow:hidden;margin-bottom:1rem}.stepbar i{display:block;height:100%;background:#0b2756}
@media(min-width:768px){body{padding-bottom:0}.bnav{display:none}}

/* self bank rows: same single-line size as holder bank rows */
.bank-row{flex-wrap:nowrap;gap:.6rem}
.bank-info{flex:1 1 auto;min-width:0}
.bank-info b,
.bank-info .small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
.bank-actions{display:flex;align-items:center;gap:.35rem;flex:none;margin:0;padding:0;border:0}
.bank-actions .badge{font-size:.68rem;padding:.35em .6em}
.bank-actions .btn{padding:.2rem .55rem;font-size:.78rem;line-height:1.2}
.opt input[type=radio]{flex:none}

/* not-activated rows (keep) */
.opt.is-off{background:#fafbff;cursor:default}
.opt.is-off:hover{border-color:#e8ebf5}
.opt.is-off > i:first-of-type,.opt.is-off .bank-info{opacity:.6}

/* hides collapsible content until Alpine is ready (prevents a flash) */
[x-cloak]{display:none!important}

/* collapsible header */
.self-head{display:flex;align-items:center;gap:.8rem;width:100%;padding:1rem 1.25rem;background:none;border:0;border-radius:20px;cursor:pointer;color:inherit}
.self-head:hover{background:#faf9ff}
.self-head:focus-visible{outline:3px solid rgba(91,75,255,.3);outline-offset:-3px}
.self-head .chev{color:#9aa1c4;transition:transform .25s}
.self-head .chev.open{transform:rotate(180deg);color:#5b4bff}

[x-cloak]{display:none!important}

/* biller icon */
.biller-ico{width:56px;height:56px;border-radius:14px;font-size:1.5rem}

/* bill info card */
.bd-label{color:#7b82a3;font-size:.85rem}
.bd-value{font-weight:700;margin-top:.15rem;word-break:break-word}
.more-link{background:none;border:0;padding:0;color:#d23c3c;font-weight:700;display:inline-flex;align-items:center;gap:.35rem}
.more-link .chev{transition:transform .25s;font-size:.8rem}
.more-link .chev.open{transform:rotate(180deg)}

/* amount options */
.amt-opt{display:flex;align-items:center;gap:.9rem;background:#fff;border:2px solid #e8ebf5;border-radius:16px;padding:1rem 1.1rem;margin-bottom:.8rem;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.amt-opt:hover{border-color:#c9c4ff}
.amt-opt.sel{border-color:#5b4bff;background:#f6f5ff;box-shadow:0 0 0 4px rgba(91,75,255,.12)}
.amt-opt input{position:absolute;opacity:0;pointer-events:none}
.amt-dot{width:22px;height:22px;border-radius:50%;border:2px solid #b9bfd9;flex:none;display:grid;place-items:center;transition:.2s}
.amt-opt.sel .amt-dot{border-color:#5b4bff}
.amt-opt.sel .amt-dot:after{content:"";width:10px;height:10px;border-radius:50%;background:#5b4bff}
.amt-opt:has(input:focus-visible){outline:3px solid rgba(91,75,255,.35);outline-offset:2px}
.amt-title{font-weight:800;font-size:1.05rem}
.amt-price{font-weight:800;font-size:1.35rem;letter-spacing:-.02em}
.amt-pen{color:#3b4266;font-size:1.1rem}
.amt-input .input-group-text{background:#fff;font-weight:800}
.amt-input .form-control{font-weight:700}

/* ---- checkout page ---- */
.co-ref{display:flex;align-items:center;gap:.9rem;padding-bottom:1rem;border-bottom:2px dashed #e4e6f3;margin-bottom:1rem}
.co-row{display:flex;justify-content:space-between;align-items:center;padding:.3rem 0}
.co-total{display:flex;justify-content:space-between;align-items:center;padding-top:.8rem;margin-top:.5rem;border-top:2px solid #e4e6f3;font-weight:800;font-size:1.05rem}
.biller-ico{width:56px;height:56px;border-radius:14px;font-size:1.5rem;flex:none}

/* rewards card */
.promo{display:flex;gap:1rem;align-items:flex-start;background:linear-gradient(135deg,#f1faf4,#e8f6ee);border:1px solid #cfe9da;border-radius:18px;padding:1.1rem;margin:1rem 0}
.promo .ico{background:linear-gradient(135deg,#dcfce7,#bbf0cf);color:#15803d;width:52px;height:52px;border-radius:16px;font-size:1.5rem;flex:none}
.promo .btn-g{display:inline-block;background:#14532d;color:#fff;font-weight:700;border:0;border-radius:12px;padding:.55rem 1rem;text-decoration:none}
.promo .btn-g:hover{background:#0f3f22;color:#fff}
.lockbadge{display:inline-flex;align-items:center;gap:.3rem;background:#dcefe3;color:#14532d;border-radius:99px;font-size:.75rem;font-weight:700;padding:.15rem .6rem;vertical-align:middle}

/* payment methods */
.pm{--pm:var(--ac,#5b4bff);display:flex;align-items:center;gap:1rem;background:#fff;border:2px solid #e8ebf5;border-radius:18px;padding:1rem 1.1rem;margin-bottom:.8rem;cursor:pointer;position:relative;transition:border-color .2s,box-shadow .2s,background .2s}
.pm:hover{border-color:#c9c4ff}
.pm input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.pm .pm-ico{width:54px;height:54px;border-radius:15px;background:#f1f0ff;color:var(--pm);display:grid;place-items:center;font-size:1.6rem;flex:none}
.pm .pm-t{font-weight:800;font-size:1.05rem}
.pm .pm-dot{width:24px;height:24px;border-radius:50%;border:2px solid #b9bfd9;flex:none;display:grid;place-items:center;margin-left:auto;transition:.2s}
.pm:has(input:checked){border-color:var(--pm);background:#f6f5ff;box-shadow:0 0 0 4px rgba(91,75,255,.12)}
.pm:has(input:checked) .pm-dot{border-color:var(--pm)}
.pm:has(input:checked) .pm-dot:after{content:"";width:11px;height:11px;border-radius:50%;background:var(--pm)}
.pm:has(input:focus-visible){outline:3px solid rgba(91,75,255,.35);outline-offset:2px}
.pm.off{background:#fafbff;cursor:not-allowed}
.pm.off:hover{border-color:#e8ebf5}
.pm.off .pm-ico{background:#f0f1f7;color:#a3a9c6}
.pm.off .pm-dot{border-color:#dfe2ee;background:#f3f4fa}
.pm-note{color:#d23c3c;font-size:.88rem;font-weight:600}
.nets{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.4rem}
.nets span{border:1px solid #e1e4f1;border-radius:8px;padding:.1rem .55rem;font-size:.75rem;font-weight:800;color:#3b4266;background:#fafbff}
.tag-rec{background:#e7f8ee;color:#15803d;border-radius:99px;font-size:.72rem;font-weight:800;padding:.15rem .6rem;margin-left:.4rem;vertical-align:middle}

/* logo image inside the payment option */
.pm .pm-ico.has-img{width:72px;background:#fff;border:1px solid #eef0f8;padding:.4rem}
.pm .pm-ico.has-img img{width:100%;height:100%;object-fit:contain;display:block}
.pm.off .pm-ico.has-img img{filter:grayscale(1);opacity:.6}

/* card rows with Transfer / Bill Pay buttons */
.pcard{background:#fff;border:2px solid #e8ebf5;border-radius:16px;padding:.9rem 1rem;margin-bottom:.8rem;transition:border-color .2s,box-shadow .2s}
.pcard:hover{border-color:#c9c4ff;box-shadow:0 8px 20px rgba(91,75,255,.08)}
.pcard-top{display:flex;align-items:center;gap:.7rem}
.pcard-top i{flex:none}
.pcard-name{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pcard-num{font-weight:600;color:#6b7390;margin-left:.25rem;letter-spacing:.02em}

/* phone: buttons on their own row, equal width */
.pcard-actions{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;margin-top:.8rem}
.pcard-actions .btn{width:100%;padding:.5rem .4rem;font-size:.9rem;white-space:nowrap}

/* tablet / desktop: everything on one line */
@media(min-width:576px){
  .pcard{display:flex;align-items:center;gap:1rem}
  .pcard-actions{margin:0 0 0 auto;grid-template-columns:auto auto}
  .pcard-actions .btn{width:auto;padding:.4rem 1rem}
}


