/* MP top-up UI only. Uses the same type, theme and dock as Participant. */
.bn-ui .mt-page{--mt-control:#878D82;max-width:1040px;margin:0 auto;padding:0 20px 40px;font-family:var(--bn-font-ui);color:var(--bn-ink)}
.bn-ui .mt-page :where(h1,h2,h3,p,dl,dd,ol,fieldset){margin:0}
.bn-ui .mt-page :where(h1,h2,h3){font-family:var(--bn-font-ui);line-height:1.25;letter-spacing:-.025em}
.bn-ui .mt-page :where(button,a,input){touch-action:manipulation}
.bn-ui .mt-page [hidden]{display:none!important}
.bn-ui .mt-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;font-weight:500}
.bn-ui .mt-back .bn-icon{width:17px;height:17px;transform:rotate(180deg)}
.bn-ui .mt-heading{padding:8px 0 18px}
.bn-ui .mt-heading>p:first-child{font-size:12px;font-weight:700;letter-spacing:.07em;color:var(--bn-muted);margin-bottom:5px}
.bn-ui .mt-heading h1{font-size:var(--bn-type-page);font-weight:700}
.bn-ui .mt-heading>p:last-child{font-size:14px;color:var(--bn-muted);margin-top:7px}
.bn-ui .mt-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 0 20px;list-style:none;gap:12px;font-size:12px;color:var(--bn-muted)}
.bn-ui .mt-steps li{display:flex;align-items:center;gap:7px;line-height:1.3}
.bn-ui .mt-steps li>span{width:22px;height:22px;display:flex;align-items:center;justify-content:center;border:1px solid var(--mt-control);border-radius:50%;font-size:12px;flex:none}
.bn-ui .mt-steps li[aria-current]{font-weight:700;color:var(--bn-ink)}
.bn-ui .mt-steps li[aria-current]>span{background:var(--bn-yellow);border-color:#141615;color:#141615}
.bn-ui .mt-layout{display:grid;gap:28px;align-items:start}
.bn-ui .mt-main-column{min-width:0}
.bn-ui .mt-entry-panel{border:1px solid var(--bn-line);border-radius:20px;padding:16px;background:var(--bn-white);box-shadow:var(--bn-shadow)}
.bn-ui .mt-currency{border:0;padding:4px;border-radius:13px;background:var(--bn-surface);min-width:0}
.bn-ui .mt-currency-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.bn-ui :is(.mt-currency,.mt-methods) label{position:relative;cursor:pointer;min-width:0}
.bn-ui :is(.mt-currency,.mt-methods) input{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.bn-ui .mt-currency label>span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border:1px solid transparent;border-radius:10px;padding:6px;color:var(--bn-muted)}
.bn-ui .mt-currency strong{font-size:14px}
.bn-ui .mt-currency small{font-size:12px;line-height:1.25}
.bn-ui .mt-currency input:checked+span{background:var(--bn-white);border-color:var(--mt-control);color:var(--bn-ink);box-shadow:0 1px 3px #1416150C}
.bn-ui :is(.mt-currency,.mt-methods) input:focus-visible+span{outline:3px solid var(--bn-ink);outline-offset:3px}
.bn-ui .mt-amount-label{display:block;margin-top:20px;font-size:13px;font-weight:500}
.bn-ui .mt-amount-input{display:flex;gap:9px;align-items:center;margin:3px 0 12px;border-bottom:1px solid var(--mt-control);padding:0 0 7px}
.bn-ui .mt-amount-input>span{font-size:26px;font-weight:400;color:var(--bn-muted);flex:none}
.bn-ui .mt-amount-input input{font-family:var(--bn-font-ui);font-size:38px;line-height:1.25;letter-spacing:-1px;font-weight:500;font-variant-numeric:tabular-nums;min-width:0;width:100%;min-height:54px;border:0;border-radius:5px;background:var(--bn-white);color:var(--bn-ink);padding:4px 2px}
.bn-ui .mt-amount-input input::placeholder{color:var(--bn-muted);opacity:1}
.bn-ui .mt-amount-input:focus-within{border-color:var(--bn-ink)}
.bn-ui .mt-error{font-size:13px;line-height:1.5;color:var(--bn-error);margin:-4px 0 10px}
.bn-ui .mt-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.bn-ui .mt-presets button{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;font-family:var(--bn-font-ui);font-size:13px;font-weight:500;min-height:44px;border:1px solid var(--mt-control);border-radius:9px;padding:8px 4px;background:var(--bn-white);color:var(--bn-ink)}
.bn-ui .mt-presets button[aria-pressed=true]{background:var(--bn-warm);border-color:var(--bn-ink);box-shadow:inset 0 0 0 1px var(--bn-ink)}
.bn-ui .mt-conversion{margin:16px -16px -16px;padding:13px 16px;border-radius:0 0 20px 20px;background:var(--bn-warm);border-top:1px solid var(--bn-line)}
.bn-ui .mt-conversion>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.bn-ui .mt-conversion span{font-size:13px;font-weight:500}
.bn-ui .mt-conversion strong{font-size:19px;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bn-ui .mt-conversion small{font-size:12px;font-weight:500}
.bn-ui .mt-conversion p{font-size:12px;color:var(--bn-muted);margin-top:4px;line-height:1.5}
.bn-ui .mt-method-panel{margin-top:22px}
.bn-ui .mt-method-panel h2{font-size:16px;margin-bottom:12px}
.bn-ui .mt-methods{border:0;padding:0;min-width:0}
.bn-ui .mt-method-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.bn-ui .mt-method-tile{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;padding:13px 4px 10px;border:1px solid var(--mt-control);border-radius:12px;min-height:101px;background:var(--bn-white);color:var(--bn-ink)}
.bn-ui .mt-method-tile strong{font-size:14px;line-height:1.35;margin-top:4px}
.bn-ui .mt-method-tile small{font-size:12px;color:var(--bn-muted);line-height:1.4}
.bn-ui .mt-method-icon{display:inline-flex;align-items:center;justify-content:center;flex:none}
.bn-ui .mt-method-icon .bn-icon{height:24px;width:24px}
.bn-ui .mt-selection{width:16px;height:16px;border:1px solid #141615;border-radius:50%;background:var(--bn-yellow);color:#141615;align-items:center;justify-content:center;display:flex;flex:none}
.bn-ui .mt-selection .bn-icon{width:11px;height:11px;stroke-width:2.5}
.bn-ui .mt-method-tile>.mt-selection{position:absolute;top:8px;right:8px;visibility:hidden}
.bn-ui .mt-methods input:checked+.mt-method-tile{border-color:var(--bn-ink);background:var(--bn-warm);box-shadow:inset 0 0 0 1px var(--bn-ink)}
.bn-ui .mt-methods input:checked+.mt-method-tile>.mt-selection{visibility:visible}
.bn-ui .mt-helper{display:flex;align-items:flex-start;gap:7px;color:var(--bn-muted);font-size:12px;line-height:1.55;margin-top:10px}
.bn-ui .mt-helper .bn-icon{width:15px;height:15px;margin-top:2px;flex:none}
.bn-ui .mt-usdt-method{display:flex;align-items:center;gap:14px;min-height:88px;padding:16px;border:1px solid var(--bn-ink);box-shadow:inset 0 0 0 1px var(--bn-ink);border-radius:12px;background:var(--bn-warm)}
.bn-ui .mt-usdt-method>div{flex:1;min-width:0}
.bn-ui .mt-usdt-method strong{font-size:15px}
.bn-ui .mt-usdt-method p{font-size:13px;color:var(--bn-muted);margin-top:3px}
.bn-ui .mt-form-footer{padding-top:22px}
.bn-ui .mt-button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:52px;gap:12px;padding:13px 17px;border:1px solid var(--bn-yellow);border-radius:12px;background:var(--bn-yellow);color:#141615;font-family:var(--bn-font-ui);font-weight:700;font-size:14px;line-height:1.4;text-align:left}
.bn-ui .mt-button .bn-icon{width:18px;height:18px}
.bn-ui .mt-button:hover:not(:disabled){background:#E8E800;border-color:#E8E800}
.bn-ui .mt-button:disabled{background:var(--bn-surface);border-color:var(--bn-line);color:var(--bn-muted);opacity:1}
.bn-ui .mt-button-secondary{background:var(--bn-white);color:var(--bn-ink);border-color:var(--mt-control);margin-top:10px}
.bn-ui .mt-button-secondary:hover:not(:disabled){background:var(--bn-warm);border-color:var(--bn-ink)}
.bn-ui .mt-form-footer>p,.bn-ui .mt-unavailable{font-size:12px;color:var(--bn-muted);text-align:center;justify-content:center;margin-top:9px}
.bn-ui .mt-guidance{border-top:1px solid var(--bn-line);padding-top:22px}
.bn-ui .mt-guide-title{display:flex;align-items:center;gap:10px}
.bn-ui .mt-guide-title h2{font-size:16px}
.bn-ui .mt-guide-title .bn-icon{width:18px;height:18px}
.bn-ui .mt-guidance ol{list-style:none;padding:0;margin-top:20px;display:grid;gap:18px}
.bn-ui .mt-guidance li{display:flex;gap:13px}
.bn-ui .mt-guidance li>span{font-size:12px;font-weight:700;color:var(--bn-muted);padding-top:1px;flex:none}
.bn-ui .mt-guidance li strong{font-size:13px;font-weight:700}
.bn-ui .mt-guidance li p{font-size:13px;line-height:1.55;color:var(--bn-muted);margin-top:4px}
.bn-ui .mt-inline-link{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;font-size:13px;font-weight:500;margin-top:15px}
.bn-ui .mt-inline-link .bn-icon{width:16px;height:16px}
.bn-ui :is(.mt-review-card,.mt-state-card){padding:20px;border:1px solid var(--bn-line);border-radius:20px;background:var(--bn-white);box-shadow:var(--bn-shadow)}
.bn-ui .mt-review-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.bn-ui .mt-review-card>header h2{font-size:16px}
.bn-ui .mt-edit{display:inline-flex;gap:6px;align-items:center;font-size:13px;min-height:44px;padding:0 10px;border:1px solid var(--mt-control);border-radius:9px;font-weight:500}
.bn-ui .mt-edit .bn-icon{width:15px;height:15px}
.bn-ui .mt-review-amount{padding:20px 0;border-bottom:1px solid var(--bn-line)}
.bn-ui .mt-review-amount>span{font-size:12px;color:var(--bn-muted);display:block}
.bn-ui .mt-review-amount>strong{display:block;font-size:32px;line-height:1.25;letter-spacing:-.8px;font-weight:700;overflow-wrap:anywhere;margin-top:5px;font-variant-numeric:tabular-nums}
.bn-ui .mt-review-amount>p{font-size:13px;color:var(--bn-muted);margin-top:6px}
.bn-ui .mt-summary-rows{display:grid;gap:13px;padding:20px 0 0}
.bn-ui .mt-summary-rows>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:14px;font-size:13px;line-height:1.55}
.bn-ui .mt-summary-rows dt{color:var(--bn-muted)}
.bn-ui .mt-summary-rows dd{text-align:right;font-weight:500;overflow-wrap:anywhere}
.bn-ui .mt-summary-rows>.mt-summary-total{border-top:1px solid var(--bn-line);padding-top:15px;margin-top:2px;font-size:15px}
.bn-ui .mt-summary-total :is(dt,dd){color:var(--bn-ink);font-weight:700}
.bn-ui .mt-summary-note{font-size:12px;color:var(--bn-muted);line-height:1.55;margin-top:12px}
.bn-ui .mt-network-note{display:flex;align-items:flex-start;gap:9px;padding:13px 0;border-top:1px solid var(--bn-line);margin-top:16px}
.bn-ui .mt-network-note>.bn-icon{width:17px;height:17px;margin-top:2px}
.bn-ui .mt-network-note p{font-size:12px;line-height:1.55;color:var(--bn-muted)}
.bn-ui .mt-network-note strong{color:var(--bn-ink);font-weight:500}
.bn-ui .mt-not-connected{display:flex;gap:10px;padding:14px;background:var(--bn-warm);border:1px solid var(--bn-line);border-left:3px solid var(--bn-yellow);border-radius:10px;margin:20px 0 16px}
.bn-ui .mt-not-connected>.bn-icon{width:17px;height:17px;margin-top:2px}
.bn-ui .mt-not-connected strong{font-size:13px;font-weight:700;display:block}
.bn-ui .mt-not-connected p{font-size:12px;line-height:1.55;color:var(--bn-muted);margin-top:4px}
.bn-ui .mt-state-review{margin-top:22px;border-top:1px solid var(--bn-line);border-bottom:1px solid var(--bn-line)}
.bn-ui .mt-state-review>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:500;list-style:none;cursor:pointer}
.bn-ui .mt-state-review>summary::-webkit-details-marker{display:none}
.bn-ui .mt-state-review>summary .bn-icon{width:15px;height:15px;transform:rotate(90deg)}
.bn-ui .mt-state-review[open]>summary .bn-icon{transform:rotate(-90deg)}
.bn-ui .mt-state-review>div{padding:0 0 14px}
.bn-ui .mt-state-review p{font-size:12px;line-height:1.55;color:var(--bn-muted)}
.bn-ui .mt-state-review nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
.bn-ui .mt-state-link{min-height:44px;display:flex;align-items:center;justify-content:center;padding:8px;border:1px solid var(--mt-control);border-radius:9px;font-size:13px;font-weight:500;background:var(--bn-white)}
.bn-ui .mt-state-link.is-current{border-color:var(--bn-ink);box-shadow:inset 0 0 0 1px var(--bn-ink);background:var(--bn-warm)}
.bn-ui .mt-example-label{font-size:12px;color:var(--bn-muted);border-bottom:1px solid var(--bn-line);padding-bottom:14px;text-align:center}
.bn-ui .mt-state-symbol{display:grid;place-items:center;width:60px;height:60px;margin:24px auto 16px;border:1px solid var(--bn-line);border-radius:50%;background:var(--bn-warm);color:var(--bn-ink)}
.bn-ui .mt-state-symbol .bn-icon{width:28px;height:28px}
.bn-ui .mt-state-success .mt-state-symbol{background:var(--bn-yellow);color:#141615;border-color:#141615}
.bn-ui .mt-state-failed .mt-state-symbol{color:var(--bn-error)}
.bn-ui .mt-state-card>h2{font-size:24px;text-align:center;line-height:1.3}
.bn-ui .mt-state-copy{font-size:14px;color:var(--bn-muted);text-align:center;margin:10px 0 22px;line-height:1.6}
.bn-ui .mt-state-card>.mt-summary-rows{border-top:1px solid var(--bn-line)}
.bn-ui .mt-state-guidance{padding:14px;background:var(--bn-warm);border-radius:10px;margin-top:22px;font-size:13px;line-height:1.6}
.bn-ui .mt-state-disclaimer{font-size:12px;line-height:1.5;color:var(--bn-muted);margin:12px 0 20px}
.bn-ui .mt-storage-note{font-size:12px;color:var(--bn-muted);margin-top:15px}
.bn-ui .bh-balance-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 16px;background:var(--bh-quiet);border-top:1px solid var(--bh-line)}
.bn-ui .bh-balance-actions .bh-balance-action{border:1px solid var(--mt-control,#878D82);border-radius:10px;background:var(--bn-white);padding:10px;min-height:48px;gap:7px;font-size:13px}
.bn-ui .bh-balance-actions .mt-home-topup{background:var(--bn-yellow);border-color:var(--bn-yellow);color:#141615}
.bn-ui .bh-home .mt-home-topup:hover{background:#E8E800}
.bn-ui .ew-topup-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 13px;margin-top:13px;border-radius:10px;border:1px solid var(--bn-yellow);background:var(--bn-yellow);color:#141615;font-size:13px;font-weight:700}
.bn-ui .ew-topup-action .bn-icon{width:16px;height:16px}
[data-participant-theme=dark] .bn-ui .mt-page{--mt-control:#808087}
[data-participant-theme=dark] .bn-ui .bh-balance-actions .bh-balance-action:not(.mt-home-topup){border-color:#808087}
@media(min-width:800px){
 .bn-ui .mt-page{padding-top:8px}
 .bn-ui .mt-layout{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:48px}
 .bn-ui .mt-steps{max-width:560px;gap:22px;padding-bottom:26px}
 .bn-ui .mt-guidance{border:1px solid var(--bn-line);border-radius:16px;padding:24px;background:var(--bn-warm)}
 .bn-ui .mt-entry-panel,.bn-ui :is(.mt-review-card,.mt-state-card){padding:24px}
 .bn-ui .mt-conversion{margin:20px -24px -24px;padding:16px 24px}
 .bn-ui .mt-amount-input input{font-size:44px}
}
@media(max-width:374px){
 .bn-ui .mt-page{padding-left:16px;padding-right:16px}
 .bn-ui .mt-currency label>span{flex-direction:column;gap:0}
 .bn-ui .mt-method-options{gap:6px}
 .bn-ui .mt-method-tile{padding-top:15px}
 .bn-ui .mt-method-tile small{font-size:12px}
 .bn-ui .bh-balance-actions{padding-left:12px;padding-right:12px;gap:6px}
 .bn-ui .bh-balance-actions .bh-balance-action{gap:5px;padding:9px 7px}
}

/* Shared by Top up MP and Withdraw BP */
.bn-ui .mt-history{margin-top:22px}
.bn-ui .mt-history-list{list-style:none;margin:12px 0 0;padding:0;display:grid}
.bn-ui .mt-history-list li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--ps-line)}
.bn-ui .mt-history-list li>div{display:grid;gap:2px;min-width:0}
.bn-ui .mt-history-list li>div:last-child{text-align:right}
.bn-ui .mt-history-list strong{font-size:15px;font-variant-numeric:tabular-nums}
.bn-ui .mt-history-list span{font-size:13px;color:var(--bn-muted)}
.bn-ui .mt-history .mt-example-label{padding-bottom:0;border:0;text-align:left}
.bn-ui .mt-history-list .mt-history-status{justify-self:end;display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--ps-line);color:var(--bn-ink)}
.bn-ui .mt-history-list .mt-history-status.is-done{background:var(--bn-yellow);border-color:#141615;color:#141615}
.bn-ui .mt-history-list .mt-history-status.is-fail{color:var(--bn-error);border-color:var(--bn-error)}
.bn-ui .mt-history-empty{display:flex;gap:12px;align-items:flex-start;margin-top:12px;padding:16px;border:1px dashed var(--ps-line);border-radius:14px}
.bn-ui .mt-history-empty .bn-icon{flex:none;width:20px;height:20px;margin-top:2px}
.bn-ui .mt-history-empty p{margin:4px 0 0;font-size:13px;line-height:1.6;color:var(--bn-muted)}
