:root{--ink:#142b49;--muted:#60738c;--navy:#102c51;--blue:#1468df;--soft:#edf4fd;--line:#e2e9f1;--bg:#f4f7fb;--green:#10745f;--red:#bb3248;--shadow:0 6px 24px #162f5010;color-scheme:light;font-size:16px}
*{box-sizing:border-box}html,body{margin:0;height:100%;min-width:0}body{font-family:'Noto Sans Arabic','Segoe UI',Tahoma,Arial,sans-serif;color:var(--ink);background:#e6ecf4;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}button,a,input,summary,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #5e9cee;outline-offset:3px}img{max-width:100%;object-fit:contain}#app{height:100%;display:flex;justify-content:center}.app-shell{width:min(100%,480px);height:100dvh;background:var(--bg);display:grid;grid-template-rows:minmax(0,1fr);overflow:hidden;position:relative;isolation:isolate}.app-shell.with-nav{grid-template-rows:minmax(0,1fr) auto}.content{min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;overflow-wrap:anywhere;padding:20px clamp(16px,5vw,24px) 24px;scroll-padding-block:20px}.content.auth{padding-block:clamp(20px,5dvh,44px) 28px}.app-shell::before,.app-shell::after{display:none}
header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.compact-header{margin-bottom:12px}.office-label{font-size:.8rem;font-weight:700;color:var(--muted)}.head-icon{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;flex-shrink:0;color:var(--navy)}.home-header{padding:4px 0;margin-bottom:22px}.home-header h1{font-size:1.25rem;margin:3px 0 0;font-weight:750}.eyebrow{color:var(--muted);font-size:.8rem}.title{font-size:1.45rem;line-height:1.6;margin:8px 0;font-weight:750}.subtitle{font-size:.86rem;line-height:1.9;color:var(--muted);margin:0 0 18px}.section-title{display:flex;align-items:center;justify-content:space-between;font-size:.9rem;font-weight:750;margin:24px 0 12px}.ico{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.ico.sm{width:18px;height:18px}.ico.lg{width:28px;height:28px}.plain-icon{width:32px;height:32px;border:0;border-radius:50%;display:inline-grid;place-items:center;color:var(--blue);background:var(--soft);flex-shrink:0}.plain-icon.tiny{width:32px;height:32px}
.hero-balance{border-radius:24px;background:linear-gradient(120deg,#102c51,#164d91);padding:24px;color:white;box-shadow:0 12px 24px #153b7025}.balance-label{display:flex;align-items:center;gap:8px;font-size:.87rem;color:#e1ebfa}.balance-label button{color:white;background:#ffffff18}.balance-number{direction:ltr;text-align:right;line-height:1.5;margin:14px 0 6px;font-size:clamp(2rem,9vw,2.9rem);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-1px}.balance-number small{font-size:.85rem;letter-spacing:0;color:#d7e8ff}.balance-note{font-size:.78rem;color:#d7e8ff}.balance-footer{margin-top:22px;border-top:1px solid #ffffff24;padding-top:14px;display:flex;gap:8px;align-items:center;font-size:.72rem;color:#d7e8ff}.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.action{min-width:0;border:1px solid var(--line);border-radius:18px;background:white;padding:16px 4px;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:.82rem;font-weight:700}.action-ico{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:var(--blue);background:var(--soft)}.action.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.action.primary .action-ico{background:#ffffff20;color:#fff}.preview-notice{display:flex;gap:10px;align-items:flex-start;background:#edf2f8;border:1px solid #dce5ef;color:#4d617b;border-radius:14px;padding:13px;margin:14px 0}.preview-notice>.ico{margin-top:3px}.preview-notice strong{display:block;font-size:.78rem}.preview-notice small{display:block;font-size:.73rem;line-height:1.8;margin-top:4px}
.bottombar{z-index:20;background:#fff;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line)}.tab{min-width:0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:14px;background:transparent;color:#65768c;font-size:.68rem;line-height:1.5;padding:6px 2px}.tab.active{background:var(--soft);color:var(--blue);font-weight:750}.keyboard-open .bottombar{display:none}.keyboard-open .app-shell.with-nav{grid-template-rows:minmax(0,1fr)}.hg-native-android .bottombar{padding-bottom:7px}
.card{padding:18px;border:1px solid var(--line);border-radius:18px;background:#fff;margin-bottom:12px;box-shadow:0 3px 12px #162f5004}.soft-card{background:var(--soft);border-radius:14px;padding:14px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.row.start{justify-content:flex-start}.stack{display:grid;gap:14px}.mini,.hint{font-size:.76rem;color:var(--muted);line-height:1.9}.hint{margin:14px 0}.sep{height:1px;background:var(--line);margin:14px 0}.flex1{flex:1;min-width:0}.pill{padding:5px 10px;border-radius:20px;background:var(--soft);color:#195898;font-size:.74rem;width:fit-content}.method{width:100%;display:flex;gap:14px;align-items:center;text-align:start;background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;margin:12px 0}.method-icon{width:50px;height:50px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);border-radius:15px;background:#fff;padding:6px}.method-icon img{width:100%;height:100%;object-fit:contain}.method-copy{flex:1;min-width:0}.method strong{display:block;font-size:.95rem}.method small{display:block;font-size:.77rem;color:var(--muted);margin-top:6px}.chev{color:#8193a8}.choice-group{border:0;margin:0 0 18px;padding:0}.choice-group legend{font-size:.82rem;font-weight:700;margin-bottom:10px}.choice{min-width:0;flex:1;min-height:46px;border:1px solid var(--line);border-radius:12px;background:#fff;font-size:.83rem}.choice.selected,.filter.selected{border-color:var(--blue);color:var(--blue);background:var(--soft);font-weight:700}.flow-steps{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:.74rem;color:#738398;margin:20px 0}.flow-steps .selected,.flow-steps .done{color:var(--blue)}.field{margin:18px 0}.field label{display:flex;gap:8px;align-items:center;font-size:.85rem;font-weight:650;margin-bottom:9px}.field input,.field textarea,.field select{display:block;width:100%;min-width:0;min-height:50px;border:1px solid #ccd8e5;border-radius:12px;padding:12px;background:#fff;color:var(--ink);outline:none;font-size:1rem}.field input:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1468df18}.field input[type=email],.field input[type=password],.field input[type=tel],.field input[type=number],.ltr{direction:ltr;text-align:left}.field input[type=file]{font-size:.8rem}.field input::placeholder{color:#7e8da2}.field input[type=number]{appearance:textfield}.amount-input{display:flex;align-items:center;gap:8px;border:1px solid #ccd8e5;border-radius:12px;background:#fff;padding-inline-end:14px;direction:ltr}.amount-input input{border:0;font-size:1.6rem;font-variant-numeric:tabular-nums}.amount-input span{color:var(--muted);font-size:.85rem}.summary-row{align-items:flex-start;font-size:.8rem;line-height:1.8}.summary-row>span{color:var(--muted);flex:1}.summary-row b{max-width:65%;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;text-align:end}.hint-red{color:var(--red);font-size:.78rem;line-height:1.8}.hint-box,.warn-box{display:flex;align-items:flex-start;gap:10px;border-radius:14px;background:var(--soft);padding:15px;color:#4e6786;margin:16px 0;font-size:.8rem;line-height:1.9}.hint-box p{margin:0}.warn-box{background:#fff4e4;color:#855817}.btn{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;width:100%;border:1px solid transparent;border-radius:13px;background:var(--blue);color:#fff;font-size:.9rem;font-weight:700;padding:12px 16px;margin-top:15px}.btn.ghost{background:#fff;border-color:var(--line);color:var(--blue)}.btn.text{background:transparent;color:var(--blue);border:0;margin-top:8px}.btn.small{width:auto;min-height:40px;margin:0}.btn.danger{color:var(--red)}.btn:not(:disabled):active,.method:active,.action:active{transform:translateY(1px)}
.auth-brand{display:flex;flex-direction:column;align-items:center;margin:4px 0 28px}.auth-brand img{width:86px;height:98px;object-fit:contain;border-radius:0}.wordmark{font-size:1.4rem;font-weight:750;margin-top:12px;color:var(--navy)}.auth-brand p{font-size:.76rem;color:var(--muted);line-height:1.9;text-align:center;margin:6px 0}.auth-title{font-size:1.5rem;line-height:1.7;margin:0 0 4px}.auth .field{margin:16px 0}.footer-prompt,.legal-mini{text-align:center;font-size:.8rem;color:var(--muted);line-height:1.9;margin-top:22px}.footer-prompt button{background:transparent;border:0;color:var(--blue);font-weight:700}.legal-mini{font-size:.73rem}.onboard{min-height:100%;display:flex;flex-direction:column;justify-content:space-between;gap:24px}.skip{border:0;background:transparent;color:var(--muted);align-self:flex-start;padding:8px 0;font-size:.83rem}.onboard-art{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;min-height:210px;margin:16px 0 26px}.orbit{position:absolute;background:#e9f0fa;border-radius:50%;width:220px;height:220px;z-index:-1}.ob-token{width:90px;height:100px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:22px;display:grid;place-items:center;box-shadow:var(--shadow)}.ob-token img{width:100%;height:100%;object-fit:contain}.ob-token.usdt{border-radius:50%;width:90px;height:90px;padding:12px}.ob-arrow{color:var(--blue)}.ob-copy{text-align:center}.ob-copy h1{font-size:1.45rem;line-height:1.7;margin:0 0 12px}.ob-copy p{font-size:.9rem;line-height:2;color:var(--muted);margin:0}.stepdots{display:flex;justify-content:center;gap:7px;margin:26px 0}.dot{height:6px;width:6px;border-radius:10px;background:#cbd7e7}.dot.active{width:24px;background:var(--blue)}
.empty{text-align:center;padding:26px 18px;border:1px dashed #c4d2e2;border-radius:16px;background:#f9fbff;color:var(--muted);font-size:.82rem;line-height:1.9}.empty h2{font-size:1rem;color:var(--ink);margin:12px 0 8px}.spacious{padding-block:50px}.filter-row{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.filter{border:1px solid var(--line);border-radius:24px;background:#fff;min-height:40px;padding:7px 14px;font-size:.75rem}.transaction{display:flex;width:100%;align-items:center;gap:10px;text-align:start}.transaction strong{font-size:.8rem}.transaction small{display:block;font-size:.69rem;color:var(--muted);margin-top:6px}.transaction b{font-size:.85rem}.circle{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:var(--soft);color:var(--blue);flex-shrink:0}.profile-card{text-align:center;padding:24px;border:1px solid var(--line);border-radius:20px;background:#fff}.avatar{width:64px;height:64px;border-radius:50%;display:inline-grid;place-items:center;background:var(--soft);color:var(--blue)}.profile-card h2{font-size:1.2rem;margin:12px 0 6px}.guide{width:100%;display:flex;align-items:center;gap:12px;text-align:start;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff;margin-bottom:10px}.guide strong{font-size:.83rem}.support{display:flex;gap:12px;align-items:center;padding:18px;background:#e9f6f1;border:1px solid #d0e8de;border-radius:18px;margin:16px 0}.support-ico{color:#138667}.support strong{display:block;font-size:.9rem}.support small{display:block;font-size:.76rem;color:#4c7767;margin-top:6px}.faq summary{font-size:.85rem;cursor:pointer;line-height:1.8}.faq p{margin:12px 0 0}.guide-steps{padding-inline-start:22px;line-height:2;font-size:.85rem}.destination{font-size:.8rem;overflow-wrap:anywhere}.receipt-image{width:100%;max-height:200px;object-fit:contain;border-radius:12px;margin-top:14px}
.modal-back{position:absolute;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;padding-top:24px;background:#10274280}.modal{background:#fff;width:100%;max-height:90%;overflow-y:auto;border-radius:24px 24px 0 0;padding:24px 24px calc(24px + env(safe-area-inset-bottom,0px))}.modal-title{display:flex;align-items:center;gap:10px;font-size:1.1rem;font-weight:700}.modal p{line-height:2;color:var(--muted);font-size:.9rem}.toast{position:fixed;z-index:60;bottom:calc(84px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);max-width:min(90%,420px);width:max-content;background:var(--navy);color:#fff;padding:13px 18px;border-radius:14px;font-size:.8rem;line-height:1.8;text-align:center;box-shadow:var(--shadow)}.offline-banner{background:#fff2dc;color:#765119;padding:10px 14px;border-radius:12px;font-size:.78rem;margin-bottom:14px}
@media(min-width:600px){.app-shell{box-shadow:0 0 45px #10274218}}@media(max-height:700px){.home-header{margin-bottom:14px}.hero-balance{padding:20px}.balance-footer{margin-top:14px;padding-top:12px}.actions{margin:16px 0}.onboard-art{min-height:160px;margin-block:10px}.orbit{width:180px;height:180px}.auth-brand{margin-bottom:18px}}@media(prefers-reduced-motion:no-preference){.content>section,.method{animation:appear .18s ease-out}@keyframes appear{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
.admin-shell{max-width:850px;margin:25px auto;padding:28px;background:#fff;box-shadow:var(--shadow);border-radius:25px}.admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:15px}.setting{padding:17px;border-radius:17px;border:1px solid #dce8f7;background:#fbfdff}.setting h3{font-size:14px;margin:0 0 10px}.setting label{font-size:12px;display:block;margin-bottom:8px}.setting input{border:1px solid #d3e4f7;padding:10px;width:100%;border-radius:9px}.switchrow{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1f7;padding:10px 0;font-size:12px}.switchrow input{width:22px;height:22px;accent-color:#176cf2}.admin-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-head img{width:54px}.admin-tip{padding:10px 15px;background:#fff4dc;border-radius:12px;color:#8f6210;font-size:11px;line-height:1.9;margin:15px 0}

.amount-input input{flex:1;width:0;min-width:0}.amount-input span{flex:none;white-space:nowrap}.summary-row b[dir=ltr]{unicode-bidi:isolate}.home-header h1{letter-spacing:0}

.session-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);font-size:.85rem}.loader{width:26px;height:26px;border:3px solid #d8e5f5;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* Deposit experience v2: compact, accessible, dynamic destination + local QR */
.deposit-overview{background:linear-gradient(125deg,#102b4e,#194b83);color:white;border-radius:22px;padding:19px 20px;margin:15px 0 14px;box-shadow:0 10px 25px #163c6d1c}
.deposit-overview-top,.deposit-overview-footer,.deposit-card-head,.deposit-qr-row,.deposit-receipt-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.deposit-overview-label{color:#d6e5f7;font-size:.76rem}
.deposit-chip{display:inline-flex;border-radius:50px;background:#ffffff23;border:1px solid #ffffff30;padding:5px 12px;font-size:.73rem;font-weight:700;direction:ltr}
.deposit-overview-amount{display:block;text-align:start;font-size:clamp(1.8rem,7vw,2.3rem);letter-spacing:-.8px;margin:10px 0 16px;font-variant-numeric:tabular-nums}
.deposit-overview-amount small{font-size:.85rem;letter-spacing:0}
.deposit-overview-footer{padding-top:12px;border-top:1px solid #ffffff28;font-size:.69rem;color:#d9e7f8;flex-wrap:wrap}
.deposit-overview-footer>span{display:inline-flex;align-items:center;gap:5px}
.deposit-address-card,.deposit-receipt-card{background:#fff;border:1px solid #e3eaf3;border-radius:22px;padding:19px;margin:12px 0;box-shadow:0 5px 22px #15375a09}
.deposit-card-head h2,.deposit-receipt-heading h2{font-size:1rem;margin:0 0 5px;font-weight:800}
.deposit-card-head p,.deposit-receipt-heading p{font-size:.74rem;color:var(--muted);margin:0;line-height:1.8}
.deposit-secure{display:flex;align-items:center;gap:4px;color:#16826d;background:#eaf8f2;border-radius:30px;padding:6px 9px;white-space:nowrap;font-size:.67rem}
.deposit-address-line{display:flex;align-items:center;gap:8px;background:#f5f8fd;border:1px solid #e1eaf4;border-radius:13px;padding:10px 10px 10px 13px;margin:18px 0 15px;min-width:0}
.deposit-address-text{flex:1;min-width:0;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text;font-size:.78rem;line-height:1.8;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#233c60}
.deposit-copy-icon{border:0;background:#e2edff;color:#1265cc;min-width:42px;min-height:42px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}
.deposit-qr-row{align-items:center;justify-content:flex-start;gap:17px}
.deposit-qr{width:146px;height:146px;display:grid;place-items:center;flex-shrink:0;background:#fff;border:1px solid #e7edf5;border-radius:15px;padding:8px}
.deposit-qr svg{display:block;width:100%;height:100%}
.deposit-qr-explain{flex:1;min-width:0}
.deposit-qr-explain strong{font-size:.91rem}
.deposit-qr-explain p{font-size:.75rem;line-height:1.85;color:var(--muted);margin:5px 0 10px}
.deposit-copy-button{border:1px solid #bdd7f8;background:#f0f6ff;color:#1262bd;display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:39px;border-radius:11px;padding:8px 12px;font-size:.78rem;font-weight:750}
.deposit-caution{display:flex;align-items:flex-start;gap:7px;color:#8a622d;background:#fff8ec;border-radius:11px;font-size:.72rem;line-height:1.9;padding:10px 12px;margin:17px 0 0}
.deposit-caution svg{flex-shrink:0;margin-top:3px}
.receipt-symbol{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:#edf5ff;color:#1266c9;flex-shrink:0}
.deposit-receipt-heading{justify-content:flex-start;margin-bottom:15px}
.deposit-upload{border:1.5px dashed #a9c6e9;border-radius:15px;background:#f7faff;min-height:100px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;cursor:pointer;color:#195baf;text-align:center}
.deposit-upload>span{display:flex;align-items:center;gap:8px;font-size:.87rem;font-weight:750}
.deposit-upload small{color:#72849c;font-size:.69rem}
.deposit-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.deposit-file-input:focus-visible+.deposit-upload,.deposit-upload:focus-within{outline:3px solid #5e9cee;outline-offset:2px}
.deposit-receipt-card .btn{margin-top:16px}
.deposit-receipt-card #receiptPreview:not(:empty){padding-top:8px}
@media(max-width:360px){.deposit-address-card,.deposit-receipt-card{padding:14px}.deposit-qr{width:120px;height:120px}.deposit-qr-row{gap:10px}.deposit-qr-explain p{font-size:.7rem}}

.deposit-amount-card{border-radius:23px;padding:22px 19px}
.deposit-amount-card .choice-group{margin-bottom:22px}
.deposit-amount-card .choice-group .row{gap:10px}
.deposit-amount-card .choice{min-height:55px;border-radius:14px;font-weight:650}
.deposit-amount-card .choice.selected{box-shadow:0 3px 12px #1468df13;border-color:#74a7ed;background:linear-gradient(135deg,#eaf3ff,#f8fbff)}
.deposit-amount-card .amount-input{border-radius:17px;background:#f8fbff;border-color:#d7e4f4;min-height:72px}
.deposit-amount-card .amount-input:focus-within{border-color:#4589e9;box-shadow:0 0 0 3px #1468df14}
.deposit-amount-card .amount-input input{background:transparent;font-size:2rem;font-weight:650}
.deposit-amount-card #amountSummary{background:#f3f7fd;border:1px solid #e3ecf8;border-radius:17px;padding:17px}
.deposit-amount-card .btn{min-height:55px;border-radius:15px}

.deposit-upload.invalid{border-color:#d98080;background:#fff6f6;box-shadow:0 0 0 3px #e05d5d14}
.deposit-upload-error:not([hidden]){display:flex;align-items:center;background:#fff0f0;border:1px solid #f1c2c2;border-radius:12px;padding:11px 13px;color:#a83a3a;font-size:.8rem;line-height:1.7;margin:12px 0}
.deposit-upload-error[hidden]{display:none!important}
