:root{color-scheme:light;--ink:#182946;--sub:#57677f;--blue:#2455be;--edge:#dce3ed;--paper:#f6f8fc;font-family:"DM Sans",Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--blue);text-decoration:none}
button,input,select{font:inherit}
button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;padding:.65rem 1rem;min-height:42px;border:1px solid #ced8e7;border-radius:9px;background:white;color:var(--ink);font-size:.9rem;font-weight:600;cursor:pointer}
button:hover,.btn:hover{background:#eef3fc}
button.primary,.btn.primary{background:#2353bd;color:white;border-color:#2353bd}
button.primary:hover,.btn.primary:hover{background:#193f99}
button.danger{color:#a1372c}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #759ff3;outline-offset:3px}
svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}
i[data-icon]{display:inline-flex}
.skip{position:fixed;z-index:4;top:-5rem;left:1rem;padding:12px;background:white}.skip:focus{top:1rem}
.top{background:white;border-bottom:1px solid var(--edge)}
.top-inner,main,footer{width:min(calc(100% - 96px),1120px);margin-inline:auto}
.top-inner{display:flex;align-items:center;min-height:76px;gap:52px}
.brand{display:inline-flex;align-items:center;color:#152e58;font-size:2.05rem;line-height:1;font-weight:750;letter-spacing:-.065em}
.brand span{color:#e98536}.brand img{width:41px;height:41px;margin-right:8px}
nav{display:flex;gap:8px;align-items:center}
nav a{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:9px;font-size:.92rem;font-weight:600;color:#56657b}
nav a:hover{background:#f4f6fa}nav a[aria-current]{background:#edf3ff;color:#244fa9}nav svg{width:17px;height:17px}
.network{margin-left:auto;display:flex;align-items:center;gap:8px;color:#4b655c;background:#f3f8f5;border:1px solid #dbe8df;padding:6px 11px;border-radius:99px;font-size:.8rem;font-weight:600;white-space:nowrap}
.network:before,.manual span{content:"";width:7px;height:7px;background:#439669;border-radius:50%}.offline:before{background:#ba8030}
main{flex:1;padding-block:36px 42px}main:focus{outline:none}
.page-head,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.page-head{margin-bottom:23px}
h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,3.5vw,2.65rem);line-height:1.14;letter-spacing:-.049em;font-weight:720}
p{color:var(--sub);line-height:1.55}
.page-head p{margin-top:7px;font-size:1rem}.today{display:inline-flex;align-items:center;gap:8px;font-size:.86rem;color:var(--sub);white-space:nowrap}.today svg{width:16px;height:16px}
.rate-banner{position:relative;isolation:isolate;background:linear-gradient(108deg,#15388f 0%,#1949b4 56%,#2d61cb 100%);color:white;min-height:207px;border-radius:18px;overflow:hidden;display:flex;align-items:center;padding:30px 38px;box-shadow:0 4px 13px #1e408c10}
.rate-banner:before{content:"";position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 89% 110%,#6091fc4d,transparent 48%)}
.travel{position:absolute;right:2%;top:0;height:100%;width:43%;object-fit:contain;z-index:-1}
.rate-tag{display:flex;align-items:center;gap:8px;font-size:.74rem;letter-spacing:.14em;font-weight:650;color:#d9e6ff}.rate-tag svg{width:18px;height:18px}
.rate-content{width:59%}.rate-content h2{margin:14px 0}.light-link{color:white;text-decoration:underline}
.big-rate{display:flex;gap:15px;align-items:baseline;flex-wrap:wrap;line-height:1.15;margin:14px 0 13px;font-size:clamp(1.75rem,3.7vw,3.02rem);font-weight:650;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.big-rate span{overflow-wrap:anywhere}.big-rate small{font-size:.6em;font-weight:530;letter-spacing:-.035em;color:#e3edff}.big-rate b{font-size:.67em;font-weight:420;color:#a6c3ff}
.currency-pair{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.88rem;color:#e0eaff}.currency-item{display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow-wrap:anywhere}.pair-sep{color:#97b5f3;margin:0 3px}
.flag{position:relative;display:inline-block;width:18px;height:12px;border-radius:2px;overflow:hidden;box-shadow:0 0 0 1px #fff3;flex-shrink:0}
.flag-id,.flag-sg{background:linear-gradient(#e9434d 50%,white 50%)}.flag-my,.flag-us{background:repeating-linear-gradient(#ed5b60 0px 1px,#fff 1px 2px)}.flag-my:before,.flag-us:before{content:"";position:absolute;width:9px;height:7px;background:#1e4399}.flag-my:after,.flag-sg:after{content:"";position:absolute;width:4px;height:4px;left:3px;top:1px;border-radius:50%;box-shadow:-1.3px .5px #ffe193}
.manual{position:absolute;bottom:14px;right:17px;background:#123781a3;border:1px solid #ffffff3d;border-radius:30px;padding:4px 9px;display:inline-flex;gap:6px;align-items:center;font-size:.75rem;color:#edf2ff}.manual span{width:5px;height:5px;background:#ffaf60}
.section-head{margin:29px 0 14px}h2{font-size:1.3rem;line-height:1.3;letter-spacing:-.034em;font-weight:680}
.section-head a{font-size:.88rem;font-weight:600}
.features,.settings-layout,.wallet-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.feature,.panel,.history-box{border:1px solid var(--edge);border-radius:15px;background:#fff;box-shadow:0 3px 9px #253d6c04}
.feature{position:relative;display:block;padding:24px 26px 0;overflow:hidden;color:var(--ink);transition:transform .17s,border-color .17s,box-shadow .17s}
.feature:hover{transform:translateY(-2px);border-color:#9eb7ea;box-shadow:0 5px 18px #1c398312}.feature.orange:hover{border-color:#e3b48b}
.feature-icon{width:64px;height:64px;border-radius:17px;background:#eaf1ff;border:1px solid #d7e4ff;display:grid;place-items:center}.feature-icon svg{width:50px;height:50px}
.orange .feature-icon{background:#fff1e4;border-color:#f8ddc2}
.feature h3{font-size:1.5rem;letter-spacing:-.04em;line-height:1.25;margin:15px 0 5px}
.feature p{font-size:.94rem}.feature-link{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.89rem;line-height:1;font-weight:650;color:#2454bb;padding:14px 0;margin-top:19px;border-top:1px solid #e7ecf3}.feature-link span{width:23px;height:23px;display:grid;place-items:center;background:#eef4ff;border-radius:50%}.feature-link svg{width:14px;height:14px}.orange .feature-link{color:#a34d1b}.orange .feature-link span{background:#fff0e3}
.empty{padding:20px 24px;display:flex;gap:16px;align-items:center}.empty strong,.row-info strong{font-weight:620;font-size:.96rem}.empty p{font-size:.87rem;margin-top:2px}
.empty-icon,.row-icon,.small-icon{display:inline-grid;place-items:center;border-radius:12px;background:#f0f3f8;color:#73859c;width:43px;height:43px;flex-shrink:0}
footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 0 24px;border-top:1px solid var(--edge);color:#637189;font-size:.78rem}footer>span{display:inline-flex;align-items:center;gap:7px}footer strong{color:#485b79;letter-spacing:-.045em;font-size:1rem}footer svg{width:14px;height:14px}.foot-sep{color:#a2acbd}
.back{display:inline-flex;align-items:center;gap:3px;color:var(--sub);font-size:.86rem;margin-bottom:17px}.back svg{width:15px;height:15px}
.panel{padding:25px}.panel h2{margin-bottom:8px}.panel p{font-size:.94rem;margin:4px 0 16px}.panel .section-head{margin:0 0 21px}.panel .section-head h2{margin:0}.narrow,.converter{max-width:650px}
label{display:block;font-size:.91rem;font-weight:600;margin:16px 0;color:#35465f}label small{font-weight:400;color:var(--sub)}
input,select{display:block;border:1px solid #c7d3e4;border-radius:8px;color:var(--ink);padding:11px 12px;font-size:1rem;width:100%;background:white;margin-top:7px;min-width:0}
select{appearance:none;padding-right:35px;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23465b79' viewBox='0 0 14 14'%3E%3Cpath d='m2 5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center}
.two-fields{display:grid;grid-template-columns:1fr 2fr;gap:12px}.two-fields label{margin:0}
fieldset{border:1px solid var(--edge);border-radius:10px;margin:18px 0;padding:4px 15px 16px}legend{font-size:.9rem;font-weight:650;color:var(--blue);padding:0 6px}
.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:20px}.settings-layout,.wallet-layout{align-items:start}
.money-field{display:flex;align-items:center;gap:12px;padding:8px 15px;background:#f8faff;border:1px solid #bbcde8;border-radius:10px}
.money-field span{display:inline-flex;gap:7px;align-items:center;font-weight:600}.money-field input{margin:0;border:0;background:transparent;text-align:right;font-size:1.8rem;font-weight:600}
.switch-line{margin:18px 0;text-align:center}.switch-line button{color:var(--blue);border-color:#c9d9fa}
.result,.balance-panel{padding:23px;border-radius:12px;background:#eef4ff;color:#214797}.result span,.balance-panel span{font-size:.9rem;font-weight:600}.result output,.balance-panel strong{display:block;font-size:clamp(1.65rem,3vw,2.5rem);font-weight:650;letter-spacing:-.045em;margin:7px 0;overflow-wrap:anywhere}
.balance-panel{background:linear-gradient(120deg,#153a92,#295dc3);color:white;padding:30px}.balance-panel span{display:flex;align-items:center;gap:8px}.balance-panel strong{margin:14px 0 25px}.balance-panel a{color:white;text-decoration:underline;font-size:.87rem}
.segments{display:flex;gap:4px;background:#f1f4f9;padding:4px;border-radius:10px}.segments button{flex:1;border:none;background:transparent}.segments button[aria-pressed="true"]{background:white;box-shadow:0 2px 5px #15294716;color:var(--blue)}
.ledger{list-style:none;margin:0;padding:0 20px}.ledger li{display:flex;align-items:center;gap:13px;padding:16px 0}.ledger li+li{border-top:1px solid var(--edge)}.row-info{min-width:0;overflow-wrap:anywhere}.row-info small{display:block;color:var(--sub);margin-top:3px}.ledger b{margin-left:auto;text-align:right;font-size:.94rem}.row-icon{width:36px;height:36px;background:#edf5f1;color:#307456}.negative{color:#a15a33;background:#fdf0e8}.credit{color:#367255}.debit{color:#9b5336}
dialog{border:1px solid var(--edge);border-radius:15px;max-width:min(430px,90vw);padding:25px;color:var(--ink)}dialog p{margin:12px 0 18px}dialog::backdrop{background:#12213d73}
.toast{position:fixed;z-index:5;bottom:22px;left:50%;transform:translate(-50%,10px);background:#172d51;color:white;border-radius:10px;padding:12px 18px;max-width:92vw;width:max-content;box-shadow:0 6px 20px #162c4b25;pointer-events:none;opacity:0}.toast.show{opacity:1;transform:translate(-50%,0)}.warning{background:#fff3df;padding:12px 16px;border-radius:9px;margin-bottom:16px}
[hidden]{display:none!important}
@media(max-width:820px){.top-inner,main,footer{width:calc(100% - 48px)}.rate-banner{padding:26px}.top-inner{gap:30px}.today{font-size:.78rem}.travel{right:-1%}.features{gap:15px}.feature{padding:20px 20px 0}}
@media(max-width:620px){.top-inner,main,footer{width:calc(100% - 32px)}.top-inner{min-height:65px;gap:10px;flex-wrap:wrap}.brand{font-size:1.65rem}.brand img{width:32px;height:32px;margin-right:5px}nav{gap:2px;margin-left:auto}nav a{padding:9px 8px;font-size:.84rem;gap:4px}nav svg{width:15px;height:15px}.network{display:none}main{padding-block:24px 30px}.page-head{align-items:start;flex-direction:column;gap:10px;margin-bottom:18px}.page-head p{font-size:.92rem}.today{font-size:.75rem}.rate-banner{min-height:180px;padding:22px 18px;align-items:flex-start}.rate-content{width:74%}.rate-tag{font-size:.63rem;letter-spacing:.09em}.big-rate{font-size:clamp(1.42rem,5.6vw,2.2rem);gap:7px;margin:12px 0}.currency-pair .pair-sep{display:none}.currency-pair{flex-direction:column;align-items:flex-start;font-size:.76rem;gap:5px;max-width:200px}.travel{height:auto;width:48%;right:-4%;top:auto;bottom:23px}.manual{font-size:.67rem;bottom:9px;right:10px}.section-head{margin:24px 0 12px}h2{font-size:1.16rem}.features{gap:12px}.feature{display:flex;flex-direction:column;padding:16px 14px 0;border-radius:12px}.feature h3{font-size:1.14rem;margin:13px 0 5px}.feature-icon{width:50px;height:50px;border-radius:13px}.feature-icon svg{width:40px;height:40px}.feature p{font-size:.83rem;line-height:1.45;margin-bottom:13px}.feature-link{margin-top:auto;padding:11px 0;font-size:.78rem}.feature-link span{width:18px;height:18px}.empty{padding:16px;gap:12px}.empty p{font-size:.8rem}footer{font-size:.7rem}.panel{padding:19px}.settings-layout,.wallet-layout{grid-template-columns:1fr;gap:14px}.ledger{padding:0 12px}.ledger li{gap:8px}.ledger b{font-size:.83rem}.row-info small{font-size:.76rem}}
@media(max-width:350px){.features{grid-template-columns:1fr}.currency-pair{max-width:160px}footer{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
