.bahari-wallet-panel{display:grid;grid-template-columns:1fr 1fr auto;gap:24px;align-items:center;padding:24px;margin:0 0 24px;border:1px solid #dbe1eb;border-radius:18px;background:#fff;color:#17203b;box-shadow:0 4px 20px #29256208}.bahari-wallet-panel p{font-size:13px;font-weight:600;color:#64748b;margin:0 0 8px}.bahari-wallet-panel strong{font-size:28px;line-height:1.2;letter-spacing:-.03em}.bahari-wallet-panel small{display:block;font-size:12px;color:#64748b;margin-top:8px}.bahari-wallet-panel-actions{display:flex;align-items:flex-start;flex-direction:column;gap:12px}.bahari-wallet-panel-actions button,.bahari-wallet-actions button[type=submit]{background:#292562;border:1px solid #292562;color:white;padding:12px 16px;border-radius:10px;font-weight:600;font-size:13px}.bahari-wallet-panel a,.bahari-wallet-dialog a{font-size:13px;color:#4338ca;text-decoration:underline;text-underline-offset:3px}.bahari-wallet-refresh{margin-left:12px;border:1px solid #cbd5e1;border-radius:8px;padding:4px 10px;font-size:20px}.bahari-wallet-dialog{margin:auto;border:1px solid #dbe1eb;border-radius:20px;padding:28px;width:min(500px,calc(100vw - 32px));background:#fff;color:#17203b;box-shadow:0 24px 80px #0004}.bahari-wallet-dialog::backdrop{background:#02061799;backdrop-filter:blur(4px)}.bahari-wallet-dialog h2{font-size:23px;font-weight:700;margin:0 0 10px}.bahari-wallet-dialog p{font-size:13px;line-height:1.6;color:#64748b;margin-bottom:18px}.bahari-wallet-dialog label{display:block;font-size:13px;font-weight:600}.bahari-wallet-dialog input{display:block;width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:12px;margin-top:8px;color:inherit;background:transparent}.bahari-wallet-presets{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.bahari-wallet-presets button,.bahari-wallet-actions button{border:1px solid #cbd5e1;border-radius:10px;padding:9px 13px;font-size:13px}.bahari-wallet-actions{display:flex;justify-content:flex-end;gap:10px;margin:20px 0}.bahari-wallet-error{color:#be123c!important;overflow-wrap:anywhere}.bahari-wallet-panel button:disabled,.bahari-wallet-dialog button:disabled{opacity:.5;cursor:wait}.bahari-wallet-panel :focus-visible,.bahari-wallet-dialog :focus-visible{outline:3px solid #f79521;outline-offset:3px}.dark .bahari-wallet-panel,.dark .bahari-wallet-dialog{background:#111827;border-color:#334155;color:#e2e8f0}.dark .bahari-wallet-panel a,.dark .bahari-wallet-dialog a{color:#c4b5fd}@media(max-width:900px){.bahari-wallet-panel{grid-template-columns:1fr 1fr}.bahari-wallet-panel-actions{grid-column:1/-1;flex-direction:row;align-items:center;flex-wrap:wrap}}@media(max-width:520px){.bahari-wallet-panel{grid-template-columns:1fr;gap:20px;padding:20px}.bahari-wallet-panel strong{font-size:25px}.bahari-wallet-dialog{padding:22px}}
.bahari-wallet-page header h1{font-size:26px;font-weight:700;color:inherit;margin:0 0 8px}.bahari-wallet-page header p{color:#64748b;font-size:14px}.bahari-wallet-history{border:1px solid #dbe1eb;border-radius:18px;padding:24px;background:#fff}.bahari-wallet-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.bahari-wallet-history h2{font-size:17px;font-weight:650}.bahari-wallet-history button{border:1px solid #cbd5e1;border-radius:8px;padding:8px 12px;font-size:13px}.bahari-wallet-history-scroll{overflow-x:auto}.bahari-wallet-history table{width:100%;font-size:13px;border-collapse:collapse;white-space:nowrap}.bahari-wallet-history th,.bahari-wallet-history td{text-align:left;padding:12px;border-bottom:1px solid #e2e8f0}.bahari-wallet-history th{color:#64748b;font-weight:600}.dark .bahari-wallet-history{background:#111827;border-color:#334155}.dark .bahari-wallet-history td,.dark .bahari-wallet-history th{border-color:#334155}
.bahari-wallet-panel-actions .bahari-wallet-topup,.bahari-wallet-dialog .bahari-wallet-topup{background:transparent;border:0;border-radius:6px;padding:4px 0;color:#4338ca;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:13px;font-weight:500;min-height:36px;box-shadow:none}
.bahari-topup-dialog select{width:100%;margin:8px 0 12px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background-color:transparent;color:inherit;min-height:44px;font:inherit}
.bahari-topup-dialog [hidden]{display:none!important}.bahari-topup-dialog button[type=submit]{background:#292562;color:white}.bahari-topup-dialog button[type=submit]:hover{background:#1e1b4b}.bahari-topup-dialog #central-topup-help{font-size:12px;margin:4px 0 14px}.bahari-topup-dialog [role=alert]:empty{display:none}.dark .bahari-wallet-topup{color:#c4b5fd}.dark .bahari-topup-dialog select{border-color:#475569}
@media(max-width:520px){.bahari-topup-dialog{padding:20px}.bahari-topup-dialog h2{font-size:21px}.bahari-topup-dialog .bahari-wallet-actions{flex-wrap:wrap}.bahari-topup-dialog .bahari-wallet-actions button{min-height:44px;flex:1 1 auto}}
@media(max-width:520px){.bahari-wallet-panel-actions .bahari-wallet-topup{min-height:44px}}
/* Balance labels and value rows share a baseline, independent of helper text. */
.bahari-wallet-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(220px,260px);column-gap:32px;row-gap:24px;align-items:start;padding:24px}
.bahari-wallet-balance{display:grid;grid-template-rows:20px minmax(44px,auto) minmax(18px,auto);row-gap:6px;min-width:0}
.bahari-wallet-balance>p{margin:0;font-size:13px;line-height:20px}
.bahari-wallet-value{display:flex;align-items:center;gap:12px;min-width:0;min-height:44px}
.bahari-wallet-value>strong{display:block;margin:0;font-size:28px;line-height:36px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bahari-wallet-balance>small{margin:0;min-height:18px;font-size:12px;line-height:18px}
html[data-bahari-panel] .bahari-wallet-panel .bahari-wallet-refresh{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;font-size:22px;line-height:1}
.bahari-wallet-panel-actions{justify-self:end;align-self:start;align-items:stretch;gap:4px;min-width:0;width:100%;max-width:260px;padding-top:26px}
.bahari-wallet-panel-actions>button{display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;min-height:44px;margin:0;line-height:20px}
.bahari-wallet-panel-actions>.bahari-wallet-topup{min-height:36px;padding:6px 12px}
html[data-bahari-panel] .bahari-wallet-panel button:focus-visible{outline:2px solid #6366f1;outline-offset:3px;box-shadow:none}
@media(max-width:1050px){.bahari-wallet-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px}.bahari-wallet-panel-actions{grid-column:1/-1;flex-direction:row;align-items:center;justify-self:stretch;justify-content:flex-start;max-width:none;padding-top:16px;border-top:1px solid #e2e8f0;gap:12px}.bahari-wallet-panel-actions>button{flex:0 1 auto}.bahari-wallet-panel-actions>.bahari-wallet-topup{min-height:44px;padding:10px 16px}}
@media(max-width:600px){.bahari-wallet-panel{grid-template-columns:minmax(0,1fr);padding:20px;gap:20px}.bahari-wallet-panel-actions{flex-direction:column;align-items:stretch;gap:4px}.bahari-wallet-panel-actions>button{width:100%}.bahari-wallet-value>strong{font-size:26px;line-height:34px}}
.dark .bahari-wallet-panel-actions{border-color:#334155}

.bahari-wallet-panel-actions>button:not(.bahari-wallet-topup){padding:11px 16px}
@media(max-width:600px){.bahari-wallet-balance:has(>small:empty){grid-template-rows:20px minmax(44px,auto)}.bahari-wallet-balance>small:empty{display:none}}
