/* Language layout layer. Numeric financial values remain left-to-right. */
html[dir=rtl] body { direction:rtl; }
html[dir=rtl] .profile-row em { margin-inline-start:auto; margin-inline-end:0; }
html[dir=rtl] .btc-timer { margin-left:0; margin-inline-start:auto; text-align:end; }
html[dir=rtl] .profile-row>b,html[dir=rtl] .home-news-row>span { transform:scaleX(-1); }
html[dir=rtl] .btc-history-details dd { text-align:end; }
.btc-price strong,.btc-opening strong,.btc-timer strong,.btc-history-details dd { direction:ltr;unicode-bidi:isolate; }
.profile-row>span:not(.profile-row-icon),.home-news-row h3,.service-button,.service-secondary { overflow-wrap:anywhere;min-width:0; }
.profile-row em { white-space:normal;text-align:end;max-width:48%; }
html[lang=hi],html[lang=mr],html[lang=bn],html[lang=ta],html[lang=te],html[lang=pa],html[lang=gu],html[lang=kn],html[lang=or],html[lang=ml],html[lang=my],html[lang=th] { line-height:1.8; }
/* Preserve addresses and amounts inside right-to-left pages. */
.balance-number>span,.balance-bottom>strong,.service-address,
input[type=email],input[type=url],input[autocomplete=username] {
    direction:ltr;unicode-bidi:isolate;
}
html[dir=rtl] .service-back>span,
html[dir=rtl] .wallet-service-meta>b { display:inline-block;transform:scaleX(-1); }
.v2-language { min-width:0;max-width:100%; }
.v2-language select { min-width:0;max-width:100%; }
.service-tab>span { min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.35; }
.service-tab svg { flex-shrink:0; }
/* Use installed script fonts before a generic fallback; no blocking font download. */
html:lang(ar),html:lang(fa) { font-family:"Noto Sans Arabic","Geeza Pro",Tahoma,sans-serif; }
html:lang(ur) { font-family:"Noto Nastaliq Urdu","Noto Sans Arabic","Geeza Pro",Tahoma,sans-serif; }
html:lang(hi),html:lang(mr) { font-family:"Noto Sans Devanagari","Kohinoor Devanagari","Mangal",sans-serif; }
html:lang(bn) { font-family:"Noto Sans Bengali","Kohinoor Bangla","Vrinda",sans-serif; }
html:lang(ta) { font-family:"Noto Sans Tamil","Tamil Sangam MN","Latha",sans-serif; }
html:lang(te) { font-family:"Noto Sans Telugu","Kohinoor Telugu","Gautami",sans-serif; }
html:lang(pa) { font-family:"Noto Sans Gurmukhi","Gurmukhi MN","Raavi",sans-serif; }
html:lang(gu) { font-family:"Noto Sans Gujarati","Gujarati Sangam MN","Shruti",sans-serif; }
html:lang(kn) { font-family:"Noto Sans Kannada","Kannada Sangam MN","Tunga",sans-serif; }
html:lang(or) { font-family:"Noto Sans Oriya","Oriya Sangam MN","Kalinga",sans-serif; }
html:lang(ml) { font-family:"Noto Sans Malayalam","Malayalam Sangam MN","Kartika",sans-serif; }
html:lang(my) { font-family:"Noto Sans Myanmar","Myanmar Sangam MN","Myanmar Text",sans-serif; }
html:lang(th) { font-family:"Noto Sans Thai","Thonburi","Leelawadee UI",sans-serif; }
/* Isolate literal links and ledger numbers within RTL pages. */
#invite-url,.record>strong,.record-main>small { direction:ltr;unicode-bidi:isolate; }
/* Translated feedback can be longer than the handset viewport. */
.toast { max-width:calc(100% - 32px);white-space:normal;overflow-wrap:anywhere;text-align:center; }
/* Keep identifiers and numeric expressions intact inside RTL prose. */
.bidi-ltr { direction:ltr; unicode-bidi:isolate; display:inline-block; }
.profile-head > div:last-child { min-width:0; overflow-wrap:anywhere; }
.profile-head h2,.profile-head p { text-align:start; }
#rate-value,.mining-pool strong { direction:ltr; unicode-bidi:isolate; }
#rate-value small { display:inline-block; unicode-bidi:isolate; }
html[dir=rtl] .profile-row { text-align:right; }
html[dir=rtl] .profile-row>b { margin-left:0; margin-right:auto; direction:ltr; unicode-bidi:isolate; }
html[dir=rtl] .profile-row em+b { margin-right:0; }
html[dir=rtl] .service-back>span,
html[dir=rtl] .home-news-row>span,
html[dir=rtl] .wallet-service-meta>b { direction:ltr; unicode-bidi:isolate; }
.profile-row-icon { flex-shrink:0; }
/* Navigation chevrons must keep their shape in Urdu's Nastaliq text font. */
.profile-row>b { font-family:Arial,sans-serif; }
time { unicode-bidi:isolate; }
.service-row time,.service-muted time,.message-item time { direction:ltr; display:inline-block; }
#rate-value { display:flex; align-items:baseline; justify-content:center; gap:.18em; }
